@getflip/swirl-components-react 0.300.0 → 0.300.1
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.631ff9e3.js → file-manager.entry.ce12d42c.js} +1 -1
- package/dist/{index.24a4f18e.js → index.9a9fa403.js} +332 -332
- package/dist/{swirl-accordion-item.entry.4a147e2a.js → swirl-accordion-item.entry.5dcab4c8.js} +1 -1
- package/dist/{swirl-accordion.entry.f81612bd.js → swirl-accordion.entry.853e152d.js} +1 -1
- package/dist/{swirl-action-list-section.entry.f86a5ce2.js → swirl-action-list-section.entry.a06eb606.js} +1 -1
- package/dist/{swirl-action-list_2.entry.ad530e88.js → swirl-action-list_2.entry.4c67eb27.js} +1 -1
- package/dist/{swirl-app-bar.entry.f527ebd2.js → swirl-app-bar.entry.49c0be00.js} +1 -1
- package/dist/{swirl-app-icon.entry.5ac53854.js → swirl-app-icon.entry.10acfcea.js} +1 -1
- package/dist/{swirl-app-layout_5.entry.d81d191c.js → swirl-app-layout_5.entry.79846f37.js} +1 -1
- package/dist/{swirl-autocomplete.entry.8386d370.js → swirl-autocomplete.entry.e26394c6.js} +1 -1
- package/dist/{swirl-avatar-group.entry.dab8150e.js → swirl-avatar-group.entry.2b440840.js} +1 -1
- package/dist/{swirl-avatar.entry.45ffc97b.js → swirl-avatar.entry.1b89074c.js} +1 -1
- package/dist/{swirl-badge.entry.532966b2.js → swirl-badge.entry.67536723.js} +1 -1
- package/dist/{swirl-banner.entry.d2dbc4f9.js → swirl-banner.entry.86988597.js} +1 -1
- package/dist/{swirl-box.entry.38124e4e.js → swirl-box.entry.62b63a0d.js} +1 -1
- package/dist/{swirl-button-group.entry.a134d250.js → swirl-button-group.entry.5a77c5e5.js} +1 -1
- package/dist/{swirl-button.entry.ca6e899a.js → swirl-button.entry.c016a24b.js} +1 -1
- package/dist/{swirl-card.entry.eedcd60c.js → swirl-card.entry.e44051d9.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.f6c189fc.js → swirl-carousel-slide.entry.984f0efc.js} +1 -1
- package/dist/{swirl-carousel.entry.f7f5b91f.js → swirl-carousel.entry.e3c8c2df.js} +1 -1
- package/dist/{swirl-checkbox.entry.c559abd2.js → swirl-checkbox.entry.396094bd.js} +1 -1
- package/dist/{swirl-chip.entry.28eba6ca.js → swirl-chip.entry.5e0bc688.js} +1 -1
- package/dist/{swirl-color-input.entry.1a7cb4f0.js → swirl-color-input.entry.2b9f432e.js} +1 -1
- package/dist/{swirl-columns.entry.ef310131.js → swirl-columns.entry.27070d05.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.2f50d3f2.js → swirl-console-layout.entry.bebe36cb.js} +1 -1
- package/dist/{swirl-date-input.entry.90348d24.js → swirl-date-input.entry.d07bc67c.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.6dad861d.js → swirl-date-picker_2.entry.b8633c29.js} +1 -1
- package/dist/{swirl-description-list-item.entry.5eeb02b9.js → swirl-description-list-item.entry.1b83e49d.js} +1 -1
- package/dist/{swirl-description-list.entry.aab0fe6b.js → swirl-description-list.entry.581c0095.js} +1 -1
- package/dist/{swirl-dialog.entry.14fd2d71.js → swirl-dialog.entry.fb4ec387.js} +1 -1
- package/dist/{swirl-emoji-clap.entry.459e5544.js → swirl-emoji-clap.entry.ad28f9da.js} +1 -1
- package/dist/{swirl-emoji-happy.entry.057cac2e.js → swirl-emoji-happy.entry.dac1c301.js} +1 -1
- package/dist/{swirl-emoji-idea.entry.b876d9ec.js → swirl-emoji-idea.entry.d085153a.js} +1 -1
- package/dist/{swirl-emoji-love.entry.58e60be9.js → swirl-emoji-love.entry.9fa5aa73.js} +1 -1
- package/dist/{swirl-emoji-sad.entry.3f6effda.js → swirl-emoji-sad.entry.14fc6213.js} +1 -1
- package/dist/{swirl-emoji-thumbs-up.entry.277d2acc.js → swirl-emoji-thumbs-up.entry.885242b1.js} +1 -1
- package/dist/{swirl-emoji.entry.420b4454.js → swirl-emoji.entry.eb160a69.js} +1 -1
- package/dist/{swirl-file-uploader.entry.5618006c.js → swirl-file-uploader.entry.8977fd72.js} +1 -1
- package/dist/{swirl-file-viewer_8.entry.c4b5967c.js → swirl-file-viewer_8.entry.a23dea01.js} +81 -81
- package/dist/{swirl-form-control.entry.b15f17b5.js → swirl-form-control.entry.49253dc5.js} +1 -1
- package/dist/{swirl-form-group.entry.c14cbedc.js → swirl-form-group.entry.9a10c639.js} +1 -1
- package/dist/{swirl-heading.entry.6cab06ec.js → swirl-heading.entry.9674f414.js} +1 -1
- package/dist/{swirl-icon-add-moderator.entry.394eb41c.js → swirl-icon-add-moderator.entry.c968813d.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.8283584d.js → swirl-icon-add-photo.entry.7af10efc.js} +1 -1
- package/dist/{swirl-icon-add-reaction.entry.e9bdd7a1.js → swirl-icon-add-reaction.entry.93ac6714.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.d5e7f77e.js → swirl-icon-add_6.entry.a786d097.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.415e3f14.js → swirl-icon-admin-panel-settings.entry.2eb44fec.js} +1 -1
- package/dist/{swirl-icon-ai-filled.entry.619fea93.js → swirl-icon-ai-filled.entry.0236951c.js} +1 -1
- package/dist/{swirl-icon-ai.entry.1103cdef.js → swirl-icon-ai.entry.c4d36558.js} +1 -1
- package/dist/{swirl-icon-apps.entry.c1fff7da.js → swirl-icon-apps.entry.6b8bc0db.js} +1 -1
- package/dist/{swirl-icon-arrow-back_5.entry.81d7eb8e.js → swirl-icon-arrow-back_5.entry.a8d788d6.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.488eaf08.js → swirl-icon-arrow-downward_2.entry.9e9424eb.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.b0991a52.js → swirl-icon-arrow-left_4.entry.1ed8efb5.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.509e9a48.js → swirl-icon-arrow-right-small.entry.c8771b3b.js} +1 -1
- package/dist/{swirl-icon-aspect-ratio.entry.cee5bd5f.js → swirl-icon-aspect-ratio.entry.f43b9b55.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.3ea235cf.js → swirl-icon-attachment.entry.74a5e284.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.be2af306.js → swirl-icon-bar-chart.entry.061391d7.js} +1 -1
- package/dist/{swirl-icon-block.entry.61e668b9.js → swirl-icon-block.entry.527e95d0.js} +1 -1
- package/dist/{swirl-icon-bookmark-filled.entry.a5e88dde.js → swirl-icon-bookmark-filled.entry.f4143540.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.abc1b086.js → swirl-icon-bookmark.entry.239ebd56.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.eef4ee3a.js → swirl-icon-cancel_4.entry.ad8b6119.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.38deee6d.js → swirl-icon-chat-bubble.entry.82e0e69c.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.f53ddd74.js → swirl-icon-chats-filled.entry.cda1e446.js} +1 -1
- package/dist/{swirl-icon-chats.entry.adabd874.js → swirl-icon-chats.entry.3a72f785.js} +1 -1
- package/dist/{swirl-icon-check-circle_2.entry.d28df9ee.js → swirl-icon-check-circle_2.entry.24f37941.js} +1 -1
- package/dist/{swirl-icon-check-small_2.entry.e9e2abc9.js → swirl-icon-check-small_2.entry.4969edb0.js} +1 -1
- package/dist/{swirl-icon-check-strong_2.entry.99fa7f05.js → swirl-icon-check-strong_2.entry.3901ec6f.js} +1 -1
- package/dist/{swirl-icon-check.entry.ea7fce54.js → swirl-icon-check.entry.fda9eb60.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.904409d2.js → swirl-icon-chevron-left.entry.cd3e7148.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.a85de290.js → swirl-icon-chevron-right.entry.a816a5a3.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.1c50667f.js → swirl-icon-close-small.entry.635ff10d.js} +1 -1
- package/dist/{swirl-icon-close.entry.b932f7ab.js → swirl-icon-close.entry.18329ed9.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.fa9c9722.js → swirl-icon-cloud-upload.entry.95d7afd1.js} +1 -1
- package/dist/{swirl-icon-column.entry.ed8c6b9f.js → swirl-icon-column.entry.6f98c2c4.js} +1 -1
- package/dist/{swirl-icon-comment.entry.533e4f73.js → swirl-icon-comment.entry.9ffb5300.js} +1 -1
- package/dist/{swirl-icon-contrast.entry.ba9ff2f4.js → swirl-icon-contrast.entry.07f09d6d.js} +1 -1
- package/dist/{swirl-icon-copy.entry.2aeb6d71.js → swirl-icon-copy.entry.2bf34b12.js} +1 -1
- package/dist/{swirl-icon-crop.entry.7d5bbb1e.js → swirl-icon-crop.entry.5167072f.js} +1 -1
- package/dist/{swirl-icon-dark-mode.entry.034ffab6.js → swirl-icon-dark-mode.entry.b1ade5dc.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.9deb7953.js → swirl-icon-date-range.entry.8a3450e9.js} +1 -1
- package/dist/{swirl-icon-delete.entry.5648bf33.js → swirl-icon-delete.entry.43cd2d62.js} +1 -1
- package/dist/{swirl-icon-deployed-code.entry.de8e5c6b.js → swirl-icon-deployed-code.entry.4f2c6402.js} +1 -1
- package/dist/{swirl-icon-description.entry.433cd788.js → swirl-icon-description.entry.801f8810.js} +1 -1
- package/dist/{swirl-icon-desktop.entry.c80940de.js → swirl-icon-desktop.entry.d87f8223.js} +1 -1
- package/dist/{swirl-icon-directory-filled.entry.70b27394.js → swirl-icon-directory-filled.entry.2e29c447.js} +1 -1
- package/dist/{swirl-icon-directory.entry.06a960e9.js → swirl-icon-directory.entry.0129119b.js} +1 -1
- package/dist/{swirl-icon-discover.entry.7f419234.js → swirl-icon-discover.entry.827db26e.js} +1 -1
- package/dist/{swirl-icon-dock-left.entry.e701c7a1.js → swirl-icon-dock-left.entry.6e047faf.js} +1 -1
- package/dist/{swirl-icon-door-open.entry.f5c6b345.js → swirl-icon-door-open.entry.20521bf9.js} +1 -1
- package/dist/{swirl-icon-dot.entry.ae2e200c.js → swirl-icon-dot.entry.f59be403.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.b01d917d.js → swirl-icon-double-arrow-right.entry.f6fc7605.js} +1 -1
- package/dist/{swirl-icon-download.entry.7a886d7b.js → swirl-icon-download.entry.34b1f7f9.js} +1 -1
- package/dist/{swirl-icon-edit.entry.5a5eb5f9.js → swirl-icon-edit.entry.7ae336ac.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.c62718de.js → swirl-icon-emoji-mood.entry.458469a0.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.7594ec91.js → swirl-icon-emoji-satisfied.entry.e28dc233.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.1c55335a.js → swirl-icon-error_3.entry.0266a5e8.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.2623b712.js → swirl-icon-expand-more.entry.bd1fdd58.js} +1 -1
- package/dist/{swirl-icon-experiment.entry.145e4677.js → swirl-icon-experiment.entry.01642f19.js} +1 -1
- package/dist/{swirl-icon-file.entry.809fc672.js → swirl-icon-file.entry.eb06074f.js} +1 -1
- package/dist/{swirl-icon-filter.entry.f82a7acd.js → swirl-icon-filter.entry.a7756f00.js} +1 -1
- package/dist/{swirl-icon-folder.entry.c5c94694.js → swirl-icon-folder.entry.b8410ac7.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.539e4257.js → swirl-icon-format-h-one.entry.11178a7b.js} +1 -1
- package/dist/{swirl-icon-gif_3.entry.7090badc.js → swirl-icon-gif_3.entry.5a7ca4f7.js} +1 -1
- package/dist/{swirl-icon-group-add.entry.faa83fb8.js → swirl-icon-group-add.entry.8944a555.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.71fcd316.js → swirl-icon-group-assign.entry.ab2bb1bb.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.3d719a73.js → swirl-icon-groups-filled.entry.9faa7560.js} +1 -1
- package/dist/{swirl-icon-groups.entry.b75e324e.js → swirl-icon-groups.entry.b93d306b.js} +1 -1
- package/dist/{swirl-icon-hamburger-menu.entry.22b1d7cc.js → swirl-icon-hamburger-menu.entry.52dd05a4.js} +1 -1
- package/dist/{swirl-icon-help.entry.46dd8450.js → swirl-icon-help.entry.b9a85c26.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.24e808e7.js → swirl-icon-highlight.entry.b0fa2575.js} +1 -1
- package/dist/{swirl-icon-history.entry.a53ae120.js → swirl-icon-history.entry.e1083c84.js} +1 -1
- package/dist/{swirl-icon-home.entry.0f28b9a4.js → swirl-icon-home.entry.f4e64d25.js} +1 -1
- package/dist/{swirl-icon-image.entry.3d21f004.js → swirl-icon-image.entry.3482e9b8.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.259f902e.js → swirl-icon-improve-text.entry.515484a7.js} +1 -1
- package/dist/{swirl-icon-info.entry.cf992cc0.js → swirl-icon-info.entry.41112ed8.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.8f3ca420.js → swirl-icon-insert-below.entry.b3996f91.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.84754a42.js → swirl-icon-insert-on-top.entry.5c14ac4f.js} +1 -1
- package/dist/{swirl-icon-inventory-off.entry.b2486198.js → swirl-icon-inventory-off.entry.5afde118.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.01c5472f.js → swirl-icon-inventory.entry.8380b8b8.js} +1 -1
- package/dist/{swirl-icon-key.entry.3b24be52.js → swirl-icon-key.entry.f1001fdf.js} +1 -1
- package/dist/{swirl-icon-keyboard-hide.entry.b911d2b7.js → swirl-icon-keyboard-hide.entry.edcda479.js} +1 -1
- package/dist/{swirl-icon-keyboard.entry.dd71c5a0.js → swirl-icon-keyboard.entry.0ecd210c.js} +1 -1
- package/dist/{swirl-icon-light-mode.entry.f49618c2.js → swirl-icon-light-mode.entry.b0601b8e.js} +1 -1
- package/dist/{swirl-icon-like.entry.79327d07.js → swirl-icon-like.entry.f0cc6f5c.js} +1 -1
- package/dist/{swirl-icon-link.entry.c937ea2c.js → swirl-icon-link.entry.6c4ae7ad.js} +1 -1
- package/dist/{swirl-icon-live.entry.fa762851.js → swirl-icon-live.entry.75cab586.js} +1 -1
- package/dist/{swirl-icon-load.entry.ae6ba791.js → swirl-icon-load.entry.f1ae794b.js} +1 -1
- package/dist/{swirl-icon-lock-open.entry.71c76937.js → swirl-icon-lock-open.entry.e365a0e2.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.4d6965c8.js → swirl-icon-lock-person.entry.b8f5a359.js} +1 -1
- package/dist/{swirl-icon-lock.entry.2a8f4645.js → swirl-icon-lock.entry.79f534cf.js} +1 -1
- package/dist/{swirl-icon-login.entry.b6dfb702.js → swirl-icon-login.entry.8868e4ab.js} +1 -1
- package/dist/{swirl-icon-logout.entry.79d6b369.js → swirl-icon-logout.entry.9ac43f18.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.163ffeb9.js → swirl-icon-long-text.entry.fe280358.js} +1 -1
- package/dist/{swirl-icon-mail.entry.02dbd041.js → swirl-icon-mail.entry.81b93a1c.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.e81c606d.js → swirl-icon-manage-accounts.entry.1149baa7.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.f1f0595c.js → swirl-icon-mark-chat-read.entry.2c3a7d15.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.6cc94475.js → swirl-icon-mark-chat-unread.entry.323849c3.js} +1 -1
- package/dist/{swirl-icon-mention.entry.3921af66.js → swirl-icon-mention.entry.b46b4afa.js} +1 -1
- package/dist/{swirl-icon-menu-book-filled.entry.07307894.js → swirl-icon-menu-book-filled.entry.2ce3bfbf.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.a89bf203.js → swirl-icon-menu-filled.entry.f1f5c0b8.js} +1 -1
- package/dist/{swirl-icon-menu.entry.c12d6942.js → swirl-icon-menu.entry.ce16f2b0.js} +1 -1
- package/dist/{swirl-icon-message.entry.bdcc7a3d.js → swirl-icon-message.entry.6a633a29.js} +1 -1
- package/dist/{swirl-icon-mic-off.entry.eb3836cf.js → swirl-icon-mic-off.entry.7f145e82.js} +1 -1
- package/dist/{swirl-icon-mic.entry.d11a36be.js → swirl-icon-mic.entry.b9bea04e.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.adb399a2.js → swirl-icon-more-horizontal.entry.eb143edb.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.83ddb792.js → swirl-icon-news-filled.entry.35dbc2ff.js} +1 -1
- package/dist/{swirl-icon-news-off.entry.ed13de2e.js → swirl-icon-news-off.entry.1d4eeb08.js} +1 -1
- package/dist/{swirl-icon-news.entry.0304ce5d.js → swirl-icon-news.entry.2a6b4feb.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.29751505.js → swirl-icon-notifications-active.entry.0f6188b9.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.1c7979d8.js → swirl-icon-notifications-off.entry.94be19ee.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.787a9951.js → swirl-icon-notifications.entry.bfa71ddc.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.39fe6747.js → swirl-icon-open-in-full.entry.5034737e.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.68a8ab90.js → swirl-icon-open-in-new.entry.2d5baae8.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.efd4ab39.js → swirl-icon-pause-circle.entry.27fd1ea6.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.ffbd406b.js → swirl-icon-people-alt.entry.afdbde5c.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.839888f5.js → swirl-icon-person-off.entry.53131093.js} +1 -1
- package/dist/{swirl-icon-person.entry.9074cd8e.js → swirl-icon-person.entry.b3c57b8c.js} +1 -1
- package/dist/{swirl-icon-phone.entry.8825cb3b.js → swirl-icon-phone.entry.181de988.js} +1 -1
- package/dist/{swirl-icon-photo-camera.entry.73d3378d.js → swirl-icon-photo-camera.entry.f61a1180.js} +1 -1
- package/dist/{swirl-icon-pin-off.entry.62e96091.js → swirl-icon-pin-off.entry.d1999b68.js} +1 -1
- package/dist/{swirl-icon-pin.entry.9e465602.js → swirl-icon-pin.entry.41d77e06.js} +1 -1
- package/dist/{swirl-icon-place.entry.df3feb10.js → swirl-icon-place.entry.fe12aba7.js} +1 -1
- package/dist/{swirl-icon-poll.entry.17877137.js → swirl-icon-poll.entry.7273771c.js} +1 -1
- package/dist/{swirl-icon-post-approval.entry.8fe3ef82.js → swirl-icon-post-approval.entry.69f2e216.js} +1 -1
- package/dist/{swirl-icon-present.entry.ee4c86f5.js → swirl-icon-present.entry.d60ae8e6.js} +1 -1
- package/dist/{swirl-icon-print.entry.31788324.js → swirl-icon-print.entry.e7d71503.js} +1 -1
- package/dist/{swirl-icon-public-off.entry.0ec79675.js → swirl-icon-public-off.entry.5c063ffb.js} +1 -1
- package/dist/{swirl-icon-public.entry.f2c6a469.js → swirl-icon-public.entry.e139de85.js} +1 -1
- package/dist/{swirl-icon-ratio-four-to-three.entry.90f86203.js → swirl-icon-ratio-four-to-three.entry.81873833.js} +1 -1
- package/dist/{swirl-icon-ratio-freeform.entry.7e4c11fa.js → swirl-icon-ratio-freeform.entry.e3fc6ca2.js} +1 -1
- package/dist/{swirl-icon-ratio-sixteen-to-nine.entry.f0da3322.js → swirl-icon-ratio-sixteen-to-nine.entry.29ffb18e.js} +1 -1
- package/dist/{swirl-icon-ratio-square.entry.0b0053f5.js → swirl-icon-ratio-square.entry.febbd90a.js} +1 -1
- package/dist/{swirl-icon-ratio-three-to-four.entry.35af88ea.js → swirl-icon-ratio-three-to-four.entry.a5644a47.js} +1 -1
- package/dist/{swirl-icon-ratio-three-to-two.entry.89b6ae3d.js → swirl-icon-ratio-three-to-two.entry.b5a80c56.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.57441e3d.js → swirl-icon-recieved.entry.f910997e.js} +1 -1
- package/dist/{swirl-icon-remove-circle.entry.38baf46c.js → swirl-icon-remove-circle.entry.6c63a6e4.js} +1 -1
- package/dist/{swirl-icon-remove-moderator.entry.5fca8639.js → swirl-icon-remove-moderator.entry.2cd7f054.js} +1 -1
- package/dist/{swirl-icon-reply.entry.27904987.js → swirl-icon-reply.entry.df3a6a95.js} +1 -1
- package/dist/{swirl-icon-report.entry.b04b207f.js → swirl-icon-report.entry.bf6b0875.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.003f34a4.js → swirl-icon-roadmap.entry.466f44cb.js} +1 -1
- package/dist/{swirl-icon-rotate-left.entry.3af3073e.js → swirl-icon-rotate-left.entry.a19f3b13.js} +1 -1
- package/dist/{swirl-icon-rotate-right.entry.7ad63a6a.js → swirl-icon-rotate-right.entry.5cda6a22.js} +1 -1
- package/dist/{swirl-icon-screenshare-off.entry.5d102f87.js → swirl-icon-screenshare-off.entry.f85ae88b.js} +1 -1
- package/dist/{swirl-icon-screenshare.entry.10d0ded0.js → swirl-icon-screenshare.entry.1a171a43.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.85d196a2.js → swirl-icon-search-strong.entry.47dc4d25.js} +1 -1
- package/dist/{swirl-icon-search.entry.445b36cb.js → swirl-icon-search.entry.2952fc2d.js} +1 -1
- package/dist/{swirl-icon-secure.entry.a10ff037.js → swirl-icon-secure.entry.4ea1659e.js} +1 -1
- package/dist/{swirl-icon-send.entry.2fc0b8ff.js → swirl-icon-send.entry.38fa0256.js} +1 -1
- package/dist/{swirl-icon-settings.entry.bab24757.js → swirl-icon-settings.entry.68372bcf.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.b4d55507.js → swirl-icon-short-text.entry.48251eb4.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.a1fa4af8.js → swirl-icon-simplify.entry.8363606d.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.1b41f4a1.js → swirl-icon-spellcheck.entry.1fc9e344.js} +1 -1
- package/dist/{swirl-icon-stars.entry.7b03d8af.js → swirl-icon-stars.entry.94877b6b.js} +1 -1
- package/dist/{swirl-icon-stop-circle.entry.4e104d68.js → swirl-icon-stop-circle.entry.426c8b22.js} +1 -1
- package/dist/{swirl-icon-stop.entry.737b622c.js → swirl-icon-stop.entry.113b8645.js} +1 -1
- package/dist/{swirl-icon-sync.entry.118bf3d3.js → swirl-icon-sync.entry.524c56eb.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.30788682.js → swirl-icon-tasks-filled.entry.7351e45d.js} +1 -1
- package/dist/{swirl-icon-tasks.entry.dd0eb2d7.js → swirl-icon-tasks.entry.c1d98ec4.js} +1 -1
- package/dist/{swirl-icon-terminal.entry.8c281e5a.js → swirl-icon-terminal.entry.e3bfae0b.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.a58528e9.js → swirl-icon-time-filled.entry.6e620d3f.js} +1 -1
- package/dist/{swirl-icon-time.entry.38c935e6.js → swirl-icon-time.entry.96cce9d0.js} +1 -1
- package/dist/{swirl-icon-today-filled.entry.30c2a7a3.js → swirl-icon-today-filled.entry.5700209d.js} +1 -1
- package/dist/{swirl-icon-translate.entry.35ba1c06.js → swirl-icon-translate.entry.67f0e5ac.js} +1 -1
- package/dist/{swirl-icon-tree-structure.entry.a212add2.js → swirl-icon-tree-structure.entry.09ce4cd5.js} +1 -1
- package/dist/{swirl-icon-undo.entry.923ee525.js → swirl-icon-undo.entry.e8272f8f.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.2d8db696.js → swirl-icon-unlock-person.entry.01654f7c.js} +1 -1
- package/dist/{swirl-icon-user-add.entry.77b5cce2.js → swirl-icon-user-add.entry.0a13cb30.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.291e2dc4.js → swirl-icon-user-assign.entry.eda91d6e.js} +1 -1
- package/dist/{swirl-icon-video-camera-off.entry.fddc6296.js → swirl-icon-video-camera-off.entry.f1a4ad15.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.b93bb624.js → swirl-icon-video-camera.entry.70970911.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.17d55d9c.js → swirl-icon-video-library.entry.5d448d37.js} +1 -1
- package/dist/{swirl-icon-video-player.entry.22458a0e.js → swirl-icon-video-player.entry.9eb20ae3.js} +1 -1
- package/dist/{swirl-icon-voice.entry.9db013a6.js → swirl-icon-voice.entry.15d4aca2.js} +1 -1
- package/dist/{swirl-icon-web-asset-off.entry.6d0aa7de.js → swirl-icon-web-asset-off.entry.067bbfa3.js} +1 -1
- package/dist/{swirl-icon-web-asset.entry.2da6a5ee.js → swirl-icon-web-asset.entry.8abc1d23.js} +1 -1
- package/dist/{swirl-icon-work.entry.6cd667c3.js → swirl-icon-work.entry.830acd03.js} +1 -1
- package/dist/{swirl-icon.entry.04f2f3e6.js → swirl-icon.entry.69d35b07.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.3955266d.js → swirl-image-grid-item.entry.c87412f1.js} +1 -1
- package/dist/{swirl-image-grid.entry.ea67aebc.js → swirl-image-grid.entry.ddbc0304.js} +1 -1
- package/dist/{swirl-inline-notification.entry.5ce7b189.js → swirl-inline-notification.entry.06ee2e64.js} +1 -1
- package/dist/{swirl-inline-status.entry.26d8b5f7.js → swirl-inline-status.entry.34dd215b.js} +1 -1
- package/dist/{swirl-lightbox.entry.916be9c4.js → swirl-lightbox.entry.e835f215.js} +1 -1
- package/dist/{swirl-link.entry.ba862914.js → swirl-link.entry.7f8c0fba.js} +1 -1
- package/dist/{swirl-list.entry.067d9883.js → swirl-list.entry.06f39fd7.js} +1 -1
- package/dist/{swirl-menu-item.entry.9a9ebcbf.js → swirl-menu-item.entry.53f732f7.js} +1 -1
- package/dist/{swirl-menu.entry.6e75f849.js → swirl-menu.entry.fe700f2a.js} +1 -1
- package/dist/{swirl-modal.entry.592872a3.js → swirl-modal.entry.ec0d7fea.js} +1 -1
- package/dist/{swirl-option-list-section.entry.b81ffd91.js → swirl-option-list-section.entry.174c3f21.js} +1 -1
- package/dist/{swirl-option-list_2.entry.ec64d485.js → swirl-option-list_2.entry.b42a67c5.js} +1 -1
- package/dist/{swirl-pagination.entry.0ae161dc.js → swirl-pagination.entry.49f3a64b.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.c03a250b.js → swirl-pdf-reader.entry.91bc7ba0.js} +1 -1
- package/dist/{swirl-popover_2.entry.4b99e67d.js → swirl-popover_2.entry.e3992f01.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.1b28ff97.js → swirl-progress-indicator.entry.4b5909d8.js} +1 -1
- package/dist/{swirl-radio-group.entry.0126b011.js → swirl-radio-group.entry.6814c000.js} +1 -1
- package/dist/{swirl-radio.entry.6af49515.js → swirl-radio.entry.010f49ba.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.23f21404.js → swirl-resource-list-file-item.entry.bce4b6ac.js} +1 -1
- package/dist/{swirl-resource-list-section.entry.563696d2.js → swirl-resource-list-section.entry.03624cca.js} +1 -1
- package/dist/{swirl-search.entry.84d8851d.js → swirl-search.entry.a7e8db28.js} +1 -1
- package/dist/{swirl-select.entry.e00d21fa.js → swirl-select.entry.0245bb03.js} +1 -1
- package/dist/{swirl-separator.entry.135c8687.js → swirl-separator.entry.5cf1fd37.js} +1 -1
- package/dist/{swirl-shell-layout.entry.77515a4c.js → swirl-shell-layout.entry.1bd09b0b.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.e572ee9c.js → swirl-shell-navigation-item.entry.c8235398.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.b9d7eba4.js → swirl-skeleton-box.entry.cfc4a7cb.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.9ba8b7fb.js → swirl-skeleton-text.entry.50d4828f.js} +1 -1
- package/dist/{swirl-stack.entry.9e1e12c3.js → swirl-stack.entry.4e6b1a39.js} +1 -1
- package/dist/{swirl-status-indicator.entry.e150423a.js → swirl-status-indicator.entry.f0056b36.js} +1 -1
- package/dist/{swirl-switch.entry.58a07ed3.js → swirl-switch.entry.0cf17657.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.3f61a4bf.js → swirl-symbol-account-circle.entry.c6533b63.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.ffbd474f.js → swirl-symbol-alternate-email.entry.ecc6719c.js} +1 -1
- package/dist/{swirl-symbol-android.entry.f659c475.js → swirl-symbol-android.entry.e225bf95.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.6f46380f.js → swirl-symbol-announcement.entry.39d16b4c.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.b0ca95b5.js → swirl-symbol-backup.entry.b98e3450.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.41820c2b.js → swirl-symbol-beach-access.entry.4478f616.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.e652203d.js → swirl-symbol-bookmark.entry.bcfb31f3.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.944ae5f7.js → swirl-symbol-cloud.entry.05b248e1.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.c67c1611.js → swirl-symbol-coronavirus.entry.51d043ee.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.5cc801ee.js → swirl-symbol-desktop-windows.entry.cf555053.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.d4af0c55.js → swirl-symbol-directions-car-filled.entry.2e1acc13.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.1666d98a.js → swirl-symbol-edit-calendar.entry.076c5190.js} +1 -1
- package/dist/{swirl-symbol-email.entry.fc7c4cb6.js → swirl-symbol-email.entry.1b650828.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.f9176f83.js → swirl-symbol-emoji-food-beverage.entry.fe6132cd.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.a4172913.js → swirl-symbol-event-menu.entry.44a9b2fc.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.4be36d05.js → swirl-symbol-facebook.entry.e8c48e92.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.57c0dfe5.js → swirl-symbol-favorite.entry.9ddc0cf2.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.55176676.js → swirl-symbol-fitness-center.entry.2a2cb0d9.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.21e7b029.js → swirl-symbol-flag.entry.1e928776.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.a1b4d499.js → swirl-symbol-folder.entry.8c9df075.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.fb54d674.js → swirl-symbol-globe.entry.ac9e38ba.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.83c23598.js → swirl-symbol-groups.entry.279c8669.js} +1 -1
- package/dist/{swirl-symbol-help.entry.21307913.js → swirl-symbol-help.entry.4ff20a5c.js} +1 -1
- package/dist/{swirl-symbol-image.entry.548e7315.js → swirl-symbol-image.entry.8cf1226a.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.70f83acf.js → swirl-symbol-info-menu.entry.b0087b76.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.7faaeaa8.js → swirl-symbol-instagram.entry.322d845f.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.2b6f0858.js → swirl-symbol-ios.entry.d29e18b7.js} +1 -1
- package/dist/{swirl-symbol-language.entry.5f76cee4.js → swirl-symbol-language.entry.e338ffa1.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.d1af35cf.js → swirl-symbol-leaderboard.entry.cc4a8cae.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.20519aa6.js → swirl-symbol-lightbulb.entry.248a5d25.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.8eb937b9.js → swirl-symbol-linkedin.entry.774aaab1.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.58da43fa.js → swirl-symbol-location-on.entry.c9914890.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.cdb6660e.js → swirl-symbol-loyalty.entry.5c60a550.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.c3498be0.js → swirl-symbol-maps-home-work.entry.e0fd795e.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.609df9a9.js → swirl-symbol-notifications.entry.e4a3cc3a.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.815159ef.js → swirl-symbol-open-in-new.entry.640f2a0b.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.84aa4998.js → swirl-symbol-pedal-bike.entry.9b86ec85.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.6145c979.js → swirl-symbol-pinterest.entry.795a2b83.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.211386af.js → swirl-symbol-policy.entry.da1eaf40.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.4bb5de57.js → swirl-symbol-push-pin.entry.37f20b49.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.0755a2ca.js → swirl-symbol-redeem.entry.a719cf6a.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.1570a7fc.js → swirl-symbol-report-problem.entry.bc60465f.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.a7e13cab.js → swirl-symbol-restaurant.entry.3067edd6.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.7d19f2b8.js → swirl-symbol-roadmap.entry.42dbd319.js} +1 -1
- package/dist/{swirl-symbol-room.entry.d92c959f.js → swirl-symbol-room.entry.97a4cbb6.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.2a22b03c.js → swirl-symbol-savings.entry.fd7668de.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.377c1afa.js → swirl-symbol-settings-voice.entry.16f145d8.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.ee9c2421.js → swirl-symbol-shopping-cart.entry.bc23de6c.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.cbf5881e.js → swirl-symbol-smartphone.entry.2ba781ab.js} +1 -1
- package/dist/{swirl-symbol-star.entry.a4d3fa1c.js → swirl-symbol-star.entry.de8d036d.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.eaab62ce.js → swirl-symbol-supervisor-account.entry.f52bc9ea.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.68600a4a.js → swirl-symbol-thumbs-up-down.entry.f0973639.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.836f563b.js → swirl-symbol-twitter.entry.e51119f3.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.85ce5431.js → swirl-symbol-wb-sunny.entry.6b4045d6.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.9a0a9500.js → swirl-symbol-wechat.entry.a449375f.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.5a01032c.js → swirl-symbol-weibo.entry.6777f304.js} +1 -1
- package/dist/{swirl-symbol-work.entry.ebab5f89.js → swirl-symbol-work.entry.f465c3c0.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.20618435.js → swirl-symbol-xing.entry.9da0c24a.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.74f9b446.js → swirl-symbol-youtube.entry.a9f0ad4b.js} +1 -1
- package/dist/{swirl-symbol.entry.e7234475.js → swirl-symbol.entry.a70e30f1.js} +1 -1
- package/dist/{swirl-tab-bar.entry.ac494adf.js → swirl-tab-bar.entry.57a224c5.js} +1 -1
- package/dist/{swirl-tab.entry.fac5e36a.js → swirl-tab.entry.29c91c44.js} +1 -1
- package/dist/{swirl-table-cell.entry.dd672cb1.js → swirl-table-cell.entry.d25f19cc.js} +1 -1
- package/dist/{swirl-table-column.entry.830f8142.js → swirl-table-column.entry.55221d07.js} +1 -1
- package/dist/{swirl-table-row-group.entry.51790d52.js → swirl-table-row-group.entry.7d3aa9ff.js} +1 -1
- package/dist/{swirl-table-row.entry.445fe191.js → swirl-table-row.entry.e7d980fd.js} +1 -1
- package/dist/{swirl-table.entry.0dbfce59.js → swirl-table.entry.ec960bca.js} +1 -1
- package/dist/{swirl-tabs.entry.3a3a6c5b.js → swirl-tabs.entry.c73e7ff6.js} +1 -1
- package/dist/{swirl-text-input.entry.34b5df20.js → swirl-text-input.entry.6d2fe38d.js} +1 -1
- package/dist/{swirl-text.entry.e0549688.js → swirl-text.entry.2b9b426d.js} +1 -1
- package/dist/{swirl-theme-provider.entry.63b1378b.js → swirl-theme-provider.entry.e3e650f6.js} +1 -1
- package/dist/{swirl-time-input.entry.4c885c2b.js → swirl-time-input.entry.d52b0c23.js} +1 -1
- package/dist/{swirl-toast-provider.entry.b4a3bc61.js → swirl-toast-provider.entry.c830f29e.js} +1 -1
- package/dist/{swirl-toast.entry.5fabebe0.js → swirl-toast.entry.39174c2d.js} +1 -1
- package/dist/{swirl-toggle-button.entry.4eca1c12.js → swirl-toggle-button.entry.c6323b5d.js} +1 -1
- package/dist/{swirl-toggle-group.entry.3943ef35.js → swirl-toggle-group.entry.f5ee367a.js} +1 -1
- package/dist/{swirl-toolbar.entry.095c4bf2.js → swirl-toolbar.entry.9949bf0d.js} +1 -1
- package/dist/{swirl-tooltip.entry.cee32bd8.js → swirl-tooltip.entry.f4011127.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.3ab8f5c4.js → swirl-tree-navigation-item.entry.aca5763a.js} +1 -1
- package/dist/{swirl-tree-navigation.entry.d52d39c1.js → swirl-tree-navigation.entry.a91f21a0.js} +1 -1
- package/dist/{swirl-tree-view-item.entry.58f94c76.js → swirl-tree-view-item.entry.fdd9f0e2.js} +1 -1
- package/dist/{swirl-tree-view.entry.ff9b7344.js → swirl-tree-view.entry.71fbd2ca.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.891d6f17.js → swirl-video-thumbnail.entry.8fc47169.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.b5d5d105.js → swirl-visually-hidden.entry.9427183b.js} +1 -1
- package/dist/{wc-datepicker.entry.09c9a016.js → wc-datepicker.entry.aad1fe97.js} +1 -1
- package/package.json +2 -2
|
@@ -498,7 +498,7 @@ License: MIT
|
|
|
498
498
|
`)}return Y.join("")}}d.StatTimer=M;function C(ue,Y){try{const{protocol:Q}=Y?new URL(ue,Y):new URL(ue);return Q==="http:"||Q==="https:"}catch{return!1}}function b(ue){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise((Q,J)=>{const W=document.createElement("script");W.src=ue,W.onload=function(Ce){Y&&W.remove(),Q(Ce)},W.onerror=function(){J(new Error(`Cannot load script at: ${W.src}`))},(document.head||document.documentElement).append(W)})}function w(ue){console.log("Deprecated API usage: "+ue)}let I;class L{static toDateObject(Y){if(!Y||typeof Y!="string")return null;I||(I=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const Q=I.exec(Y);if(!Q)return null;const J=parseInt(Q[1],10);let W=parseInt(Q[2],10);W=W>=1&&W<=12?W-1:0;let Ce=parseInt(Q[3],10);Ce=Ce>=1&&Ce<=31?Ce:1;let _e=parseInt(Q[4],10);_e=_e>=0&&_e<=23?_e:0;let Le=parseInt(Q[5],10);Le=Le>=0&&Le<=59?Le:0;let Ie=parseInt(Q[6],10);Ie=Ie>=0&&Ie<=59?Ie:0;const oe=Q[7]||"Z";let Z=parseInt(Q[8],10);Z=Z>=0&&Z<=23?Z:0;let B=parseInt(Q[9],10)||0;return B=B>=0&&B<=59?B:0,oe==="-"?(_e+=Z,Le+=B):oe==="+"&&(_e-=Z,Le-=B),new Date(Date.UTC(J,W,Ce,_e,Le,Ie))}}d.PDFDateString=L;function V(ue,Y){let{scale:Q=1,rotation:J=0}=Y;const{width:W,height:Ce}=ue.attributes.style,_e=[0,0,parseInt(W),parseInt(Ce)];return new O({viewBox:_e,scale:Q,rotation:J})}function H(ue){if(ue.startsWith("#")){const Y=parseInt(ue.slice(1),16);return[(Y&16711680)>>16,(Y&65280)>>8,Y&255]}return ue.startsWith("rgb(")?ue.slice(4,-1).split(",").map(Y=>parseInt(Y)):ue.startsWith("rgba(")?ue.slice(5,-1).split(",").map(Y=>parseInt(Y)).slice(0,3):((0,f.warn)(`Not a valid color format: "${ue}"`),[0,0,0])}function le(ue){const Y=document.createElement("span");Y.style.visibility="hidden",document.body.append(Y);for(const Q of ue.keys()){Y.style.color=Q;const J=window.getComputedStyle(Y).color;ue.set(Q,H(J))}Y.remove()}function re(ue){const{a:Y,b:Q,c:J,d:W,e:Ce,f:_e}=ue.getTransform();return[Y,Q,J,W,Ce,_e]}function de(ue){const{a:Y,b:Q,c:J,d:W,e:Ce,f:_e}=ue.getTransform().invertSelf();return[Y,Q,J,W,Ce,_e]}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.BaseStandardFontDataFactory=d.BaseSVGFactory=d.BaseCanvasFactory=d.BaseCMapReaderFactory=void 0;var h=a(1);class f{constructor(){this.constructor===f&&(0,h.unreachable)("Cannot initialize BaseCanvasFactory.")}create(g,x){if(g<=0||x<=0)throw new Error("Invalid canvas size");const R=this._createCanvas(g,x);return{canvas:R,context:R.getContext("2d")}}reset(g,x,R){if(!g.canvas)throw new Error("Canvas is not specified");if(x<=0||R<=0)throw new Error("Invalid canvas size");g.canvas.width=x,g.canvas.height=R}destroy(g){if(!g.canvas)throw new Error("Canvas is not specified");g.canvas.width=0,g.canvas.height=0,g.canvas=null,g.context=null}_createCanvas(g,x){(0,h.unreachable)("Abstract method `_createCanvas` called.")}}d.BaseCanvasFactory=f;class p{constructor(g){let{baseUrl:x=null,isCompressed:R=!1}=g;this.constructor===p&&(0,h.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=x,this.isCompressed=R}async fetch(g){let{name:x}=g;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!x)throw new Error("CMap name must be specified.");const R=this.baseUrl+x+(this.isCompressed?".bcmap":""),u=this.isCompressed?h.CMapCompressionType.BINARY:h.CMapCompressionType.NONE;return this._fetchData(R,u).catch(v=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${R}`)})}_fetchData(g,x){(0,h.unreachable)("Abstract method `_fetchData` called.")}}d.BaseCMapReaderFactory=p;class z{constructor(g){let{baseUrl:x=null}=g;this.constructor===z&&(0,h.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=x}async fetch(g){let{filename:x}=g;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!x)throw new Error("Font filename must be specified.");const R=`${this.baseUrl}${x}`;return this._fetchData(R).catch(u=>{throw new Error(`Unable to load font data at: ${R}`)})}_fetchData(g){(0,h.unreachable)("Abstract method `_fetchData` called.")}}d.BaseStandardFontDataFactory=z;class P{constructor(){this.constructor===P&&(0,h.unreachable)("Cannot initialize BaseSVGFactory.")}create(g,x){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(g<=0||x<=0)throw new Error("Invalid SVG dimensions");const u=this._createSVG("svg:svg");return u.setAttribute("version","1.1"),R||(u.setAttribute("width",`${g}px`),u.setAttribute("height",`${x}px`)),u.setAttribute("preserveAspectRatio","none"),u.setAttribute("viewBox",`0 0 ${g} ${x}`),u}createElement(g){if(typeof g!="string")throw new Error("Invalid SVG element type");return this._createSVG(g)}_createSVG(g){(0,h.unreachable)("Abstract method `_createSVG` called.")}}d.BaseSVGFactory=P},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.MurmurHash3_64=void 0;var h=a(1);const f=3285377520,p=4294901760,z=65535;class P{constructor(g){this.h1=g?g&4294967295:f,this.h2=g?g&4294967295:f}update(g){let x,R;if(typeof g=="string"){x=new Uint8Array(g.length*2),R=0;for(let w=0,I=g.length;w<I;w++){const L=g.charCodeAt(w);L<=255?x[R++]=L:(x[R++]=L>>>8,x[R++]=L&255)}}else if((0,h.isArrayBuffer)(g))x=g.slice(),R=x.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const u=R>>2,v=R-u*4,O=new Uint32Array(x.buffer,0,u);let k=0,$=0,N=this.h1,T=this.h2;const E=3432918353,M=461845907,C=E&z,b=M&z;for(let w=0;w<u;w++)w&1?(k=O[w],k=k*E&p|k*C&z,k=k<<15|k>>>17,k=k*M&p|k*b&z,N^=k,N=N<<13|N>>>19,N=N*5+3864292196):($=O[w],$=$*E&p|$*C&z,$=$<<15|$>>>17,$=$*M&p|$*b&z,T^=$,T=T<<13|T>>>19,T=T*5+3864292196);switch(k=0,v){case 3:k^=x[u*4+2]<<16;case 2:k^=x[u*4+1]<<8;case 1:k^=x[u*4],k=k*E&p|k*C&z,k=k<<15|k>>>17,k=k*M&p|k*b&z,u&1?N^=k:T^=k}this.h1=N,this.h2=T}hexdigest(){let g=this.h1,x=this.h2;g^=x>>>1,g=g*3981806797&p|g*36045&z,x=x*4283543511&p|((x<<16|g>>>16)*2950163797&p)>>>16,g^=x>>>1,g=g*444984403&p|g*60499&z,x=x*3301882366&p|((x<<16|g>>>16)*3120437893&p)>>>16,g^=x>>>1;const R=(g>>>0).toString(16),u=(x>>>0).toString(16);return R.padStart(8,"0")+u.padStart(8,"0")}}d.MurmurHash3_64=P},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.FontLoader=d.FontFaceObject=void 0;var h=a(1);class f{constructor(y){let{docId:g,onUnsupportedFeature:x,ownerDocument:R=globalThis.document,styleElement:u=null}=y;this.constructor===f&&(0,h.unreachable)("Cannot initialize BaseFontLoader."),this.docId=g,this._onUnsupportedFeature=x,this._document=R,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(y){this.nativeFontFaces.push(y),this._document.fonts.add(y)}insertRule(y){let g=this.styleElement;g||(g=this.styleElement=this._document.createElement("style"),g.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].append(g));const x=g.sheet;x.insertRule(y,x.cssRules.length)}clear(){for(const y of this.nativeFontFaces)this._document.fonts.delete(y);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(y){if(y.attached||y.missingFile)return;if(y.attached=!0,this.isFontLoadingAPISupported){const x=y.createNativeFontFace();if(x){this.addNativeFontFace(x);try{await x.loaded}catch(R){throw this._onUnsupportedFeature({featureId:h.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,h.warn)(`Failed to load font '${x.family}': '${R}'.`),y.disableFontFace=!0,R}}return}const g=y.createFontFaceRule();if(g){if(this.insertRule(g),this.isSyncFontLoadingSupported)return;await new Promise(x=>{const R=this._queueLoadingCallback(x);this._prepareFontLoadEvent([g],[y],R)})}}_queueLoadingCallback(y){(0,h.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var y;const g=!!((y=this._document)!==null&&y!==void 0&&y.fonts);return(0,h.shadow)(this,"isFontLoadingAPISupported",g)}get isSyncFontLoadingSupported(){(0,h.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,h.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(y,g,x){(0,h.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let p;d.FontLoader=p,d.FontLoader=p=class extends f{constructor(y){super(y),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let y=!1;if(typeof navigator>"u")y=!0;else{const g=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(g==null?void 0:g[1])>=14&&(y=!0)}return(0,h.shadow)(this,"isSyncFontLoadingSupported",y)}_queueLoadingCallback(y){function g(){for((0,h.assert)(!R.done,"completeRequest() cannot be called twice."),R.done=!0;x.requests.length>0&&x.requests[0].done;){const u=x.requests.shift();setTimeout(u.callback,0)}}const x=this.loadingContext,R={id:`pdfjs-font-loading-${x.nextRequestId++}`,done:!1,complete:g,callback:y};return x.requests.push(R),R}get _loadTestFont(){const y=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,h.shadow)(this,"_loadTestFont",y())}_prepareFontLoadEvent(y,g,x){function R(re,de){return re.charCodeAt(de)<<24|re.charCodeAt(de+1)<<16|re.charCodeAt(de+2)<<8|re.charCodeAt(de+3)&255}function u(re,de,ue,Y){const Q=re.substring(0,de),J=re.substring(de+ue);return Q+Y+J}let v,O;const k=this._document.createElement("canvas");k.width=1,k.height=1;const $=k.getContext("2d");let N=0;function T(re,de){if(N++,N>30){(0,h.warn)("Load test font never loaded."),de();return}if($.font="30px "+re,$.fillText(".",0,20),$.getImageData(0,0,1,1).data[3]>0){de();return}setTimeout(T.bind(null,re,de))}const E=`lt${Date.now()}${this.loadTestFontId++}`;let M=this._loadTestFont;M=u(M,976,E.length,E);const b=16,w=1482184792;let I=R(M,b);for(v=0,O=E.length-3;v<O;v+=4)I=I-w+R(E,v)|0;v<E.length&&(I=I-w+R(E+"XXX",v)|0),M=u(M,b,4,(0,h.string32)(I));const L=`url(data:font/opentype;base64,${btoa(M)});`,V=`@font-face {font-family:"${E}";src:${L}}`;this.insertRule(V);const H=[];for(const re of g)H.push(re.loadedName);H.push(E);const le=this._document.createElement("div");le.style.visibility="hidden",le.style.width=le.style.height="10px",le.style.position="absolute",le.style.top=le.style.left="0px";for(const re of H){const de=this._document.createElement("span");de.textContent="Hi",de.style.fontFamily=re,le.append(de)}this._document.body.append(le),T(E,()=>{le.remove(),x.complete()})}};class z{constructor(y,g){let{isEvalSupported:x=!0,disableFontFace:R=!1,ignoreErrors:u=!1,onUnsupportedFeature:v,fontRegistry:O=null}=g;this.compiledGlyphs=Object.create(null);for(const k in y)this[k]=y[k];this.isEvalSupported=x!==!1,this.disableFontFace=R===!0,this.ignoreErrors=u===!0,this._onUnsupportedFeature=v,this.fontRegistry=O}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let y;if(!this.cssFontInfo)y=new FontFace(this.loadedName,this.data,{});else{const g={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(g.style=`oblique ${this.cssFontInfo.italicAngle}deg`),y=new FontFace(this.cssFontInfo.fontFamily,this.data,g)}return this.fontRegistry&&this.fontRegistry.registerFont(this),y}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const y=(0,h.bytesToString)(this.data),g=`url(data:${this.mimetype};base64,${btoa(y)});`;let x;if(!this.cssFontInfo)x=`@font-face {font-family:"${this.loadedName}";src:${g}}`;else{let R=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(R+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),x=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${R}src:${g}}`}return this.fontRegistry&&this.fontRegistry.registerFont(this,g),x}getPathGenerator(y,g){if(this.compiledGlyphs[g]!==void 0)return this.compiledGlyphs[g];let x;try{x=y.get(this.loadedName+"_path_"+g)}catch(R){if(!this.ignoreErrors)throw R;return this._onUnsupportedFeature({featureId:h.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,h.warn)(`getPathGenerator - ignoring character: "${R}".`),this.compiledGlyphs[g]=function(u,v){}}return this.compiledGlyphs[g]=function(R,u){for(const v of x)v.cmd==="scale"&&(v.args=[u,-u]),R[v.cmd].apply(R,v.args)}}}d.FontFaceObject=z},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.CanvasGraphics=void 0;var h=a(133),f=a(1),p=a(138),z=a(139),P=a(3);function y(oe,Z){g(oe,Z),Z.add(oe)}function g(oe,Z){if(Z.has(oe))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x(oe,Z,B){if(!Z.has(oe))throw new TypeError("attempted to get private field on non-instance");return B}const R=16,u=100,v=4096,O=15,k=10,$=P.isNodeJS&&typeof Path2D>"u"?-1:1e3,N=16;function T(oe,Z){if(oe._removeMirroring)throw new Error("Context is already forwarding operations.");oe.__originalSave=oe.save,oe.__originalRestore=oe.restore,oe.__originalRotate=oe.rotate,oe.__originalScale=oe.scale,oe.__originalTranslate=oe.translate,oe.__originalTransform=oe.transform,oe.__originalSetTransform=oe.setTransform,oe.__originalResetTransform=oe.resetTransform,oe.__originalClip=oe.clip,oe.__originalMoveTo=oe.moveTo,oe.__originalLineTo=oe.lineTo,oe.__originalBezierCurveTo=oe.bezierCurveTo,oe.__originalRect=oe.rect,oe.__originalClosePath=oe.closePath,oe.__originalBeginPath=oe.beginPath,oe._removeMirroring=()=>{oe.save=oe.__originalSave,oe.restore=oe.__originalRestore,oe.rotate=oe.__originalRotate,oe.scale=oe.__originalScale,oe.translate=oe.__originalTranslate,oe.transform=oe.__originalTransform,oe.setTransform=oe.__originalSetTransform,oe.resetTransform=oe.__originalResetTransform,oe.clip=oe.__originalClip,oe.moveTo=oe.__originalMoveTo,oe.lineTo=oe.__originalLineTo,oe.bezierCurveTo=oe.__originalBezierCurveTo,oe.rect=oe.__originalRect,oe.closePath=oe.__originalClosePath,oe.beginPath=oe.__originalBeginPath,delete oe._removeMirroring},oe.save=function(){Z.save(),this.__originalSave()},oe.restore=function(){Z.restore(),this.__originalRestore()},oe.translate=function(X,ee){Z.translate(X,ee),this.__originalTranslate(X,ee)},oe.scale=function(X,ee){Z.scale(X,ee),this.__originalScale(X,ee)},oe.transform=function(X,ee,_,A,D,F){Z.transform(X,ee,_,A,D,F),this.__originalTransform(X,ee,_,A,D,F)},oe.setTransform=function(X,ee,_,A,D,F){Z.setTransform(X,ee,_,A,D,F),this.__originalSetTransform(X,ee,_,A,D,F)},oe.resetTransform=function(){Z.resetTransform(),this.__originalResetTransform()},oe.rotate=function(X){Z.rotate(X),this.__originalRotate(X)},oe.clip=function(X){Z.clip(X),this.__originalClip(X)},oe.moveTo=function(B,X){Z.moveTo(B,X),this.__originalMoveTo(B,X)},oe.lineTo=function(B,X){Z.lineTo(B,X),this.__originalLineTo(B,X)},oe.bezierCurveTo=function(B,X,ee,_,A,D){Z.bezierCurveTo(B,X,ee,_,A,D),this.__originalBezierCurveTo(B,X,ee,_,A,D)},oe.rect=function(B,X,ee,_){Z.rect(B,X,ee,_),this.__originalRect(B,X,ee,_)},oe.closePath=function(){Z.closePath(),this.__originalClosePath()},oe.beginPath=function(){Z.beginPath(),this.__originalBeginPath()}}class E{constructor(Z){this.canvasFactory=Z,this.cache=Object.create(null)}getCanvas(Z,B,X){let ee;return this.cache[Z]!==void 0?(ee=this.cache[Z],this.canvasFactory.reset(ee,B,X)):(ee=this.canvasFactory.create(B,X),this.cache[Z]=ee),ee}delete(Z){delete this.cache[Z]}clear(){for(const Z in this.cache){const B=this.cache[Z];this.canvasFactory.destroy(B),delete this.cache[Z]}}}function M(oe,Z,B,X,ee,_,A,D,F,G){const[ce,pe,ge,ye,ze,Se]=(0,h.getCurrentTransform)(oe);if(pe===0&&ge===0){const Re=A*ce+ze,Be=Math.round(Re),Ge=D*ye+Se,Je=Math.round(Ge),Ye=(A+F)*ce+ze,We=Math.abs(Math.round(Ye)-Be)||1,ae=(D+G)*ye+Se,fe=Math.abs(Math.round(ae)-Je)||1;return oe.setTransform(Math.sign(ce),0,0,Math.sign(ye),Be,Je),oe.drawImage(Z,B,X,ee,_,0,0,We,fe),oe.setTransform(ce,pe,ge,ye,ze,Se),[We,fe]}if(ce===0&&ye===0){const Re=D*ge+ze,Be=Math.round(Re),Ge=A*pe+Se,Je=Math.round(Ge),Ye=(D+G)*ge+ze,We=Math.abs(Math.round(Ye)-Be)||1,ae=(A+F)*pe+Se,fe=Math.abs(Math.round(ae)-Je)||1;return oe.setTransform(0,Math.sign(pe),Math.sign(ge),0,Be,Je),oe.drawImage(Z,B,X,ee,_,0,0,fe,We),oe.setTransform(ce,pe,ge,ye,ze,Se),[fe,We]}oe.drawImage(Z,B,X,ee,_,A,D,F,G);const Me=Math.hypot(ce,pe),Ae=Math.hypot(ge,ye);return[Me*F,Ae*G]}function C(oe){const{width:Z,height:B}=oe;if(Z>$||B>$)return null;const X=1e3,ee=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),_=Z+1;let A=new Uint8Array(_*(B+1)),D,F,G;const ce=Z+7&-8;let pe=new Uint8Array(ce*B),ge=0;for(const Ae of oe.data){let Re=128;for(;Re>0;)pe[ge++]=Ae&Re?0:255,Re>>=1}let ye=0;for(ge=0,pe[ge]!==0&&(A[0]=1,++ye),F=1;F<Z;F++)pe[ge]!==pe[ge+1]&&(A[F]=pe[ge]?2:1,++ye),ge++;for(pe[ge]!==0&&(A[F]=2,++ye),D=1;D<B;D++){ge=D*ce,G=D*_,pe[ge-ce]!==pe[ge]&&(A[G]=pe[ge]?1:8,++ye);let Ae=(pe[ge]?4:0)+(pe[ge-ce]?8:0);for(F=1;F<Z;F++)Ae=(Ae>>2)+(pe[ge+1]?4:0)+(pe[ge-ce+1]?8:0),ee[Ae]&&(A[G+F]=ee[Ae],++ye),ge++;if(pe[ge-ce]!==pe[ge]&&(A[G+F]=pe[ge]?2:4,++ye),ye>X)return null}for(ge=ce*(B-1),G=D*_,pe[ge]!==0&&(A[G]=8,++ye),F=1;F<Z;F++)pe[ge]!==pe[ge+1]&&(A[G+F]=pe[ge]?4:8,++ye),ge++;if(pe[ge]!==0&&(A[G+F]=4,++ye),ye>X)return null;const ze=new Int32Array([0,_,-1,0,-_,0,0,0,1]),Se=new Path2D;for(D=0;ye&&D<=B;D++){let Ae=D*_;const Re=Ae+Z;for(;Ae<Re&&!A[Ae];)Ae++;if(Ae===Re)continue;Se.moveTo(Ae%_,D);const Be=Ae;let Ge=A[Ae];do{const Je=ze[Ge];do Ae+=Je;while(!A[Ae]);const Ye=A[Ae];Ye!==5&&Ye!==10?(Ge=Ye,A[Ae]=0):(Ge=Ye&51*Ge>>4,A[Ae]&=Ge>>2|Ge<<2),Se.lineTo(Ae%_,Ae/_|0),A[Ae]||--ye}while(Be!==Ae);--D}return pe=null,A=null,function(Ae){Ae.save(),Ae.scale(1/Z,-1/B),Ae.translate(0,-B),Ae.fill(Se),Ae.beginPath(),Ae.restore()}}class b{constructor(Z,B){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=f.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=f.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,Z,B])}clone(){const Z=Object.create(this);return Z.clipBox=this.clipBox.slice(),Z}setCurrentPoint(Z,B){this.x=Z,this.y=B}updatePathMinMax(Z,B,X){[B,X]=f.Util.applyTransform([B,X],Z),this.minX=Math.min(this.minX,B),this.minY=Math.min(this.minY,X),this.maxX=Math.max(this.maxX,B),this.maxY=Math.max(this.maxY,X)}updateRectMinMax(Z,B){const X=f.Util.applyTransform(B,Z),ee=f.Util.applyTransform(B.slice(2),Z);this.minX=Math.min(this.minX,X[0],ee[0]),this.minY=Math.min(this.minY,X[1],ee[1]),this.maxX=Math.max(this.maxX,X[0],ee[0]),this.maxY=Math.max(this.maxY,X[1],ee[1])}updateScalingPathMinMax(Z,B){f.Util.scaleMinMax(Z,B),this.minX=Math.min(this.minX,B[0]),this.maxX=Math.max(this.maxX,B[1]),this.minY=Math.min(this.minY,B[2]),this.maxY=Math.max(this.maxY,B[3])}updateCurvePathMinMax(Z,B,X,ee,_,A,D,F,G,ce){const pe=f.Util.bezierBoundingBox(B,X,ee,_,A,D,F,G);if(ce){ce[0]=Math.min(ce[0],pe[0],pe[2]),ce[1]=Math.max(ce[1],pe[0],pe[2]),ce[2]=Math.min(ce[2],pe[1],pe[3]),ce[3]=Math.max(ce[3],pe[1],pe[3]);return}this.updateRectMinMax(Z,pe)}getPathBoundingBox(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.PathType.FILL,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const X=[this.minX,this.minY,this.maxX,this.maxY];if(Z===p.PathType.STROKE){B||(0,f.unreachable)("Stroke bounding box must include transform.");const ee=f.Util.singularValueDecompose2dScale(B),_=ee[0]*this.lineWidth/2,A=ee[1]*this.lineWidth/2;X[0]-=_,X[1]-=A,X[2]+=_,X[3]+=A}return X}updateClipFromPath(){const Z=f.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(Z||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(Z){this.clipBox=Z,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.PathType.FILL,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.Util.intersect(this.clipBox,this.getPathBoundingBox(Z,B))}}function w(oe,Z){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof ImageData<"u"&&Z instanceof ImageData){oe.putImageData(Z,0,0);return}const X=Z.height,ee=Z.width,_=X%N,A=(X-_)/N,D=_===0?A:A+1,F=oe.createImageData(ee,N);let G=0,ce;const pe=Z.data,ge=F.data;let ye,ze,Se,Me,Ae,Re,Be,Ge;if(B)switch(B.length){case 1:Ae=B[0],Re=B[0],Be=B[0],Ge=B[0];break;case 4:Ae=B[0],Re=B[1],Be=B[2],Ge=B[3];break}if(Z.kind===f.ImageKind.GRAYSCALE_1BPP){const Je=pe.byteLength,Ye=new Uint32Array(ge.buffer,0,ge.byteLength>>2),We=Ye.length,ae=ee+7>>3;let fe=4294967295,se=f.FeatureTest.isLittleEndian?4278190080:255;for(Ge&&Ge[0]===255&&Ge[255]===0&&([fe,se]=[se,fe]),ye=0;ye<D;ye++){for(Se=ye<A?N:_,ce=0,ze=0;ze<Se;ze++){const ne=Je-G;let ve=0;const Ve=ne>ae?ee:ne*8-7,Ue=Ve&-8;let ke=0,Fe=0;for(;ve<Ue;ve+=8)Fe=pe[G++],Ye[ce++]=Fe&128?fe:se,Ye[ce++]=Fe&64?fe:se,Ye[ce++]=Fe&32?fe:se,Ye[ce++]=Fe&16?fe:se,Ye[ce++]=Fe&8?fe:se,Ye[ce++]=Fe&4?fe:se,Ye[ce++]=Fe&2?fe:se,Ye[ce++]=Fe&1?fe:se;for(;ve<Ve;ve++)ke===0&&(Fe=pe[G++],ke=128),Ye[ce++]=Fe&ke?fe:se,ke>>=1}for(;ce<We;)Ye[ce++]=0;oe.putImageData(F,0,ye*N)}}else if(Z.kind===f.ImageKind.RGBA_32BPP){const Je=!!(Ae||Re||Be);for(ze=0,Me=ee*N*4,ye=0;ye<A;ye++){if(ge.set(pe.subarray(G,G+Me)),G+=Me,Je)for(let Ye=0;Ye<Me;Ye+=4)Ae&&(ge[Ye+0]=Ae[ge[Ye+0]]),Re&&(ge[Ye+1]=Re[ge[Ye+1]]),Be&&(ge[Ye+2]=Be[ge[Ye+2]]);oe.putImageData(F,0,ze),ze+=N}if(ye<D){if(Me=ee*_*4,ge.set(pe.subarray(G,G+Me)),Je)for(let Ye=0;Ye<Me;Ye+=4)Ae&&(ge[Ye+0]=Ae[ge[Ye+0]]),Re&&(ge[Ye+1]=Re[ge[Ye+1]]),Be&&(ge[Ye+2]=Be[ge[Ye+2]]);oe.putImageData(F,0,ze)}}else if(Z.kind===f.ImageKind.RGB_24BPP){const Je=!!(Ae||Re||Be);for(Se=N,Me=ee*Se,ye=0;ye<D;ye++){for(ye>=A&&(Se=_,Me=ee*Se),ce=0,ze=Me;ze--;)ge[ce++]=pe[G++],ge[ce++]=pe[G++],ge[ce++]=pe[G++],ge[ce++]=255;if(Je)for(let Ye=0;Ye<ce;Ye+=4)Ae&&(ge[Ye+0]=Ae[ge[Ye+0]]),Re&&(ge[Ye+1]=Re[ge[Ye+1]]),Be&&(ge[Ye+2]=Be[ge[Ye+2]]);oe.putImageData(F,0,ye*N)}}else throw new Error(`bad image kind: ${Z.kind}`)}function I(oe,Z){if(Z.bitmap){oe.drawImage(Z.bitmap,0,0);return}const B=Z.height,X=Z.width,ee=B%N,_=(B-ee)/N,A=ee===0?_:_+1,D=oe.createImageData(X,N);let F=0;const G=Z.data,ce=D.data;for(let pe=0;pe<A;pe++){const ge=pe<_?N:ee;({srcPos:F}=(0,z.applyMaskImageData)({src:G,srcPos:F,dest:ce,width:X,height:ge})),oe.putImageData(D,0,pe*N)}}function L(oe,Z){const B=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let X=0,ee=B.length;X<ee;X++){const _=B[X];oe[_]!==void 0&&(Z[_]=oe[_])}oe.setLineDash!==void 0&&(Z.setLineDash(oe.getLineDash()),Z.lineDashOffset=oe.lineDashOffset)}function V(oe,Z){oe.strokeStyle=oe.fillStyle=Z||"#000000",oe.fillRule="nonzero",oe.globalAlpha=1,oe.lineWidth=1,oe.lineCap="butt",oe.lineJoin="miter",oe.miterLimit=10,oe.globalCompositeOperation="source-over",oe.font="10px sans-serif",oe.setLineDash!==void 0&&(oe.setLineDash([]),oe.lineDashOffset=0)}function H(oe,Z,B,X){const ee=oe.length;for(let _=3;_<ee;_+=4){const A=oe[_];if(A===0)oe[_-3]=Z,oe[_-2]=B,oe[_-1]=X;else if(A<255){const D=255-A;oe[_-3]=oe[_-3]*A+Z*D>>8,oe[_-2]=oe[_-2]*A+B*D>>8,oe[_-1]=oe[_-1]*A+X*D>>8}}}function le(oe,Z,B){const X=oe.length,ee=1/255;for(let _=3;_<X;_+=4){const A=B?B[oe[_]]:oe[_];Z[_]=Z[_]*A*ee|0}}function re(oe,Z,B){const X=oe.length;for(let ee=3;ee<X;ee+=4){const _=oe[ee-3]*77+oe[ee-2]*152+oe[ee-1]*28;Z[ee]=B?Z[ee]*B[_>>8]>>8:Z[ee]*_>>16}}function de(oe,Z,B,X,ee,_,A,D,F,G,ce){const pe=!!_,ge=pe?_[0]:0,ye=pe?_[1]:0,ze=pe?_[2]:0;let Se;ee==="Luminosity"?Se=re:Se=le;const Ae=Math.min(X,Math.ceil(1048576/B));for(let Re=0;Re<X;Re+=Ae){const Be=Math.min(Ae,X-Re),Ge=oe.getImageData(D-G,Re+(F-ce),B,Be),Je=Z.getImageData(D,Re+F,B,Be);pe&&H(Ge.data,ge,ye,ze),Se(Ge.data,Je.data,A),Z.putImageData(Je,D,Re+F)}}function ue(oe,Z,B,X){const ee=X[0],_=X[1],A=X[2]-ee,D=X[3]-_;A===0||D===0||(de(Z.context,B,A,D,Z.subtype,Z.backdrop,Z.transferMap,ee,_,Z.offsetX,Z.offsetY),oe.save(),oe.globalAlpha=1,oe.globalCompositeOperation="source-over",oe.setTransform(1,0,0,1,0,0),oe.drawImage(B.canvas,0,0),oe.restore())}function Y(oe,Z){const B=f.Util.singularValueDecompose2dScale(oe);B[0]=Math.fround(B[0]),B[1]=Math.fround(B[1]);const X=Math.fround((globalThis.devicePixelRatio||1)*h.PixelsPerInch.PDF_TO_CSS_UNITS);return Z!==void 0?Z:B[0]<=X||B[1]<=X}const Q=["butt","round","square"],J=["miter","round","bevel"],W={},Ce={};var _e=new WeakSet;class Le{constructor(Z,B,X,ee,_,A,D,F){y(this,_e),this.ctx=Z,this.current=new b(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=B,this.objs=X,this.canvasFactory=ee,this.imageLayer=_,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=A,this.cachedCanvases=new E(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=D,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(F==null?void 0:F.background)||null,this.foregroundColor=(F==null?void 0:F.foreground)||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(Z){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return typeof Z=="string"?Z.startsWith("g_")?this.commonObjs.get(Z):this.objs.get(Z):B}beginDrawing(Z){let{transform:B,viewport:X,transparency:ee=!1,background:_=null}=Z;const A=this.ctx.canvas.width,D=this.ctx.canvas.height,F=_||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const G=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const ce=this.backgroundColor=this.ctx.fillStyle;let pe=!0,ge=F;if(this.ctx.fillStyle=F,ge=this.ctx.fillStyle,pe=typeof ge=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ge),G==="#000000"&&ce==="#ffffff"||G===ce||!pe)this.foregroundColor=this.backgroundColor=null;else{const[ye,ze,Se]=(0,h.getRGB)(ge),Me=Re=>(Re/=255,Re<=.03928?Re/12.92:((Re+.055)/1.055)**2.4),Ae=Math.round(.2126*Me(ye)+.7152*Me(ze)+.0722*Me(Se));this.selectColor=(Re,Be,Ge)=>{const Je=.2126*Me(Re)+.7152*Me(Be)+.0722*Me(Ge);return Math.round(Je)===Ae?ce:G}}}if(this.ctx.fillStyle=this.backgroundColor||F,this.ctx.fillRect(0,0,A,D),this.ctx.restore(),ee){const G=this.cachedCanvases.getCanvas("transparent",A,D);this.compositeCtx=this.ctx,this.transparentCanvas=G.canvas,this.ctx=G.context,this.ctx.save(),this.ctx.transform(...(0,h.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),V(this.ctx,this.foregroundColor),B&&(this.ctx.transform(...B),this.outputScaleX=B[0],this.outputScaleY=B[0]),this.ctx.transform(...X.transform),this.viewportScale=X.scale,this.baseTransform=(0,h.getCurrentTransform)(this.ctx),this.imageLayer&&((0,h.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}executeOperatorList(Z,B,X,ee){const _=Z.argsArray,A=Z.fnArray;let D=B||0;const F=_.length;if(F===D)return D;const G=F-D>k&&typeof X=="function",ce=G?Date.now()+O:0;let pe=0;const ge=this.commonObjs,ye=this.objs;let ze;for(;;){if(ee!==void 0&&D===ee.nextBreakPoint)return ee.breakIt(D,X),D;if(ze=A[D],ze!==f.OPS.dependency)this[ze].apply(this,_[D]);else for(const Se of _[D]){const Me=Se.startsWith("g_")?ge:ye;if(!Me.has(Se))return Me.get(Se,X),D}if(D++,D===F)return D;if(G&&++pe>k){if(Date.now()>ce)return X(),D;pe=0}}}endDrawing(){x(this,_e,Ie).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const Z of this._cachedBitmapsMap.values()){for(const B of Z.values())typeof HTMLCanvasElement<"u"&&B instanceof HTMLCanvasElement&&(B.width=B.height=0);Z.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(Z,B){const X=Z.width,ee=Z.height;let _=Math.max(Math.hypot(B[0],B[1]),1),A=Math.max(Math.hypot(B[2],B[3]),1),D=X,F=ee,G="prescale1",ce,pe;for(;_>2&&D>1||A>2&&F>1;){let ge=D,ye=F;_>2&&D>1&&(ge=Math.ceil(D/2),_/=D/ge),A>2&&F>1&&(ye=Math.ceil(F/2),A/=F/ye),ce=this.cachedCanvases.getCanvas(G,ge,ye),pe=ce.context,pe.clearRect(0,0,ge,ye),pe.drawImage(Z,0,0,D,F,0,0,ge,ye),Z=ce.canvas,D=ge,F=ye,G=G==="prescale1"?"prescale2":"prescale1"}return{img:Z,paintWidth:D,paintHeight:F}}_createMaskCanvas(Z){const B=this.ctx,{width:X,height:ee}=Z,_=this.current.fillColor,A=this.current.patternFill,D=(0,h.getCurrentTransform)(B);let F,G,ce,pe;if((Z.bitmap||Z.data)&&Z.count>1){const We=Z.bitmap||Z.data.buffer,ae=D.slice(0,4);G=JSON.stringify(A?ae:[ae,_]),F=this._cachedBitmapsMap.get(We),F||(F=new Map,this._cachedBitmapsMap.set(We,F));const fe=F.get(G);if(fe&&!A){const se=Math.round(Math.min(D[0],D[2])+D[4]),ne=Math.round(Math.min(D[1],D[3])+D[5]);return{canvas:fe,offsetX:se,offsetY:ne}}ce=fe}ce||(pe=this.cachedCanvases.getCanvas("maskCanvas",X,ee),I(pe.context,Z));let ge=f.Util.transform(D,[1/X,0,0,-1/ee,0,0]);ge=f.Util.transform(ge,[1,0,0,1,0,-ee]);const ye=f.Util.applyTransform([0,0],ge),ze=f.Util.applyTransform([X,ee],ge),Se=f.Util.normalizeRect([ye[0],ye[1],ze[0],ze[1]]),Me=Math.round(Se[2]-Se[0])||1,Ae=Math.round(Se[3]-Se[1])||1,Re=this.cachedCanvases.getCanvas("fillCanvas",Me,Ae),Be=Re.context,Ge=Math.min(ye[0],ze[0]),Je=Math.min(ye[1],ze[1]);Be.translate(-Ge,-Je),Be.transform(...ge),ce||(ce=this._scaleImage(pe.canvas,(0,h.getCurrentTransformInverse)(Be)),ce=ce.img,F&&A&&F.set(G,ce)),Be.imageSmoothingEnabled=Y((0,h.getCurrentTransform)(Be),Z.interpolate),M(Be,ce,0,0,ce.width,ce.height,0,0,X,ee),Be.globalCompositeOperation="source-in";const Ye=f.Util.transform((0,h.getCurrentTransformInverse)(Be),[1,0,0,1,-Ge,-Je]);return Be.fillStyle=A?_.getPattern(B,this,Ye,p.PathType.FILL):_,Be.fillRect(0,0,X,ee),F&&!A&&(this.cachedCanvases.delete("fillCanvas"),F.set(G,Re.canvas)),{canvas:Re.canvas,offsetX:Math.round(Ge),offsetY:Math.round(Je)}}setLineWidth(Z){Z!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=Z,this.ctx.lineWidth=Z}setLineCap(Z){this.ctx.lineCap=Q[Z]}setLineJoin(Z){this.ctx.lineJoin=J[Z]}setMiterLimit(Z){this.ctx.miterLimit=Z}setDash(Z,B){const X=this.ctx;X.setLineDash!==void 0&&(X.setLineDash(Z),X.lineDashOffset=B)}setRenderingIntent(Z){}setFlatness(Z){}setGState(Z){for(let B=0,X=Z.length;B<X;B++){const ee=Z[B],_=ee[0],A=ee[1];switch(_){case"LW":this.setLineWidth(A);break;case"LC":this.setLineCap(A);break;case"LJ":this.setLineJoin(A);break;case"ML":this.setMiterLimit(A);break;case"D":this.setDash(A[0],A[1]);break;case"RI":this.setRenderingIntent(A);break;case"FL":this.setFlatness(A);break;case"Font":this.setFont(A[0],A[1]);break;case"CA":this.current.strokeAlpha=ee[1];break;case"ca":this.current.fillAlpha=ee[1],this.ctx.globalAlpha=ee[1];break;case"BM":this.ctx.globalCompositeOperation=A;break;case"SMask":this.current.activeSMask=A?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=A}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const Z=this.inSMaskMode;this.current.activeSMask&&!Z?this.beginSMaskMode():!this.current.activeSMask&&Z&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const Z=this.ctx.canvas.width,B=this.ctx.canvas.height,X="smaskGroupAt"+this.groupLevel,ee=this.cachedCanvases.getCanvas(X,Z,B);this.suspendedCtx=this.ctx,this.ctx=ee.context;const _=this.ctx;_.setTransform(...(0,h.getCurrentTransform)(this.suspendedCtx)),L(this.suspendedCtx,_),T(_,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),L(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(Z){if(!this.current.activeSMask)return;Z?(Z[0]=Math.floor(Z[0]),Z[1]=Math.floor(Z[1]),Z[2]=Math.ceil(Z[2]),Z[3]=Math.ceil(Z[3])):Z=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const B=this.current.activeSMask,X=this.suspendedCtx;ue(X,B,this.ctx,Z),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(L(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const Z=this.current;this.stateStack.push(Z),this.current=Z.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),L(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(Z,B,X,ee,_,A){this.ctx.transform(Z,B,X,ee,_,A),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(Z,B,X){const ee=this.ctx,_=this.current;let A=_.x,D=_.y,F,G;const ce=(0,h.getCurrentTransform)(ee),pe=ce[0]===0&&ce[3]===0||ce[1]===0&&ce[2]===0,ge=pe?X.slice(0):null;for(let ye=0,ze=0,Se=Z.length;ye<Se;ye++)switch(Z[ye]|0){case f.OPS.rectangle:A=B[ze++],D=B[ze++];const Me=B[ze++],Ae=B[ze++],Re=A+Me,Be=D+Ae;ee.moveTo(A,D),Me===0||Ae===0?ee.lineTo(Re,Be):(ee.lineTo(Re,D),ee.lineTo(Re,Be),ee.lineTo(A,Be)),pe||_.updateRectMinMax(ce,[A,D,Re,Be]),ee.closePath();break;case f.OPS.moveTo:A=B[ze++],D=B[ze++],ee.moveTo(A,D),pe||_.updatePathMinMax(ce,A,D);break;case f.OPS.lineTo:A=B[ze++],D=B[ze++],ee.lineTo(A,D),pe||_.updatePathMinMax(ce,A,D);break;case f.OPS.curveTo:F=A,G=D,A=B[ze+4],D=B[ze+5],ee.bezierCurveTo(B[ze],B[ze+1],B[ze+2],B[ze+3],A,D),_.updateCurvePathMinMax(ce,F,G,B[ze],B[ze+1],B[ze+2],B[ze+3],A,D,ge),ze+=6;break;case f.OPS.curveTo2:F=A,G=D,ee.bezierCurveTo(A,D,B[ze],B[ze+1],B[ze+2],B[ze+3]),_.updateCurvePathMinMax(ce,F,G,A,D,B[ze],B[ze+1],B[ze+2],B[ze+3],ge),A=B[ze+2],D=B[ze+3],ze+=4;break;case f.OPS.curveTo3:F=A,G=D,A=B[ze+2],D=B[ze+3],ee.bezierCurveTo(B[ze],B[ze+1],A,D,A,D),_.updateCurvePathMinMax(ce,F,G,B[ze],B[ze+1],A,D,A,D,ge),ze+=4;break;case f.OPS.closePath:ee.closePath();break}pe&&_.updateScalingPathMinMax(ce,ge),_.setCurrentPoint(A,D)}closePath(){this.ctx.closePath()}stroke(Z){Z=typeof Z<"u"?Z:!0;const B=this.ctx,X=this.current.strokeColor;B.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof X=="object"&&X!==null&&X!==void 0&&X.getPattern?(B.save(),B.strokeStyle=X.getPattern(B,this,(0,h.getCurrentTransformInverse)(B),p.PathType.STROKE),this.rescaleAndStroke(!1),B.restore()):this.rescaleAndStroke(!0)),Z&&this.consumePath(this.current.getClippedPathBoundingBox()),B.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(Z){Z=typeof Z<"u"?Z:!0;const B=this.ctx,X=this.current.fillColor,ee=this.current.patternFill;let _=!1;ee&&(B.save(),B.fillStyle=X.getPattern(B,this,(0,h.getCurrentTransformInverse)(B),p.PathType.FILL),_=!0);const A=this.current.getClippedPathBoundingBox();this.contentVisible&&A!==null&&(this.pendingEOFill?(B.fill("evenodd"),this.pendingEOFill=!1):B.fill()),_&&B.restore(),Z&&this.consumePath(A)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=W}eoClip(){this.pendingClip=Ce}beginText(){this.current.textMatrix=f.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const Z=this.pendingTextPaths,B=this.ctx;if(Z===void 0){B.beginPath();return}B.save(),B.beginPath();for(const X of Z)B.setTransform(...X.transform),B.translate(X.x,X.y),X.addToPath(B,X.fontSize);B.restore(),B.clip(),B.beginPath(),delete this.pendingTextPaths}setCharSpacing(Z){this.current.charSpacing=Z}setWordSpacing(Z){this.current.wordSpacing=Z}setHScale(Z){this.current.textHScale=Z/100}setLeading(Z){this.current.leading=-Z}setFont(Z,B){const X=this.commonObjs.get(Z),ee=this.current;if(!X)throw new Error(`Can't find font for ${Z}`);if(ee.fontMatrix=X.fontMatrix||f.FONT_IDENTITY_MATRIX,(ee.fontMatrix[0]===0||ee.fontMatrix[3]===0)&&(0,f.warn)("Invalid font matrix for font "+Z),B<0?(B=-B,ee.fontDirection=-1):ee.fontDirection=1,this.current.font=X,this.current.fontSize=B,X.isType3Font)return;const _=X.loadedName||"sans-serif";let A="normal";X.black?A="900":X.bold&&(A="bold");const D=X.italic?"italic":"normal",F=`"${_}", ${X.fallbackName}`;let G=B;B<R?G=R:B>u&&(G=u),this.current.fontSizeScale=B/G,this.ctx.font=`${D} ${A} ${G}px ${F}`}setTextRenderingMode(Z){this.current.textRenderingMode=Z}setTextRise(Z){this.current.textRise=Z}moveText(Z,B){this.current.x=this.current.lineX+=Z,this.current.y=this.current.lineY+=B}setLeadingMoveText(Z,B){this.setLeading(-B),this.moveText(Z,B)}setTextMatrix(Z,B,X,ee,_,A){this.current.textMatrix=[Z,B,X,ee,_,A],this.current.textMatrixScale=Math.hypot(Z,B),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(Z,B,X,ee){const _=this.ctx,A=this.current,D=A.font,F=A.textRenderingMode,G=A.fontSize/A.fontSizeScale,ce=F&f.TextRenderingMode.FILL_STROKE_MASK,pe=!!(F&f.TextRenderingMode.ADD_TO_PATH_FLAG),ge=A.patternFill&&!D.missingFile;let ye;(D.disableFontFace||pe||ge)&&(ye=D.getPathGenerator(this.commonObjs,Z)),D.disableFontFace||ge?(_.save(),_.translate(B,X),_.beginPath(),ye(_,G),ee&&_.setTransform(...ee),(ce===f.TextRenderingMode.FILL||ce===f.TextRenderingMode.FILL_STROKE)&&_.fill(),(ce===f.TextRenderingMode.STROKE||ce===f.TextRenderingMode.FILL_STROKE)&&_.stroke(),_.restore()):((ce===f.TextRenderingMode.FILL||ce===f.TextRenderingMode.FILL_STROKE)&&_.fillText(Z,B,X),(ce===f.TextRenderingMode.STROKE||ce===f.TextRenderingMode.FILL_STROKE)&&_.strokeText(Z,B,X)),pe&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,h.getCurrentTransform)(_),x:B,y:X,fontSize:G,addToPath:ye})}get isFontSubpixelAAEnabled(){const{context:Z}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);Z.scale(1.5,1),Z.fillText("I",0,10);const B=Z.getImageData(0,0,10,10).data;let X=!1;for(let ee=3;ee<B.length;ee+=4)if(B[ee]>0&&B[ee]<255){X=!0;break}return(0,f.shadow)(this,"isFontSubpixelAAEnabled",X)}showText(Z){const B=this.current,X=B.font;if(X.isType3Font)return this.showType3Text(Z);const ee=B.fontSize;if(ee===0)return;const _=this.ctx,A=B.fontSizeScale,D=B.charSpacing,F=B.wordSpacing,G=B.fontDirection,ce=B.textHScale*G,pe=Z.length,ge=X.vertical,ye=ge?1:-1,ze=X.defaultVMetrics,Se=ee*B.fontMatrix[0],Me=B.textRenderingMode===f.TextRenderingMode.FILL&&!X.disableFontFace&&!B.patternFill;_.save(),_.transform(...B.textMatrix),_.translate(B.x,B.y+B.textRise),G>0?_.scale(ce,-1):_.scale(ce,1);let Ae;if(B.patternFill){_.save();const Ye=B.fillColor.getPattern(_,this,(0,h.getCurrentTransformInverse)(_),p.PathType.FILL);Ae=(0,h.getCurrentTransform)(_),_.restore(),_.fillStyle=Ye}let Re=B.lineWidth;const Be=B.textMatrixScale;if(Be===0||Re===0){const Ye=B.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;(Ye===f.TextRenderingMode.STROKE||Ye===f.TextRenderingMode.FILL_STROKE)&&(Re=this.getSinglePixelWidth())}else Re/=Be;A!==1&&(_.scale(A,A),Re/=A),_.lineWidth=Re;let Ge=0,Je;for(Je=0;Je<pe;++Je){const Ye=Z[Je];if(typeof Ye=="number"){Ge+=ye*Ye*ee/1e3;continue}let We=!1;const ae=(Ye.isSpace?F:0)+D,fe=Ye.fontChar,se=Ye.accent;let ne,ve,Ve=Ye.width;if(ge){const ke=Ye.vmetric||ze,Fe=-(Ye.vmetric?ke[1]:Ve*.5)*Se,Xe=ke[2]*Se;Ve=ke?-ke[0]:Ve,ne=Fe/A,ve=(Ge+Xe)/A}else ne=Ge/A,ve=0;if(X.remeasure&&Ve>0){const ke=_.measureText(fe).width*1e3/ee*A;if(Ve<ke&&this.isFontSubpixelAAEnabled){const Fe=Ve/ke;We=!0,_.save(),_.scale(Fe,1),ne/=Fe}else Ve!==ke&&(ne+=(Ve-ke)/2e3*ee/A)}if(this.contentVisible&&(Ye.isInFont||X.missingFile)){if(Me&&!se)_.fillText(fe,ne,ve);else if(this.paintChar(fe,ne,ve,Ae),se){const ke=ne+ee*se.offset.x/A,Fe=ve-ee*se.offset.y/A;this.paintChar(se.fontChar,ke,Fe,Ae)}}let Ue;ge?Ue=Ve*Se-ae*G:Ue=Ve*Se+ae*G,Ge+=Ue,We&&_.restore()}ge?B.y-=Ge:B.x+=Ge*ce,_.restore(),this.compose()}showType3Text(Z){const B=this.ctx,X=this.current,ee=X.font,_=X.fontSize,A=X.fontDirection,D=ee.vertical?1:-1,F=X.charSpacing,G=X.wordSpacing,ce=X.textHScale*A,pe=X.fontMatrix||f.FONT_IDENTITY_MATRIX,ge=Z.length,ye=X.textRenderingMode===f.TextRenderingMode.INVISIBLE;let ze,Se,Me,Ae;if(!(ye||_===0)){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,B.save(),B.transform(...X.textMatrix),B.translate(X.x,X.y),B.scale(ce,A),ze=0;ze<ge;++ze){if(Se=Z[ze],typeof Se=="number"){Ae=D*Se*_/1e3,this.ctx.translate(Ae,0),X.x+=Ae*ce;continue}const Re=(Se.isSpace?G:0)+F,Be=ee.charProcOperatorList[Se.operatorListId];if(!Be){(0,f.warn)(`Type3 character "${Se.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=Se,this.save(),B.scale(_,_),B.transform(...pe),this.executeOperatorList(Be),this.restore()),Me=f.Util.applyTransform([Se.width,0],pe)[0]*_+Re,B.translate(Me,0),X.x+=Me*ce}B.restore(),this.processingType3=null}}setCharWidth(Z,B){}setCharWidthAndBounds(Z,B,X,ee,_,A){this.ctx.rect(X,ee,_-X,A-ee),this.ctx.clip(),this.endPath()}getColorN_Pattern(Z){let B;if(Z[0]==="TilingPattern"){const X=Z[1],ee=this.baseTransform||(0,h.getCurrentTransform)(this.ctx),_={createCanvasGraphics:A=>new Le(A,this.commonObjs,this.objs,this.canvasFactory)};B=new p.TilingPattern(Z,X,this.ctx,_,ee)}else B=this._getPattern(Z[1],Z[2]);return B}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(Z,B,X){var ee;const _=((ee=this.selectColor)===null||ee===void 0?void 0:ee.call(this,Z,B,X))||f.Util.makeHexColor(Z,B,X);this.ctx.strokeStyle=_,this.current.strokeColor=_}setFillRGBColor(Z,B,X){var ee;const _=((ee=this.selectColor)===null||ee===void 0?void 0:ee.call(this,Z,B,X))||f.Util.makeHexColor(Z,B,X);this.ctx.fillStyle=_,this.current.fillColor=_,this.current.patternFill=!1}_getPattern(Z){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,X;return this.cachedPatterns.has(Z)?X=this.cachedPatterns.get(Z):(X=(0,p.getShadingPattern)(this.objs.get(Z)),this.cachedPatterns.set(Z,X)),B&&(X.matrix=B),X}shadingFill(Z){if(!this.contentVisible)return;const B=this.ctx;this.save();const X=this._getPattern(Z);B.fillStyle=X.getPattern(B,this,(0,h.getCurrentTransformInverse)(B),p.PathType.SHADING);const ee=(0,h.getCurrentTransformInverse)(B);if(ee){const _=B.canvas,A=_.width,D=_.height,F=f.Util.applyTransform([0,0],ee),G=f.Util.applyTransform([0,D],ee),ce=f.Util.applyTransform([A,0],ee),pe=f.Util.applyTransform([A,D],ee),ge=Math.min(F[0],G[0],ce[0],pe[0]),ye=Math.min(F[1],G[1],ce[1],pe[1]),ze=Math.max(F[0],G[0],ce[0],pe[0]),Se=Math.max(F[1],G[1],ce[1],pe[1]);this.ctx.fillRect(ge,ye,ze-ge,Se-ye)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,f.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,f.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(Z,B){if(!!this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(Z)&&Z.length===6&&this.transform(...Z),this.baseTransform=(0,h.getCurrentTransform)(this.ctx),B)){const X=B[2]-B[0],ee=B[3]-B[1];this.ctx.rect(B[0],B[1],X,ee),this.current.updateRectMinMax((0,h.getCurrentTransform)(this.ctx),B),this.clip(),this.endPath()}}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(Z){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const B=this.ctx;Z.isolated||(0,f.info)("TODO: Support non-isolated groups."),Z.knockout&&(0,f.warn)("Knockout groups not supported.");const X=(0,h.getCurrentTransform)(B);if(Z.matrix&&B.transform(...Z.matrix),!Z.bbox)throw new Error("Bounding box is required.");let ee=f.Util.getAxialAlignedBoundingBox(Z.bbox,(0,h.getCurrentTransform)(B));const _=[0,0,B.canvas.width,B.canvas.height];ee=f.Util.intersect(ee,_)||[0,0,0,0];const A=Math.floor(ee[0]),D=Math.floor(ee[1]);let F=Math.max(Math.ceil(ee[2])-A,1),G=Math.max(Math.ceil(ee[3])-D,1),ce=1,pe=1;F>v&&(ce=F/v,F=v),G>v&&(pe=G/v,G=v),this.current.startNewPathAndClipBox([0,0,F,G]);let ge="groupAt"+this.groupLevel;Z.smask&&(ge+="_smask_"+this.smaskCounter++%2);const ye=this.cachedCanvases.getCanvas(ge,F,G),ze=ye.context;ze.scale(1/ce,1/pe),ze.translate(-A,-D),ze.transform(...X),Z.smask?this.smaskStack.push({canvas:ye.canvas,context:ze,offsetX:A,offsetY:D,scaleX:ce,scaleY:pe,subtype:Z.smask.subtype,backdrop:Z.smask.backdrop,transferMap:Z.smask.transferMap||null,startTransformInverse:null}):(B.setTransform(1,0,0,1,0,0),B.translate(A,D),B.scale(ce,pe),B.save()),L(B,ze),this.ctx=ze,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(B),this.groupLevel++}endGroup(Z){if(!this.contentVisible)return;this.groupLevel--;const B=this.ctx,X=this.groupStack.pop();if(this.ctx=X,this.ctx.imageSmoothingEnabled=!1,Z.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const ee=(0,h.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...ee);const _=f.Util.getAxialAlignedBoundingBox([0,0,B.canvas.width,B.canvas.height],ee);this.ctx.drawImage(B.canvas,0,0),this.ctx.restore(),this.compose(_)}}beginAnnotation(Z,B,X,ee,_){if(x(this,_e,Ie).call(this),V(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(B)&&B.length===4){const A=B[2]-B[0],D=B[3]-B[1];if(_&&this.annotationCanvasMap){X=X.slice(),X[4]-=B[0],X[5]-=B[1],B=B.slice(),B[0]=B[1]=0,B[2]=A,B[3]=D;const[F,G]=f.Util.singularValueDecompose2dScale((0,h.getCurrentTransform)(this.ctx)),{viewportScale:ce}=this,pe=Math.ceil(A*this.outputScaleX*ce),ge=Math.ceil(D*this.outputScaleY*ce);this.annotationCanvas=this.canvasFactory.create(pe,ge);const{canvas:ye,context:ze}=this.annotationCanvas;this.annotationCanvasMap.set(Z,ye),this.annotationCanvas.savedCtx=this.ctx,this.ctx=ze,this.ctx.setTransform(F,0,0,-G,0,D*G),V(this.ctx,this.foregroundColor)}else V(this.ctx,this.foregroundColor),this.ctx.rect(B[0],B[1],A,D),this.ctx.clip(),this.endPath()}this.current=new b(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...X),this.transform(...ee)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(Z){if(!this.contentVisible)return;const B=Z.count;Z=this.getObject(Z.data,Z),Z.count=B;const X=this.ctx,ee=this.processingType3;if(ee&&(ee.compiled===void 0&&(ee.compiled=C(Z)),ee.compiled)){ee.compiled(X);return}const _=this._createMaskCanvas(Z),A=_.canvas;X.save(),X.setTransform(1,0,0,1,0,0),X.drawImage(A,_.offsetX,_.offsetY),X.restore(),this.compose()}paintImageMaskXObjectRepeat(Z,B){let X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4?arguments[4]:void 0,A=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;Z=this.getObject(Z.data,Z);const D=this.ctx;D.save();const F=(0,h.getCurrentTransform)(D);D.transform(B,X,ee,_,0,0);const G=this._createMaskCanvas(Z);D.setTransform(1,0,0,1,0,0);for(let ce=0,pe=A.length;ce<pe;ce+=2){const ge=f.Util.transform(F,[B,X,ee,_,A[ce],A[ce+1]]),[ye,ze]=f.Util.applyTransform([0,0],ge);D.drawImage(G.canvas,ye,ze)}D.restore(),this.compose()}paintImageMaskXObjectGroup(Z){if(!this.contentVisible)return;const B=this.ctx,X=this.current.fillColor,ee=this.current.patternFill;for(const _ of Z){const{data:A,width:D,height:F,transform:G}=_,ce=this.cachedCanvases.getCanvas("maskCanvas",D,F),pe=ce.context;pe.save();const ge=this.getObject(A,_);I(pe,ge),pe.globalCompositeOperation="source-in",pe.fillStyle=ee?X.getPattern(pe,this,(0,h.getCurrentTransformInverse)(B),p.PathType.FILL):X,pe.fillRect(0,0,D,F),pe.restore(),B.save(),B.transform(...G),B.scale(1,-1),M(B,ce.canvas,0,0,D,F,0,-1,1,1),B.restore()}this.compose()}paintImageXObject(Z){if(!this.contentVisible)return;const B=this.getObject(Z);if(!B){(0,f.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(B)}paintImageXObjectRepeat(Z,B,X,ee){if(!this.contentVisible)return;const _=this.getObject(Z);if(!_){(0,f.warn)("Dependent image isn't ready yet");return}const A=_.width,D=_.height,F=[];for(let G=0,ce=ee.length;G<ce;G+=2)F.push({transform:[B,0,0,X,ee[G],ee[G+1]],x:0,y:0,w:A,h:D});this.paintInlineImageXObjectGroup(_,F)}paintInlineImageXObject(Z){if(!this.contentVisible)return;const B=Z.width,X=Z.height,ee=this.ctx;this.save(),ee.scale(1/B,-1/X);let _;if(typeof HTMLElement=="function"&&Z instanceof HTMLElement||!Z.data)_=Z;else{const G=this.cachedCanvases.getCanvas("inlineImage",B,X),ce=G.context;w(ce,Z,this.current.transferMaps),_=G.canvas}const A=this._scaleImage(_,(0,h.getCurrentTransformInverse)(ee));ee.imageSmoothingEnabled=Y((0,h.getCurrentTransform)(ee),Z.interpolate);const[D,F]=M(ee,A.img,0,0,A.paintWidth,A.paintHeight,0,-X,B,X);if(this.imageLayer){const[G,ce]=f.Util.applyTransform([0,-X],(0,h.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:Z,left:G,top:ce,width:D,height:F})}this.compose(),this.restore()}paintInlineImageXObjectGroup(Z,B){if(!this.contentVisible)return;const X=this.ctx,ee=Z.width,_=Z.height,A=this.cachedCanvases.getCanvas("inlineImage",ee,_),D=A.context;w(D,Z,this.current.transferMaps);for(const F of B){if(X.save(),X.transform(...F.transform),X.scale(1,-1),M(X,A.canvas,F.x,F.y,F.w,F.h,0,-1,1,1),this.imageLayer){const[G,ce]=f.Util.applyTransform([F.x,F.y],(0,h.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:Z,left:G,top:ce,width:ee,height:_})}X.restore()}this.compose()}paintSolidColorImageMask(){!this.contentVisible||(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(Z){}markPointProps(Z,B){}beginMarkedContent(Z){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(Z,B){Z==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(B)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(Z){const B=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(Z);const X=this.ctx;this.pendingClip&&(B||(this.pendingClip===Ce?X.clip("evenodd"):X.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),X.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const Z=(0,h.getCurrentTransform)(this.ctx);if(Z[1]===0&&Z[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(Z[0]),Math.abs(Z[3]));else{const B=Math.abs(Z[0]*Z[3]-Z[2]*Z[1]),X=Math.hypot(Z[0],Z[2]),ee=Math.hypot(Z[1],Z[3]);this._cachedGetSinglePixelWidth=Math.max(X,ee)/B}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:Z}=this.current,B=(0,h.getCurrentTransform)(this.ctx);let X,ee;if(B[1]===0&&B[2]===0){const _=Math.abs(B[0]),A=Math.abs(B[3]);if(Z===0)X=1/_,ee=1/A;else{const D=_*Z,F=A*Z;X=D<1?1/D:1,ee=F<1?1/F:1}}else{const _=Math.abs(B[0]*B[3]-B[2]*B[1]),A=Math.hypot(B[0],B[1]),D=Math.hypot(B[2],B[3]);if(Z===0)X=D/_,ee=A/_;else{const F=Z*_;X=D>F?D/F:1,ee=A>F?A/F:1}}this._cachedScaleForStroking=[X,ee]}return this._cachedScaleForStroking}rescaleAndStroke(Z){const{ctx:B}=this,{lineWidth:X}=this.current,[ee,_]=this.getScaleForStroking();if(B.lineWidth=X||1,ee===1&&_===1){B.stroke();return}let A,D,F;Z&&(A=(0,h.getCurrentTransform)(B),D=B.getLineDash().slice(),F=B.lineDashOffset),B.scale(ee,_);const G=Math.max(ee,_);B.setLineDash(B.getLineDash().map(ce=>ce/G)),B.lineDashOffset/=G,B.stroke(),Z&&(B.setTransform(...A),B.setLineDash(D),B.lineDashOffset=F)}isContentVisible(){for(let Z=this.markedContentStack.length-1;Z>=0;Z--)if(!this.markedContentStack[Z].visible)return!1;return!0}}d.CanvasGraphics=Le;function Ie(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}for(const oe in f.OPS)Le.prototype[oe]!==void 0&&(Le.prototype[f.OPS[oe]]=Le.prototype[oe])},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.TilingPattern=d.PathType=void 0,d.getShadingPattern=O;var h=a(1),f=a(133),p=a(3);const z={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};d.PathType=z;function P(N,T){if(!T||p.isNodeJS)return;const E=T[2]-T[0],M=T[3]-T[1],C=new Path2D;C.rect(T[0],T[1],E,M),N.clip(C)}class y{constructor(){this.constructor===y&&(0,h.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,h.unreachable)("Abstract method `getPattern` called.")}}class g extends y{constructor(T){super(),this._type=T[1],this._bbox=T[2],this._colorStops=T[3],this._p0=T[4],this._p1=T[5],this._r0=T[6],this._r1=T[7],this.matrix=null}_createGradient(T){let E;this._type==="axial"?E=T.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(E=T.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const M of this._colorStops)E.addColorStop(M[0],M[1]);return E}getPattern(T,E,M,C){let b;if(C===z.STROKE||C===z.FILL){const w=E.current.getClippedPathBoundingBox(C,(0,f.getCurrentTransform)(T))||[0,0,0,0],I=Math.ceil(w[2]-w[0])||1,L=Math.ceil(w[3]-w[1])||1,V=E.cachedCanvases.getCanvas("pattern",I,L,!0),H=V.context;H.clearRect(0,0,H.canvas.width,H.canvas.height),H.beginPath(),H.rect(0,0,H.canvas.width,H.canvas.height),H.translate(-w[0],-w[1]),M=h.Util.transform(M,[1,0,0,1,w[0],w[1]]),H.transform(...E.baseTransform),this.matrix&&H.transform(...this.matrix),P(H,this._bbox),H.fillStyle=this._createGradient(H),H.fill(),b=T.createPattern(V.canvas,"no-repeat");const le=new DOMMatrix(M);try{b.setTransform(le)}catch(re){(0,h.warn)(`RadialAxialShadingPattern.getPattern: "${re==null?void 0:re.message}".`)}}else P(T,this._bbox),b=this._createGradient(T);return b}}function x(N,T,E,M,C,b,w,I){const L=T.coords,V=T.colors,H=N.data,le=N.width*4;let re;L[E+1]>L[M+1]&&(re=E,E=M,M=re,re=b,b=w,w=re),L[M+1]>L[C+1]&&(re=M,M=C,C=re,re=w,w=I,I=re),L[E+1]>L[M+1]&&(re=E,E=M,M=re,re=b,b=w,w=re);const de=(L[E]+T.offsetX)*T.scaleX,ue=(L[E+1]+T.offsetY)*T.scaleY,Y=(L[M]+T.offsetX)*T.scaleX,Q=(L[M+1]+T.offsetY)*T.scaleY,J=(L[C]+T.offsetX)*T.scaleX,W=(L[C+1]+T.offsetY)*T.scaleY;if(ue>=W)return;const Ce=V[b],_e=V[b+1],Le=V[b+2],Ie=V[w],oe=V[w+1],Z=V[w+2],B=V[I],X=V[I+1],ee=V[I+2],_=Math.round(ue),A=Math.round(W);let D,F,G,ce,pe,ge,ye,ze;for(let Se=_;Se<=A;Se++){if(Se<Q){let Ge;Se<ue?Ge=0:Ge=(ue-Se)/(ue-Q),D=de-(de-Y)*Ge,F=Ce-(Ce-Ie)*Ge,G=_e-(_e-oe)*Ge,ce=Le-(Le-Z)*Ge}else{let Ge;Se>W?Ge=1:Q===W?Ge=0:Ge=(Q-Se)/(Q-W),D=Y-(Y-J)*Ge,F=Ie-(Ie-B)*Ge,G=oe-(oe-X)*Ge,ce=Z-(Z-ee)*Ge}let Me;Se<ue?Me=0:Se>W?Me=1:Me=(ue-Se)/(ue-W),pe=de-(de-J)*Me,ge=Ce-(Ce-B)*Me,ye=_e-(_e-X)*Me,ze=Le-(Le-ee)*Me;const Ae=Math.round(Math.min(D,pe)),Re=Math.round(Math.max(D,pe));let Be=le*Se+Ae*4;for(let Ge=Ae;Ge<=Re;Ge++)Me=(D-Ge)/(D-pe),Me<0?Me=0:Me>1&&(Me=1),H[Be++]=F-(F-ge)*Me|0,H[Be++]=G-(G-ye)*Me|0,H[Be++]=ce-(ce-ze)*Me|0,H[Be++]=255}}function R(N,T,E){const M=T.coords,C=T.colors;let b,w;switch(T.type){case"lattice":const I=T.verticesPerRow,L=Math.floor(M.length/I)-1,V=I-1;for(b=0;b<L;b++){let H=b*I;for(let le=0;le<V;le++,H++)x(N,E,M[H],M[H+1],M[H+I],C[H],C[H+1],C[H+I]),x(N,E,M[H+I+1],M[H+1],M[H+I],C[H+I+1],C[H+1],C[H+I])}break;case"triangles":for(b=0,w=M.length;b<w;b+=3)x(N,E,M[b],M[b+1],M[b+2],C[b],C[b+1],C[b+2]);break;default:throw new Error("illegal figure")}}class u extends y{constructor(T){super(),this._coords=T[2],this._colors=T[3],this._figures=T[4],this._bounds=T[5],this._bbox=T[7],this._background=T[8],this.matrix=null}_createMeshCanvas(T,E,M){const I=Math.floor(this._bounds[0]),L=Math.floor(this._bounds[1]),V=Math.ceil(this._bounds[2])-I,H=Math.ceil(this._bounds[3])-L,le=Math.min(Math.ceil(Math.abs(V*T[0]*1.1)),3e3),re=Math.min(Math.ceil(Math.abs(H*T[1]*1.1)),3e3),de=V/le,ue=H/re,Y={coords:this._coords,colors:this._colors,offsetX:-I,offsetY:-L,scaleX:1/de,scaleY:1/ue},Q=le+2*2,J=re+2*2,W=M.getCanvas("mesh",Q,J,!1),Ce=W.context,_e=Ce.createImageData(le,re);if(E){const Ie=_e.data;for(let oe=0,Z=Ie.length;oe<Z;oe+=4)Ie[oe]=E[0],Ie[oe+1]=E[1],Ie[oe+2]=E[2],Ie[oe+3]=255}for(const Ie of this._figures)R(_e,Ie,Y);return Ce.putImageData(_e,2,2),{canvas:W.canvas,offsetX:I-2*de,offsetY:L-2*ue,scaleX:de,scaleY:ue}}getPattern(T,E,M,C){P(T,this._bbox);let b;if(C===z.SHADING)b=h.Util.singularValueDecompose2dScale((0,f.getCurrentTransform)(T));else if(b=h.Util.singularValueDecompose2dScale(E.baseTransform),this.matrix){const I=h.Util.singularValueDecompose2dScale(this.matrix);b=[b[0]*I[0],b[1]*I[1]]}const w=this._createMeshCanvas(b,C===z.SHADING?null:this._background,E.cachedCanvases);return C!==z.SHADING&&(T.setTransform(...E.baseTransform),this.matrix&&T.transform(...this.matrix)),T.translate(w.offsetX,w.offsetY),T.scale(w.scaleX,w.scaleY),T.createPattern(w.canvas,"no-repeat")}}class v extends y{getPattern(){return"hotpink"}}function O(N){switch(N[0]){case"RadialAxial":return new g(N);case"Mesh":return new u(N);case"Dummy":return new v}throw new Error(`Unknown IR type: ${N[0]}`)}const k={COLORED:1,UNCOLORED:2};class ${static get MAX_PATTERN_SIZE(){return(0,h.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(T,E,M,C,b){this.operatorList=T[2],this.matrix=T[3]||[1,0,0,1,0,0],this.bbox=T[4],this.xstep=T[5],this.ystep=T[6],this.paintType=T[7],this.tilingType=T[8],this.color=E,this.ctx=M,this.canvasGraphicsFactory=C,this.baseTransform=b}createPatternCanvas(T){const E=this.operatorList,M=this.bbox,C=this.xstep,b=this.ystep,w=this.paintType,I=this.tilingType,L=this.color,V=this.canvasGraphicsFactory;(0,h.info)("TilingType: "+I);const H=M[0],le=M[1],re=M[2],de=M[3],ue=h.Util.singularValueDecompose2dScale(this.matrix),Y=h.Util.singularValueDecompose2dScale(this.baseTransform),Q=[ue[0]*Y[0],ue[1]*Y[1]],J=this.getSizeAndScale(C,this.ctx.canvas.width,Q[0]),W=this.getSizeAndScale(b,this.ctx.canvas.height,Q[1]),Ce=T.cachedCanvases.getCanvas("pattern",J.size,W.size,!0),_e=Ce.context,Le=V.createCanvasGraphics(_e);Le.groupLevel=T.groupLevel,this.setFillAndStrokeStyleToContext(Le,w,L);let Ie=H,oe=le,Z=re,B=de;return H<0&&(Ie=0,Z+=Math.abs(H)),le<0&&(oe=0,B+=Math.abs(le)),_e.translate(-(J.scale*Ie),-(W.scale*oe)),Le.transform(J.scale,0,0,W.scale,0,0),_e.save(),this.clipBbox(Le,Ie,oe,Z,B),Le.baseTransform=(0,f.getCurrentTransform)(Le.ctx),Le.executeOperatorList(E),Le.endDrawing(),{canvas:Ce.canvas,scaleX:J.scale,scaleY:W.scale,offsetX:Ie,offsetY:oe}}getSizeAndScale(T,E,M){T=Math.abs(T);const C=Math.max($.MAX_PATTERN_SIZE,E);let b=Math.ceil(T*M);return b>=C?b=C:M=b/T,{scale:M,size:b}}clipBbox(T,E,M,C,b){const w=C-E,I=b-M;T.ctx.rect(E,M,w,I),T.current.updateRectMinMax((0,f.getCurrentTransform)(T.ctx),[E,M,C,b]),T.clip(),T.endPath()}setFillAndStrokeStyleToContext(T,E,M){const C=T.ctx,b=T.current;switch(E){case k.COLORED:const w=this.ctx;C.fillStyle=w.fillStyle,C.strokeStyle=w.strokeStyle,b.fillColor=w.fillStyle,b.strokeColor=w.strokeStyle;break;case k.UNCOLORED:const I=h.Util.makeHexColor(M[0],M[1],M[2]);C.fillStyle=I,C.strokeStyle=I,b.fillColor=I,b.strokeColor=I;break;default:throw new h.FormatError(`Unsupported paint type: ${E}`)}}getPattern(T,E,M,C){let b=M;C!==z.SHADING&&(b=h.Util.transform(b,E.baseTransform),this.matrix&&(b=h.Util.transform(b,this.matrix)));const w=this.createPatternCanvas(E);let I=new DOMMatrix(b);I=I.translate(w.offsetX,w.offsetY),I=I.scale(1/w.scaleX,1/w.scaleY);const L=T.createPattern(w.canvas,"repeat");try{L.setTransform(I)}catch(V){(0,h.warn)(`TilingPattern.getPattern: "${V==null?void 0:V.message}".`)}return L}}d.TilingPattern=$},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.applyMaskImageData=f;var h=a(1);function f(p){let{src:z,srcPos:P=0,dest:y,destPos:g=0,width:x,height:R,inverseDecode:u=!1}=p;const v=h.FeatureTest.isLittleEndian?4278190080:255,[O,k]=u?[0,v]:[v,0],$=x>>3,N=x&7,T=z.length;y=new Uint32Array(y.buffer);for(let E=0;E<R;E++){for(const C=P+$;P<C;P++){const b=P<T?z[P]:255;y[g++]=b&128?k:O,y[g++]=b&64?k:O,y[g++]=b&32?k:O,y[g++]=b&16?k:O,y[g++]=b&8?k:O,y[g++]=b&4?k:O,y[g++]=b&2?k:O,y[g++]=b&1?k:O}if(N===0)continue;const M=P<T?z[P++]:255;for(let C=0;C<N;C++)y[g++]=M&1<<7-C?k:O}return{srcPos:P,destPos:g}}},(o,d)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.GlobalWorkerOptions=void 0;const a=Object.create(null);d.GlobalWorkerOptions=a,a.workerPort=a.workerPort===void 0?null:a.workerPort,a.workerSrc=a.workerSrc===void 0?"":a.workerSrc},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.MessageHandler=void 0;var h=a(1);const f={UNKNOWN:0,DATA:1,ERROR:2},p={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function z(y){switch(y instanceof Error||typeof y=="object"&&y!==null||(0,h.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),y.name){case"AbortException":return new h.AbortException(y.message);case"MissingPDFException":return new h.MissingPDFException(y.message);case"PasswordException":return new h.PasswordException(y.message,y.code);case"UnexpectedResponseException":return new h.UnexpectedResponseException(y.message,y.status);case"UnknownErrorException":return new h.UnknownErrorException(y.message,y.details);default:return new h.UnknownErrorException(y.message,y.toString())}}class P{constructor(g,x,R){this.sourceName=g,this.targetName=x,this.comObj=R,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=u=>{const v=u.data;if(v.targetName!==this.sourceName)return;if(v.stream){this._processStreamMessage(v);return}if(v.callback){const k=v.callbackId,$=this.callbackCapabilities[k];if(!$)throw new Error(`Cannot resolve callback ${k}`);if(delete this.callbackCapabilities[k],v.callback===f.DATA)$.resolve(v.data);else if(v.callback===f.ERROR)$.reject(z(v.reason));else throw new Error("Unexpected callback case");return}const O=this.actionHandler[v.action];if(!O)throw new Error(`Unknown action from worker: ${v.action}`);if(v.callbackId){const k=this.sourceName,$=v.sourceName;new Promise(function(N){N(O(v.data))}).then(function(N){R.postMessage({sourceName:k,targetName:$,callback:f.DATA,callbackId:v.callbackId,data:N})},function(N){R.postMessage({sourceName:k,targetName:$,callback:f.ERROR,callbackId:v.callbackId,reason:z(N)})});return}if(v.streamId){this._createStreamSink(v);return}O(v.data)},R.addEventListener("message",this._onComObjOnMessage)}on(g,x){const R=this.actionHandler;if(R[g])throw new Error(`There is already an actionName called "${g}"`);R[g]=x}send(g,x,R){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:g,data:x},R)}sendWithPromise(g,x,R){const u=this.callbackId++,v=(0,h.createPromiseCapability)();this.callbackCapabilities[u]=v;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:g,callbackId:u,data:x},R)}catch(O){v.reject(O)}return v.promise}sendWithStream(g,x,R,u){const v=this.streamId++,O=this.sourceName,k=this.targetName,$=this.comObj;return new ReadableStream({start:N=>{const T=(0,h.createPromiseCapability)();return this.streamControllers[v]={controller:N,startCall:T,pullCall:null,cancelCall:null,isClosed:!1},$.postMessage({sourceName:O,targetName:k,action:g,streamId:v,data:x,desiredSize:N.desiredSize},u),T.promise},pull:N=>{const T=(0,h.createPromiseCapability)();return this.streamControllers[v].pullCall=T,$.postMessage({sourceName:O,targetName:k,stream:p.PULL,streamId:v,desiredSize:N.desiredSize}),T.promise},cancel:N=>{(0,h.assert)(N instanceof Error,"cancel must have a valid reason");const T=(0,h.createPromiseCapability)();return this.streamControllers[v].cancelCall=T,this.streamControllers[v].isClosed=!0,$.postMessage({sourceName:O,targetName:k,stream:p.CANCEL,streamId:v,reason:z(N)}),T.promise}},R)}_createStreamSink(g){const x=g.streamId,R=this.sourceName,u=g.sourceName,v=this.comObj,O=this,k=this.actionHandler[g.action],$={enqueue(N){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,E=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const M=this.desiredSize;this.desiredSize-=T,M>0&&this.desiredSize<=0&&(this.sinkCapability=(0,h.createPromiseCapability)(),this.ready=this.sinkCapability.promise),v.postMessage({sourceName:R,targetName:u,stream:p.ENQUEUE,streamId:x,chunk:N},E)},close(){this.isCancelled||(this.isCancelled=!0,v.postMessage({sourceName:R,targetName:u,stream:p.CLOSE,streamId:x}),delete O.streamSinks[x])},error(N){(0,h.assert)(N instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,v.postMessage({sourceName:R,targetName:u,stream:p.ERROR,streamId:x,reason:z(N)}))},sinkCapability:(0,h.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:g.desiredSize,ready:null};$.sinkCapability.resolve(),$.ready=$.sinkCapability.promise,this.streamSinks[x]=$,new Promise(function(N){N(k(g.data,$))}).then(function(){v.postMessage({sourceName:R,targetName:u,stream:p.START_COMPLETE,streamId:x,success:!0})},function(N){v.postMessage({sourceName:R,targetName:u,stream:p.START_COMPLETE,streamId:x,reason:z(N)})})}_processStreamMessage(g){const x=g.streamId,R=this.sourceName,u=g.sourceName,v=this.comObj,O=this.streamControllers[x],k=this.streamSinks[x];switch(g.stream){case p.START_COMPLETE:g.success?O.startCall.resolve():O.startCall.reject(z(g.reason));break;case p.PULL_COMPLETE:g.success?O.pullCall.resolve():O.pullCall.reject(z(g.reason));break;case p.PULL:if(!k){v.postMessage({sourceName:R,targetName:u,stream:p.PULL_COMPLETE,streamId:x,success:!0});break}k.desiredSize<=0&&g.desiredSize>0&&k.sinkCapability.resolve(),k.desiredSize=g.desiredSize,new Promise(function($){$(k.onPull&&k.onPull())}).then(function(){v.postMessage({sourceName:R,targetName:u,stream:p.PULL_COMPLETE,streamId:x,success:!0})},function($){v.postMessage({sourceName:R,targetName:u,stream:p.PULL_COMPLETE,streamId:x,reason:z($)})});break;case p.ENQUEUE:if((0,h.assert)(O,"enqueue should have stream controller"),O.isClosed)break;O.controller.enqueue(g.chunk);break;case p.CLOSE:if((0,h.assert)(O,"close should have stream controller"),O.isClosed)break;O.isClosed=!0,O.controller.close(),this._deleteStreamController(O,x);break;case p.ERROR:(0,h.assert)(O,"error should have stream controller"),O.controller.error(z(g.reason)),this._deleteStreamController(O,x);break;case p.CANCEL_COMPLETE:g.success?O.cancelCall.resolve():O.cancelCall.reject(z(g.reason)),this._deleteStreamController(O,x);break;case p.CANCEL:if(!k)break;new Promise(function($){$(k.onCancel&&k.onCancel(z(g.reason)))}).then(function(){v.postMessage({sourceName:R,targetName:u,stream:p.CANCEL_COMPLETE,streamId:x,success:!0})},function($){v.postMessage({sourceName:R,targetName:u,stream:p.CANCEL_COMPLETE,streamId:x,reason:z($)})}),k.sinkCapability.reject(z(g.reason)),k.isCancelled=!0,delete this.streamSinks[x];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(g,x){await Promise.allSettled([g.startCall&&g.startCall.promise,g.pullCall&&g.pullCall.promise,g.cancelCall&&g.cancelCall.promise]),delete this.streamControllers[x]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}d.MessageHandler=P},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.Metadata=void 0;var h=a(1);function f(O,k,$){p(O,k),k.set(O,$)}function p(O,k){if(k.has(O))throw new TypeError("Cannot initialize the same private elements twice on an object")}function z(O,k){var $=g(O,k,"get");return P(O,$)}function P(O,k){return k.get?k.get.call(O):k.value}function y(O,k,$){var N=g(O,k,"set");return x(O,N,$),$}function g(O,k,$){if(!k.has(O))throw new TypeError("attempted to "+$+" private field on non-instance");return k.get(O)}function x(O,k,$){if(k.set)k.set.call(O,$);else{if(!k.writable)throw new TypeError("attempted to set read only private field");k.value=$}}var R=new WeakMap,u=new WeakMap;class v{constructor(k){let{parsedData:$,rawData:N}=k;f(this,R,{writable:!0,value:void 0}),f(this,u,{writable:!0,value:void 0}),y(this,R,$),y(this,u,N)}getRaw(){return z(this,u)}get(k){var $;return($=z(this,R).get(k))!==null&&$!==void 0?$:null}getAll(){return(0,h.objectFromMap)(z(this,R))}has(k){return z(this,R).has(k)}}d.Metadata=v},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.OptionalContentConfig=void 0;var h=a(1);function f(w,I){P(w,I),I.add(w)}function p(w,I,L){if(!I.has(w))throw new TypeError("attempted to get private field on non-instance");return L}function z(w,I,L){P(w,I),I.set(w,L)}function P(w,I){if(I.has(w))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(w,I,L){var V=R(w,I,"set");return g(w,V,L),L}function g(w,I,L){if(I.set)I.set.call(w,L);else{if(!I.writable)throw new TypeError("attempted to set read only private field");I.value=L}}function x(w,I){var L=R(w,I,"get");return u(w,L)}function R(w,I,L){if(!I.has(w))throw new TypeError("attempted to "+L+" private field on non-instance");return I.get(w)}function u(w,I){return I.get?I.get.call(w):I.value}const v=Symbol("INTERNAL");var O=new WeakMap;class k{constructor(I,L){z(this,O,{writable:!0,value:!0}),this.name=I,this.intent=L}get visible(){return x(this,O)}_setVisible(I,L){I!==v&&(0,h.unreachable)("Internal method `_setVisible` called."),y(this,O,L)}}var $=new WeakMap,N=new WeakMap,T=new WeakMap,E=new WeakMap,M=new WeakSet;class C{constructor(I){if(f(this,M),z(this,$,{writable:!0,value:!0}),z(this,N,{writable:!0,value:new Map}),z(this,T,{writable:!0,value:null}),z(this,E,{writable:!0,value:null}),this.name=null,this.creator=null,I!==null){this.name=I.name,this.creator=I.creator,y(this,E,I.order);for(const L of I.groups)x(this,N).set(L.id,new k(L.name,L.intent));if(I.baseState==="OFF")for(const L of x(this,N).values())L._setVisible(v,!1);for(const L of I.on)x(this,N).get(L)._setVisible(v,!0);for(const L of I.off)x(this,N).get(L)._setVisible(v,!1);y(this,T,new Map);for(const[L,V]of x(this,N))x(this,T).set(L,V.visible)}}isVisible(I){if(x(this,N).size===0)return!0;if(!I)return(0,h.warn)("Optional content group not defined."),!0;if(I.type==="OCG")return x(this,N).has(I.id)?x(this,N).get(I.id).visible:((0,h.warn)(`Optional content group not found: ${I.id}`),!0);if(I.type==="OCMD"){if(I.expression)return p(this,M,b).call(this,I.expression);if(!I.policy||I.policy==="AnyOn"){for(const L of I.ids){if(!x(this,N).has(L))return(0,h.warn)(`Optional content group not found: ${L}`),!0;if(x(this,N).get(L).visible)return!0}return!1}else if(I.policy==="AllOn"){for(const L of I.ids){if(!x(this,N).has(L))return(0,h.warn)(`Optional content group not found: ${L}`),!0;if(!x(this,N).get(L).visible)return!1}return!0}else if(I.policy==="AnyOff"){for(const L of I.ids){if(!x(this,N).has(L))return(0,h.warn)(`Optional content group not found: ${L}`),!0;if(!x(this,N).get(L).visible)return!0}return!1}else if(I.policy==="AllOff"){for(const L of I.ids){if(!x(this,N).has(L))return(0,h.warn)(`Optional content group not found: ${L}`),!0;if(x(this,N).get(L).visible)return!1}return!0}return(0,h.warn)(`Unknown optional content policy ${I.policy}.`),!0}return(0,h.warn)(`Unknown group type ${I.type}.`),!0}setVisibility(I){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!x(this,N).has(I)){(0,h.warn)(`Optional content group not found: ${I}`);return}x(this,N).get(I)._setVisible(v,!!L),y(this,$,null)}get hasInitialVisibility(){if(x(this,$)!==null)return x(this,$);for(const[I,L]of x(this,N)){const V=x(this,T).get(I);if(L.visible!==V)return y(this,$,!1)}return y(this,$,!0)}getOrder(){return x(this,N).size?x(this,E)?x(this,E).slice():[...x(this,N).keys()]:null}getGroups(){return x(this,N).size>0?(0,h.objectFromMap)(x(this,N)):null}getGroup(I){return x(this,N).get(I)||null}}d.OptionalContentConfig=C;function b(w){const I=w.length;if(I<2)return!0;const L=w[0];for(let V=1;V<I;V++){const H=w[V];let le;if(Array.isArray(H))le=p(this,M,b).call(this,H);else if(x(this,N).has(H))le=x(this,N).get(H).visible;else return(0,h.warn)(`Optional content group not found: ${H}`),!0;switch(L){case"And":if(!le)return!1;break;case"Or":if(le)return!0;break;case"Not":return!le;default:return!0}}return L==="And"}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFDataTransportStream=void 0;var h=a(1),f=a(133);class p{constructor(g,x){(0,h.assert)(x,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=g.progressiveDone||!1,this._contentDispositionFilename=g.contentDispositionFilename||null;const R=g.initialData;if((R==null?void 0:R.length)>0){const u=new Uint8Array(R).buffer;this._queuedChunks.push(u)}this._pdfDataRangeTransport=x,this._isStreamingSupported=!g.disableStream,this._isRangeSupported=!g.disableRange,this._contentLength=g.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((u,v)=>{this._onReceiveData({begin:u,chunk:v})}),this._pdfDataRangeTransport.addProgressListener((u,v)=>{this._onProgress({loaded:u,total:v})}),this._pdfDataRangeTransport.addProgressiveReadListener(u=>{this._onReceiveData({chunk:u})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(g){const x=new Uint8Array(g.chunk).buffer;if(g.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(x):this._queuedChunks.push(x);else{const R=this._rangeReaders.some(function(u){return u._begin!==g.begin?!1:(u._enqueue(x),!0)});(0,h.assert)(R,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var g,x;return(g=(x=this._fullRequestReader)===null||x===void 0?void 0:x._loaded)!==null&&g!==void 0?g:0}_onProgress(g){if(g.total===void 0){const x=this._rangeReaders[0];x!=null&&x.onProgress&&x.onProgress({loaded:g.loaded})}else{const x=this._fullRequestReader;x!=null&&x.onProgress&&x.onProgress({loaded:g.loaded,total:g.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(g){const x=this._rangeReaders.indexOf(g);x>=0&&this._rangeReaders.splice(x,1)}getFullReader(){(0,h.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const g=this._queuedChunks;return this._queuedChunks=null,new z(this,g,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(g,x){if(x<=this._progressiveDataLength)return null;const R=new P(this,g,x);return this._pdfDataRangeTransport.requestDataRange(g,x),this._rangeReaders.push(R),R}cancelAllRequests(g){this._fullRequestReader&&this._fullRequestReader.cancel(g);for(const x of this._rangeReaders.slice(0))x.cancel(g);this._pdfDataRangeTransport.abort()}}d.PDFDataTransportStream=p;class z{constructor(g,x){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;this._stream=g,this._done=R||!1,this._filename=(0,f.isPdfFile)(u)?u:null,this._queuedChunks=x||[],this._loaded=0;for(const v of this._queuedChunks)this._loaded+=v.byteLength;this._requests=[],this._headersReady=Promise.resolve(),g._fullRequestReader=this,this.onProgress=null}_enqueue(g){this._done||(this._requests.length>0?this._requests.shift().resolve({value:g,done:!1}):this._queuedChunks.push(g),this._loaded+=g.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const g=(0,h.createPromiseCapability)();return this._requests.push(g),g.promise}cancel(g){this._done=!0;for(const x of this._requests)x.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class P{constructor(g,x,R){this._stream=g,this._begin=x,this._end=R,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(g){if(!this._done){if(this._requests.length===0)this._queuedChunk=g;else{this._requests.shift().resolve({value:g,done:!1});for(const R of this._requests)R.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const x=this._queuedChunk;return this._queuedChunk=null,{value:x,done:!1}}if(this._done)return{value:void 0,done:!0};const g=(0,h.createPromiseCapability)();return this._requests.push(g),g.promise}cancel(g){this._done=!0;for(const x of this._requests)x.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(o,d)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.XfaText=void 0;class a{static textContent(f){const p=[],z={items:p,styles:Object.create(null)};function P(y){var g;if(!y)return;let x=null;const R=y.name;if(R==="#text")x=y.value;else if(a.shouldBuildText(R))y!=null&&(g=y.attributes)!==null&&g!==void 0&&g.textContent?x=y.attributes.textContent:y.value&&(x=y.value);else return;if(x!==null&&p.push({str:x}),!!y.children)for(const u of y.children)P(u)}return P(f),z}static shouldBuildText(f){return!(f==="textarea"||f==="input"||f==="option"||f==="select")}}d.XfaText=a},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.NodeStandardFontDataFactory=d.NodeCanvasFactory=d.NodeCMapReaderFactory=void 0;var h=a(134);const f=function(y){return new Promise((g,x)=>{Ni.readFile(y,(u,v)=>{if(u||!v){x(new Error(u));return}g(new Uint8Array(v))})})};class p extends h.BaseCanvasFactory{_createCanvas(g,x){return Ni.createCanvas(g,x)}}d.NodeCanvasFactory=p;class z extends h.BaseCMapReaderFactory{_fetchData(g,x){return f(g).then(R=>({cMapData:R,compressionType:x}))}}d.NodeCMapReaderFactory=z;class P extends h.BaseStandardFontDataFactory{_fetchData(g){return f(g)}}d.NodeStandardFontDataFactory=P},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.AnnotationEditorLayer=void 0;var h=a(132),f=a(1),p=a(148),z=a(149);function P(J,W){x(J,W),W.add(J)}function y(J,W,Ce){return W in J?Object.defineProperty(J,W,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):J[W]=Ce,J}function g(J,W,Ce){x(J,W),W.set(J,Ce)}function x(J,W){if(W.has(J))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(J,W,Ce){if(!W.has(J))throw new TypeError("attempted to get private field on non-instance");return Ce}function u(J,W){var Ce=k(J,W,"get");return v(J,Ce)}function v(J,W){return W.get?W.get.call(J):W.value}function O(J,W,Ce){var _e=k(J,W,"set");return $(J,_e,Ce),Ce}function k(J,W,Ce){if(!W.has(J))throw new TypeError("attempted to "+Ce+" private field on non-instance");return W.get(J)}function $(J,W,Ce){if(W.set)W.set.call(J,Ce);else{if(!W.writable)throw new TypeError("attempted to set read only private field");W.value=Ce}}var N=new WeakMap,T=new WeakMap,E=new WeakMap,M=new WeakMap,C=new WeakMap,b=new WeakMap,w=new WeakMap,I=new WeakMap,L=new WeakSet,V=new WeakSet,H=new WeakSet,le=new WeakSet;class re{constructor(W){P(this,le),P(this,H),P(this,V),P(this,L),g(this,N,{writable:!0,value:void 0}),g(this,T,{writable:!0,value:!1}),g(this,E,{writable:!0,value:this.pointerup.bind(this)}),g(this,M,{writable:!0,value:this.pointerdown.bind(this)}),g(this,C,{writable:!0,value:new Map}),g(this,b,{writable:!0,value:!1}),g(this,w,{writable:!0,value:!1}),g(this,I,{writable:!0,value:void 0}),re._initialized||(re._initialized=!0,p.FreeTextEditor.initialize(W.l10n),z.InkEditor.initialize(W.l10n),W.uiManager.registerEditorTypes([p.FreeTextEditor,z.InkEditor])),O(this,I,W.uiManager),this.annotationStorage=W.annotationStorage,this.pageIndex=W.pageIndex,this.div=W.div,O(this,N,W.accessibilityManager),u(this,I).addLayer(this)}updateToolbar(W){u(this,I).updateToolbar(W)}updateMode(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u(this,I).getMode();R(this,le,Q).call(this),W===f.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),u(this,I).unselectAll()}addInkEditorIfNeeded(W){if(!W&&u(this,I).getMode()!==f.AnnotationEditorType.INK)return;if(!W){for(const _e of u(this,C).values())if(_e.isEmpty()){_e.setInBackground();return}}R(this,H,Y).call(this,{offsetX:0,offsetY:0}).setInBackground()}setEditingState(W){u(this,I).setEditingState(W)}addCommands(W){u(this,I).addCommands(W)}enable(){this.div.style.pointerEvents="auto";for(const W of u(this,C).values())W.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const W of u(this,C).values())W.disableEditing()}setActiveEditor(W){u(this,I).getActive()!==W&&u(this,I).setActiveEditor(W)}enableClick(){this.div.addEventListener("pointerdown",u(this,M)),this.div.addEventListener("pointerup",u(this,E))}disableClick(){this.div.removeEventListener("pointerdown",u(this,M)),this.div.removeEventListener("pointerup",u(this,E))}attach(W){u(this,C).set(W.id,W)}detach(W){var Ce;u(this,C).delete(W.id),(Ce=u(this,N))===null||Ce===void 0||Ce.removePointerInTextLayer(W.contentDiv)}remove(W){u(this,I).removeEditor(W),this.detach(W),this.annotationStorage.remove(W.id),W.div.style.display="none",setTimeout(()=>{W.div.style.display="",W.div.remove(),W.isAttachedToDOM=!1,document.activeElement===document.body&&u(this,I).focusMainContainer()},0),u(this,w)||this.addInkEditorIfNeeded(!1)}add(W){if(R(this,L,de).call(this,W),u(this,I).addEditor(W),this.attach(W),!W.isAttachedToDOM){const Ce=W.render();this.div.append(Ce),W.isAttachedToDOM=!0}this.moveEditorInDOM(W),W.onceAdded(),this.addToAnnotationStorage(W)}moveEditorInDOM(W){var Ce;(Ce=u(this,N))===null||Ce===void 0||Ce.moveElementInDOM(this.div,W.div,W.contentDiv,!0)}addToAnnotationStorage(W){!W.isEmpty()&&!this.annotationStorage.has(W.id)&&this.annotationStorage.setValue(W.id,W)}addOrRebuild(W){W.needsToBeRebuilt()?W.rebuild():this.add(W)}addANewEditor(W){const Ce=()=>{this.addOrRebuild(W)},_e=()=>{W.remove()};this.addCommands({cmd:Ce,undo:_e,mustExec:!0})}addUndoableEditor(W){const Ce=()=>{this.addOrRebuild(W)},_e=()=>{W.remove()};this.addCommands({cmd:Ce,undo:_e,mustExec:!1})}getNextId(){return u(this,I).getId()}deserialize(W){switch(W.annotationType){case f.AnnotationEditorType.FREETEXT:return p.FreeTextEditor.deserialize(W,this);case f.AnnotationEditorType.INK:return z.InkEditor.deserialize(W,this)}return null}setSelected(W){u(this,I).setSelected(W)}toggleSelected(W){u(this,I).toggleSelected(W)}isSelected(W){return u(this,I).isSelected(W)}unselect(W){u(this,I).unselect(W)}pointerup(W){const Ce=h.KeyboardManager.platform.isMac;if(!(W.button!==0||W.ctrlKey&&Ce)&&W.target===this.div&&!!u(this,b)){if(O(this,b,!1),!u(this,T)){O(this,T,!0);return}R(this,H,Y).call(this,W)}}pointerdown(W){const Ce=h.KeyboardManager.platform.isMac;if(W.button!==0||W.ctrlKey&&Ce||W.target!==this.div)return;O(this,b,!0);const _e=u(this,I).getActive();O(this,T,!_e||_e.isEmpty())}drop(W){const Ce=W.dataTransfer.getData("text/plain"),_e=u(this,I).getEditor(Ce);if(!_e)return;W.preventDefault(),W.dataTransfer.dropEffect="move",R(this,L,de).call(this,_e);const Le=this.div.getBoundingClientRect(),Ie=W.clientX-Le.x,oe=W.clientY-Le.y;_e.translate(Ie-_e.startX,oe-_e.startY),this.moveEditorInDOM(_e),_e.div.focus()}dragover(W){W.preventDefault()}destroy(){var W;((W=u(this,I).getActive())===null||W===void 0?void 0:W.parent)===this&&u(this,I).setActiveEditor(null);for(const _e of u(this,C).values()){var Ce;(Ce=u(this,N))===null||Ce===void 0||Ce.removePointerInTextLayer(_e.contentDiv),_e.isAttachedToDOM=!1,_e.div.remove(),_e.parent=null}this.div=null,u(this,C).clear(),u(this,I).removeLayer(this)}render(W){this.viewport=W.viewport,(0,h.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const Ce of u(this,I).getEditors(this.pageIndex))this.add(Ce);this.updateMode()}update(W){this.viewport=W.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[W,Ce,_e,Le]=this.viewport.viewBox,Ie=_e-W,oe=Le-Ce;return[Ie,oe]}get viewportBaseDimensions(){const{width:W,height:Ce,rotation:_e}=this.viewport;return _e%180===0?[W,Ce]:[Ce,W]}setDimensions(){const{width:W,height:Ce,rotation:_e}=this.viewport,Le=_e%180!==0,Ie=Math.floor(W)+"px",oe=Math.floor(Ce)+"px";this.div.style.width=Le?oe:Ie,this.div.style.height=Le?Ie:oe,this.div.setAttribute("data-main-rotation",_e)}}d.AnnotationEditorLayer=re;function de(J){var W;J.parent!==this&&(this.attach(J),J.pageIndex=this.pageIndex,(W=J.parent)===null||W===void 0||W.detach(J),J.parent=this,J.div&&J.isAttachedToDOM&&(J.div.remove(),this.div.append(J.div)))}function ue(J){switch(u(this,I).getMode()){case f.AnnotationEditorType.FREETEXT:return new p.FreeTextEditor(J);case f.AnnotationEditorType.INK:return new z.InkEditor(J)}return null}function Y(J){const W=this.getNextId(),Ce=R(this,V,ue).call(this,{parent:this,id:W,x:J.offsetX,y:J.offsetY});return Ce&&this.add(Ce),Ce}function Q(){O(this,w,!0);for(const J of u(this,C).values())J.isEmpty()&&J.remove();O(this,w,!1)}y(re,"_initialized",!1)},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.FreeTextEditor=void 0;var h=a(1),f=a(132),p=a(131);function z(Y,Q){g(Y,Q),Q.add(Y)}function P(Y,Q,J){return Q in Y?Object.defineProperty(Y,Q,{value:J,enumerable:!0,configurable:!0,writable:!0}):Y[Q]=J,Y}function y(Y,Q,J){g(Y,Q),Q.set(Y,J)}function g(Y,Q){if(Q.has(Y))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x(Y,Q){var J=O(Y,Q,"get");return R(Y,J)}function R(Y,Q){return Q.get?Q.get.call(Y):Q.value}function u(Y,Q,J){if(!Q.has(Y))throw new TypeError("attempted to get private field on non-instance");return J}function v(Y,Q,J){var W=O(Y,Q,"set");return k(Y,W,J),J}function O(Y,Q,J){if(!Q.has(Y))throw new TypeError("attempted to "+J+" private field on non-instance");return Q.get(Y)}function k(Y,Q,J){if(Q.set)Q.set.call(Y,J);else{if(!Q.writable)throw new TypeError("attempted to set read only private field");Q.value=J}}var $=new WeakMap,N=new WeakMap,T=new WeakMap,E=new WeakMap,M=new WeakMap,C=new WeakMap,b=new WeakMap,w=new WeakSet,I=new WeakSet,L=new WeakSet,V=new WeakSet;class H extends p.AnnotationEditor{constructor(Q){super({...Q,name:"freeTextEditor"}),z(this,V),z(this,L),z(this,I),z(this,w),y(this,$,{writable:!0,value:this.editorDivBlur.bind(this)}),y(this,N,{writable:!0,value:this.editorDivFocus.bind(this)}),y(this,T,{writable:!0,value:this.editorDivKeydown.bind(this)}),y(this,E,{writable:!0,value:void 0}),y(this,M,{writable:!0,value:""}),y(this,C,{writable:!0,value:!1}),y(this,b,{writable:!0,value:void 0}),v(this,E,Q.color||H._defaultColor||p.AnnotationEditor._defaultLineColor),v(this,b,Q.fontSize||H._defaultFontSize)}static initialize(Q){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map(W=>[W,Q.get(W)]));const J=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(J.getPropertyValue("--freetext-padding"))}static updateDefaultParams(Q,J){switch(Q){case h.AnnotationEditorParamsType.FREETEXT_SIZE:H._defaultFontSize=J;break;case h.AnnotationEditorParamsType.FREETEXT_COLOR:H._defaultColor=J;break}}updateParams(Q,J){switch(Q){case h.AnnotationEditorParamsType.FREETEXT_SIZE:u(this,w,le).call(this,J);break;case h.AnnotationEditorParamsType.FREETEXT_COLOR:u(this,I,re).call(this,J);break}}static get defaultPropertiesToUpdate(){return[[h.AnnotationEditorParamsType.FREETEXT_SIZE,H._defaultFontSize],[h.AnnotationEditorParamsType.FREETEXT_COLOR,H._defaultColor||p.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[h.AnnotationEditorParamsType.FREETEXT_SIZE,x(this,b)],[h.AnnotationEditorParamsType.FREETEXT_COLOR,x(this,E)]]}getInitialTranslation(){return[-H._internalPadding*this.parent.scaleFactor,-(H._internalPadding+x(this,b))*this.parent.scaleFactor]}rebuild(){super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(h.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",x(this,T)),this.editorDiv.addEventListener("focus",x(this,N)),this.editorDiv.addEventListener("blur",x(this,$)))}disableEditMode(){!this.isInEditMode()||(this.parent.setEditingState(!0),super.disableEditMode(),this.disableEditing(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",x(this,T)),this.editorDiv.removeEventListener("focus",x(this,N)),this.editorDiv.removeEventListener("blur",x(this,$)),this.div.focus(),this.isEditing=!1)}focusin(Q){super.focusin(Q),Q.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent.setEditingState(!0),super.remove()}commit(){super.commit(),x(this,C)||(v(this,C,!0),this.parent.addUndoableEditor(this)),this.disableEditMode(),v(this,M,u(this,L,de).call(this).trimEnd()),u(this,V,ue).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(Q){this.enableEditMode(),this.editorDiv.focus()}keydown(Q){Q.target===this.div&&Q.key==="Enter"&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(Q){H._keyboardManager.exec(this,Q)}editorDivFocus(Q){this.isEditing=!0}editorDivBlur(Q){this.isEditing=!1}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let Q,J;this.width&&(Q=this.x,J=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",`${this.id}-editor`),this.enableEditing(),H._l10nPromise.get("editor_free_text_aria_label").then(Ce=>{var _e;return(_e=this.editorDiv)===null||_e===void 0?void 0:_e.setAttribute("aria-label",Ce)}),H._l10nPromise.get("free_text_default_content").then(Ce=>{var _e;return(_e=this.editorDiv)===null||_e===void 0?void 0:_e.setAttribute("default-content",Ce)}),this.editorDiv.contentEditable=!0;const{style:W}=this.editorDiv;if(W.fontSize=`calc(${x(this,b)}px * var(--scale-factor))`,W.color=x(this,E),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,f.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[Ce,_e]=this.parent.viewportBaseDimensions;this.setAt(Q*Ce,J*_e,this.width*Ce,this.height*_e);for(const Le of x(this,M).split(`
|
|
499
499
|
`)){const Ie=document.createElement("div");Ie.append(Le?document.createTextNode(Le):document.createElement("br")),this.editorDiv.append(Ie)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(Q,J){const W=super.deserialize(Q,J);return v(W,b,Q.fontSize),v(W,E,h.Util.makeHexColor(...Q.color)),v(W,M,Q.value),W}serialize(){if(this.isEmpty())return null;const Q=H._internalPadding*this.parent.scaleFactor,J=this.getRect(Q,Q),W=p.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:h.AnnotationEditorType.FREETEXT,color:W,fontSize:x(this,b),value:x(this,M),pageIndex:this.parent.pageIndex,rect:J,rotation:this.rotation}}}d.FreeTextEditor=H;function le(Y){const Q=W=>{this.editorDiv.style.fontSize=`calc(${W}px * var(--scale-factor))`,this.translate(0,-(W-x(this,b))*this.parent.scaleFactor),v(this,b,W),u(this,V,ue).call(this)},J=x(this,b);this.parent.addCommands({cmd:()=>{Q(Y)},undo:()=>{Q(J)},mustExec:!0,type:h.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function re(Y){const Q=x(this,E);this.parent.addCommands({cmd:()=>{v(this,E,Y),this.editorDiv.style.color=Y},undo:()=>{v(this,E,Q),this.editorDiv.style.color=Q},mustExec:!0,type:h.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function de(){const Y=this.editorDiv.getElementsByTagName("div");if(Y.length===0)return this.editorDiv.innerText;const Q=[];for(let J=0,W=Y.length;J<W;J++){const _e=Y[J].firstChild;(_e==null?void 0:_e.nodeName)==="#text"?Q.push(_e.data):Q.push("")}return Q.join(`
|
|
500
500
|
`)}function ue(){const[Y,Q]=this.parent.viewportBaseDimensions,J=this.div.getBoundingClientRect();this.width=J.width/Y,this.height=J.height/Q}P(H,"_freeTextDefaultContent",""),P(H,"_l10nPromise",void 0),P(H,"_internalPadding",0),P(H,"_defaultColor",null),P(H,"_defaultFontSize",10),P(H,"_keyboardManager",new f.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],H.prototype.commitOrRemove]])),P(H,"_type","freetext")},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.InkEditor=void 0,Object.defineProperty(d,"fitCurve",{enumerable:!0,get:function(){return p.fitCurve}});var h=a(1),f=a(131),p=a(150),z=a(132);function P(Ee,xe){x(Ee,xe),xe.add(Ee)}function y(Ee,xe,je){return xe in Ee?Object.defineProperty(Ee,xe,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ee[xe]=je,Ee}function g(Ee,xe,je){x(Ee,xe),xe.set(Ee,je)}function x(Ee,xe){if(xe.has(Ee))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(Ee,xe,je){return u(Ee,xe),je}function u(Ee,xe){if(Ee!==xe)throw new TypeError("Private static access of wrong provenance")}function v(Ee,xe,je){var Qe=$(Ee,xe,"set");return O(Ee,Qe,je),je}function O(Ee,xe,je){if(xe.set)xe.set.call(Ee,je);else{if(!xe.writable)throw new TypeError("attempted to set read only private field");xe.value=je}}function k(Ee,xe){var je=$(Ee,xe,"get");return N(Ee,je)}function $(Ee,xe,je){if(!xe.has(Ee))throw new TypeError("attempted to "+je+" private field on non-instance");return xe.get(Ee)}function N(Ee,xe){return xe.get?xe.get.call(Ee):xe.value}function T(Ee,xe,je){if(!xe.has(Ee))throw new TypeError("attempted to get private field on non-instance");return je}const E=16;var M=new WeakMap,C=new WeakMap,b=new WeakMap,w=new WeakMap,I=new WeakMap,L=new WeakMap,V=new WeakMap,H=new WeakMap,le=new WeakMap,re=new WeakMap,de=new WeakMap,ue=new WeakMap,Y=new WeakMap,Q=new WeakMap,J=new WeakSet,W=new WeakSet,Ce=new WeakSet,_e=new WeakSet,Le=new WeakSet,Ie=new WeakSet,oe=new WeakSet,Z=new WeakSet,B=new WeakSet,X=new WeakSet,ee=new WeakSet,_=new WeakSet,A=new WeakSet,D=new WeakSet,F=new WeakSet,G=new WeakSet,ce=new WeakSet,pe=new WeakSet,ge=new WeakSet,ye=new WeakSet,ze=new WeakSet,Se=new WeakSet;class Me extends f.AnnotationEditor{constructor(xe){super({...xe,name:"inkEditor"}),P(this,Se),P(this,ze),P(this,ye),P(this,ge),P(this,pe),P(this,ce),P(this,G),P(this,F),P(this,D),P(this,A),P(this,_),P(this,ee),P(this,X),P(this,B),P(this,Z),P(this,oe),P(this,Ie),P(this,Le),P(this,_e),P(this,Ce),P(this,W),P(this,J),g(this,M,{writable:!0,value:0}),g(this,C,{writable:!0,value:0}),g(this,b,{writable:!0,value:0}),g(this,w,{writable:!0,value:this.canvasPointermove.bind(this)}),g(this,I,{writable:!0,value:this.canvasPointerleave.bind(this)}),g(this,L,{writable:!0,value:this.canvasPointerup.bind(this)}),g(this,V,{writable:!0,value:this.canvasPointerdown.bind(this)}),g(this,H,{writable:!0,value:!1}),g(this,le,{writable:!0,value:!1}),g(this,re,{writable:!0,value:null}),g(this,de,{writable:!0,value:null}),g(this,ue,{writable:!0,value:0}),g(this,Y,{writable:!0,value:0}),g(this,Q,{writable:!0,value:null}),this.color=xe.color||null,this.thickness=xe.thickness||null,this.opacity=xe.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(xe){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map(je=>[je,xe.get(je)]))}static updateDefaultParams(xe,je){switch(xe){case h.AnnotationEditorParamsType.INK_THICKNESS:Me._defaultThickness=je;break;case h.AnnotationEditorParamsType.INK_COLOR:Me._defaultColor=je;break;case h.AnnotationEditorParamsType.INK_OPACITY:Me._defaultOpacity=je/100;break}}updateParams(xe,je){switch(xe){case h.AnnotationEditorParamsType.INK_THICKNESS:T(this,J,Ae).call(this,je);break;case h.AnnotationEditorParamsType.INK_COLOR:T(this,W,Re).call(this,je);break;case h.AnnotationEditorParamsType.INK_OPACITY:T(this,Ce,Be).call(this,je);break}}static get defaultPropertiesToUpdate(){return[[h.AnnotationEditorParamsType.INK_THICKNESS,Me._defaultThickness],[h.AnnotationEditorParamsType.INK_COLOR,Me._defaultColor||f.AnnotationEditor._defaultLineColor],[h.AnnotationEditorParamsType.INK_OPACITY,Math.round(Me._defaultOpacity*100)]]}get propertiesToUpdate(){var xe;return[[h.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||Me._defaultThickness],[h.AnnotationEditorParamsType.INK_COLOR,this.color||Me._defaultColor||f.AnnotationEditor._defaultLineColor],[h.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*((xe=this.opacity)!==null&&xe!==void 0?xe:Me._defaultOpacity))]]}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(T(this,ee,ne).call(this),T(this,_,ve).call(this)),this.isAttachedToDOM||(this.parent.add(this),T(this,A,Ve).call(this)),T(this,ze,e1).call(this))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,k(this,de).disconnect(),v(this,de,null),super.remove())}enableEditMode(){k(this,H)||this.canvas===null||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",k(this,V)),this.canvas.addEventListener("pointerup",k(this,L)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",k(this,V)),this.canvas.removeEventListener("pointerup",k(this,L)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){k(this,H)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),v(this,H,!0),this.div.classList.add("disabled"),T(this,ze,e1).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}focusin(xe){super.focusin(xe),this.enableEditMode()}canvasPointerdown(xe){xe.button!==0||!this.isInEditMode()||k(this,H)||(this.setInForeground(),xe.type!=="mouse"&&this.div.focus(),xe.stopPropagation(),this.canvas.addEventListener("pointerleave",k(this,I)),this.canvas.addEventListener("pointermove",k(this,w)),T(this,Ie,Ye).call(this,xe.offsetX,xe.offsetY))}canvasPointermove(xe){xe.stopPropagation(),T(this,oe,We).call(this,xe.offsetX,xe.offsetY)}canvasPointerup(xe){xe.button===0&&this.isInEditMode()&&this.currentPath.length!==0&&(xe.stopPropagation(),T(this,X,se).call(this,xe),this.setInBackground())}canvasPointerleave(xe){T(this,X,se).call(this,xe),this.setInBackground()}render(){if(this.div)return this.div;let xe,je;this.width&&(xe=this.x,je=this.y),super.render(),Me._l10nPromise.get("editor_ink_aria_label").then(he=>{var $e;return($e=this.div)===null||$e===void 0?void 0:$e.setAttribute("aria-label",he)});const[Qe,o1,a1,u1]=T(this,_e,Ge).call(this);if(this.setAt(Qe,o1,0,0),this.setDims(a1,u1),T(this,ee,ne).call(this),this.width){const[he,$e]=this.parent.viewportBaseDimensions;this.setAt(xe*he,je*$e,this.width*he,this.height*$e),v(this,le,!0),T(this,A,Ve).call(this),this.setDims(this.width*he,this.height*$e),T(this,B,fe).call(this),T(this,Se,d1).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return T(this,_,ve).call(this),this.div}setDimensions(xe,je){const Qe=Math.round(xe),o1=Math.round(je);if(k(this,ue)===Qe&&k(this,Y)===o1)return;v(this,ue,Qe),v(this,Y,o1),this.canvas.style.visibility="hidden",k(this,M)&&Math.abs(k(this,M)-xe/je)>.01&&(je=Math.ceil(xe/k(this,M)),this.setDims(xe,je));const[a1,u1]=this.parent.viewportBaseDimensions;this.width=xe/a1,this.height=je/u1,k(this,H)&&T(this,D,Ue).call(this,xe,je),T(this,A,Ve).call(this),T(this,B,fe).call(this),this.canvas.style.visibility="visible"}static deserialize(xe,je){const Qe=super.deserialize(xe,je);Qe.thickness=xe.thickness,Qe.color=h.Util.makeHexColor(...xe.color),Qe.opacity=xe.opacity;const[o1,a1]=je.pageDimensions,u1=Qe.width*o1,he=Qe.height*a1,$e=je.scaleFactor,Ze=xe.thickness/2;v(Qe,M,u1/he),v(Qe,H,!0),v(Qe,ue,Math.round(u1)),v(Qe,Y,Math.round(he));for(const{bezier:s1}of xe.paths){const l1=[];Qe.paths.push(l1);let c1=$e*(s1[0]-Ze),i1=$e*(he-s1[1]-Ze);for(let b1=2,_1=s1.length;b1<_1;b1+=6){const I1=$e*(s1[b1]-Ze),A1=$e*(he-s1[b1+1]-Ze),mt=$e*(s1[b1+2]-Ze),Y1=$e*(he-s1[b1+3]-Ze),Lt=$e*(s1[b1+4]-Ze),It=$e*(he-s1[b1+5]-Ze);l1.push([[c1,i1],[I1,A1],[mt,Y1],[Lt,It]]),c1=Lt,i1=It}const S1=R(this,Me,Fe).call(this,l1);Qe.bezierPath2D.push(S1)}const t1=T(Qe,ge,we).call(Qe);return v(Qe,b,Math.max(E,t1[2]-t1[0])),v(Qe,C,Math.max(E,t1[3]-t1[1])),T(Qe,D,Ue).call(Qe,u1,he),Qe}serialize(){if(this.isEmpty())return null;const xe=this.getRect(0,0),je=this.rotation%180===0?xe[3]-xe[1]:xe[2]-xe[0],Qe=f.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:h.AnnotationEditorType.INK,color:Qe,thickness:this.thickness,opacity:this.opacity,paths:T(this,G,Xe).call(this,this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,je),pageIndex:this.parent.pageIndex,rect:xe,rotation:this.rotation}}}d.InkEditor=Me;function Ae(Ee){const xe=this.thickness;this.parent.addCommands({cmd:()=>{this.thickness=Ee,T(this,ze,e1).call(this)},undo:()=>{this.thickness=xe,T(this,ze,e1).call(this)},mustExec:!0,type:h.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function Re(Ee){const xe=this.color;this.parent.addCommands({cmd:()=>{this.color=Ee,T(this,B,fe).call(this)},undo:()=>{this.color=xe,T(this,B,fe).call(this)},mustExec:!0,type:h.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Be(Ee){Ee/=100;const xe=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=Ee,T(this,B,fe).call(this)},undo:()=>{this.opacity=xe,T(this,B,fe).call(this)},mustExec:!0,type:h.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function Ge(){const{width:Ee,height:xe,rotation:je}=this.parent.viewport;switch(je){case 90:return[0,Ee,Ee,xe];case 180:return[Ee,xe,Ee,xe];case 270:return[xe,0,Ee,xe];default:return[0,0,Ee,xe]}}function Je(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle=`${this.color}${(0,z.opacityToHex)(this.opacity)}`}function Ye(Ee,xe){if(this.isEditing=!0,!k(this,le)){var je;v(this,le,!0),T(this,A,Ve).call(this),this.thickness||(this.thickness=Me._defaultThickness),this.color||(this.color=Me._defaultColor||f.AnnotationEditor._defaultLineColor),(je=this.opacity)!==null&&je!==void 0||(this.opacity=Me._defaultOpacity)}this.currentPath.push([Ee,xe]),v(this,re,null),T(this,Le,Je).call(this),this.ctx.beginPath(),this.ctx.moveTo(Ee,xe),v(this,Q,()=>{!k(this,Q)||(k(this,re)&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):T(this,B,fe).call(this),this.ctx.lineTo(...k(this,re)),v(this,re,null),this.ctx.stroke()),window.requestAnimationFrame(k(this,Q)))}),window.requestAnimationFrame(k(this,Q))}function We(Ee,xe){const[je,Qe]=this.currentPath.at(-1);Ee===je&&xe===Qe||(this.currentPath.push([Ee,xe]),v(this,re,[Ee,xe]))}function ae(Ee,xe){this.ctx.closePath(),v(this,Q,null),Ee=Math.min(Math.max(Ee,0),this.canvas.width),xe=Math.min(Math.max(xe,0),this.canvas.height);const[je,Qe]=this.currentPath.at(-1);(Ee!==je||xe!==Qe)&&this.currentPath.push([Ee,xe]);let o1;if(this.currentPath.length!==1)o1=(0,p.fitCurve)(this.currentPath,30,null);else{const $e=[Ee,xe];o1=[[$e,$e.slice(),$e.slice(),$e]]}const a1=R(Me,Me,Fe).call(Me,o1);this.currentPath.length=0;const u1=()=>{this.paths.push(o1),this.bezierPath2D.push(a1),this.rebuild()},he=()=>{this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(T(this,ee,ne).call(this),T(this,_,ve).call(this)),T(this,ze,e1).call(this))};this.parent.addCommands({cmd:u1,undo:he,mustExec:!0})}function fe(){if(this.isEmpty()){T(this,F,ke).call(this);return}T(this,Le,Je).call(this);const{canvas:Ee,ctx:xe}=this;xe.setTransform(1,0,0,1,0,0),xe.clearRect(0,0,Ee.width,Ee.height),T(this,F,ke).call(this);for(const je of this.bezierPath2D)xe.stroke(je)}function se(Ee){T(this,Z,ae).call(this,Ee.offsetX,Ee.offsetY),this.canvas.removeEventListener("pointerleave",k(this,I)),this.canvas.removeEventListener("pointermove",k(this,w)),this.parent.addToAnnotationStorage(this)}function ne(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",Me._l10nPromise.get("editor_ink_canvas_aria_label").then(Ee=>{var xe;return(xe=this.canvas)===null||xe===void 0?void 0:xe.setAttribute("aria-label",Ee)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function ve(){v(this,de,new ResizeObserver(Ee=>{const xe=Ee[0].contentRect;xe.width&&xe.height&&this.setDimensions(xe.width,xe.height)})),k(this,de).observe(this.div)}function Ve(){if(!k(this,le))return;const[Ee,xe]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*Ee),this.canvas.height=Math.ceil(this.height*xe),T(this,F,ke).call(this)}function Ue(Ee,xe){const je=T(this,ye,Oe).call(this),Qe=(Ee-je)/k(this,b),o1=(xe-je)/k(this,C);this.scaleFactor=Math.min(Qe,o1)}function ke(){const Ee=T(this,ye,Oe).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Ee,this.translationY*this.scaleFactor+Ee)}function Fe(Ee){const xe=new Path2D;for(let je=0,Qe=Ee.length;je<Qe;je++){const[o1,a1,u1,he]=Ee[je];je===0&&xe.moveTo(...o1),xe.bezierCurveTo(a1[0],a1[1],u1[0],u1[1],he[0],he[1])}return xe}function Xe(Ee,xe,je,Qe){const a1=[],u1=this.thickness/2;let he,$e;for(const Ze of this.paths){he=[],$e=[];for(let t1=0,s1=Ze.length;t1<s1;t1++){const[l1,c1,i1,S1]=Ze[t1],b1=Ee*(l1[0]+xe)+u1,_1=Qe-Ee*(l1[1]+je)-u1,I1=Ee*(c1[0]+xe)+u1,A1=Qe-Ee*(c1[1]+je)-u1,mt=Ee*(i1[0]+xe)+u1,Y1=Qe-Ee*(i1[1]+je)-u1,Lt=Ee*(S1[0]+xe)+u1,It=Qe-Ee*(S1[1]+je)-u1;t1===0&&(he.push(b1,_1),$e.push(b1,_1)),he.push(I1,A1,mt,Y1,Lt,It),T(this,ce,Pe).call(this,b1,_1,I1,A1,mt,Y1,Lt,It,4,$e)}a1.push({bezier:he,points:$e})}return a1}function Pe(Ee,xe,je,Qe,o1,a1,u1,he,$e,Ze){if(T(this,pe,me).call(this,Ee,xe,je,Qe,o1,a1,u1,he)){Ze.push(u1,he);return}for(let t1=1;t1<$e-1;t1++){const s1=t1/$e,l1=1-s1;let c1=s1*Ee+l1*je,i1=s1*xe+l1*Qe,S1=s1*je+l1*o1,b1=s1*Qe+l1*a1;const _1=s1*o1+l1*u1,I1=s1*a1+l1*he;c1=s1*c1+l1*S1,i1=s1*i1+l1*b1,S1=s1*S1+l1*_1,b1=s1*b1+l1*I1,c1=s1*c1+l1*S1,i1=s1*i1+l1*b1,Ze.push(c1,i1)}Ze.push(u1,he)}function me(Ee,xe,je,Qe,o1,a1,u1,he){const Ze=(3*je-2*Ee-u1)**2,t1=(3*Qe-2*xe-he)**2,s1=(3*o1-Ee-2*u1)**2,l1=(3*a1-xe-2*he)**2;return Math.max(Ze,s1)+Math.max(t1,l1)<=10}function we(){let Ee=1/0,xe=-1/0,je=1/0,Qe=-1/0;for(const o1 of this.paths)for(const[a1,u1,he,$e]of o1){const Ze=h.Util.bezierBoundingBox(...a1,...u1,...he,...$e);Ee=Math.min(Ee,Ze[0]),je=Math.min(je,Ze[1]),xe=Math.max(xe,Ze[2]),Qe=Math.max(Qe,Ze[3])}return[Ee,je,xe,Qe]}function Oe(){return k(this,H)?Math.ceil(this.thickness*this.parent.scaleFactor):0}function e1(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.isEmpty())return;if(!k(this,H)){T(this,B,fe).call(this);return}const xe=T(this,ge,we).call(this),je=T(this,ye,Oe).call(this);v(this,b,Math.max(E,xe[2]-xe[0])),v(this,C,Math.max(E,xe[3]-xe[1]));const Qe=Math.ceil(je+k(this,b)*this.scaleFactor),o1=Math.ceil(je+k(this,C)*this.scaleFactor),[a1,u1]=this.parent.viewportBaseDimensions;this.width=Qe/a1,this.height=o1/u1,v(this,M,Qe/o1),T(this,Se,d1).call(this);const he=this.translationX,$e=this.translationY;this.translationX=-xe[0],this.translationY=-xe[1],T(this,A,Ve).call(this),T(this,B,fe).call(this),v(this,ue,Qe),v(this,Y,o1),this.setDims(Qe,o1);const Ze=Ee?je/this.scaleFactor/2:0;this.translate(he-this.translationX-Ze,$e-this.translationY-Ze)}function d1(){const{style:Ee}=this.div;k(this,M)>=1?(Ee.minHeight=`${E}px`,Ee.minWidth=`${Math.round(k(this,M)*E)}px`):(Ee.minWidth=`${E}px`,Ee.minHeight=`${Math.round(E/k(this,M))}px`)}y(Me,"_defaultColor",null),y(Me,"_defaultOpacity",1),y(Me,"_defaultThickness",1),y(Me,"_l10nPromise",void 0),y(Me,"_type","ink")},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.fitCurve=void 0;const h=a(151);d.fitCurve=h},o=>{function d(O,k,$){if(!Array.isArray(O))throw new TypeError("First argument should be an array");if(O.forEach(M=>{if(!Array.isArray(M)||M.some(C=>typeof C!="number")||M.length!==O[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")}),O=O.filter((M,C)=>C===0||!M.every((b,w)=>b===O[C-1][w])),O.length<2)return[];const N=O.length,T=R(O[1],O[0]),E=R(O[N-2],O[N-1]);return a(O,T,E,k,$)}function a(O,k,$,N,T){var M,C,b,w,I,L,V,H,le,re,de,ue,Y;if(O.length===2)return ue=u.vectorLen(u.subtract(O[0],O[1]))/3,M=[O[0],u.addArrays(O[0],u.mulItems(k,ue)),u.addArrays(O[1],u.mulItems($,ue)),O[1]],[M];if(C=P(O),[M,w,L]=h(O,C,C,k,$,T),w===0||w<N)return[M];if(w<N*N)for(b=C,I=w,V=L,Y=0;Y<20;Y++){if(b=p(M,O,b),[M,w,L]=h(O,C,b,k,$,T),w<N)return[M];if(L===V){let Q=w/I;if(Q>.9999&&Q<1.0001)break}I=w,V=L}return de=[],H=u.subtract(O[L-1],O[L+1]),H.every(Q=>Q===0)&&(H=u.subtract(O[L-1],O[L]),[H[0],H[1]]=[-H[1],H[0]]),le=u.normalize(H),re=u.mulItems(le,-1),de=de.concat(a(O.slice(0,L+1),k,le,N,T)),de=de.concat(a(O.slice(L),re,$,N,T)),de}function h(O,k,$,N,T,E){var M,C,b;return M=f(O,$,N,T),[C,b]=y(O,M,k),E&&E({bez:M,points:O,params:k,maxErr:C,maxPoint:b}),[M,C,b]}function f(O,k,$,N){var T,E,M,C,b,w,I,L,V,H,le,re,de,ue,Y,Q,J,W=O[0],Ce=O[O.length-1];for(T=[W,null,null,Ce],E=u.zeros_Xx2x2(k.length),de=0,ue=k.length;de<ue;de++)Q=k[de],J=1-Q,M=E[de],M[0]=u.mulItems($,3*Q*(J*J)),M[1]=u.mulItems(N,3*J*(Q*Q));for(C=[[0,0],[0,0]],b=[0,0],de=0,ue=O.length;de<ue;de++)Q=k[de],M=E[de],C[0][0]+=u.dot(M[0],M[0]),C[0][1]+=u.dot(M[0],M[1]),C[1][0]+=u.dot(M[0],M[1]),C[1][1]+=u.dot(M[1],M[1]),Y=u.subtract(O[de],v.q([W,W,Ce,Ce],Q)),b[0]+=u.dot(M[0],Y),b[1]+=u.dot(M[1],Y);return w=C[0][0]*C[1][1]-C[1][0]*C[0][1],I=C[0][0]*b[1]-C[1][0]*b[0],L=b[0]*C[1][1]-b[1]*C[0][1],V=w===0?0:L/w,H=w===0?0:I/w,re=u.vectorLen(u.subtract(W,Ce)),le=1e-6*re,V<le||H<le?(T[1]=u.addArrays(W,u.mulItems($,re/3)),T[2]=u.addArrays(Ce,u.mulItems(N,re/3))):(T[1]=u.addArrays(W,u.mulItems($,V)),T[2]=u.addArrays(Ce,u.mulItems(N,H))),T}function p(O,k,$){return $.map((N,T)=>z(O,k[T],N))}function z(O,k,$){var N=u.subtract(v.q(O,$),k),T=v.qprime(O,$),E=u.mulMatrix(N,T),M=u.sum(u.squareItems(T))+2*u.mulMatrix(N,v.qprimeprime(O,$));return M===0?$:$-E/M}function P(O){var k=[],$,N,T;return O.forEach((E,M)=>{$=M?N+u.vectorLen(u.subtract(E,T)):0,k.push($),N=$,T=E}),k=k.map(E=>E/N),k}function y(O,k,$){var N,T,E,M,C,b,w,I;T=0,E=Math.floor(O.length/2);const L=g(k,10);for(C=0,b=O.length;C<b;C++)w=O[C],I=x(k,$[C],L,10),M=u.subtract(v.q(k,I),w),N=M[0]*M[0]+M[1]*M[1],N>T&&(T=N,E=C);return[T,E]}var g=function(O,k){for(var $,N=[0],T=O[0],E=0,M=1;M<=k;M++)$=v.q(O,M/k),E+=u.vectorLen(u.subtract($,T)),N.push(E),T=$;return N=N.map(C=>C/E),N};function x(O,k,$,N){if(k<0)return 0;if(k>1)return 1;for(var T,E,M,C,b,w=1;w<=N;w++)if(k<=$[w]){C=(w-1)/N,M=w/N,E=$[w-1],T=$[w],b=(k-E)/(T-E)*(M-C)+C;break}return b}function R(O,k){return u.normalize(u.subtract(O,k))}class u{static zeros_Xx2x2(k){for(var $=[];k--;)$.push([0,0]);return $}static mulItems(k,$){return k.map(N=>N*$)}static mulMatrix(k,$){return k.reduce((N,T,E)=>N+T*$[E],0)}static subtract(k,$){return k.map((N,T)=>N-$[T])}static addArrays(k,$){return k.map((N,T)=>N+$[T])}static addItems(k,$){return k.map(N=>N+$)}static sum(k){return k.reduce(($,N)=>$+N)}static dot(k,$){return u.mulMatrix(k,$)}static vectorLen(k){return Math.hypot(...k)}static divItems(k,$){return k.map(N=>N/$)}static squareItems(k){return k.map($=>$*$)}static normalize(k){return this.divItems(k,this.vectorLen(k))}}class v{static q(k,$){var N=1-$,T=u.mulItems(k[0],N*N*N),E=u.mulItems(k[1],3*N*N*$),M=u.mulItems(k[2],3*N*$*$),C=u.mulItems(k[3],$*$*$);return u.addArrays(u.addArrays(T,E),u.addArrays(M,C))}static qprime(k,$){var N=1-$,T=u.mulItems(u.subtract(k[1],k[0]),3*N*N),E=u.mulItems(u.subtract(k[2],k[1]),6*N*$),M=u.mulItems(u.subtract(k[3],k[2]),3*$*$);return u.addArrays(u.addArrays(T,E),M)}static qprimeprime(k,$){return u.addArrays(u.mulItems(u.addArrays(u.subtract(k[2],u.mulItems(k[1],2)),k[0]),6*(1-$)),u.mulItems(u.addArrays(u.subtract(k[3],u.mulItems(k[2],2)),k[1]),6*$))}}o.exports=d,o.exports.fitCubic=a,o.exports.createTangent=R},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.AnnotationLayer=void 0;var h=a(1),f=a(133),p=a(130),z=a(153),P=a(154);function y(ee,_,A){return g(ee,_),A}function g(ee,_){if(ee!==_)throw new TypeError("Private static access of wrong provenance")}const x=1e3,R=9,u=new WeakSet;function v(ee){return{width:ee[2]-ee[0],height:ee[3]-ee[1]}}class O{static create(_){switch(_.data.annotationType){case h.AnnotationType.LINK:return new $(_);case h.AnnotationType.TEXT:return new N(_);case h.AnnotationType.WIDGET:switch(_.data.fieldType){case"Tx":return new E(_);case"Btn":return _.data.radioButton?new C(_):_.data.checkBox?new M(_):new b(_);case"Ch":return new w(_)}return new T(_);case h.AnnotationType.POPUP:return new I(_);case h.AnnotationType.FREETEXT:return new V(_);case h.AnnotationType.LINE:return new H(_);case h.AnnotationType.SQUARE:return new le(_);case h.AnnotationType.CIRCLE:return new re(_);case h.AnnotationType.POLYLINE:return new de(_);case h.AnnotationType.CARET:return new Y(_);case h.AnnotationType.INK:return new Q(_);case h.AnnotationType.POLYGON:return new ue(_);case h.AnnotationType.HIGHLIGHT:return new J(_);case h.AnnotationType.UNDERLINE:return new W(_);case h.AnnotationType.SQUIGGLY:return new Ce(_);case h.AnnotationType.STRIKEOUT:return new _e(_);case h.AnnotationType.STAMP:return new Le(_);case h.AnnotationType.FILEATTACHMENT:return new Ie(_);default:return new k(_)}}}class k{constructor(_){let{isRenderable:A=!1,ignoreBorder:D=!1,createQuadrilaterals:F=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.isRenderable=A,this.data=_.data,this.layer=_.layer,this.page=_.page,this.viewport=_.viewport,this.linkService=_.linkService,this.downloadManager=_.downloadManager,this.imageResourcesPath=_.imageResourcesPath,this.renderForms=_.renderForms,this.svgFactory=_.svgFactory,this.annotationStorage=_.annotationStorage,this.enableScripting=_.enableScripting,this.hasJSActions=_.hasJSActions,this._fieldObjects=_.fieldObjects,this._mouseState=_.mouseState,A&&(this.container=this._createContainer(D)),F&&(this.quadrilaterals=this._createQuadrilaterals(D))}_createContainer(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=this.data,D=this.page,F=this.viewport,G=document.createElement("section"),{width:ce,height:pe}=v(A.rect),[ge,ye,ze,Se]=F.viewBox,Me=ze-ge,Ae=Se-ye;G.setAttribute("data-annotation-id",A.id);const Re=h.Util.normalizeRect([A.rect[0],D.view[3]-A.rect[1]+D.view[1],A.rect[2],D.view[3]-A.rect[3]+D.view[1]]);if(!_&&A.borderStyle.width>0){G.style.borderWidth=`${A.borderStyle.width}px`;const Ge=A.borderStyle.horizontalCornerRadius,Je=A.borderStyle.verticalCornerRadius;if(Ge>0||Je>0){const We=`calc(${Ge}px * var(--scale-factor)) / calc(${Je}px * var(--scale-factor))`;G.style.borderRadius=We}else if(this instanceof C){const We=`calc(${ce}px * var(--scale-factor)) / calc(${pe}px * var(--scale-factor))`;G.style.borderRadius=We}switch(A.borderStyle.style){case h.AnnotationBorderStyleType.SOLID:G.style.borderStyle="solid";break;case h.AnnotationBorderStyleType.DASHED:G.style.borderStyle="dashed";break;case h.AnnotationBorderStyleType.BEVELED:(0,h.warn)("Unimplemented border style: beveled");break;case h.AnnotationBorderStyleType.INSET:(0,h.warn)("Unimplemented border style: inset");break;case h.AnnotationBorderStyleType.UNDERLINE:G.style.borderBottomStyle="solid";break}const Ye=A.borderColor||null;Ye?G.style.borderColor=h.Util.makeHexColor(Ye[0]|0,Ye[1]|0,Ye[2]|0):G.style.borderWidth=0}G.style.left=`${100*(Re[0]-ge)/Me}%`,G.style.top=`${100*(Re[1]-ye)/Ae}%`;const{rotation:Be}=A;return A.hasOwnCanvas||Be===0?(G.style.width=`${100*ce/Me}%`,G.style.height=`${100*pe/Ae}%`):this.setRotation(Be,G),G}setRotation(_){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.container;const[D,F,G,ce]=this.viewport.viewBox,pe=G-D,ge=ce-F,{width:ye,height:ze}=v(this.data.rect);let Se,Me;_%180===0?(Se=100*ye/pe,Me=100*ze/ge):(Se=100*ze/pe,Me=100*ye/ge),A.style.width=`${Se}%`,A.style.height=`${Me}%`,A.setAttribute("data-main-rotation",(360-_)%360)}get _commonActions(){const _=(A,D,F)=>{const G=F.detail[A];F.target.style[D]=z.ColorConverters[`${G[0]}_HTML`](G.slice(1))};return(0,h.shadow)(this,"_commonActions",{display:A=>{const D=A.detail.display%2===1;this.container.style.visibility=D?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:D,print:A.detail.display===0||A.detail.display===3})},print:A=>{this.annotationStorage.setValue(this.data.id,{print:A.detail.print})},hidden:A=>{this.container.style.visibility=A.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:A.detail.hidden})},focus:A=>{setTimeout(()=>A.target.focus({preventScroll:!1}),0)},userName:A=>{A.target.title=A.detail.userName},readonly:A=>{A.detail.readonly?A.target.setAttribute("readonly",""):A.target.removeAttribute("readonly")},required:A=>{this._setRequired(A.target,A.detail.required)},bgColor:A=>{_("bgColor","backgroundColor",A)},fillColor:A=>{_("fillColor","backgroundColor",A)},fgColor:A=>{_("fgColor","color",A)},textColor:A=>{_("textColor","color",A)},borderColor:A=>{_("borderColor","borderColor",A)},strokeColor:A=>{_("strokeColor","borderColor",A)},rotation:A=>{const D=A.detail.rotation;this.setRotation(D),this.annotationStorage.setValue(this.data.id,{rotation:D})}})}_dispatchEventFromSandbox(_,A){const D=this._commonActions;for(const F of Object.keys(A.detail)){const G=_[F]||D[F];G&&G(A)}}_setDefaultPropertiesFromJS(_){if(!this.enableScripting)return;const A=this.annotationStorage.getRawValue(this.data.id);if(!A)return;const D=this._commonActions;for(const[F,G]of Object.entries(A)){const ce=D[F];if(ce){const pe={detail:{[F]:G},target:_};ce(pe),delete A[F]}}}_createQuadrilaterals(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.data.quadPoints)return null;const A=[],D=this.data.rect;for(const F of this.data.quadPoints)this.data.rect=[F[2].x,F[2].y,F[1].x,F[1].y],A.push(this._createContainer(_));return this.data.rect=D,A}_createPopup(_,A){let D=this.container;this.quadrilaterals&&(_=_||this.quadrilaterals,D=this.quadrilaterals[0]),_||(_=document.createElement("div"),_.className="popupTriggerArea",D.append(_));const G=new L({container:D,trigger:_,color:A.color,titleObj:A.titleObj,modificationDate:A.modificationDate,contentsObj:A.contentsObj,richText:A.richText,hideWrapper:!0}).render();G.style.left="100%",D.append(G)}_renderQuadrilaterals(_){for(const A of this.quadrilaterals)A.className=_;return this.quadrilaterals}render(){(0,h.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(_){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const D=[];if(this._fieldObjects){const F=this._fieldObjects[_];if(F)for(const{page:G,id:ce,exportValues:pe}of F){if(G===-1||ce===A)continue;const ge=typeof pe=="string"?pe:null,ye=document.querySelector(`[data-element-id="${ce}"]`);if(ye&&!u.has(ye)){(0,h.warn)(`_getElementsByName - element not allowed: ${ce}`);continue}D.push({id:ce,exportValue:ge,domElement:ye})}return D}for(const F of document.getElementsByName(_)){const{id:G,exportValue:ce}=F;G!==A&&(!u.has(F)||D.push({id:G,exportValue:ce,domElement:F}))}return D}static get platform(){const _=typeof navigator<"u"?navigator.platform:"";return(0,h.shadow)(this,"platform",{isWin:_.includes("Win"),isMac:_.includes("Mac")})}}class $ extends k{constructor(_){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(_,{isRenderable:!0,ignoreBorder:!!(A!=null&&A.ignoreBorder),createQuadrilaterals:!0}),this.isTooltipOnly=_.data.isTooltipOnly}render(){const{data:_,linkService:A}=this,D=document.createElement("a");D.setAttribute("data-element-id",_.id);let F=!1;return _.url?(A.addLinkAttributes(D,_.url,_.newWindow),F=!0):_.action?(this._bindNamedAction(D,_.action),F=!0):_.dest?(this._bindLink(D,_.dest),F=!0):(_.actions&&(_.actions.Action||_.actions["Mouse Up"]||_.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(D,_),F=!0),_.resetForm?(this._bindResetFormAction(D,_.resetForm),F=!0):this.isTooltipOnly&&!F&&(this._bindLink(D,""),F=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((G,ce)=>{const pe=ce===0?D:D.cloneNode();return G.append(pe),G}):(this.container.className="linkAnnotation",F&&this.container.append(D),this.container)}_bindLink(_,A){_.href=this.linkService.getDestinationHash(A),_.onclick=()=>(A&&this.linkService.goToDestination(A),!1),(A||A==="")&&(_.className="internalLink")}_bindNamedAction(_,A){_.href=this.linkService.getAnchorUrl(""),_.onclick=()=>(this.linkService.executeNamedAction(A),!1),_.className="internalLink"}_bindJSAction(_,A){_.href=this.linkService.getAnchorUrl("");const D=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const F of Object.keys(A.actions)){const G=D.get(F);!G||(_[G]=()=>{var ce;return(ce=this.linkService.eventBus)===null||ce===void 0||ce.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A.id,name:F}}),!1})}_.onclick||(_.onclick=()=>!1),_.className="internalLink"}_bindResetFormAction(_,A){const D=_.onclick;if(D||(_.href=this.linkService.getAnchorUrl("")),_.className="internalLink",!this._fieldObjects){(0,h.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),D||(_.onclick=()=>!1);return}_.onclick=()=>{D&&D();const{fields:F,refs:G,include:ce}=A,pe=[];if(F.length!==0||G.length!==0){const Se=new Set(G);for(const Me of F){const Ae=this._fieldObjects[Me]||[];for(const{id:Re}of Ae)Se.add(Re)}for(const Me of Object.values(this._fieldObjects))for(const Ae of Me)Se.has(Ae.id)===ce&&pe.push(Ae)}else for(const Se of Object.values(this._fieldObjects))pe.push(...Se);const ge=this.annotationStorage,ye=[];for(const Se of pe){const{id:Me}=Se;switch(ye.push(Me),Se.type){case"text":{const Re=Se.defaultValue||"";ge.setValue(Me,{value:Re});break}case"checkbox":case"radiobutton":{const Re=Se.defaultValue===Se.exportValues;ge.setValue(Me,{value:Re});break}case"combobox":case"listbox":{const Re=Se.defaultValue||"";ge.setValue(Me,{value:Re});break}default:continue}const Ae=document.querySelector(`[data-element-id="${Me}"]`);if(Ae){if(!u.has(Ae)){(0,h.warn)(`_bindResetFormAction - element not allowed: ${Me}`);continue}}else continue;Ae.dispatchEvent(new Event("resetform"))}if(this.enableScripting){var ze;(ze=this.linkService.eventBus)===null||ze===void 0||ze.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:ye,name:"ResetForm"}})}return!1}}}class N extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G})}render(){this.container.className="textAnnotation";const _=document.createElement("img");return _.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",_.alt="[{{type}} Annotation]",_.dataset.l10nId="text_annotation_type",_.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(_,this.data),this.container.append(_),this.container}}class T extends k{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(_){const{isWin:A,isMac:D}=k.platform;return A&&_.ctrlKey||D&&_.metaKey}_setEventListener(_,A,D,F){A.includes("mouse")?_.addEventListener(A,G=>{var ce;(ce=this.linkService.eventBus)===null||ce===void 0||ce.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:D,value:F(G),shift:G.shiftKey,modifier:this._getKeyModifier(G)}})}):_.addEventListener(A,G=>{var ce;(ce=this.linkService.eventBus)===null||ce===void 0||ce.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:D,value:F(G)}})})}_setEventListeners(_,A,D){for(const[G,ce]of A){var F;(ce==="Action"||(F=this.data.actions)!==null&&F!==void 0&&F[ce])&&this._setEventListener(_,G,ce,D)}}_setBackgroundColor(_){const A=this.data.backgroundColor||null;_.style.backgroundColor=A===null?"transparent":h.Util.makeHexColor(A[0],A[1],A[2])}_setTextStyle(_){const A=["left","center","right"],{fontColor:D}=this.data.defaultAppearanceData,F=this.data.defaultAppearanceData.fontSize||R,G=_.style;let ce;if(this.data.multiLine){const pe=Math.abs(this.data.rect[3]-this.data.rect[1]),ge=Math.round(pe/(h.LINE_FACTOR*F))||1,ye=pe/ge;ce=Math.min(F,Math.round(ye/h.LINE_FACTOR))}else{const pe=Math.abs(this.data.rect[3]-this.data.rect[1]);ce=Math.min(F,Math.round(pe/h.LINE_FACTOR))}G.fontSize=`calc(${ce}px * var(--scale-factor))`,G.color=h.Util.makeHexColor(D[0],D[1],D[2]),this.data.textAlignment!==null&&(G.textAlign=A[this.data.textAlignment])}_setRequired(_,A){A?_.setAttribute("required",!0):_.removeAttribute("required"),_.setAttribute("aria-required",A)}}class E extends T{constructor(_){const A=_.renderForms||!_.data.hasAppearance&&!!_.data.fieldValue;super(_,{isRenderable:A})}setPropertyOnSiblings(_,A,D,F){const G=this.annotationStorage;for(const ce of this._getElementsByName(_.name,_.id))ce.domElement&&(ce.domElement[A]=D),G.setValue(ce.id,{[F]:D})}render(){const _=this.annotationStorage,A=this.data.id;this.container.className="textWidgetAnnotation";let D=null;if(this.renderForms){const G=_.getValue(A,{value:this.data.fieldValue});let ce=G.formattedValue||G.value||"";const pe=_.getValue(A,{charLimit:this.data.maxLen}).charLimit;pe&&ce.length>pe&&(ce=ce.slice(0,pe));const ge={userValue:ce,formattedValue:null,valueOnFocus:""};this.data.multiLine?(D=document.createElement("textarea"),D.textContent=ce,this.data.doNotScroll&&(D.style.overflowY="hidden")):(D=document.createElement("input"),D.type="text",D.setAttribute("value",ce),this.data.doNotScroll&&(D.style.overflowX="hidden")),u.add(D),D.setAttribute("data-element-id",A),D.disabled=this.data.readOnly,D.name=this.data.fieldName,D.tabIndex=x,this._setRequired(D,this.data.required),pe&&(D.maxLength=pe),D.addEventListener("input",ze=>{_.setValue(A,{value:ze.target.value}),this.setPropertyOnSiblings(D,"value",ze.target.value,"value")}),D.addEventListener("resetform",ze=>{var Se;const Me=(Se=this.data.defaultFieldValue)!==null&&Se!==void 0?Se:"";D.value=ge.userValue=Me,ge.formattedValue=null});let ye=ze=>{const{formattedValue:Se}=ge;Se!=null&&(ze.target.value=Se),ze.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var F;D.addEventListener("focus",Se=>{ge.userValue&&(Se.target.value=ge.userValue),ge.valueOnFocus=Se.target.value}),D.addEventListener("updatefromsandbox",Se=>{const Me={value(Ae){var Re;ge.userValue=(Re=Ae.detail.value)!==null&&Re!==void 0?Re:"",_.setValue(A,{value:ge.userValue.toString()}),Ae.target.value=ge.userValue},formattedValue(Ae){const{formattedValue:Re}=Ae.detail;ge.formattedValue=Re,Re!=null&&Ae.target!==document.activeElement&&(Ae.target.value=Re),_.setValue(A,{formattedValue:Re})},selRange(Ae){Ae.target.setSelectionRange(...Ae.detail.selRange)},charLimit:Ae=>{var Re;const{charLimit:Be}=Ae.detail,{target:Ge}=Ae;if(Be===0){Ge.removeAttribute("maxLength");return}Ge.setAttribute("maxLength",Be);let Je=ge.userValue;!Je||Je.length<=Be||(Je=Je.slice(0,Be),Ge.value=ge.userValue=Je,_.setValue(A,{value:Je}),(Re=this.linkService.eventBus)===null||Re===void 0||Re.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Je,willCommit:!0,commitKey:1,selStart:Ge.selectionStart,selEnd:Ge.selectionEnd}}))}};this._dispatchEventFromSandbox(Me,Se)}),D.addEventListener("keydown",Se=>{var Me;let Ae=-1;if(Se.key==="Escape"?Ae=0:Se.key==="Enter"?Ae=2:Se.key==="Tab"&&(Ae=3),Ae===-1)return;const{value:Re}=Se.target;ge.valueOnFocus!==Re&&(ge.userValue=Re,(Me=this.linkService.eventBus)===null||Me===void 0||Me.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Re,willCommit:!0,commitKey:Ae,selStart:Se.target.selectionStart,selEnd:Se.target.selectionEnd}}))});const ze=ye;ye=null,D.addEventListener("blur",Se=>{const{value:Me}=Se.target;if(ge.userValue=Me,this._mouseState.isDown&&ge.valueOnFocus!==Me){var Ae;(Ae=this.linkService.eventBus)===null||Ae===void 0||Ae.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Me,willCommit:!0,commitKey:1,selStart:Se.target.selectionStart,selEnd:Se.target.selectionEnd}})}ze(Se)}),(F=this.data.actions)!==null&&F!==void 0&&F.Keystroke&&D.addEventListener("beforeinput",Se=>{var Me;const{data:Ae,target:Re}=Se,{value:Be,selectionStart:Ge,selectionEnd:Je}=Re;let Ye=Ge,We=Je;switch(Se.inputType){case"deleteWordBackward":{const ae=Be.substring(0,Ge).match(/\w*[^\w]*$/);ae&&(Ye-=ae[0].length);break}case"deleteWordForward":{const ae=Be.substring(Ge).match(/^[^\w]*\w*/);ae&&(We+=ae[0].length);break}case"deleteContentBackward":Ge===Je&&(Ye-=1);break;case"deleteContentForward":Ge===Je&&(We+=1);break}Se.preventDefault(),(Me=this.linkService.eventBus)===null||Me===void 0||Me.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Be,change:Ae||"",willCommit:!1,selStart:Ye,selEnd:We}})}),this._setEventListeners(D,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Se=>Se.target.value)}if(ye&&D.addEventListener("blur",ye),this.data.comb){const Se=(this.data.rect[2]-this.data.rect[0])/pe;D.classList.add("comb"),D.style.letterSpacing=`calc(${Se}px * var(--scale-factor) - 1ch)`}}else D=document.createElement("div"),D.textContent=this.data.fieldValue,D.style.verticalAlign="middle",D.style.display="table-cell";return this._setTextStyle(D),this._setBackgroundColor(D),this._setDefaultPropertiesFromJS(D),this.container.append(D),this.container}}class M extends T{constructor(_){super(_,{isRenderable:_.renderForms})}render(){const _=this.annotationStorage,A=this.data,D=A.id;let F=_.getValue(D,{value:A.exportValue===A.fieldValue}).value;typeof F=="string"&&(F=F!=="Off",_.setValue(D,{value:F})),this.container.className="buttonWidgetAnnotation checkBox";const G=document.createElement("input");return u.add(G),G.setAttribute("data-element-id",D),G.disabled=A.readOnly,this._setRequired(G,this.data.required),G.type="checkbox",G.name=A.fieldName,F&&G.setAttribute("checked",!0),G.setAttribute("exportValue",A.exportValue),G.tabIndex=x,G.addEventListener("change",ce=>{const{name:pe,checked:ge}=ce.target;for(const ye of this._getElementsByName(pe,D)){const ze=ge&&ye.exportValue===A.exportValue;ye.domElement&&(ye.domElement.checked=ze),_.setValue(ye.id,{value:ze})}_.setValue(D,{value:ge})}),G.addEventListener("resetform",ce=>{const pe=A.defaultFieldValue||"Off";ce.target.checked=pe===A.exportValue}),this.enableScripting&&this.hasJSActions&&(G.addEventListener("updatefromsandbox",ce=>{const pe={value(ge){ge.target.checked=ge.detail.value!=="Off",_.setValue(D,{value:ge.target.checked})}};this._dispatchEventFromSandbox(pe,ce)}),this._setEventListeners(G,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ce=>ce.target.checked)),this._setBackgroundColor(G),this._setDefaultPropertiesFromJS(G),this.container.append(G),this.container}}class C extends T{constructor(_){super(_,{isRenderable:_.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const _=this.annotationStorage,A=this.data,D=A.id;let F=_.getValue(D,{value:A.fieldValue===A.buttonValue}).value;typeof F=="string"&&(F=F!==A.buttonValue,_.setValue(D,{value:F}));const G=document.createElement("input");if(u.add(G),G.setAttribute("data-element-id",D),G.disabled=A.readOnly,this._setRequired(G,this.data.required),G.type="radio",G.name=A.fieldName,F&&G.setAttribute("checked",!0),G.tabIndex=x,G.addEventListener("change",ce=>{const{name:pe,checked:ge}=ce.target;for(const ye of this._getElementsByName(pe,D))_.setValue(ye.id,{value:!1});_.setValue(D,{value:ge})}),G.addEventListener("resetform",ce=>{const pe=A.defaultFieldValue;ce.target.checked=pe!=null&&pe===A.buttonValue}),this.enableScripting&&this.hasJSActions){const ce=A.buttonValue;G.addEventListener("updatefromsandbox",pe=>{const ge={value:ye=>{const ze=ce===ye.detail.value;for(const Se of this._getElementsByName(ye.target.name)){const Me=ze&&Se.id===D;Se.domElement&&(Se.domElement.checked=Me),_.setValue(Se.id,{value:Me})}}};this._dispatchEventFromSandbox(ge,pe)}),this._setEventListeners(G,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],pe=>pe.target.checked)}return this._setBackgroundColor(G),this._setDefaultPropertiesFromJS(G),this.container.append(G),this.container}}class b extends ${constructor(_){super(_,{ignoreBorder:_.data.hasAppearance})}render(){const _=super.render();_.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(_.title=this.data.alternativeText);const A=_.lastChild;return this.enableScripting&&this.hasJSActions&&A&&(this._setDefaultPropertiesFromJS(A),A.addEventListener("updatefromsandbox",D=>{this._dispatchEventFromSandbox({},D)})),_}}class w extends T{constructor(_){super(_,{isRenderable:_.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const _=this.annotationStorage,A=this.data.id,D=_.getValue(A,{value:this.data.fieldValue}),F=document.createElement("select");u.add(F),F.setAttribute("data-element-id",A),F.disabled=this.data.readOnly,this._setRequired(F,this.data.required),F.name=this.data.fieldName,F.tabIndex=x;let G=this.data.combo&&this.data.options.length>0;this.data.combo||(F.size=this.data.options.length,this.data.multiSelect&&(F.multiple=!0)),F.addEventListener("resetform",ye=>{const ze=this.data.defaultFieldValue;for(const Se of F.options)Se.selected=Se.value===ze});for(const ye of this.data.options){const ze=document.createElement("option");ze.textContent=ye.displayValue,ze.value=ye.exportValue,D.value.includes(ye.exportValue)&&(ze.setAttribute("selected",!0),G=!1),F.append(ze)}let ce=null;if(G){const ye=document.createElement("option");ye.value=" ",ye.setAttribute("hidden",!0),ye.setAttribute("selected",!0),F.prepend(ye),ce=()=>{ye.remove(),F.removeEventListener("input",ce),ce=null},F.addEventListener("input",ce)}const pe=(ye,ze)=>{const Se=ze?"value":"textContent",Me=ye.target.options;return ye.target.multiple?Array.prototype.filter.call(Me,Ae=>Ae.selected).map(Ae=>Ae[Se]):Me.selectedIndex===-1?null:Me[Me.selectedIndex][Se]},ge=ye=>{const ze=ye.target.options;return Array.prototype.map.call(ze,Se=>({displayValue:Se.textContent,exportValue:Se.value}))};return this.enableScripting&&this.hasJSActions?(F.addEventListener("updatefromsandbox",ye=>{const ze={value(Se){var Me;(Me=ce)===null||Me===void 0||Me();const Ae=Se.detail.value,Re=new Set(Array.isArray(Ae)?Ae:[Ae]);for(const Be of F.options)Be.selected=Re.has(Be.value);_.setValue(A,{value:pe(Se,!0)})},multipleSelection(Se){F.multiple=!0},remove(Se){const Me=F.options,Ae=Se.detail.remove;Me[Ae].selected=!1,F.remove(Ae),Me.length>0&&Array.prototype.findIndex.call(Me,Be=>Be.selected)===-1&&(Me[0].selected=!0),_.setValue(A,{value:pe(Se,!0),items:ge(Se)})},clear(Se){for(;F.length!==0;)F.remove(0);_.setValue(A,{value:null,items:[]})},insert(Se){const{index:Me,displayValue:Ae,exportValue:Re}=Se.detail.insert,Be=F.children[Me],Ge=document.createElement("option");Ge.textContent=Ae,Ge.value=Re,Be?Be.before(Ge):F.append(Ge),_.setValue(A,{value:pe(Se,!0),items:ge(Se)})},items(Se){const{items:Me}=Se.detail;for(;F.length!==0;)F.remove(0);for(const Ae of Me){const{displayValue:Re,exportValue:Be}=Ae,Ge=document.createElement("option");Ge.textContent=Re,Ge.value=Be,F.append(Ge)}F.options.length>0&&(F.options[0].selected=!0),_.setValue(A,{value:pe(Se,!0),items:ge(Se)})},indices(Se){const Me=new Set(Se.detail.indices);for(const Ae of Se.target.options)Ae.selected=Me.has(Ae.index);_.setValue(A,{value:pe(Se,!0)})},editable(Se){Se.target.disabled=!Se.detail.editable}};this._dispatchEventFromSandbox(ze,ye)}),F.addEventListener("input",ye=>{var ze;const Se=pe(ye,!0),Me=pe(ye,!1);_.setValue(A,{value:Se}),(ze=this.linkService.eventBus)===null||ze===void 0||ze.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Me,changeEx:Se,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(F,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],ye=>ye.target.checked)):F.addEventListener("input",function(ye){_.setValue(A,{value:pe(ye,!0)})}),this.data.combo&&this._setTextStyle(F),this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class I extends k{constructor(_){var A,D,F;const G=!!((A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G})}render(){const _=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",_.includes(this.data.parentType))return this.container;const A=`[data-annotation-id="${this.data.parentId}"]`,D=this.layer.querySelectorAll(A);if(D.length===0)return this.container;const F=new L({container:this.container,trigger:Array.from(D),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),G=this.page,ce=h.Util.normalizeRect([this.data.parentRect[0],G.view[3]-this.data.parentRect[1]+G.view[1],this.data.parentRect[2],G.view[3]-this.data.parentRect[3]+G.view[1]]),pe=ce[0]+this.data.parentRect[2]-this.data.parentRect[0],ge=ce[1],[ye,ze,Se,Me]=this.viewport.viewBox,Ae=Se-ye,Re=Me-ze;return this.container.style.left=`${100*(pe-ye)/Ae}%`,this.container.style.top=`${100*(ge-ze)/Re}%`,this.container.append(F.render()),this.container}}class L{constructor(_){this.container=_.container,this.trigger=_.trigger,this.color=_.color,this.titleObj=_.titleObj,this.modificationDate=_.modificationDate,this.contentsObj=_.contentsObj,this.richText=_.richText,this.hideWrapper=_.hideWrapper||!1,this.pinned=!1}render(){var _,A;const F=document.createElement("div");F.className="popupWrapper",this.hideElement=this.hideWrapper?F:this.container,this.hideElement.hidden=!0;const G=document.createElement("div");G.className="popup";const ce=this.color;if(ce){const ye=.7*(255-ce[0])+ce[0],ze=.7*(255-ce[1])+ce[1],Se=.7*(255-ce[2])+ce[2];G.style.backgroundColor=h.Util.makeHexColor(ye|0,ze|0,Se|0)}const pe=document.createElement("h1");pe.dir=this.titleObj.dir,pe.textContent=this.titleObj.str,G.append(pe);const ge=f.PDFDateString.toDateObject(this.modificationDate);if(ge){const ye=document.createElement("span");ye.className="popupDate",ye.textContent="{{date}}, {{time}}",ye.dataset.l10nId="annotation_date_string",ye.dataset.l10nArgs=JSON.stringify({date:ge.toLocaleDateString(),time:ge.toLocaleTimeString()}),G.append(ye)}if((_=this.richText)!==null&&_!==void 0&&_.str&&(!((A=this.contentsObj)!==null&&A!==void 0&&A.str)||this.contentsObj.str===this.richText.str))P.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:G}),G.lastChild.className="richText popupContent";else{const ye=this._formatContents(this.contentsObj);G.append(ye)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const ye of this.trigger)ye.addEventListener("click",this._toggle.bind(this)),ye.addEventListener("mouseover",this._show.bind(this,!1)),ye.addEventListener("mouseout",this._hide.bind(this,!1));return G.addEventListener("click",this._hide.bind(this,!0)),F.append(G),F}_formatContents(_){let{str:A,dir:D}=_;const F=document.createElement("p");F.className="popupContent",F.dir=D;const G=A.split(/(?:\r\n?|\n)/);for(let ce=0,pe=G.length;ce<pe;++ce){const ge=G[ce];F.append(document.createTextNode(ge)),ce<pe-1&&F.append(document.createElement("br"))}return F}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class V extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0}),this.textContent=_.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const _=document.createElement("div");_.className="annotationTextContent",_.setAttribute("role","comment");for(const A of this.textContent){const D=document.createElement("span");D.textContent=A,_.append(D)}this.container.append(_)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class H extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const _=this.data,{width:A,height:D}=v(_.rect),F=this.svgFactory.create(A,D,!0),G=this.svgFactory.createElement("svg:line");return G.setAttribute("x1",_.rect[2]-_.lineCoordinates[0]),G.setAttribute("y1",_.rect[3]-_.lineCoordinates[1]),G.setAttribute("x2",_.rect[2]-_.lineCoordinates[2]),G.setAttribute("y2",_.rect[3]-_.lineCoordinates[3]),G.setAttribute("stroke-width",_.borderStyle.width||1),G.setAttribute("stroke","transparent"),G.setAttribute("fill","transparent"),F.append(G),this.container.append(F),this._createPopup(G,_),this.container}}class le extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const _=this.data,{width:A,height:D}=v(_.rect),F=this.svgFactory.create(A,D,!0),G=_.borderStyle.width,ce=this.svgFactory.createElement("svg:rect");return ce.setAttribute("x",G/2),ce.setAttribute("y",G/2),ce.setAttribute("width",A-G),ce.setAttribute("height",D-G),ce.setAttribute("stroke-width",G||1),ce.setAttribute("stroke","transparent"),ce.setAttribute("fill","transparent"),F.append(ce),this.container.append(F),this._createPopup(ce,_),this.container}}class re extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const _=this.data,{width:A,height:D}=v(_.rect),F=this.svgFactory.create(A,D,!0),G=_.borderStyle.width,ce=this.svgFactory.createElement("svg:ellipse");return ce.setAttribute("cx",A/2),ce.setAttribute("cy",D/2),ce.setAttribute("rx",A/2-G/2),ce.setAttribute("ry",D/2-G/2),ce.setAttribute("stroke-width",G||1),ce.setAttribute("stroke","transparent"),ce.setAttribute("fill","transparent"),F.append(ce),this.container.append(F),this._createPopup(ce,_),this.container}}class de extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const _=this.data,{width:A,height:D}=v(_.rect),F=this.svgFactory.create(A,D,!0);let G=[];for(const pe of _.vertices){const ge=pe.x-_.rect[0],ye=_.rect[3]-pe.y;G.push(ge+","+ye)}G=G.join(" ");const ce=this.svgFactory.createElement(this.svgElementName);return ce.setAttribute("points",G),ce.setAttribute("stroke-width",_.borderStyle.width||1),ce.setAttribute("stroke","transparent"),ce.setAttribute("fill","transparent"),F.append(ce),this.container.append(F),this._createPopup(ce,_),this.container}}class ue extends de{constructor(_){super(_),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class Y extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Q extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const _=this.data,{width:A,height:D}=v(_.rect),F=this.svgFactory.create(A,D,!0);for(const G of _.inkLists){let ce=[];for(const ge of G){const ye=ge.x-_.rect[0],ze=_.rect[3]-ge.y;ce.push(`${ye},${ze}`)}ce=ce.join(" ");const pe=this.svgFactory.createElement(this.svgElementName);pe.setAttribute("points",ce),pe.setAttribute("stroke-width",_.borderStyle.width||1),pe.setAttribute("stroke","transparent"),pe.setAttribute("fill","transparent"),this._createPopup(pe,_),F.append(pe)}return this.container.append(F),this.container}}class J extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class W extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class Ce extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class _e extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class Le extends k{constructor(_){var A,D,F;const G=!!(_.data.hasPopup||(A=_.data.titleObj)!==null&&A!==void 0&&A.str||(D=_.data.contentsObj)!==null&&D!==void 0&&D.str||(F=_.data.richText)!==null&&F!==void 0&&F.str);super(_,{isRenderable:G,ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ie extends k{constructor(_){var A;super(_,{isRenderable:!0});const{filename:D,content:F}=this.data.file;this.filename=(0,f.getFilenameFromUrl)(D),this.content=F,(A=this.linkService.eventBus)===null||A===void 0||A.dispatch("fileattachmentannotation",{source:this,filename:D,content:F})}render(){var _,A;this.container.className="fileAttachmentAnnotation";const D=document.createElement("div");return D.className="popupTriggerArea",D.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((_=this.data.titleObj)!==null&&_!==void 0&&_.str||(A=this.data.contentsObj)!==null&&A!==void 0&&A.str||this.data.richText)&&this._createPopup(D,this.data),this.container.append(D),this.container}_download(){var _;(_=this.downloadManager)===null||_===void 0||_.openOrDownloadData(this.container,this.content,this.filename)}}class oe{static render(_){const{annotations:A,div:D,viewport:F,accessibilityManager:G}=_;y(this,oe,B).call(this,D,F);let ce=0;for(const pe of A){if(pe.annotationType!==h.AnnotationType.POPUP){const{width:ye,height:ze}=v(pe.rect);if(ye<=0||ze<=0)continue}const ge=O.create({data:pe,layer:D,page:_.page,viewport:F,linkService:_.linkService,downloadManager:_.downloadManager,imageResourcesPath:_.imageResourcesPath||"",renderForms:_.renderForms!==!1,svgFactory:new f.DOMSVGFactory,annotationStorage:_.annotationStorage||new p.AnnotationStorage,enableScripting:_.enableScripting,hasJSActions:_.hasJSActions,fieldObjects:_.fieldObjects,mouseState:_.mouseState||{isDown:!1}});if(ge.isRenderable){const ye=ge.render();if(pe.hidden&&(ye.style.visibility="hidden"),Array.isArray(ye))for(const ze of ye)ze.style.zIndex=ce++,y(oe,oe,Z).call(oe,ze,pe.id,D,G);else ye.style.zIndex=ce++,ge instanceof I?D.prepend(ye):y(oe,oe,Z).call(oe,ye,pe.id,D,G)}}y(this,oe,X).call(this,D,_.annotationCanvasMap)}static update(_){const{annotationCanvasMap:A,div:D,viewport:F}=_;y(this,oe,B).call(this,D,F),y(this,oe,X).call(this,D,A),D.hidden=!1}}d.AnnotationLayer=oe;function Z(ee,_,A,D){const F=ee.firstChild||ee;F.id=`${f.AnnotationPrefix}${_}`,A.append(ee),D==null||D.moveElementInDOM(A,ee,F,!1)}function B(ee,_){let{width:A,height:D,rotation:F}=_;const{style:G}=ee,ce=F%180!==0,pe=Math.floor(A)+"px",ge=Math.floor(D)+"px";G.width=ce?ge:pe,G.height=ce?pe:ge,ee.setAttribute("data-main-rotation",F)}function X(ee,_){if(!!_){for(const[A,D]of _){const F=ee.querySelector(`[data-annotation-id="${A}"]`);if(!F)continue;const{firstChild:G}=F;G?G.nodeName==="CANVAS"?G.replaceWith(D):G.before(D):F.append(D)}_.clear()}}},(o,d)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.ColorConverters=void 0;function a(f){return Math.floor(Math.max(0,Math.min(1,f))*255).toString(16).padStart(2,"0")}class h{static CMYK_G(p){let[z,P,y,g]=p;return["G",1-Math.min(1,.3*z+.59*y+.11*P+g)]}static G_CMYK(p){let[z]=p;return["CMYK",0,0,0,1-z]}static G_RGB(p){let[z]=p;return["RGB",z,z,z]}static G_HTML(p){let[z]=p;const P=a(z);return`#${P}${P}${P}`}static RGB_G(p){let[z,P,y]=p;return["G",.3*z+.59*P+.11*y]}static RGB_HTML(p){let[z,P,y]=p;const g=a(z),x=a(P),R=a(y);return`#${g}${x}${R}`}static T_HTML(){return"#00000000"}static CMYK_RGB(p){let[z,P,y,g]=p;return["RGB",1-Math.min(1,z+g),1-Math.min(1,y+g),1-Math.min(1,P+g)]}static CMYK_HTML(p){const z=this.CMYK_RGB(p).slice(1);return this.RGB_HTML(z)}static RGB_CMYK(p){let[z,P,y]=p;const g=1-z,x=1-P,R=1-y,u=Math.min(g,x,R);return["CMYK",g,x,R,u]}}d.ColorConverters=h},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.XfaLayer=void 0;var h=a(145);class f{static setupStorage(z,P,y,g,x){const R=g.getValue(P,{value:null});switch(y.name){case"textarea":if(R.value!==null&&(z.textContent=R.value),x==="print")break;z.addEventListener("input",u=>{g.setValue(P,{value:u.target.value})});break;case"input":if(y.attributes.type==="radio"||y.attributes.type==="checkbox"){if(R.value===y.attributes.xfaOn?z.setAttribute("checked",!0):R.value===y.attributes.xfaOff&&z.removeAttribute("checked"),x==="print")break;z.addEventListener("change",u=>{g.setValue(P,{value:u.target.checked?u.target.getAttribute("xfaOn"):u.target.getAttribute("xfaOff")})})}else{if(R.value!==null&&z.setAttribute("value",R.value),x==="print")break;z.addEventListener("input",u=>{g.setValue(P,{value:u.target.value})})}break;case"select":if(R.value!==null)for(const u of y.children)u.attributes.value===R.value&&(u.attributes.selected=!0);z.addEventListener("input",u=>{const v=u.target.options,O=v.selectedIndex===-1?"":v[v.selectedIndex].value;g.setValue(P,{value:O})});break}}static setAttributes(z){let{html:P,element:y,storage:g=null,intent:x,linkService:R}=z;const{attributes:u}=y,v=P instanceof HTMLAnchorElement;u.type==="radio"&&(u.name=`${u.name}-${x}`);for(const[O,k]of Object.entries(u))if(k!=null)switch(O){case"class":k.length&&P.setAttribute(O,k.join(" "));break;case"dataId":break;case"id":P.setAttribute("data-element-id",k);break;case"style":Object.assign(P.style,k);break;case"textContent":P.textContent=k;break;default:(!v||O!=="href"&&O!=="newWindow")&&P.setAttribute(O,k)}v&&R.addLinkAttributes(P,u.href,u.newWindow),g&&u.dataId&&this.setupStorage(P,u.dataId,y,g)}static render(z){const P=z.annotationStorage,y=z.linkService,g=z.xfaHtml,x=z.intent||"display",R=document.createElement(g.name);g.attributes&&this.setAttributes({html:R,element:g,intent:x,linkService:y});const u=[[g,-1,R]],v=z.div;if(v.append(R),z.viewport){const $=`matrix(${z.viewport.transform.join(",")})`;v.style.transform=$}x!=="richText"&&v.setAttribute("class","xfaLayer xfaFont");const O=[];for(;u.length>0;){var k;const[$,N,T]=u.at(-1);if(N+1===$.children.length){u.pop();continue}const E=$.children[++u.at(-1)[1]];if(E===null)continue;const{name:M}=E;if(M==="#text"){const b=document.createTextNode(E.value);O.push(b),T.append(b);continue}let C;if(E!=null&&(k=E.attributes)!==null&&k!==void 0&&k.xmlns?C=document.createElementNS(E.attributes.xmlns,M):C=document.createElement(M),T.append(C),E.attributes&&this.setAttributes({html:C,element:E,storage:P,intent:x,linkService:y}),E.children&&E.children.length>0)u.push([E,-1,C]);else if(E.value){const b=document.createTextNode(E.value);h.XfaText.shouldBuildText(M)&&O.push(b),C.append(b)}}for(const $ of v.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))$.setAttribute("readOnly",!0);return{textDivs:O}}static update(z){const P=`matrix(${z.viewport.transform.join(",")})`;z.div.style.transform=P,z.div.hidden=!1}}d.XfaLayer=f},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.TextLayerRenderTask=void 0,d.renderTextLayer=T;var h=a(1),f=a(133);const p=1e5,z=30,P=.8,y=new Map,g=/^\s+$/g;function x(E,M){const C=y.get(E);if(C)return C;M.save(),M.font=`${z}px ${E}`;const b=M.measureText("");let w=b.fontBoundingBoxAscent,I=Math.abs(b.fontBoundingBoxDescent);if(w){M.restore();const V=w/(w+I);return y.set(E,V),V}M.strokeStyle="red",M.clearRect(0,0,z,z),M.strokeText("g",0,0);let L=M.getImageData(0,0,z,z).data;I=0;for(let V=L.length-1-3;V>=0;V-=4)if(L[V]>0){I=Math.ceil(V/4/z);break}M.clearRect(0,0,z,z),M.strokeText("A",0,z),L=M.getImageData(0,0,z,z).data,w=0;for(let V=0,H=L.length;V<H;V+=4)if(L[V]>0){w=z-Math.floor(V/4/z);break}if(M.restore(),w){const V=w/(w+I);return y.set(E,V),V}return y.set(E,P),P}function R(E,M,C,b){const w=document.createElement("span"),I=E._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:M.str!=="",hasEOL:M.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:M.str!=="",hasEOL:M.hasEOL,fontSize:0};E._textDivs.push(w);const L=h.Util.transform(E._viewport.transform,M.transform);let V=Math.atan2(L[1],L[0]);const H=C[M.fontName];H.vertical&&(V+=Math.PI/2);const le=Math.hypot(L[2],L[3]),re=le*x(H.fontFamily,b);let de,ue;V===0?(de=L[4],ue=L[5]-re):(de=L[4]+re*Math.sin(V),ue=L[5]-re*Math.cos(V)),w.style.left=`${de}px`,w.style.top=`${ue}px`,w.style.fontSize=`${le}px`,w.style.fontFamily=H.fontFamily,I.fontSize=le,w.setAttribute("role","presentation"),w.textContent=M.str,w.dir=M.dir,E._fontInspectorEnabled&&(w.dataset.fontName=M.fontName),V!==0&&(I.angle=V*(180/Math.PI));let Y=!1;if(M.str.length>1||E._enhanceTextSelection&&g.test(M.str))Y=!0;else if(M.str!==" "&&M.transform[0]!==M.transform[3]){const Q=Math.abs(M.transform[0]),J=Math.abs(M.transform[3]);Q!==J&&Math.max(Q,J)/Math.min(Q,J)>1.5&&(Y=!0)}if(Y&&(H.vertical?I.canvasWidth=M.height*E._viewport.scale:I.canvasWidth=M.width*E._viewport.scale),E._textDivProperties.set(w,I),E._textContentStream&&E._layoutText(w),E._enhanceTextSelection&&I.hasText){let Q=1,J=0;V!==0&&(Q=Math.cos(V),J=Math.sin(V));const W=(H.vertical?M.height:M.width)*E._viewport.scale,Ce=le;let _e,Le;V!==0?(_e=[Q,J,-J,Q,de,ue],Le=h.Util.getAxialAlignedBoundingBox([0,0,W,Ce],_e)):Le=[de,ue,de+W,ue+Ce],E._bounds.push({left:Le[0],top:Le[1],right:Le[2],bottom:Le[3],div:w,size:[W,Ce],m:_e})}}function u(E){if(E._canceled)return;const M=E._textDivs,C=E._capability,b=M.length;if(b>p){E._renderingDone=!0,C.resolve();return}if(!E._textContentStream)for(let w=0;w<b;w++)E._layoutText(M[w]);E._renderingDone=!0,C.resolve()}function v(E,M,C){let b=0;for(let w=0;w<C;w++){const I=E[M++];I>0&&(b=b?Math.min(I,b):I)}return b}function O(E){const M=E._bounds,C=E._viewport,b=k(C.width,C.height,M);for(let w=0;w<b.length;w++){const I=M[w].div,L=E._textDivProperties.get(I);if(L.angle===0){L.paddingLeft=M[w].left-b[w].left,L.paddingTop=M[w].top-b[w].top,L.paddingRight=b[w].right-M[w].right,L.paddingBottom=b[w].bottom-M[w].bottom,E._textDivProperties.set(I,L);continue}const V=b[w],H=M[w],le=H.m,re=le[0],de=le[1],ue=[[0,0],[0,H.size[1]],[H.size[0],0],H.size],Y=new Float64Array(64);for(let J=0,W=ue.length;J<W;J++){const Ce=h.Util.applyTransform(ue[J],le);Y[J+0]=re&&(V.left-Ce[0])/re,Y[J+4]=de&&(V.top-Ce[1])/de,Y[J+8]=re&&(V.right-Ce[0])/re,Y[J+12]=de&&(V.bottom-Ce[1])/de,Y[J+16]=de&&(V.left-Ce[0])/-de,Y[J+20]=re&&(V.top-Ce[1])/re,Y[J+24]=de&&(V.right-Ce[0])/-de,Y[J+28]=re&&(V.bottom-Ce[1])/re,Y[J+32]=re&&(V.left-Ce[0])/-re,Y[J+36]=de&&(V.top-Ce[1])/-de,Y[J+40]=re&&(V.right-Ce[0])/-re,Y[J+44]=de&&(V.bottom-Ce[1])/-de,Y[J+48]=de&&(V.left-Ce[0])/de,Y[J+52]=re&&(V.top-Ce[1])/-re,Y[J+56]=de&&(V.right-Ce[0])/de,Y[J+60]=re&&(V.bottom-Ce[1])/-re}const Q=1+Math.min(Math.abs(re),Math.abs(de));L.paddingLeft=v(Y,32,16)/Q,L.paddingTop=v(Y,48,16)/Q,L.paddingRight=v(Y,0,16)/Q,L.paddingBottom=v(Y,16,16)/Q,E._textDivProperties.set(I,L)}}function k(E,M,C){const b=C.map(function(I,L){return{x1:I.left,y1:I.top,x2:I.right,y2:I.bottom,index:L,x1New:void 0,x2New:void 0}});$(E,b);const w=new Array(C.length);for(const I of b){const L=I.index;w[L]={left:I.x1New,top:0,right:I.x2New,bottom:0}}C.map(function(I,L){const V=w[L],H=b[L];H.x1=I.top,H.y1=E-V.right,H.x2=I.bottom,H.y2=E-V.left,H.index=L,H.x1New=void 0,H.x2New=void 0}),$(M,b);for(const I of b){const L=I.index;w[L].top=I.x1New,w[L].bottom=I.x2New}return w}function $(E,M){M.sort(function(w,I){return w.x1-I.x1||w.index-I.index});const b=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const w of M){let I=0;for(;I<b.length&&b[I].end<=w.y1;)I++;let L=b.length-1;for(;L>=0&&b[L].start>=w.y2;)L--;let V,H,le,re,de=-1/0;for(le=I;le<=L;le++){V=b[le],H=V.boundary;let Q;H.x2>w.x1?Q=H.index>w.index?H.x1New:w.x1:H.x2New===void 0?Q=(H.x2+w.x1)/2:Q=H.x2New,Q>de&&(de=Q)}for(w.x1New=de,le=I;le<=L;le++)V=b[le],H=V.boundary,H.x2New===void 0?H.x2>w.x1?H.index>w.index&&(H.x2New=H.x2):H.x2New=de:H.x2New>de&&(H.x2New=Math.max(de,H.x2));const ue=[];let Y=null;for(le=I;le<=L;le++){V=b[le],H=V.boundary;const Q=H.x2>w.x2?H:w;Y===Q?ue.at(-1).end=V.end:(ue.push({start:V.start,end:V.end,boundary:Q}),Y=Q)}for(b[I].start<w.y1&&(ue[0].start=w.y1,ue.unshift({start:b[I].start,end:w.y1,boundary:b[I].boundary})),w.y2<b[L].end&&(ue.at(-1).end=w.y2,ue.push({start:w.y2,end:b[L].end,boundary:b[L].boundary})),le=I;le<=L;le++){if(V=b[le],H=V.boundary,H.x2New!==void 0)continue;let Q=!1;for(re=I-1;!Q&&re>=0&&b[re].start>=H.y1;re--)Q=b[re].boundary===H;for(re=L+1;!Q&&re<b.length&&b[re].end<=H.y2;re++)Q=b[re].boundary===H;for(re=0;!Q&&re<ue.length;re++)Q=ue[re].boundary===H;Q||(H.x2New=de)}Array.prototype.splice.apply(b,[I,L-I+1,...ue])}for(const w of b){const I=w.boundary;I.x2New===void 0&&(I.x2New=Math.max(E,I.x2))}}class N{constructor(M){var C;let{textContent:b,textContentStream:w,container:I,viewport:L,textDivs:V,textContentItemsStr:H,enhanceTextSelection:le}=M;le&&(0,f.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."),this._textContent=b,this._textContentStream=w,this._container=I,this._document=I.ownerDocument,this._viewport=L,this._textDivs=V||[],this._textContentItemsStr=H||[],this._enhanceTextSelection=!!le,this._fontInspectorEnabled=!!((C=globalThis.FontInspector)!==null&&C!==void 0&&C.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,h.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._devicePixelRatio=globalThis.devicePixelRatio||1,this._capability.promise.finally(()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new h.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(M,C){for(let b=0,w=M.length;b<w;b++){if(M[b].str===void 0){if(M[b].type==="beginMarkedContentProps"||M[b].type==="beginMarkedContent"){const I=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),M[b].id!==null&&this._container.setAttribute("id",`${M[b].id}`),I.append(this._container)}else M[b].type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(M[b].str),R(this,M[b],C,this._layoutTextCtx)}}_layoutText(M){const C=this._textDivProperties.get(M);let b="";if(C.canvasWidth!==0&&C.hasText){const{fontFamily:w}=M.style,{fontSize:I}=C;(I!==this._layoutTextLastFontSize||w!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${I*this._devicePixelRatio}px ${w}`,this._layoutTextLastFontSize=I,this._layoutTextLastFontFamily=w);const{width:L}=this._layoutTextCtx.measureText(M.textContent);if(L>0){const V=this._devicePixelRatio*C.canvasWidth/L;this._enhanceTextSelection&&(C.scale=V),b=`scaleX(${V})`}}if(C.angle!==0&&(b=`rotate(${C.angle}deg) ${b}`),b.length>0&&(this._enhanceTextSelection&&(C.originalTransform=b),M.style.transform=b),C.hasText&&this._container.append(M),C.hasEOL){const w=document.createElement("br");w.setAttribute("role","presentation"),this._container.append(w)}}_render(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const C=(0,h.createPromiseCapability)();let b=Object.create(null);const w=this._document.createElement("canvas");if(w.height=w.width=z,this._layoutTextCtx=w.getContext("2d",{alpha:!1}),this._textContent){const I=this._textContent.items,L=this._textContent.styles;this._processItems(I,L),C.resolve()}else if(this._textContentStream){const I=()=>{this._reader.read().then(L=>{let{value:V,done:H}=L;if(H){C.resolve();return}Object.assign(b,V.styles),this._processItems(V.items,b),I()},C.reject)};this._reader=this._textContentStream.getReader(),I()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');C.promise.then(()=>{b=null,M?this._renderTimer=setTimeout(()=>{u(this),this._renderTimer=null},M):u(this)},this._capability.reject)}expandTextDivs(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._enhanceTextSelection||!this._renderingDone)return;this._bounds!==null&&(O(this),this._bounds=null);const C=[],b=[];for(let w=0,I=this._textDivs.length;w<I;w++){const L=this._textDivs[w],V=this._textDivProperties.get(L);!V.hasText||(M?(C.length=0,b.length=0,V.originalTransform&&C.push(V.originalTransform),V.paddingTop>0?(b.push(`${V.paddingTop}px`),C.push(`translateY(${-V.paddingTop}px)`)):b.push(0),V.paddingRight>0?b.push(`${V.paddingRight/V.scale}px`):b.push(0),V.paddingBottom>0?b.push(`${V.paddingBottom}px`):b.push(0),V.paddingLeft>0?(b.push(`${V.paddingLeft/V.scale}px`),C.push(`translateX(${-V.paddingLeft/V.scale}px)`)):b.push(0),L.style.padding=b.join(" "),C.length&&(L.style.transform=C.join(" "))):(L.style.padding=null,L.style.transform=V.originalTransform))}}}d.TextLayerRenderTask=N;function T(E){const M=new N({textContent:E.textContent,textContentStream:E.textContentStream,container:E.container,viewport:E.viewport,textDivs:E.textDivs,textContentItemsStr:E.textContentItemsStr,enhanceTextSelection:E.enhanceTextSelection});return M._render(E.timeout),M}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.SVGGraphics=void 0;var h=a(133),f=a(1),p=a(3);let z=class{constructor(){(0,f.unreachable)("Not implemented: SVGGraphics")}};d.SVGGraphics=z;{let k=function(C){let b=[];const w=[];for(const I of C){if(I.fn==="save"){b.push({fnId:92,fn:"group",items:[]}),w.push(b),b=b.at(-1).items;continue}I.fn==="restore"?b=w.pop():b.push(I)}return b},$=function(C){if(Number.isInteger(C))return C.toString();const b=C.toFixed(10);let w=b.length-1;if(b[w]!=="0")return b;do w--;while(b[w]==="0");return b.substring(0,b[w]==="."?w:w+1)},N=function(C){if(C[4]===0&&C[5]===0){if(C[1]===0&&C[2]===0)return C[0]===1&&C[3]===1?"":`scale(${$(C[0])} ${$(C[3])})`;if(C[0]===C[3]&&C[1]===-C[2]){const b=Math.acos(C[0])*180/Math.PI;return`rotate(${$(b)})`}}else if(C[0]===1&&C[1]===0&&C[2]===0&&C[3]===1)return`translate(${$(C[4])} ${$(C[5])})`;return`matrix(${$(C[0])} ${$(C[1])} ${$(C[2])} ${$(C[3])} ${$(C[4])} ${$(C[5])})`};const P={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},y="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/1999/xlink",x=["butt","round","square"],R=["miter","round","bevel"],u=function(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(URL.createObjectURL&&typeof Blob<"u"&&!w)return URL.createObjectURL(new Blob([C],{type:b}));const I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let L=`data:${b};base64,`;for(let V=0,H=C.length;V<H;V+=3){const le=C[V]&255,re=C[V+1]&255,de=C[V+2]&255,ue=le>>2,Y=(le&3)<<4|re>>4,Q=V+1<H?(re&15)<<2|de>>6:64,J=V+2<H?de&63:64;L+=I[ue]+I[Y]+I[Q]+I[J]}return L},v=function(){const C=new Uint8Array([137,80,78,71,13,10,26,10]),b=12,w=new Int32Array(256);for(let de=0;de<256;de++){let ue=de;for(let Y=0;Y<8;Y++)ue&1?ue=3988292384^ue>>1&2147483647:ue=ue>>1&2147483647;w[de]=ue}function I(de,ue,Y){let Q=-1;for(let J=ue;J<Y;J++){const W=(Q^de[J])&255,Ce=w[W];Q=Q>>>8^Ce}return Q^-1}function L(de,ue,Y,Q){let J=Q;const W=ue.length;Y[J]=W>>24&255,Y[J+1]=W>>16&255,Y[J+2]=W>>8&255,Y[J+3]=W&255,J+=4,Y[J]=de.charCodeAt(0)&255,Y[J+1]=de.charCodeAt(1)&255,Y[J+2]=de.charCodeAt(2)&255,Y[J+3]=de.charCodeAt(3)&255,J+=4,Y.set(ue,J),J+=ue.length;const Ce=I(Y,Q+4,J);Y[J]=Ce>>24&255,Y[J+1]=Ce>>16&255,Y[J+2]=Ce>>8&255,Y[J+3]=Ce&255}function V(de,ue,Y){let Q=1,J=0;for(let W=ue;W<Y;++W)Q=(Q+(de[W]&255))%65521,J=(J+Q)%65521;return J<<16|Q}function H(de){if(!p.isNodeJS)return le(de);try{let ue;parseInt(process.versions.node)>=8?ue=de:ue=Buffer.from(de);const Y=require("zlib").deflateSync(ue,{level:9});return Y instanceof Uint8Array?Y:new Uint8Array(Y)}catch(ue){(0,f.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+ue)}return le(de)}function le(de){let ue=de.length;const Y=65535,Q=Math.ceil(ue/Y),J=new Uint8Array(2+ue+Q*5+4);let W=0;J[W++]=120,J[W++]=156;let Ce=0;for(;ue>Y;)J[W++]=0,J[W++]=255,J[W++]=255,J[W++]=0,J[W++]=0,J.set(de.subarray(Ce,Ce+Y),W),W+=Y,Ce+=Y,ue-=Y;J[W++]=1,J[W++]=ue&255,J[W++]=ue>>8&255,J[W++]=~ue&65535&255,J[W++]=(~ue&65535)>>8&255,J.set(de.subarray(Ce),W),W+=de.length-Ce;const _e=V(de,0,de.length);return J[W++]=_e>>24&255,J[W++]=_e>>16&255,J[W++]=_e>>8&255,J[W++]=_e&255,J}function re(de,ue,Y,Q){const J=de.width,W=de.height;let Ce,_e,Le;const Ie=de.data;switch(ue){case f.ImageKind.GRAYSCALE_1BPP:_e=0,Ce=1,Le=J+7>>3;break;case f.ImageKind.RGB_24BPP:_e=2,Ce=8,Le=J*3;break;case f.ImageKind.RGBA_32BPP:_e=6,Ce=8,Le=J*4;break;default:throw new Error("invalid format")}const oe=new Uint8Array((1+Le)*W);let Z=0,B=0;for(let F=0;F<W;++F)oe[Z++]=0,oe.set(Ie.subarray(B,B+Le),Z),B+=Le,Z+=Le;if(ue===f.ImageKind.GRAYSCALE_1BPP&&Q){Z=0;for(let F=0;F<W;F++){Z++;for(let G=0;G<Le;G++)oe[Z++]^=255}}const X=new Uint8Array([J>>24&255,J>>16&255,J>>8&255,J&255,W>>24&255,W>>16&255,W>>8&255,W&255,Ce,_e,0,0,0]),ee=H(oe),_=C.length+b*3+X.length+ee.length,A=new Uint8Array(_);let D=0;return A.set(C,D),D+=C.length,L("IHDR",X,A,D),D+=b+X.length,L("IDATA",ee,A,D),D+=b+ee.length,L("IEND",new Uint8Array(0),A,D),u(A,"image/png",Y)}return function(ue,Y,Q){const J=ue.kind===void 0?f.ImageKind.GRAYSCALE_1BPP:ue.kind;return re(ue,J,Y,Q)}}();class O{constructor(){this.fontSizeScale=1,this.fontWeight=P.fontWeight,this.fontSize=0,this.textMatrix=f.IDENTITY_MATRIX,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=f.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=P.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(b,w){this.x=b,this.y=w}}let T=0,E=0,M=0;d.SVGGraphics=z=class{constructor(C,b){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(0,h.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new h.DOMSVGFactory,this.current=new O,this.transformMatrix=f.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=C,this.objs=b,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!w,this._operatorIdMapping=[];for(const I in f.OPS)this._operatorIdMapping[f.OPS[I]]=I}save(){this.transformStack.push(this.transformMatrix);const C=this.current;this.extraStack.push(C),this.current=C.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(C){this.save(),this.executeOpTree(C),this.restore()}loadDependencies(C){const b=C.fnArray,w=C.argsArray;for(let I=0,L=b.length;I<L;I++)if(b[I]===f.OPS.dependency)for(const V of w[I]){const H=V.startsWith("g_")?this.commonObjs:this.objs,le=new Promise(re=>{H.get(V,re)});this.current.dependencies.push(le)}return Promise.all(this.current.dependencies)}transform(C,b,w,I,L,V){const H=[C,b,w,I,L,V];this.transformMatrix=f.Util.transform(this.transformMatrix,H),this.tgrp=null}getSVG(C,b){this.viewport=b;const w=this._initialize(b);return this.loadDependencies(C).then(()=>(this.transformMatrix=f.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(C)),w))}convertOpList(C){const b=this._operatorIdMapping,w=C.argsArray,I=C.fnArray,L=[];for(let V=0,H=I.length;V<H;V++){const le=I[V];L.push({fnId:le,fn:b[le],args:w[V]})}return k(L)}executeOpTree(C){for(const b of C){const w=b.fn,I=b.fnId,L=b.args;switch(I|0){case f.OPS.beginText:this.beginText();break;case f.OPS.dependency:break;case f.OPS.setLeading:this.setLeading(L);break;case f.OPS.setLeadingMoveText:this.setLeadingMoveText(L[0],L[1]);break;case f.OPS.setFont:this.setFont(L);break;case f.OPS.showText:this.showText(L[0]);break;case f.OPS.showSpacedText:this.showText(L[0]);break;case f.OPS.endText:this.endText();break;case f.OPS.moveText:this.moveText(L[0],L[1]);break;case f.OPS.setCharSpacing:this.setCharSpacing(L[0]);break;case f.OPS.setWordSpacing:this.setWordSpacing(L[0]);break;case f.OPS.setHScale:this.setHScale(L[0]);break;case f.OPS.setTextMatrix:this.setTextMatrix(L[0],L[1],L[2],L[3],L[4],L[5]);break;case f.OPS.setTextRise:this.setTextRise(L[0]);break;case f.OPS.setTextRenderingMode:this.setTextRenderingMode(L[0]);break;case f.OPS.setLineWidth:this.setLineWidth(L[0]);break;case f.OPS.setLineJoin:this.setLineJoin(L[0]);break;case f.OPS.setLineCap:this.setLineCap(L[0]);break;case f.OPS.setMiterLimit:this.setMiterLimit(L[0]);break;case f.OPS.setFillRGBColor:this.setFillRGBColor(L[0],L[1],L[2]);break;case f.OPS.setStrokeRGBColor:this.setStrokeRGBColor(L[0],L[1],L[2]);break;case f.OPS.setStrokeColorN:this.setStrokeColorN(L);break;case f.OPS.setFillColorN:this.setFillColorN(L);break;case f.OPS.shadingFill:this.shadingFill(L[0]);break;case f.OPS.setDash:this.setDash(L[0],L[1]);break;case f.OPS.setRenderingIntent:this.setRenderingIntent(L[0]);break;case f.OPS.setFlatness:this.setFlatness(L[0]);break;case f.OPS.setGState:this.setGState(L[0]);break;case f.OPS.fill:this.fill();break;case f.OPS.eoFill:this.eoFill();break;case f.OPS.stroke:this.stroke();break;case f.OPS.fillStroke:this.fillStroke();break;case f.OPS.eoFillStroke:this.eoFillStroke();break;case f.OPS.clip:this.clip("nonzero");break;case f.OPS.eoClip:this.clip("evenodd");break;case f.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case f.OPS.paintImageXObject:this.paintImageXObject(L[0]);break;case f.OPS.paintInlineImageXObject:this.paintInlineImageXObject(L[0]);break;case f.OPS.paintImageMaskXObject:this.paintImageMaskXObject(L[0]);break;case f.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(L[0],L[1]);break;case f.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case f.OPS.closePath:this.closePath();break;case f.OPS.closeStroke:this.closeStroke();break;case f.OPS.closeFillStroke:this.closeFillStroke();break;case f.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case f.OPS.nextLine:this.nextLine();break;case f.OPS.transform:this.transform(L[0],L[1],L[2],L[3],L[4],L[5]);break;case f.OPS.constructPath:this.constructPath(L[0],L[1]);break;case f.OPS.endPath:this.endPath();break;case 92:this.group(b.items);break;default:(0,f.warn)(`Unimplemented operator ${w}`);break}}}setWordSpacing(C){this.current.wordSpacing=C}setCharSpacing(C){this.current.charSpacing=C}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(C,b,w,I,L,V){const H=this.current;H.textMatrix=H.lineMatrix=[C,b,w,I,L,V],H.textMatrixScale=Math.hypot(C,b),H.x=H.lineX=0,H.y=H.lineY=0,H.xcoords=[],H.ycoords=[],H.tspan=this.svgFactory.createElement("svg:tspan"),H.tspan.setAttributeNS(null,"font-family",H.fontFamily),H.tspan.setAttributeNS(null,"font-size",`${$(H.fontSize)}px`),H.tspan.setAttributeNS(null,"y",$(-H.y)),H.txtElement=this.svgFactory.createElement("svg:text"),H.txtElement.append(H.tspan)}beginText(){const C=this.current;C.x=C.lineX=0,C.y=C.lineY=0,C.textMatrix=f.IDENTITY_MATRIX,C.lineMatrix=f.IDENTITY_MATRIX,C.textMatrixScale=1,C.tspan=this.svgFactory.createElement("svg:tspan"),C.txtElement=this.svgFactory.createElement("svg:text"),C.txtgrp=this.svgFactory.createElement("svg:g"),C.xcoords=[],C.ycoords=[]}moveText(C,b){const w=this.current;w.x=w.lineX+=C,w.y=w.lineY+=b,w.xcoords=[],w.ycoords=[],w.tspan=this.svgFactory.createElement("svg:tspan"),w.tspan.setAttributeNS(null,"font-family",w.fontFamily),w.tspan.setAttributeNS(null,"font-size",`${$(w.fontSize)}px`),w.tspan.setAttributeNS(null,"y",$(-w.y))}showText(C){const b=this.current,w=b.font,I=b.fontSize;if(I===0)return;const L=b.fontSizeScale,V=b.charSpacing,H=b.wordSpacing,le=b.fontDirection,re=b.textHScale*le,de=w.vertical,ue=de?1:-1,Y=w.defaultVMetrics,Q=I*b.fontMatrix[0];let J=0;for(const _e of C){if(_e===null){J+=le*H;continue}else if(typeof _e=="number"){J+=ue*_e*I/1e3;continue}const Le=(_e.isSpace?H:0)+V,Ie=_e.fontChar;let oe,Z,B=_e.width;if(de){let ee;const _=_e.vmetric||Y;ee=_e.vmetric?_[1]:B*.5,ee=-ee*Q;const A=_[2]*Q;B=_?-_[0]:B,oe=ee/L,Z=(J+A)/L}else oe=J/L,Z=0;(_e.isInFont||w.missingFile)&&(b.xcoords.push(b.x+oe),de&&b.ycoords.push(-b.y+Z),b.tspan.textContent+=Ie);let X;de?X=B*Q-Le*le:X=B*Q+Le*le,J+=X}b.tspan.setAttributeNS(null,"x",b.xcoords.map($).join(" ")),de?b.tspan.setAttributeNS(null,"y",b.ycoords.map($).join(" ")):b.tspan.setAttributeNS(null,"y",$(-b.y)),de?b.y-=J:b.x+=J*re,b.tspan.setAttributeNS(null,"font-family",b.fontFamily),b.tspan.setAttributeNS(null,"font-size",`${$(b.fontSize)}px`),b.fontStyle!==P.fontStyle&&b.tspan.setAttributeNS(null,"font-style",b.fontStyle),b.fontWeight!==P.fontWeight&&b.tspan.setAttributeNS(null,"font-weight",b.fontWeight);const W=b.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;if(W===f.TextRenderingMode.FILL||W===f.TextRenderingMode.FILL_STROKE?(b.fillColor!==P.fillColor&&b.tspan.setAttributeNS(null,"fill",b.fillColor),b.fillAlpha<1&&b.tspan.setAttributeNS(null,"fill-opacity",b.fillAlpha)):b.textRenderingMode===f.TextRenderingMode.ADD_TO_PATH?b.tspan.setAttributeNS(null,"fill","transparent"):b.tspan.setAttributeNS(null,"fill","none"),W===f.TextRenderingMode.STROKE||W===f.TextRenderingMode.FILL_STROKE){const _e=1/(b.textMatrixScale||1);this._setStrokeAttributes(b.tspan,_e)}let Ce=b.textMatrix;b.textRise!==0&&(Ce=Ce.slice(),Ce[5]+=b.textRise),b.txtElement.setAttributeNS(null,"transform",`${N(Ce)} scale(${$(re)}, -1)`),b.txtElement.setAttributeNS(y,"xml:space","preserve"),b.txtElement.append(b.tspan),b.txtgrp.append(b.txtElement),this._ensureTransformGroup().append(b.txtElement)}setLeadingMoveText(C,b){this.setLeading(-b),this.moveText(C,b)}addFontStyle(C){if(!C.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const b=u(C.data,C.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${C.loadedName}"; src: url(${b}); }
|
|
501
|
-
`}setFont(C){const b=this.current,w=this.commonObjs.get(C[0]);let I=C[1];b.font=w,this.embedFonts&&!w.missingFile&&!this.embeddedFonts[w.loadedName]&&(this.addFontStyle(w),this.embeddedFonts[w.loadedName]=w),b.fontMatrix=w.fontMatrix||f.FONT_IDENTITY_MATRIX;let L="normal";w.black?L="900":w.bold&&(L="bold");const V=w.italic?"italic":"normal";I<0?(I=-I,b.fontDirection=-1):b.fontDirection=1,b.fontSize=I,b.fontFamily=w.loadedName,b.fontWeight=L,b.fontStyle=V,b.tspan=this.svgFactory.createElement("svg:tspan"),b.tspan.setAttributeNS(null,"y",$(-b.y)),b.xcoords=[],b.ycoords=[]}endText(){var C;const b=this.current;b.textRenderingMode&f.TextRenderingMode.ADD_TO_PATH_FLAG&&(C=b.txtElement)!==null&&C!==void 0&&C.hasChildNodes()&&(b.element=b.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(C){C>0&&(this.current.lineWidth=C)}setLineCap(C){this.current.lineCap=x[C]}setLineJoin(C){this.current.lineJoin=R[C]}setMiterLimit(C){this.current.miterLimit=C}setStrokeAlpha(C){this.current.strokeAlpha=C}setStrokeRGBColor(C,b,w){this.current.strokeColor=f.Util.makeHexColor(C,b,w)}setFillAlpha(C){this.current.fillAlpha=C}setFillRGBColor(C,b,w){this.current.fillColor=f.Util.makeHexColor(C,b,w),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(C){this.current.strokeColor=this._makeColorN_Pattern(C)}setFillColorN(C){this.current.fillColor=this._makeColorN_Pattern(C)}shadingFill(C){const b=this.viewport.width,w=this.viewport.height,I=f.Util.inverseTransform(this.transformMatrix),L=f.Util.applyTransform([0,0],I),V=f.Util.applyTransform([0,w],I),H=f.Util.applyTransform([b,0],I),le=f.Util.applyTransform([b,w],I),re=Math.min(L[0],V[0],H[0],le[0]),de=Math.min(L[1],V[1],H[1],le[1]),ue=Math.max(L[0],V[0],H[0],le[0]),Y=Math.max(L[1],V[1],H[1],le[1]),Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x",re),Q.setAttributeNS(null,"y",de),Q.setAttributeNS(null,"width",ue-re),Q.setAttributeNS(null,"height",Y-de),Q.setAttributeNS(null,"fill",this._makeShadingPattern(C)),this.current.fillAlpha<1&&Q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Q)}_makeColorN_Pattern(C){return C[0]==="TilingPattern"?this._makeTilingPattern(C):this._makeShadingPattern(C)}_makeTilingPattern(C){const b=C[1],w=C[2],I=C[3]||f.IDENTITY_MATRIX,[L,V,H,le]=C[4],re=C[5],de=C[6],ue=C[7],Y=`shading${M++}`,[Q,J,W,Ce]=f.Util.normalizeRect([...f.Util.applyTransform([L,V],I),...f.Util.applyTransform([H,le],I)]),[_e,Le]=f.Util.singularValueDecompose2dScale(I),Ie=re*_e,oe=de*Le,Z=this.svgFactory.createElement("svg:pattern");Z.setAttributeNS(null,"id",Y),Z.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Z.setAttributeNS(null,"width",Ie),Z.setAttributeNS(null,"height",oe),Z.setAttributeNS(null,"x",`${Q}`),Z.setAttributeNS(null,"y",`${J}`);const B=this.svg,X=this.transformMatrix,ee=this.current.fillColor,_=this.current.strokeColor,A=this.svgFactory.create(W-Q,Ce-J);if(this.svg=A,this.transformMatrix=I,ue===2){const D=f.Util.makeHexColor(...b);this.current.fillColor=D,this.current.strokeColor=D}return this.executeOpTree(this.convertOpList(w)),this.svg=B,this.transformMatrix=X,this.current.fillColor=ee,this.current.strokeColor=_,Z.append(A.childNodes[0]),this.defs.append(Z),`url(#${Y})`}_makeShadingPattern(C){switch(typeof C=="string"&&(C=this.objs.get(C)),C[0]){case"RadialAxial":const b=`shading${M++}`,w=C[3];let I;switch(C[1]){case"axial":const L=C[4],V=C[5];I=this.svgFactory.createElement("svg:linearGradient"),I.setAttributeNS(null,"id",b),I.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),I.setAttributeNS(null,"x1",L[0]),I.setAttributeNS(null,"y1",L[1]),I.setAttributeNS(null,"x2",V[0]),I.setAttributeNS(null,"y2",V[1]);break;case"radial":const H=C[4],le=C[5],re=C[6],de=C[7];I=this.svgFactory.createElement("svg:radialGradient"),I.setAttributeNS(null,"id",b),I.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),I.setAttributeNS(null,"cx",le[0]),I.setAttributeNS(null,"cy",le[1]),I.setAttributeNS(null,"r",de),I.setAttributeNS(null,"fx",H[0]),I.setAttributeNS(null,"fy",H[1]),I.setAttributeNS(null,"fr",re);break;default:throw new Error(`Unknown RadialAxial type: ${C[1]}`)}for(const L of w){const V=this.svgFactory.createElement("svg:stop");V.setAttributeNS(null,"offset",L[0]),V.setAttributeNS(null,"stop-color",L[1]),I.append(V)}return this.defs.append(I),`url(#${b})`;case"Mesh":return(0,f.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${C[0]}`)}}setDash(C,b){this.current.dashArray=C,this.current.dashPhase=b}constructPath(C,b){const w=this.current;let I=w.x,L=w.y,V=[],H=0;for(const le of C)switch(le|0){case f.OPS.rectangle:I=b[H++],L=b[H++];const re=b[H++],de=b[H++],ue=I+re,Y=L+de;V.push("M",$(I),$(L),"L",$(ue),$(L),"L",$(ue),$(Y),"L",$(I),$(Y),"Z");break;case f.OPS.moveTo:I=b[H++],L=b[H++],V.push("M",$(I),$(L));break;case f.OPS.lineTo:I=b[H++],L=b[H++],V.push("L",$(I),$(L));break;case f.OPS.curveTo:I=b[H+4],L=b[H+5],V.push("C",$(b[H]),$(b[H+1]),$(b[H+2]),$(b[H+3]),$(I),$(L)),H+=6;break;case f.OPS.curveTo2:V.push("C",$(I),$(L),$(b[H]),$(b[H+1]),$(b[H+2]),$(b[H+3])),I=b[H+2],L=b[H+3],H+=4;break;case f.OPS.curveTo3:I=b[H+2],L=b[H+3],V.push("C",$(b[H]),$(b[H+1]),$(I),$(L),$(I),$(L)),H+=4;break;case f.OPS.closePath:V.push("Z");break}V=V.join(" "),w.path&&C.length>0&&C[0]!==f.OPS.rectangle&&C[0]!==f.OPS.moveTo?V=w.path.getAttributeNS(null,"d")+V:(w.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(w.path)),w.path.setAttributeNS(null,"d",V),w.path.setAttributeNS(null,"fill","none"),w.element=w.path,w.setCurrentPoint(I,L)}endPath(){const C=this.current;if(C.path=null,!this.pendingClip)return;if(!C.element){this.pendingClip=null;return}const b=`clippath${T++}`,w=this.svgFactory.createElement("svg:clipPath");w.setAttributeNS(null,"id",b),w.setAttributeNS(null,"transform",N(this.transformMatrix));const I=C.element.cloneNode(!0);if(this.pendingClip==="evenodd"?I.setAttributeNS(null,"clip-rule","evenodd"):I.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,w.append(I),this.defs.append(w),C.activeClipUrl){C.clipGroup=null;for(const L of this.extraStack)L.clipGroup=null;w.setAttributeNS(null,"clip-path",C.activeClipUrl)}C.activeClipUrl=`url(#${b})`,this.tgrp=null}clip(C){this.pendingClip=C}closePath(){const C=this.current;if(C.path){const b=`${C.path.getAttributeNS(null,"d")}Z`;C.path.setAttributeNS(null,"d",b)}}setLeading(C){this.current.leading=-C}setTextRise(C){this.current.textRise=C}setTextRenderingMode(C){this.current.textRenderingMode=C}setHScale(C){this.current.textHScale=C/100}setRenderingIntent(C){}setFlatness(C){}setGState(C){for(const[b,w]of C)switch(b){case"LW":this.setLineWidth(w);break;case"LC":this.setLineCap(w);break;case"LJ":this.setLineJoin(w);break;case"ML":this.setMiterLimit(w);break;case"D":this.setDash(w[0],w[1]);break;case"RI":this.setRenderingIntent(w);break;case"FL":this.setFlatness(w);break;case"Font":this.setFont(w);break;case"CA":this.setStrokeAlpha(w);break;case"ca":this.setFillAlpha(w);break;default:(0,f.warn)(`Unimplemented graphic state operator ${b}`);break}}fill(){const C=this.current;C.element&&(C.element.setAttributeNS(null,"fill",C.fillColor),C.element.setAttributeNS(null,"fill-opacity",C.fillAlpha),this.endPath())}stroke(){const C=this.current;C.element&&(this._setStrokeAttributes(C.element),C.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=this.current;let I=w.dashArray;b!==1&&I.length>0&&(I=I.map(function(L){return b*L})),C.setAttributeNS(null,"stroke",w.strokeColor),C.setAttributeNS(null,"stroke-opacity",w.strokeAlpha),C.setAttributeNS(null,"stroke-miterlimit",$(w.miterLimit)),C.setAttributeNS(null,"stroke-linecap",w.lineCap),C.setAttributeNS(null,"stroke-linejoin",w.lineJoin),C.setAttributeNS(null,"stroke-width",$(b*w.lineWidth)+"px"),C.setAttributeNS(null,"stroke-dasharray",I.map($).join(" ")),C.setAttributeNS(null,"stroke-dashoffset",$(b*w.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const C=this.svgFactory.createElement("svg:rect");C.setAttributeNS(null,"x","0"),C.setAttributeNS(null,"y","0"),C.setAttributeNS(null,"width","1px"),C.setAttributeNS(null,"height","1px"),C.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(C)}paintImageXObject(C){const b=C.startsWith("g_")?this.commonObjs.get(C):this.objs.get(C);if(!b){(0,f.warn)(`Dependent image with object ID ${C} is not ready yet`);return}this.paintInlineImageXObject(b)}paintInlineImageXObject(C,b){const w=C.width,I=C.height,L=v(C,this.forceDataSchema,!!b),V=this.svgFactory.createElement("svg:rect");V.setAttributeNS(null,"x","0"),V.setAttributeNS(null,"y","0"),V.setAttributeNS(null,"width",$(w)),V.setAttributeNS(null,"height",$(I)),this.current.element=V,this.clip("nonzero");const H=this.svgFactory.createElement("svg:image");H.setAttributeNS(g,"xlink:href",L),H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y",$(-I)),H.setAttributeNS(null,"width",$(w)+"px"),H.setAttributeNS(null,"height",$(I)+"px"),H.setAttributeNS(null,"transform",`scale(${$(1/w)} ${$(-1/I)})`),b?b.append(H):this._ensureTransformGroup().append(H)}paintImageMaskXObject(C){const b=this.current,w=C.width,I=C.height,L=b.fillColor;b.maskId=`mask${E++}`;const V=this.svgFactory.createElement("svg:mask");V.setAttributeNS(null,"id",b.maskId);const H=this.svgFactory.createElement("svg:rect");H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y","0"),H.setAttributeNS(null,"width",$(w)),H.setAttributeNS(null,"height",$(I)),H.setAttributeNS(null,"fill",L),H.setAttributeNS(null,"mask",`url(#${b.maskId})`),this.defs.append(V),this._ensureTransformGroup().append(H),this.paintInlineImageXObject(C,V)}paintFormXObjectBegin(C,b){if(Array.isArray(C)&&C.length===6&&this.transform(C[0],C[1],C[2],C[3],C[4],C[5]),b){const w=b[2]-b[0],I=b[3]-b[1],L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x",b[0]),L.setAttributeNS(null,"y",b[1]),L.setAttributeNS(null,"width",$(w)),L.setAttributeNS(null,"height",$(I)),this.current.element=L,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(C){const b=this.svgFactory.create(C.width,C.height),w=this.svgFactory.createElement("svg:defs");b.append(w),this.defs=w;const I=this.svgFactory.createElement("svg:g");return I.setAttributeNS(null,"transform",N(C.transform)),b.append(I),this.svg=I,b}_ensureClipGroup(){if(!this.current.clipGroup){const C=this.svgFactory.createElement("svg:g");C.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(C),this.current.clipGroup=C}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",N(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFNodeStream=void 0;var h=a(1),f=a(158);const p=Ni,z=Ni,P=Ni,y=Ni,g=/^file:\/\/\/[a-zA-Z]:\//;function x(E){const M=y.parse(E);return M.protocol==="file:"||M.host?M:/^[a-z]:[/\\]/i.test(E)?y.parse(`file:///${E}`):(M.host||(M.protocol="file:"),M)}class R{constructor(M){this.source=M,this.url=x(M.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&M.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var M,C;return(M=(C=this._fullRequestReader)===null||C===void 0?void 0:C._loaded)!==null&&M!==void 0?M:0}getFullReader(){return(0,h.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new N(this):new k(this),this._fullRequestReader}getRangeReader(M,C){if(C<=this._progressiveDataLength)return null;const b=this.isFsUrl?new T(this,M,C):new $(this,M,C);return this._rangeRequestReaders.push(b),b}cancelAllRequests(M){this._fullRequestReader&&this._fullRequestReader.cancel(M);for(const C of this._rangeRequestReaders.slice(0))C.cancel(M)}}d.PDFNodeStream=R;class u{constructor(M){this._url=M.url,this._done=!1,this._storedError=null,this.onProgress=null;const C=M.source;this._contentLength=C.length,this._loaded=0,this._filename=null,this._disableRange=C.disableRange||!1,this._rangeChunkSize=C.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!C.disableStream,this._isRangeSupported=!C.disableRange,this._readableStream=null,this._readCapability=(0,h.createPromiseCapability)(),this._headersCapability=(0,h.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const M=this._readableStream.read();return M===null?(this._readCapability=(0,h.createPromiseCapability)(),this.read()):(this._loaded+=M.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(M).buffer,done:!1})}cancel(M){if(!this._readableStream){this._error(M);return}this._readableStream.destroy(M)}_error(M){this._storedError=M,this._readCapability.resolve()}_setReadableStream(M){this._readableStream=M,M.on("readable",()=>{this._readCapability.resolve()}),M.on("end",()=>{M.destroy(),this._done=!0,this._readCapability.resolve()}),M.on("error",C=>{this._error(C)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new h.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class v{constructor(M){this._url=M.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,h.createPromiseCapability)();const C=M.source;this._isStreamingSupported=!C.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const M=this._readableStream.read();return M===null?(this._readCapability=(0,h.createPromiseCapability)(),this.read()):(this._loaded+=M.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(M).buffer,done:!1})}cancel(M){if(!this._readableStream){this._error(M);return}this._readableStream.destroy(M)}_error(M){this._storedError=M,this._readCapability.resolve()}_setReadableStream(M){this._readableStream=M,M.on("readable",()=>{this._readCapability.resolve()}),M.on("end",()=>{M.destroy(),this._done=!0,this._readCapability.resolve()}),M.on("error",C=>{this._error(C)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function O(E,M){return{protocol:E.protocol,auth:E.auth,host:E.hostname,port:E.port,path:E.path,method:"GET",headers:M}}class k extends u{constructor(M){super(M);const C=b=>{if(b.statusCode===404){const V=new h.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=V,this._headersCapability.reject(V);return}this._headersCapability.resolve(),this._setReadableStream(b);const w=V=>this._readableStream.headers[V.toLowerCase()],{allowRangeRequests:I,suggestedLength:L}=(0,f.validateRangeRequestCapabilities)({getResponseHeader:w,isHttp:M.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=I,this._contentLength=L||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(w)};this._request=null,this._url.protocol==="http:"?this._request=z.request(O(this._url,M.httpHeaders),C):this._request=P.request(O(this._url,M.httpHeaders),C),this._request.on("error",b=>{this._storedError=b,this._headersCapability.reject(b)}),this._request.end()}}class $ extends v{constructor(M,C,b){super(M),this._httpHeaders={};for(const I in M.httpHeaders){const L=M.httpHeaders[I];typeof L>"u"||(this._httpHeaders[I]=L)}this._httpHeaders.Range=`bytes=${C}-${b-1}`;const w=I=>{if(I.statusCode===404){const L=new h.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=L;return}this._setReadableStream(I)};this._request=null,this._url.protocol==="http:"?this._request=z.request(O(this._url,this._httpHeaders),w):this._request=P.request(O(this._url,this._httpHeaders),w),this._request.on("error",I=>{this._storedError=I}),this._request.end()}}class N extends u{constructor(M){super(M);let C=decodeURIComponent(this._url.path);g.test(this._url.href)&&(C=C.replace(/^\//,"")),p.lstat(C,(b,w)=>{if(b){b.code==="ENOENT"&&(b=new h.MissingPDFException(`Missing PDF "${C}".`)),this._storedError=b,this._headersCapability.reject(b);return}this._contentLength=w.size,this._setReadableStream(p.createReadStream(C)),this._headersCapability.resolve()})}}class T extends v{constructor(M,C,b){super(M);let w=decodeURIComponent(this._url.path);g.test(this._url.href)&&(w=w.replace(/^\//,"")),this._setReadableStream(p.createReadStream(w,{start:C,end:b-1}))}}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.createResponseStatusError=y,d.extractFilenameFromHeader=P,d.validateRangeRequestCapabilities=z,d.validateResponseStatus=g;var h=a(1),f=a(159),p=a(133);function z(x){let{getResponseHeader:R,isHttp:u,rangeChunkSize:v,disableRange:O}=x;const k={allowRangeRequests:!1,suggestedLength:void 0},$=parseInt(R("Content-Length"),10);return!Number.isInteger($)||(k.suggestedLength=$,$<=2*v)||O||!u||R("Accept-Ranges")!=="bytes"||(R("Content-Encoding")||"identity")!=="identity"||(k.allowRangeRequests=!0),k}function P(x){const R=x("Content-Disposition");if(R){let u=(0,f.getFilenameFromContentDispositionHeader)(R);if(u.includes("%"))try{u=decodeURIComponent(u)}catch{}if((0,p.isPdfFile)(u))return u}return null}function y(x,R){return x===404||x===0&&R.startsWith("file:")?new h.MissingPDFException('Missing PDF "'+R+'".'):new h.UnexpectedResponseException(`Unexpected server response (${x}) while retrieving PDF "${R}".`,x)}function g(x){return x===200||x===206}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.getFilenameFromContentDispositionHeader=f;var h=a(1);function f(p){let z=!0,P=y("filename\\*","i").exec(p);if(P){P=P[1];let k=u(P);return k=unescape(k),k=v(k),k=O(k),x(k)}if(P=R(p),P){const k=O(P);return x(k)}if(P=y("filename","i").exec(p),P){P=P[1];let k=u(P);return k=O(k),x(k)}function y(k,$){return new RegExp("(?:^|;)\\s*"+k+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',$)}function g(k,$){if(k){if(!/^[\x00-\xFF]+$/.test($))return $;try{const N=new TextDecoder(k,{fatal:!0}),T=(0,h.stringToBytes)($);$=N.decode(T),z=!1}catch{}}return $}function x(k){return z&&/[\x80-\xff]/.test(k)&&(k=g("utf-8",k),z&&(k=g("iso-8859-1",k))),k}function R(k){const $=[];let N;const T=y("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(N=T.exec(k))!==null;){let[,M,C,b]=N;if(M=parseInt(M,10),M in $){if(M===0)break;continue}$[M]=[C,b]}const E=[];for(let M=0;M<$.length&&M in $;++M){let[C,b]=$[M];b=u(b),C&&(b=unescape(b),M===0&&(b=v(b))),E.push(b)}return E.join("")}function u(k){if(k.startsWith('"')){const $=k.slice(1).split('\\"');for(let N=0;N<$.length;++N){const T=$[N].indexOf('"');T!==-1&&($[N]=$[N].slice(0,T),$.length=N+1),$[N]=$[N].replace(/\\(.)/g,"$1")}k=$.join('"')}return k}function v(k){const $=k.indexOf("'");if($===-1)return k;const N=k.slice(0,$),E=k.slice($+1).replace(/^[^']*'/,"");return g(N,E)}function O(k){return!k.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(k)?k:k.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function($,N,T,E){if(T==="q"||T==="Q")return E=E.replace(/_/g," "),E=E.replace(/=([0-9a-fA-F]{2})/g,function(M,C){return String.fromCharCode(parseInt(C,16))}),g(N,E);try{E=atob(E)}catch{}return g(N,E)})}return""}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFNetworkStream=void 0;var h=a(1),f=a(158);const p=200,z=206;function P(u){const v=u.response;return typeof v!="string"?v:(0,h.stringToBytes)(v).buffer}class y{constructor(v){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.url=v,this.isHttp=/^https?:/i.test(v),this.httpHeaders=this.isHttp&&O.httpHeaders||Object.create(null),this.withCredentials=O.withCredentials||!1,this.getXhr=O.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(v,O,k){const $={begin:v,end:O};for(const N in k)$[N]=k[N];return this.request($)}requestFull(v){return this.request(v)}request(v){const O=this.getXhr(),k=this.currXhrId++,$=this.pendingRequests[k]={xhr:O};O.open("GET",this.url),O.withCredentials=this.withCredentials;for(const N in this.httpHeaders){const T=this.httpHeaders[N];typeof T>"u"||O.setRequestHeader(N,T)}return this.isHttp&&"begin"in v&&"end"in v?(O.setRequestHeader("Range",`bytes=${v.begin}-${v.end-1}`),$.expectedStatus=z):$.expectedStatus=p,O.responseType="arraybuffer",v.onError&&(O.onerror=function(N){v.onError(O.status)}),O.onreadystatechange=this.onStateChange.bind(this,k),O.onprogress=this.onProgress.bind(this,k),$.onHeadersReceived=v.onHeadersReceived,$.onDone=v.onDone,$.onError=v.onError,$.onProgress=v.onProgress,O.send(null),k}onProgress(v,O){var k;const $=this.pendingRequests[v];!$||(k=$.onProgress)===null||k===void 0||k.call($,O)}onStateChange(v,O){const k=this.pendingRequests[v];if(!k)return;const $=k.xhr;if($.readyState>=2&&k.onHeadersReceived&&(k.onHeadersReceived(),delete k.onHeadersReceived),$.readyState!==4||!(v in this.pendingRequests))return;if(delete this.pendingRequests[v],$.status===0&&this.isHttp){var N;(N=k.onError)===null||N===void 0||N.call(k,$.status);return}const T=$.status||p;if(!(T===p&&k.expectedStatus===z)&&T!==k.expectedStatus){var M;(M=k.onError)===null||M===void 0||M.call(k,$.status);return}const C=P($);if(T===z){const w=$.getResponseHeader("Content-Range"),I=/bytes (\d+)-(\d+)\/(\d+)/.exec(w);k.onDone({begin:parseInt(I[1],10),chunk:C})}else if(C)k.onDone({begin:0,chunk:C});else{var b;(b=k.onError)===null||b===void 0||b.call(k,$.status)}}getRequestXhr(v){return this.pendingRequests[v].xhr}isPendingRequest(v){return v in this.pendingRequests}abortRequest(v){const O=this.pendingRequests[v].xhr;delete this.pendingRequests[v],O.abort()}}class g{constructor(v){this._source=v,this._manager=new y(v.url,{httpHeaders:v.httpHeaders,withCredentials:v.withCredentials}),this._rangeChunkSize=v.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(v){const O=this._rangeRequestReaders.indexOf(v);O>=0&&this._rangeRequestReaders.splice(O,1)}getFullReader(){return(0,h.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new x(this._manager,this._source),this._fullRequestReader}getRangeReader(v,O){const k=new R(this._manager,v,O);return k.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(k),k}cancelAllRequests(v){var O;(O=this._fullRequestReader)===null||O===void 0||O.cancel(v);for(const k of this._rangeRequestReaders.slice(0))k.cancel(v)}}d.PDFNetworkStream=g;class x{constructor(v,O){this._manager=v;const k={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=O.url,this._fullRequestId=v.requestFull(k),this._headersReceivedCapability=(0,h.createPromiseCapability)(),this._disableRange=O.disableRange||!1,this._contentLength=O.length,this._rangeChunkSize=O.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const v=this._fullRequestId,O=this._manager.getRequestXhr(v),k=T=>O.getResponseHeader(T),{allowRangeRequests:$,suggestedLength:N}=(0,f.validateRangeRequestCapabilities)({getResponseHeader:k,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});$&&(this._isRangeSupported=!0),this._contentLength=N||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(k),this._isRangeSupported&&this._manager.abortRequest(v),this._headersReceivedCapability.resolve()}_onDone(v){if(v&&(this._requests.length>0?this._requests.shift().resolve({value:v.chunk,done:!1}):this._cachedChunks.push(v.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(v){this._storedError=(0,f.createResponseStatusError)(v,this._url),this._headersReceivedCapability.reject(this._storedError);for(const O of this._requests)O.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(v){var O;(O=this.onProgress)===null||O===void 0||O.call(this,{loaded:v.loaded,total:v.lengthComputable?v.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const v=(0,h.createPromiseCapability)();return this._requests.push(v),v.promise}cancel(v){this._done=!0,this._headersReceivedCapability.reject(v);for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class R{constructor(v,O,k){this._manager=v;const $={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=v.url,this._requestId=v.requestRange(O,k,$),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var v;(v=this.onClosed)===null||v===void 0||v.call(this,this)}_onDone(v){const O=v.chunk;this._requests.length>0?this._requests.shift().resolve({value:O,done:!1}):this._queuedChunk=O,this._done=!0;for(const k of this._requests)k.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(v){this._storedError=(0,f.createResponseStatusError)(v,this._url);for(const O of this._requests)O.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(v){if(!this.isStreamingSupported){var O;(O=this.onProgress)===null||O===void 0||O.call(this,{loaded:v.loaded})}}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const O=this._queuedChunk;return this._queuedChunk=null,{value:O,done:!1}}if(this._done)return{value:void 0,done:!0};const v=(0,h.createPromiseCapability)();return this._requests.push(v),v.promise}cancel(v){this._done=!0;for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFFetchStream=void 0;var h=a(1),f=a(158);function p(x,R,u){return{method:"GET",headers:x,signal:u.signal,mode:"cors",credentials:R?"include":"same-origin",redirect:"follow"}}function z(x){const R=new Headers;for(const u in x){const v=x[u];typeof v>"u"||R.append(u,v)}return R}class P{constructor(R){this.source=R,this.isHttp=/^https?:/i.test(R.url),this.httpHeaders=this.isHttp&&R.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var R,u;return(R=(u=this._fullRequestReader)===null||u===void 0?void 0:u._loaded)!==null&&R!==void 0?R:0}getFullReader(){return(0,h.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new y(this),this._fullRequestReader}getRangeReader(R,u){if(u<=this._progressiveDataLength)return null;const v=new g(this,R,u);return this._rangeRequestReaders.push(v),v}cancelAllRequests(R){this._fullRequestReader&&this._fullRequestReader.cancel(R);for(const u of this._rangeRequestReaders.slice(0))u.cancel(R)}}d.PDFFetchStream=P;class y{constructor(R){this._stream=R,this._reader=null,this._loaded=0,this._filename=null;const u=R.source;this._withCredentials=u.withCredentials||!1,this._contentLength=u.length,this._headersCapability=(0,h.createPromiseCapability)(),this._disableRange=u.disableRange||!1,this._rangeChunkSize=u.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!u.disableStream,this._isRangeSupported=!u.disableRange,this._headers=z(this._stream.httpHeaders);const v=u.url;fetch(v,p(this._headers,this._withCredentials,this._abortController)).then(O=>{if(!(0,f.validateResponseStatus)(O.status))throw(0,f.createResponseStatusError)(O.status,v);this._reader=O.body.getReader(),this._headersCapability.resolve();const k=T=>O.headers.get(T),{allowRangeRequests:$,suggestedLength:N}=(0,f.validateRangeRequestCapabilities)({getResponseHeader:k,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=$,this._contentLength=N||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(k),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new h.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:R,done:u}=await this._reader.read();return u?{value:R,done:u}:(this._loaded+=R.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(R).buffer,done:!1})}cancel(R){this._reader&&this._reader.cancel(R),this._abortController.abort()}}class g{constructor(R,u,v){this._stream=R,this._reader=null,this._loaded=0;const O=R.source;this._withCredentials=O.withCredentials||!1,this._readCapability=(0,h.createPromiseCapability)(),this._isStreamingSupported=!O.disableStream,this._abortController=new AbortController,this._headers=z(this._stream.httpHeaders),this._headers.append("Range",`bytes=${u}-${v-1}`);const k=O.url;fetch(k,p(this._headers,this._withCredentials,this._abortController)).then($=>{if(!(0,f.validateResponseStatus)($.status))throw(0,f.createResponseStatusError)($.status,k);this._readCapability.resolve(),this._reader=$.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:R,done:u}=await this._reader.read();return u?{value:R,done:u}:(this._loaded+=R.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(R).buffer,done:!1})}cancel(R){this._reader&&this._reader.cancel(R),this._abortController.abort()}}}],s={};function n(o){var d=s[o];if(d!==void 0)return d.exports;var a=s[o]={exports:{}};return i[o](a,a.exports,n),a.exports}var l={};return(()=>{var o=l;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AnnotationEditorLayer",{enumerable:!0,get:function(){return f.AnnotationEditorLayer}}),Object.defineProperty(o,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return d.AnnotationEditorParamsType}}),Object.defineProperty(o,"AnnotationEditorType",{enumerable:!0,get:function(){return d.AnnotationEditorType}}),Object.defineProperty(o,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return p.AnnotationEditorUIManager}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return z.AnnotationLayer}}),Object.defineProperty(o,"AnnotationMode",{enumerable:!0,get:function(){return d.AnnotationMode}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return d.CMapCompressionType}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return P.GlobalWorkerOptions}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return d.InvalidPDFException}}),Object.defineProperty(o,"LoopbackPort",{enumerable:!0,get:function(){return a.LoopbackPort}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return d.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return d.OPS}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return h.PDFDateString}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return d.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return d.PermissionFlag}}),Object.defineProperty(o,"PixelsPerInch",{enumerable:!0,get:function(){return h.PixelsPerInch}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return h.RenderingCancelledException}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return x.SVGGraphics}}),Object.defineProperty(o,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return d.UNSUPPORTED_FEATURES}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return d.UnexpectedResponseException}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return d.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return d.VerbosityLevel}}),Object.defineProperty(o,"XfaLayer",{enumerable:!0,get:function(){return R.XfaLayer}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(o,"createPromiseCapability",{enumerable:!0,get:function(){return d.createPromiseCapability}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return d.createValidAbsoluteUrl}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return h.getFilenameFromUrl}}),Object.defineProperty(o,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return h.getPdfFilenameFromUrl}}),Object.defineProperty(o,"getXfaPageViewport",{enumerable:!0,get:function(){return h.getXfaPageViewport}}),Object.defineProperty(o,"isPdfFile",{enumerable:!0,get:function(){return h.isPdfFile}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return h.loadScript}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return g.renderTextLayer}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return d.shadow}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return a.version}});var d=n(1),a=n(129),h=n(133),f=n(147),p=n(132),z=n(152),P=n(140),y=n(3),g=n(155),x=n(156),R=n(154);if(y.isNodeJS){const{PDFNodeStream:u}=n(157);(0,a.setPDFNetworkStreamFactory)(v=>new u(v))}else{const{PDFNetworkStream:u}=n(160),{PDFFetchStream:v}=n(161);(0,a.setPDFNetworkStreamFactory)(O=>(0,h.isValidFetchUrl)(O.url)?new v(O):new u(O))}})(),l})())})(F2);const _B=Bz(F2.exports),SB=":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)}}";window.pdf=_B;const mC=class{constructor(e){q(this,e),this.activate=De(this,"activate",7),this.visiblePagesChange=De(this,"visiblePagesChange",7),this.pages=[],this.renderingPageNumbers=[],this.recentScrollPosition={x:0,y:0},this.storeRecentScrollPosition=()=>{var t,i,s,n;this.recentScrollPosition={x:Math.round(((t=this.scrollContainer)==null?void 0:t.scrollLeft)/((i=this.scrollContainer)==null?void 0:i.scrollWidth)*100)/100,y:Math.round(((s=this.scrollContainer)==null?void 0:s.scrollTop)/((n=this.scrollContainer)==null?void 0:n.scrollHeight)*100)/100}},this.onScroll=St(()=>{this.updateVisiblePages(),this.storeRecentScrollPosition()},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.currentPage=null,this.doc=void 0,this.error=void 0,this.loading=!0,this.renderedPages=[],this.singlePageModePage=1,this.visiblePages=[]}componentWillLoad(){window.pdf.GlobalWorkerOptions.workerSrc=this.workerSrc}async componentDidLoad(){await this.getPages(),await this.updateVisiblePages(),this.activate.emit(this.el)}componentDidRender(){this.updateVisiblePages()}disconnectedCallback(){var e;(e=this.doc)==null||e.destroy()}async onWindowResize(){this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()}async watchProps(){await this.getPages(),await this.updateVisiblePages()}async watchViewMode(){queueMicrotask(async()=>{this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}watchZoom(){queueMicrotask(async()=>{this.restoreScrollPosition(),this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}async getThumbnails(){return await Promise.all(this.pages.filter(Boolean).map(e=>{const t=e.getViewport({scale:1}),i=document.createElement("canvas");i.width=t.width,i.height=t.height;const s=Math.min(i.width/t.width,i.height/t.height);return e.render({canvasContext:i.getContext("2d"),viewport:e.getViewport({scale:s})}).promise.then(function(){return i})}))}async print(){this.loading=!0,await this.updateVisiblePages(!0),await this.openPrintDialog(),this.loading=!1}async nextPage(){await this.setPage(this.singlePageModePage+1),await this.updateVisiblePages()}async previousPage(){await this.setPage(this.singlePageModePage-1),await this.updateVisiblePages()}async setPage(e){this.singlePageModePage=Math.min(Math.max(e,1),this.pages.length-1),await this.updateVisiblePages()}async getPages(){this.error=!1,this.loading=!0;try{Boolean(this.doc)&&this.doc.destroy(),this.doc=await F2.exports.getDocument({isEvalSupported:!1,url:this.file}).promise;const e=[];for(let t=1;t<=this.doc.numPages;t++)e.push(this.doc.getPage(t));this.pages=await Promise.all(e),this.loading=!1}catch{this.error=!0,this.loading=!1}}async renderVisiblePages(e){const t=Array.from(this.el.shadowRoot.querySelectorAll("canvas")),i=[];for(const s of t){const n=s.closest(".file-viewer-pdf__page"),l=this.pages.find(o=>(o==null?void 0:o.pageNumber)===+(n==null?void 0:n.dataset.pageNumber));if(!(!Boolean(l)||this.renderingPageNumbers.includes(l.pageNumber))){if(!this.visiblePages.includes(l.pageNumber)&&!e){this.destroyPage(l);continue}if(this.renderedPages.includes(l.pageNumber)&&!e){i.push(l.pageNumber);continue}await this.renderPage(l,s,e),i.push(l.pageNumber)}}this.renderedPages=i}async renderPage(e,t,i){const s=t.closest(".file-viewer-pdf__page"),n=s==null?void 0:s.querySelector(".file-viewer-pdf__text-container");this.renderingPageNumbers=[...this.renderingPageNumbers,e.pageNumber];const l=i?2:this.getScale(e),o=window.devicePixelRatio||1,d=o!==1?[o,0,0,o,0,0]:null,a=e.getViewport({scale:l}),h=t.getContext("2d");t.height=Math.floor(a.height*o),t.width=Math.floor(a.width*o);const f={canvasContext:h,transform:d,viewport:a};try{await e.render(f).promise,e.cleanup(),n.innerHTML="",this.renderTextLayer(e,n).catch(),this.renderingPageNumbers=this.renderingPageNumbers.filter(p=>p!==e.pageNumber)}catch{}}destroyPage(e){const t=this.el.shadowRoot.querySelector(`[data-page-number="${e.pageNumber}"]`),i=t.querySelector("canvas"),s=t.querySelector(".file-viewer-pdf__text-container");i.width=1,i.height=1,i.getContext("2d").clearRect(0,0,i.width,i.height),s.innerHTML=""}async updateVisiblePages(e){const t=Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));let i=[],s=null;if(this.singlePageMode)i=[this.singlePageModePage],s=this.singlePageModePage;else if(e)i=t.map(l=>+l.dataset.pageNumber);else{const l=t.map(o=>({pageNumber:+o.dataset.pageNumber,visibleHeight:nz(o,this.scrollContainer)})).filter(({visibleHeight:o})=>o>0);i=l.map(o=>o.pageNumber),l.length>0&&(s=l.reduce((d,a)=>a.visibleHeight>d.visibleHeight?a:d,void 0).pageNumber)}this.visiblePages.length===i.length&&this.visiblePages.every(l=>i.includes(l))&&this.currentPage===s||(this.visiblePages=i,this.currentPage=s,await this.renderVisiblePages(e),this.visiblePagesChange.emit(this.visiblePages))}async renderTextLayer(e,t){F2.exports.renderTextLayer({container:t,textContent:await e.getTextContent(),viewport:e.getViewport({scale:this.getScale(e)})})}async openPrintDialog(){const e=Array.from(this.scrollContainer.querySelectorAll("canvas"));let t=`
|
|
501
|
+
`}setFont(C){const b=this.current,w=this.commonObjs.get(C[0]);let I=C[1];b.font=w,this.embedFonts&&!w.missingFile&&!this.embeddedFonts[w.loadedName]&&(this.addFontStyle(w),this.embeddedFonts[w.loadedName]=w),b.fontMatrix=w.fontMatrix||f.FONT_IDENTITY_MATRIX;let L="normal";w.black?L="900":w.bold&&(L="bold");const V=w.italic?"italic":"normal";I<0?(I=-I,b.fontDirection=-1):b.fontDirection=1,b.fontSize=I,b.fontFamily=w.loadedName,b.fontWeight=L,b.fontStyle=V,b.tspan=this.svgFactory.createElement("svg:tspan"),b.tspan.setAttributeNS(null,"y",$(-b.y)),b.xcoords=[],b.ycoords=[]}endText(){var C;const b=this.current;b.textRenderingMode&f.TextRenderingMode.ADD_TO_PATH_FLAG&&(C=b.txtElement)!==null&&C!==void 0&&C.hasChildNodes()&&(b.element=b.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(C){C>0&&(this.current.lineWidth=C)}setLineCap(C){this.current.lineCap=x[C]}setLineJoin(C){this.current.lineJoin=R[C]}setMiterLimit(C){this.current.miterLimit=C}setStrokeAlpha(C){this.current.strokeAlpha=C}setStrokeRGBColor(C,b,w){this.current.strokeColor=f.Util.makeHexColor(C,b,w)}setFillAlpha(C){this.current.fillAlpha=C}setFillRGBColor(C,b,w){this.current.fillColor=f.Util.makeHexColor(C,b,w),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(C){this.current.strokeColor=this._makeColorN_Pattern(C)}setFillColorN(C){this.current.fillColor=this._makeColorN_Pattern(C)}shadingFill(C){const b=this.viewport.width,w=this.viewport.height,I=f.Util.inverseTransform(this.transformMatrix),L=f.Util.applyTransform([0,0],I),V=f.Util.applyTransform([0,w],I),H=f.Util.applyTransform([b,0],I),le=f.Util.applyTransform([b,w],I),re=Math.min(L[0],V[0],H[0],le[0]),de=Math.min(L[1],V[1],H[1],le[1]),ue=Math.max(L[0],V[0],H[0],le[0]),Y=Math.max(L[1],V[1],H[1],le[1]),Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x",re),Q.setAttributeNS(null,"y",de),Q.setAttributeNS(null,"width",ue-re),Q.setAttributeNS(null,"height",Y-de),Q.setAttributeNS(null,"fill",this._makeShadingPattern(C)),this.current.fillAlpha<1&&Q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Q)}_makeColorN_Pattern(C){return C[0]==="TilingPattern"?this._makeTilingPattern(C):this._makeShadingPattern(C)}_makeTilingPattern(C){const b=C[1],w=C[2],I=C[3]||f.IDENTITY_MATRIX,[L,V,H,le]=C[4],re=C[5],de=C[6],ue=C[7],Y=`shading${M++}`,[Q,J,W,Ce]=f.Util.normalizeRect([...f.Util.applyTransform([L,V],I),...f.Util.applyTransform([H,le],I)]),[_e,Le]=f.Util.singularValueDecompose2dScale(I),Ie=re*_e,oe=de*Le,Z=this.svgFactory.createElement("svg:pattern");Z.setAttributeNS(null,"id",Y),Z.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Z.setAttributeNS(null,"width",Ie),Z.setAttributeNS(null,"height",oe),Z.setAttributeNS(null,"x",`${Q}`),Z.setAttributeNS(null,"y",`${J}`);const B=this.svg,X=this.transformMatrix,ee=this.current.fillColor,_=this.current.strokeColor,A=this.svgFactory.create(W-Q,Ce-J);if(this.svg=A,this.transformMatrix=I,ue===2){const D=f.Util.makeHexColor(...b);this.current.fillColor=D,this.current.strokeColor=D}return this.executeOpTree(this.convertOpList(w)),this.svg=B,this.transformMatrix=X,this.current.fillColor=ee,this.current.strokeColor=_,Z.append(A.childNodes[0]),this.defs.append(Z),`url(#${Y})`}_makeShadingPattern(C){switch(typeof C=="string"&&(C=this.objs.get(C)),C[0]){case"RadialAxial":const b=`shading${M++}`,w=C[3];let I;switch(C[1]){case"axial":const L=C[4],V=C[5];I=this.svgFactory.createElement("svg:linearGradient"),I.setAttributeNS(null,"id",b),I.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),I.setAttributeNS(null,"x1",L[0]),I.setAttributeNS(null,"y1",L[1]),I.setAttributeNS(null,"x2",V[0]),I.setAttributeNS(null,"y2",V[1]);break;case"radial":const H=C[4],le=C[5],re=C[6],de=C[7];I=this.svgFactory.createElement("svg:radialGradient"),I.setAttributeNS(null,"id",b),I.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),I.setAttributeNS(null,"cx",le[0]),I.setAttributeNS(null,"cy",le[1]),I.setAttributeNS(null,"r",de),I.setAttributeNS(null,"fx",H[0]),I.setAttributeNS(null,"fy",H[1]),I.setAttributeNS(null,"fr",re);break;default:throw new Error(`Unknown RadialAxial type: ${C[1]}`)}for(const L of w){const V=this.svgFactory.createElement("svg:stop");V.setAttributeNS(null,"offset",L[0]),V.setAttributeNS(null,"stop-color",L[1]),I.append(V)}return this.defs.append(I),`url(#${b})`;case"Mesh":return(0,f.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${C[0]}`)}}setDash(C,b){this.current.dashArray=C,this.current.dashPhase=b}constructPath(C,b){const w=this.current;let I=w.x,L=w.y,V=[],H=0;for(const le of C)switch(le|0){case f.OPS.rectangle:I=b[H++],L=b[H++];const re=b[H++],de=b[H++],ue=I+re,Y=L+de;V.push("M",$(I),$(L),"L",$(ue),$(L),"L",$(ue),$(Y),"L",$(I),$(Y),"Z");break;case f.OPS.moveTo:I=b[H++],L=b[H++],V.push("M",$(I),$(L));break;case f.OPS.lineTo:I=b[H++],L=b[H++],V.push("L",$(I),$(L));break;case f.OPS.curveTo:I=b[H+4],L=b[H+5],V.push("C",$(b[H]),$(b[H+1]),$(b[H+2]),$(b[H+3]),$(I),$(L)),H+=6;break;case f.OPS.curveTo2:V.push("C",$(I),$(L),$(b[H]),$(b[H+1]),$(b[H+2]),$(b[H+3])),I=b[H+2],L=b[H+3],H+=4;break;case f.OPS.curveTo3:I=b[H+2],L=b[H+3],V.push("C",$(b[H]),$(b[H+1]),$(I),$(L),$(I),$(L)),H+=4;break;case f.OPS.closePath:V.push("Z");break}V=V.join(" "),w.path&&C.length>0&&C[0]!==f.OPS.rectangle&&C[0]!==f.OPS.moveTo?V=w.path.getAttributeNS(null,"d")+V:(w.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(w.path)),w.path.setAttributeNS(null,"d",V),w.path.setAttributeNS(null,"fill","none"),w.element=w.path,w.setCurrentPoint(I,L)}endPath(){const C=this.current;if(C.path=null,!this.pendingClip)return;if(!C.element){this.pendingClip=null;return}const b=`clippath${T++}`,w=this.svgFactory.createElement("svg:clipPath");w.setAttributeNS(null,"id",b),w.setAttributeNS(null,"transform",N(this.transformMatrix));const I=C.element.cloneNode(!0);if(this.pendingClip==="evenodd"?I.setAttributeNS(null,"clip-rule","evenodd"):I.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,w.append(I),this.defs.append(w),C.activeClipUrl){C.clipGroup=null;for(const L of this.extraStack)L.clipGroup=null;w.setAttributeNS(null,"clip-path",C.activeClipUrl)}C.activeClipUrl=`url(#${b})`,this.tgrp=null}clip(C){this.pendingClip=C}closePath(){const C=this.current;if(C.path){const b=`${C.path.getAttributeNS(null,"d")}Z`;C.path.setAttributeNS(null,"d",b)}}setLeading(C){this.current.leading=-C}setTextRise(C){this.current.textRise=C}setTextRenderingMode(C){this.current.textRenderingMode=C}setHScale(C){this.current.textHScale=C/100}setRenderingIntent(C){}setFlatness(C){}setGState(C){for(const[b,w]of C)switch(b){case"LW":this.setLineWidth(w);break;case"LC":this.setLineCap(w);break;case"LJ":this.setLineJoin(w);break;case"ML":this.setMiterLimit(w);break;case"D":this.setDash(w[0],w[1]);break;case"RI":this.setRenderingIntent(w);break;case"FL":this.setFlatness(w);break;case"Font":this.setFont(w);break;case"CA":this.setStrokeAlpha(w);break;case"ca":this.setFillAlpha(w);break;default:(0,f.warn)(`Unimplemented graphic state operator ${b}`);break}}fill(){const C=this.current;C.element&&(C.element.setAttributeNS(null,"fill",C.fillColor),C.element.setAttributeNS(null,"fill-opacity",C.fillAlpha),this.endPath())}stroke(){const C=this.current;C.element&&(this._setStrokeAttributes(C.element),C.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=this.current;let I=w.dashArray;b!==1&&I.length>0&&(I=I.map(function(L){return b*L})),C.setAttributeNS(null,"stroke",w.strokeColor),C.setAttributeNS(null,"stroke-opacity",w.strokeAlpha),C.setAttributeNS(null,"stroke-miterlimit",$(w.miterLimit)),C.setAttributeNS(null,"stroke-linecap",w.lineCap),C.setAttributeNS(null,"stroke-linejoin",w.lineJoin),C.setAttributeNS(null,"stroke-width",$(b*w.lineWidth)+"px"),C.setAttributeNS(null,"stroke-dasharray",I.map($).join(" ")),C.setAttributeNS(null,"stroke-dashoffset",$(b*w.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const C=this.svgFactory.createElement("svg:rect");C.setAttributeNS(null,"x","0"),C.setAttributeNS(null,"y","0"),C.setAttributeNS(null,"width","1px"),C.setAttributeNS(null,"height","1px"),C.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(C)}paintImageXObject(C){const b=C.startsWith("g_")?this.commonObjs.get(C):this.objs.get(C);if(!b){(0,f.warn)(`Dependent image with object ID ${C} is not ready yet`);return}this.paintInlineImageXObject(b)}paintInlineImageXObject(C,b){const w=C.width,I=C.height,L=v(C,this.forceDataSchema,!!b),V=this.svgFactory.createElement("svg:rect");V.setAttributeNS(null,"x","0"),V.setAttributeNS(null,"y","0"),V.setAttributeNS(null,"width",$(w)),V.setAttributeNS(null,"height",$(I)),this.current.element=V,this.clip("nonzero");const H=this.svgFactory.createElement("svg:image");H.setAttributeNS(g,"xlink:href",L),H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y",$(-I)),H.setAttributeNS(null,"width",$(w)+"px"),H.setAttributeNS(null,"height",$(I)+"px"),H.setAttributeNS(null,"transform",`scale(${$(1/w)} ${$(-1/I)})`),b?b.append(H):this._ensureTransformGroup().append(H)}paintImageMaskXObject(C){const b=this.current,w=C.width,I=C.height,L=b.fillColor;b.maskId=`mask${E++}`;const V=this.svgFactory.createElement("svg:mask");V.setAttributeNS(null,"id",b.maskId);const H=this.svgFactory.createElement("svg:rect");H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y","0"),H.setAttributeNS(null,"width",$(w)),H.setAttributeNS(null,"height",$(I)),H.setAttributeNS(null,"fill",L),H.setAttributeNS(null,"mask",`url(#${b.maskId})`),this.defs.append(V),this._ensureTransformGroup().append(H),this.paintInlineImageXObject(C,V)}paintFormXObjectBegin(C,b){if(Array.isArray(C)&&C.length===6&&this.transform(C[0],C[1],C[2],C[3],C[4],C[5]),b){const w=b[2]-b[0],I=b[3]-b[1],L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x",b[0]),L.setAttributeNS(null,"y",b[1]),L.setAttributeNS(null,"width",$(w)),L.setAttributeNS(null,"height",$(I)),this.current.element=L,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(C){const b=this.svgFactory.create(C.width,C.height),w=this.svgFactory.createElement("svg:defs");b.append(w),this.defs=w;const I=this.svgFactory.createElement("svg:g");return I.setAttributeNS(null,"transform",N(C.transform)),b.append(I),this.svg=I,b}_ensureClipGroup(){if(!this.current.clipGroup){const C=this.svgFactory.createElement("svg:g");C.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(C),this.current.clipGroup=C}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",N(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFNodeStream=void 0;var h=a(1),f=a(158);const p=Ni,z=Ni,P=Ni,y=Ni,g=/^file:\/\/\/[a-zA-Z]:\//;function x(E){const M=y.parse(E);return M.protocol==="file:"||M.host?M:/^[a-z]:[/\\]/i.test(E)?y.parse(`file:///${E}`):(M.host||(M.protocol="file:"),M)}class R{constructor(M){this.source=M,this.url=x(M.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&M.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var M,C;return(M=(C=this._fullRequestReader)===null||C===void 0?void 0:C._loaded)!==null&&M!==void 0?M:0}getFullReader(){return(0,h.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new N(this):new k(this),this._fullRequestReader}getRangeReader(M,C){if(C<=this._progressiveDataLength)return null;const b=this.isFsUrl?new T(this,M,C):new $(this,M,C);return this._rangeRequestReaders.push(b),b}cancelAllRequests(M){this._fullRequestReader&&this._fullRequestReader.cancel(M);for(const C of this._rangeRequestReaders.slice(0))C.cancel(M)}}d.PDFNodeStream=R;class u{constructor(M){this._url=M.url,this._done=!1,this._storedError=null,this.onProgress=null;const C=M.source;this._contentLength=C.length,this._loaded=0,this._filename=null,this._disableRange=C.disableRange||!1,this._rangeChunkSize=C.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!C.disableStream,this._isRangeSupported=!C.disableRange,this._readableStream=null,this._readCapability=(0,h.createPromiseCapability)(),this._headersCapability=(0,h.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const M=this._readableStream.read();return M===null?(this._readCapability=(0,h.createPromiseCapability)(),this.read()):(this._loaded+=M.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(M).buffer,done:!1})}cancel(M){if(!this._readableStream){this._error(M);return}this._readableStream.destroy(M)}_error(M){this._storedError=M,this._readCapability.resolve()}_setReadableStream(M){this._readableStream=M,M.on("readable",()=>{this._readCapability.resolve()}),M.on("end",()=>{M.destroy(),this._done=!0,this._readCapability.resolve()}),M.on("error",C=>{this._error(C)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new h.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class v{constructor(M){this._url=M.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,h.createPromiseCapability)();const C=M.source;this._isStreamingSupported=!C.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const M=this._readableStream.read();return M===null?(this._readCapability=(0,h.createPromiseCapability)(),this.read()):(this._loaded+=M.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(M).buffer,done:!1})}cancel(M){if(!this._readableStream){this._error(M);return}this._readableStream.destroy(M)}_error(M){this._storedError=M,this._readCapability.resolve()}_setReadableStream(M){this._readableStream=M,M.on("readable",()=>{this._readCapability.resolve()}),M.on("end",()=>{M.destroy(),this._done=!0,this._readCapability.resolve()}),M.on("error",C=>{this._error(C)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function O(E,M){return{protocol:E.protocol,auth:E.auth,host:E.hostname,port:E.port,path:E.path,method:"GET",headers:M}}class k extends u{constructor(M){super(M);const C=b=>{if(b.statusCode===404){const V=new h.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=V,this._headersCapability.reject(V);return}this._headersCapability.resolve(),this._setReadableStream(b);const w=V=>this._readableStream.headers[V.toLowerCase()],{allowRangeRequests:I,suggestedLength:L}=(0,f.validateRangeRequestCapabilities)({getResponseHeader:w,isHttp:M.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=I,this._contentLength=L||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(w)};this._request=null,this._url.protocol==="http:"?this._request=z.request(O(this._url,M.httpHeaders),C):this._request=P.request(O(this._url,M.httpHeaders),C),this._request.on("error",b=>{this._storedError=b,this._headersCapability.reject(b)}),this._request.end()}}class $ extends v{constructor(M,C,b){super(M),this._httpHeaders={};for(const I in M.httpHeaders){const L=M.httpHeaders[I];typeof L>"u"||(this._httpHeaders[I]=L)}this._httpHeaders.Range=`bytes=${C}-${b-1}`;const w=I=>{if(I.statusCode===404){const L=new h.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=L;return}this._setReadableStream(I)};this._request=null,this._url.protocol==="http:"?this._request=z.request(O(this._url,this._httpHeaders),w):this._request=P.request(O(this._url,this._httpHeaders),w),this._request.on("error",I=>{this._storedError=I}),this._request.end()}}class N extends u{constructor(M){super(M);let C=decodeURIComponent(this._url.path);g.test(this._url.href)&&(C=C.replace(/^\//,"")),p.lstat(C,(b,w)=>{if(b){b.code==="ENOENT"&&(b=new h.MissingPDFException(`Missing PDF "${C}".`)),this._storedError=b,this._headersCapability.reject(b);return}this._contentLength=w.size,this._setReadableStream(p.createReadStream(C)),this._headersCapability.resolve()})}}class T extends v{constructor(M,C,b){super(M);let w=decodeURIComponent(this._url.path);g.test(this._url.href)&&(w=w.replace(/^\//,"")),this._setReadableStream(p.createReadStream(w,{start:C,end:b-1}))}}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.createResponseStatusError=y,d.extractFilenameFromHeader=P,d.validateRangeRequestCapabilities=z,d.validateResponseStatus=g;var h=a(1),f=a(159),p=a(133);function z(x){let{getResponseHeader:R,isHttp:u,rangeChunkSize:v,disableRange:O}=x;const k={allowRangeRequests:!1,suggestedLength:void 0},$=parseInt(R("Content-Length"),10);return!Number.isInteger($)||(k.suggestedLength=$,$<=2*v)||O||!u||R("Accept-Ranges")!=="bytes"||(R("Content-Encoding")||"identity")!=="identity"||(k.allowRangeRequests=!0),k}function P(x){const R=x("Content-Disposition");if(R){let u=(0,f.getFilenameFromContentDispositionHeader)(R);if(u.includes("%"))try{u=decodeURIComponent(u)}catch{}if((0,p.isPdfFile)(u))return u}return null}function y(x,R){return x===404||x===0&&R.startsWith("file:")?new h.MissingPDFException('Missing PDF "'+R+'".'):new h.UnexpectedResponseException(`Unexpected server response (${x}) while retrieving PDF "${R}".`,x)}function g(x){return x===200||x===206}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.getFilenameFromContentDispositionHeader=f;var h=a(1);function f(p){let z=!0,P=y("filename\\*","i").exec(p);if(P){P=P[1];let k=u(P);return k=unescape(k),k=v(k),k=O(k),x(k)}if(P=R(p),P){const k=O(P);return x(k)}if(P=y("filename","i").exec(p),P){P=P[1];let k=u(P);return k=O(k),x(k)}function y(k,$){return new RegExp("(?:^|;)\\s*"+k+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',$)}function g(k,$){if(k){if(!/^[\x00-\xFF]+$/.test($))return $;try{const N=new TextDecoder(k,{fatal:!0}),T=(0,h.stringToBytes)($);$=N.decode(T),z=!1}catch{}}return $}function x(k){return z&&/[\x80-\xff]/.test(k)&&(k=g("utf-8",k),z&&(k=g("iso-8859-1",k))),k}function R(k){const $=[];let N;const T=y("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(N=T.exec(k))!==null;){let[,M,C,b]=N;if(M=parseInt(M,10),M in $){if(M===0)break;continue}$[M]=[C,b]}const E=[];for(let M=0;M<$.length&&M in $;++M){let[C,b]=$[M];b=u(b),C&&(b=unescape(b),M===0&&(b=v(b))),E.push(b)}return E.join("")}function u(k){if(k.startsWith('"')){const $=k.slice(1).split('\\"');for(let N=0;N<$.length;++N){const T=$[N].indexOf('"');T!==-1&&($[N]=$[N].slice(0,T),$.length=N+1),$[N]=$[N].replace(/\\(.)/g,"$1")}k=$.join('"')}return k}function v(k){const $=k.indexOf("'");if($===-1)return k;const N=k.slice(0,$),E=k.slice($+1).replace(/^[^']*'/,"");return g(N,E)}function O(k){return!k.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(k)?k:k.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function($,N,T,E){if(T==="q"||T==="Q")return E=E.replace(/_/g," "),E=E.replace(/=([0-9a-fA-F]{2})/g,function(M,C){return String.fromCharCode(parseInt(C,16))}),g(N,E);try{E=atob(E)}catch{}return g(N,E)})}return""}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFNetworkStream=void 0;var h=a(1),f=a(158);const p=200,z=206;function P(u){const v=u.response;return typeof v!="string"?v:(0,h.stringToBytes)(v).buffer}class y{constructor(v){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.url=v,this.isHttp=/^https?:/i.test(v),this.httpHeaders=this.isHttp&&O.httpHeaders||Object.create(null),this.withCredentials=O.withCredentials||!1,this.getXhr=O.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(v,O,k){const $={begin:v,end:O};for(const N in k)$[N]=k[N];return this.request($)}requestFull(v){return this.request(v)}request(v){const O=this.getXhr(),k=this.currXhrId++,$=this.pendingRequests[k]={xhr:O};O.open("GET",this.url),O.withCredentials=this.withCredentials;for(const N in this.httpHeaders){const T=this.httpHeaders[N];typeof T>"u"||O.setRequestHeader(N,T)}return this.isHttp&&"begin"in v&&"end"in v?(O.setRequestHeader("Range",`bytes=${v.begin}-${v.end-1}`),$.expectedStatus=z):$.expectedStatus=p,O.responseType="arraybuffer",v.onError&&(O.onerror=function(N){v.onError(O.status)}),O.onreadystatechange=this.onStateChange.bind(this,k),O.onprogress=this.onProgress.bind(this,k),$.onHeadersReceived=v.onHeadersReceived,$.onDone=v.onDone,$.onError=v.onError,$.onProgress=v.onProgress,O.send(null),k}onProgress(v,O){var k;const $=this.pendingRequests[v];!$||(k=$.onProgress)===null||k===void 0||k.call($,O)}onStateChange(v,O){const k=this.pendingRequests[v];if(!k)return;const $=k.xhr;if($.readyState>=2&&k.onHeadersReceived&&(k.onHeadersReceived(),delete k.onHeadersReceived),$.readyState!==4||!(v in this.pendingRequests))return;if(delete this.pendingRequests[v],$.status===0&&this.isHttp){var N;(N=k.onError)===null||N===void 0||N.call(k,$.status);return}const T=$.status||p;if(!(T===p&&k.expectedStatus===z)&&T!==k.expectedStatus){var M;(M=k.onError)===null||M===void 0||M.call(k,$.status);return}const C=P($);if(T===z){const w=$.getResponseHeader("Content-Range"),I=/bytes (\d+)-(\d+)\/(\d+)/.exec(w);k.onDone({begin:parseInt(I[1],10),chunk:C})}else if(C)k.onDone({begin:0,chunk:C});else{var b;(b=k.onError)===null||b===void 0||b.call(k,$.status)}}getRequestXhr(v){return this.pendingRequests[v].xhr}isPendingRequest(v){return v in this.pendingRequests}abortRequest(v){const O=this.pendingRequests[v].xhr;delete this.pendingRequests[v],O.abort()}}class g{constructor(v){this._source=v,this._manager=new y(v.url,{httpHeaders:v.httpHeaders,withCredentials:v.withCredentials}),this._rangeChunkSize=v.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(v){const O=this._rangeRequestReaders.indexOf(v);O>=0&&this._rangeRequestReaders.splice(O,1)}getFullReader(){return(0,h.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new x(this._manager,this._source),this._fullRequestReader}getRangeReader(v,O){const k=new R(this._manager,v,O);return k.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(k),k}cancelAllRequests(v){var O;(O=this._fullRequestReader)===null||O===void 0||O.cancel(v);for(const k of this._rangeRequestReaders.slice(0))k.cancel(v)}}d.PDFNetworkStream=g;class x{constructor(v,O){this._manager=v;const k={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=O.url,this._fullRequestId=v.requestFull(k),this._headersReceivedCapability=(0,h.createPromiseCapability)(),this._disableRange=O.disableRange||!1,this._contentLength=O.length,this._rangeChunkSize=O.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const v=this._fullRequestId,O=this._manager.getRequestXhr(v),k=T=>O.getResponseHeader(T),{allowRangeRequests:$,suggestedLength:N}=(0,f.validateRangeRequestCapabilities)({getResponseHeader:k,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});$&&(this._isRangeSupported=!0),this._contentLength=N||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(k),this._isRangeSupported&&this._manager.abortRequest(v),this._headersReceivedCapability.resolve()}_onDone(v){if(v&&(this._requests.length>0?this._requests.shift().resolve({value:v.chunk,done:!1}):this._cachedChunks.push(v.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(v){this._storedError=(0,f.createResponseStatusError)(v,this._url),this._headersReceivedCapability.reject(this._storedError);for(const O of this._requests)O.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(v){var O;(O=this.onProgress)===null||O===void 0||O.call(this,{loaded:v.loaded,total:v.lengthComputable?v.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const v=(0,h.createPromiseCapability)();return this._requests.push(v),v.promise}cancel(v){this._done=!0,this._headersReceivedCapability.reject(v);for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class R{constructor(v,O,k){this._manager=v;const $={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=v.url,this._requestId=v.requestRange(O,k,$),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var v;(v=this.onClosed)===null||v===void 0||v.call(this,this)}_onDone(v){const O=v.chunk;this._requests.length>0?this._requests.shift().resolve({value:O,done:!1}):this._queuedChunk=O,this._done=!0;for(const k of this._requests)k.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(v){this._storedError=(0,f.createResponseStatusError)(v,this._url);for(const O of this._requests)O.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(v){if(!this.isStreamingSupported){var O;(O=this.onProgress)===null||O===void 0||O.call(this,{loaded:v.loaded})}}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const O=this._queuedChunk;return this._queuedChunk=null,{value:O,done:!1}}if(this._done)return{value:void 0,done:!0};const v=(0,h.createPromiseCapability)();return this._requests.push(v),v.promise}cancel(v){this._done=!0;for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(o,d,a)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.PDFFetchStream=void 0;var h=a(1),f=a(158);function p(x,R,u){return{method:"GET",headers:x,signal:u.signal,mode:"cors",credentials:R?"include":"same-origin",redirect:"follow"}}function z(x){const R=new Headers;for(const u in x){const v=x[u];typeof v>"u"||R.append(u,v)}return R}class P{constructor(R){this.source=R,this.isHttp=/^https?:/i.test(R.url),this.httpHeaders=this.isHttp&&R.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var R,u;return(R=(u=this._fullRequestReader)===null||u===void 0?void 0:u._loaded)!==null&&R!==void 0?R:0}getFullReader(){return(0,h.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new y(this),this._fullRequestReader}getRangeReader(R,u){if(u<=this._progressiveDataLength)return null;const v=new g(this,R,u);return this._rangeRequestReaders.push(v),v}cancelAllRequests(R){this._fullRequestReader&&this._fullRequestReader.cancel(R);for(const u of this._rangeRequestReaders.slice(0))u.cancel(R)}}d.PDFFetchStream=P;class y{constructor(R){this._stream=R,this._reader=null,this._loaded=0,this._filename=null;const u=R.source;this._withCredentials=u.withCredentials||!1,this._contentLength=u.length,this._headersCapability=(0,h.createPromiseCapability)(),this._disableRange=u.disableRange||!1,this._rangeChunkSize=u.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!u.disableStream,this._isRangeSupported=!u.disableRange,this._headers=z(this._stream.httpHeaders);const v=u.url;fetch(v,p(this._headers,this._withCredentials,this._abortController)).then(O=>{if(!(0,f.validateResponseStatus)(O.status))throw(0,f.createResponseStatusError)(O.status,v);this._reader=O.body.getReader(),this._headersCapability.resolve();const k=T=>O.headers.get(T),{allowRangeRequests:$,suggestedLength:N}=(0,f.validateRangeRequestCapabilities)({getResponseHeader:k,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=$,this._contentLength=N||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(k),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new h.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:R,done:u}=await this._reader.read();return u?{value:R,done:u}:(this._loaded+=R.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(R).buffer,done:!1})}cancel(R){this._reader&&this._reader.cancel(R),this._abortController.abort()}}class g{constructor(R,u,v){this._stream=R,this._reader=null,this._loaded=0;const O=R.source;this._withCredentials=O.withCredentials||!1,this._readCapability=(0,h.createPromiseCapability)(),this._isStreamingSupported=!O.disableStream,this._abortController=new AbortController,this._headers=z(this._stream.httpHeaders),this._headers.append("Range",`bytes=${u}-${v-1}`);const k=O.url;fetch(k,p(this._headers,this._withCredentials,this._abortController)).then($=>{if(!(0,f.validateResponseStatus)($.status))throw(0,f.createResponseStatusError)($.status,k);this._readCapability.resolve(),this._reader=$.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:R,done:u}=await this._reader.read();return u?{value:R,done:u}:(this._loaded+=R.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(R).buffer,done:!1})}cancel(R){this._reader&&this._reader.cancel(R),this._abortController.abort()}}}],s={};function n(o){var d=s[o];if(d!==void 0)return d.exports;var a=s[o]={exports:{}};return i[o](a,a.exports,n),a.exports}var l={};return(()=>{var o=l;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AnnotationEditorLayer",{enumerable:!0,get:function(){return f.AnnotationEditorLayer}}),Object.defineProperty(o,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return d.AnnotationEditorParamsType}}),Object.defineProperty(o,"AnnotationEditorType",{enumerable:!0,get:function(){return d.AnnotationEditorType}}),Object.defineProperty(o,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return p.AnnotationEditorUIManager}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return z.AnnotationLayer}}),Object.defineProperty(o,"AnnotationMode",{enumerable:!0,get:function(){return d.AnnotationMode}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return d.CMapCompressionType}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return P.GlobalWorkerOptions}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return d.InvalidPDFException}}),Object.defineProperty(o,"LoopbackPort",{enumerable:!0,get:function(){return a.LoopbackPort}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return d.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return d.OPS}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return h.PDFDateString}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return d.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return d.PermissionFlag}}),Object.defineProperty(o,"PixelsPerInch",{enumerable:!0,get:function(){return h.PixelsPerInch}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return h.RenderingCancelledException}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return x.SVGGraphics}}),Object.defineProperty(o,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return d.UNSUPPORTED_FEATURES}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return d.UnexpectedResponseException}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return d.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return d.VerbosityLevel}}),Object.defineProperty(o,"XfaLayer",{enumerable:!0,get:function(){return R.XfaLayer}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(o,"createPromiseCapability",{enumerable:!0,get:function(){return d.createPromiseCapability}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return d.createValidAbsoluteUrl}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return h.getFilenameFromUrl}}),Object.defineProperty(o,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return h.getPdfFilenameFromUrl}}),Object.defineProperty(o,"getXfaPageViewport",{enumerable:!0,get:function(){return h.getXfaPageViewport}}),Object.defineProperty(o,"isPdfFile",{enumerable:!0,get:function(){return h.isPdfFile}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return h.loadScript}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return g.renderTextLayer}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return d.shadow}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return a.version}});var d=n(1),a=n(129),h=n(133),f=n(147),p=n(132),z=n(152),P=n(140),y=n(3),g=n(155),x=n(156),R=n(154);if(y.isNodeJS){const{PDFNodeStream:u}=n(157);(0,a.setPDFNetworkStreamFactory)(v=>new u(v))}else{const{PDFNetworkStream:u}=n(160),{PDFFetchStream:v}=n(161);(0,a.setPDFNetworkStreamFactory)(O=>(0,h.isValidFetchUrl)(O.url)?new v(O):new u(O))}})(),l})())})(F2);const _B=Bz(F2.exports),SB=":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)}}";window.pdf=_B;const mC=class{constructor(e){q(this,e),this.activate=De(this,"activate",7),this.visiblePagesChange=De(this,"visiblePagesChange",7),this.pages=[],this.renderingPageNumbers=[],this.recentScrollPosition={x:0,y:0},this.storeRecentScrollPosition=()=>{var t,i,s,n;this.recentScrollPosition={x:Math.round(((t=this.scrollContainer)==null?void 0:t.scrollLeft)/((i=this.scrollContainer)==null?void 0:i.scrollWidth)*100)/100,y:Math.round(((s=this.scrollContainer)==null?void 0:s.scrollTop)/((n=this.scrollContainer)==null?void 0:n.scrollHeight)*100)/100}},this.onScroll=St(()=>{this.updateVisiblePages(),this.storeRecentScrollPosition()},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.currentPage=null,this.doc=void 0,this.error=void 0,this.loading=!0,this.renderedPages=[],this.singlePageModePage=1,this.visiblePages=[]}componentWillLoad(){window.pdf.GlobalWorkerOptions.workerSrc=this.workerSrc}async componentDidLoad(){await this.getPages(),await this.updateVisiblePages(),this.activate.emit(this.el)}componentDidRender(){this.updateVisiblePages()}disconnectedCallback(){var e;(e=this.doc)==null||e.destroy()}async onWindowResize(){this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()}async watchProps(){await this.getPages(),await this.updateVisiblePages()}async watchViewMode(){queueMicrotask(async()=>{this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}watchZoom(){queueMicrotask(async()=>{this.restoreScrollPosition(),this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}async getThumbnails(){return await Promise.all(this.pages.filter(Boolean).map(e=>{const t=e.getViewport({scale:1}),i=document.createElement("canvas");i.width=t.width,i.height=t.height;const s=Math.min(i.width/t.width,i.height/t.height);return e.render({canvasContext:i.getContext("2d"),viewport:e.getViewport({scale:s})}).promise.then(function(){return i})}))}async print(){this.loading=!0,await this.updateVisiblePages(!0),await this.openPrintDialog(),this.loading=!1}async nextPage(){await this.setPage(this.singlePageModePage+1),await this.updateVisiblePages()}async previousPage(){await this.setPage(this.singlePageModePage-1),await this.updateVisiblePages()}async setPage(e){this.singlePageModePage=Math.min(Math.max(e,1),this.pages.length-1),await this.updateVisiblePages()}async getPages(){this.error=!1,this.loading=!0;try{Boolean(this.doc)&&this.doc.destroy(),this.doc=await F2.exports.getDocument({isEvalSupported:!1,url:this.file}).promise;const e=[];for(let t=1;t<=this.doc.numPages;t++)e.push(this.doc.getPage(t));this.pages=await Promise.all(e),this.loading=!1}catch{this.error=!0,this.loading=!1}}async renderVisiblePages(e){const t=Array.from(this.el.shadowRoot.querySelectorAll("canvas")),i=[];for(const s of t){const n=s.closest(".file-viewer-pdf__page"),l=this.pages.find(o=>(o==null?void 0:o.pageNumber)===+(n==null?void 0:n.dataset.pageNumber));if(!(!Boolean(l)||this.renderingPageNumbers.includes(l.pageNumber))){if(!this.visiblePages.includes(l.pageNumber)&&!e){this.destroyPage(l);continue}if(this.renderedPages.includes(l.pageNumber)&&!e){i.push(l.pageNumber);continue}await this.renderPage(l,s,e),i.push(l.pageNumber)}}this.renderedPages=i}async renderPage(e,t,i){const s=t.closest(".file-viewer-pdf__page"),n=s==null?void 0:s.querySelector(".file-viewer-pdf__text-container");this.renderingPageNumbers=[...this.renderingPageNumbers,e.pageNumber];const l=i?2:this.getScale(e),o=window.devicePixelRatio||1,d=o!==1?[o,0,0,o,0,0]:null,a=e.getViewport({scale:l}),h=t.getContext("2d");t.height=Math.floor(a.height*o),t.width=Math.floor(a.width*o);const f={canvasContext:h,transform:d,viewport:a};try{await e.render(f).promise,e.cleanup(),n.innerHTML="",this.renderTextLayer(e,n).catch(),this.renderingPageNumbers=this.renderingPageNumbers.filter(p=>p!==e.pageNumber)}catch{}}destroyPage(e){const t=this.el.shadowRoot.querySelector(`[data-page-number="${e.pageNumber}"]`),i=t.querySelector("canvas"),s=t.querySelector(".file-viewer-pdf__text-container");i.width=1,i.height=1,i.getContext("2d").clearRect(0,0,i.width,i.height),s.innerHTML=""}async updateVisiblePages(e){const t=Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));let i=[],s=null;if(this.singlePageMode)i=[this.singlePageModePage],s=this.singlePageModePage;else if(e)i=t.map(l=>+l.dataset.pageNumber);else{const l=t.map(o=>({pageNumber:+o.dataset.pageNumber,visibleHeight:nz(o,this.scrollContainer)})).filter(({visibleHeight:o})=>o>0);i=l.map(o=>o.pageNumber),l.length>0&&(s=l.reduce((d,a)=>a.visibleHeight>d.visibleHeight?a:d,l[0]).pageNumber)}this.visiblePages.length===i.length&&this.visiblePages.every(l=>i.includes(l))&&this.currentPage===s||(this.visiblePages=i,this.currentPage=s,await this.renderVisiblePages(e),this.visiblePagesChange.emit(this.visiblePages))}async renderTextLayer(e,t){F2.exports.renderTextLayer({container:t,textContent:await e.getTextContent(),viewport:e.getViewport({scale:this.getScale(e)})})}async openPrintDialog(){const e=Array.from(this.scrollContainer.querySelectorAll("canvas"));let t=`
|
|
502
502
|
*, *:before, *:after {
|
|
503
503
|
margin: 0;
|
|
504
504
|
padding: 0;
|
|
@@ -536,7 +536,7 @@ License: MIT
|
|
|
536
536
|
`;for(const l of e)i+=`<img src="${l.toDataURL()}">`;i+=`
|
|
537
537
|
</body>
|
|
538
538
|
</html>
|
|
539
|
-
`;const s=document.createElement("iframe");this.el.append(s);const n=s.contentWindow;n.document.write(i),n.focus(),await new Promise(l=>setTimeout(l,100)),n.print(),s.remove()}getScale(e){var i;const t=D1()?0:32;return this.zoom==="auto"?(((i=this.scrollContainer)==null?void 0:i.clientWidth)-t)/e.view[2]:isNaN(this.zoom)?1:this.zoom}restoreScrollPosition(){var e,t;this.scrollContainer.scrollTop=this.recentScrollPosition.y*((e=this.scrollContainer)==null?void 0:e.scrollHeight),this.scrollContainer.scrollLeft=this.recentScrollPosition.x*((t=this.scrollContainer)==null?void 0:t.scrollWidth)}render(){const e=!this.error&&!this.loading&&this.visiblePages.length>0,t=this.loading,i=te("file-viewer-pdf",`file-viewer-pdf--view-mode-${this.viewMode}`);return r(Ne,{key:"1d3dc1cafdc8be24848eb1549e2ad34598acc36a",class:i,exportparts:"file-viewer-pdf__pagination"},this.error&&r("swirl-inline-error",{key:"2c3aab82aa87b4206729bc60cf4d24687b518a93",class:"file-viewer-pdf__error",message:this.errorMessage}),r("div",{key:"4531eac7ee983b0a383de43da7948b7e8494dc39","aria-describedby":"pagination",class:"file-viewer-pdf__pages",onScroll:this.onScroll,ref:s=>this.scrollContainer=s},this.pages.map(s=>{const n=s.getViewport({scale:this.getScale(s)}),l=n.height,o=n.width,d=this.renderedPages.includes(s.pageNumber);return r("div",{"aria-label":s.pageNumber,class:"file-viewer-pdf__page","data-page-number":s.pageNumber,hidden:!this.singlePageMode||s.pageNumber===this.singlePageModePage?void 0:!0,id:`page-${s.pageNumber}`,key:s.pageNumber,role:"region",style:{width:`${o}px`,height:`${l}px`},tabIndex:0},!d&&r("swirl-spinner",{class:"file-viewer-pdf__page-spinner"}),r("canvas",{class:"file-viewer-pdf__canvas",style:{opacity:d?"1":"0"}}),r("div",{class:"file-viewer-pdf__text-container"}))})),e&&r("span",{key:"14e3ddf6e83d01858a8ab3bc1ae7770de2dbe619",class:"file-viewer-pdf__pagination",id:"pagination",part:"file-viewer-pdf__pagination"},r("span",{key:"a814c965764d051c09cdf75cd45118e080044c22","aria-current":"page"},this.currentPage)," /"," ",this.doc.numPages),t&&r("div",{key:"659799cb5334277cb74077d58bfc698c6abc7079",class:"file-viewer-pdf__spinner"},r("swirl-spinner",{key:"a738004bb01a29571b7898d497bc24ed6f9197f3"})))}get el(){return n1(this)}static get watchers(){return{file:["watchProps"],viewMode:["watchViewMode"],zoom:["watchZoom"]}}};mC.style=SB;const kB=":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)}",gC=class{constructor(e){q(this,e),this.activate=De(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}componentWillLoad(){this.updateText()}componentDidLoad(){this.activate.emit(this.el)}async updateText(){this.error=!1,this.loading=!0;try{const e=await fetch(this.file);this.text=await e.text(),this.loading=!1}catch{this.loading=!1,this.error=!0}}render(){return r(Ne,{key:"906e67ca66d8243b8ea1a9012462d2635c341b18",class:"file-viewer-text",exportparts:"file-viewer-text__text"},this.error&&r("swirl-inline-error",{key:"1adff96153d849dcf93a885f33e1d4dd7eefaa67",class:"file-viewer-text__error",message:this.errorMessage}),r("pre",{key:"5a05947f405f6452dc674782b38945570d7a2847",class:"file-viewer-text__text",part:"file-viewer-text__text",tabIndex:0},this.text),this.loading&&r("div",{key:"922c8419088bc441761226aac66d644240689d1a",class:"file-viewer-text__spinner"},r("swirl-spinner",{key:"cc183ed9ecd4582bb6c5b7c84c9a0e23bd6cc72b"})))}get el(){return n1(this)}static get watchers(){return{file:["updateText"]}}};gC.style=kB;const xB=":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)}",wC=class{constructor(e){q(this,e),this.activate=De(this,"activate",7),this.autoplay=void 0,this.disableDownload=void 0,this.file=void 0,this.type=void 0}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}render(){return r(Ne,{key:"f8f2bef246a6df61c0e35566651ea8b348d6a9f4",class:"file-viewer-video"},r("video",{key:"51a0ac1e270cb96fa80e46a327be080989e07f25",autoplay:this.autoplay,class:"file-viewer-video__video",controls:!0,ref:e=>this.videoEl=e},r("source",{key:"86fa6c072078272c9801e33444891521043fe9c6",src:this.file,type:this.type})))}get el(){return n1(this)}static get watchers(){return{disableDownload:["watchDisableDownload"]}}};wC.style=xB;const yC=Object.freeze(Object.defineProperty({__proto__:null,swirl_file_viewer:dC,swirl_file_viewer_audio:hC,swirl_file_viewer_csv:fC,swirl_file_viewer_fallback:bC,swirl_file_viewer_image:CC,swirl_file_viewer_pdf:mC,swirl_file_viewer_text:gC,swirl_file_viewer_video:wC},Symbol.toStringTag,{value:"Module"})),zB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",vC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"0537f7d3e8627ef57040c046cfd67eebed24fadf","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"b92f6d84c78e3c4b844da670956ad5958efc5049"},r("path",{key:"4a98a2f3706688a8febdcd580418055c7afc1ec2",d:"M5.73333 11.6C5.58889 11.4556 5.51666 11.2778 5.51666 11.0667C5.51666 10.8556 5.58889 10.6778 5.73333 10.5333L8.26666 8.00002L5.73333 5.46668C5.58889 5.32224 5.51666 5.14446 5.51666 4.93335C5.51666 4.72224 5.58889 4.54446 5.73333 4.40002C5.87777 4.25557 6.05555 4.18335 6.26666 4.18335C6.47777 4.18335 6.65555 4.25557 6.8 4.40002L9.86666 7.46668C9.94444 7.54446 10 7.62779 10.0333 7.71668C10.0667 7.80557 10.0833 7.90002 10.0833 8.00002C10.0833 8.10002 10.0667 8.19446 10.0333 8.28335C10 8.37224 9.94444 8.45557 9.86666 8.53335L6.8 11.6C6.65555 11.7445 6.47777 11.8167 6.26666 11.8167C6.05555 11.8167 5.87777 11.7445 5.73333 11.6V11.6Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"8dc2d1dac899cb7ea939738a0faaf9259068ed32"},r("path",{key:"5a96927cad12bed07f1880730ac12235909848f9",d:"M8.59999 17.4C8.38333 17.1834 8.27499 16.9167 8.27499 16.6C8.27499 16.2834 8.38333 16.0167 8.59999 15.8L12.4 12L8.59999 8.20002C8.38333 7.98336 8.27499 7.71669 8.27499 7.40002C8.27499 7.08336 8.38333 6.81669 8.59999 6.60002C8.81666 6.38336 9.08333 6.27502 9.39999 6.27502C9.71666 6.27502 9.98333 6.38336 10.2 6.60002L14.8 11.2C14.9167 11.3167 15 11.4417 15.05 11.575C15.1 11.7084 15.125 11.85 15.125 12C15.125 12.15 15.1 12.2917 15.05 12.425C15 12.5584 14.9167 12.6834 14.8 12.8L10.2 17.4C9.98333 17.6167 9.71666 17.725 9.39999 17.725C9.08333 17.725 8.81666 17.6167 8.59999 17.4Z",fill:"currentColor"})),this.size===28&&r(S,{key:"ab9d97edaf8ef4dd10354ded376caab60d8c4e76"},r("path",{key:"c75f992af5fa12ab0005ba8abfe98354ed0b699e",d:"M10.0333 20.3C9.78056 20.0472 9.65417 19.7361 9.65417 19.3666C9.65417 18.9972 9.78056 18.6861 10.0333 18.4333L14.4667 14L10.0333 9.56663C9.78056 9.31386 9.65417 9.00275 9.65417 8.6333C9.65417 8.26386 9.78056 7.95275 10.0333 7.69997C10.2861 7.44719 10.5972 7.3208 10.9667 7.3208C11.3361 7.3208 11.6472 7.44719 11.9 7.69997L17.2667 13.0666C17.4028 13.2027 17.5 13.3486 17.5583 13.5041C17.6167 13.6597 17.6458 13.825 17.6458 14C17.6458 14.175 17.6167 14.3402 17.5583 14.4958C17.5 14.6514 17.4028 14.7972 17.2667 14.9333L11.9 20.3C11.6472 20.5527 11.3361 20.6791 10.9667 20.6791C10.5972 20.6791 10.2861 20.5527 10.0333 20.3V20.3Z",fill:"currentColor"})))}};vC.style=zB;const _C=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_chevron_right:vC},Symbol.toStringTag,{value:"Module"})),MB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",SC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"98a265b3c1018ca586faeb0df3fbbdb365eab376","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"f73062d6001bb4a6b60fa6a397f46ed9864d3ee6"},r("path",{key:"c9c855c0eeaf11a5182e1f89baee8c5bc5f82c4f",d:"M7.96665 11.9987C8.19998 11.9987 8.39731 11.918 8.55865 11.7567C8.71953 11.5958 8.79998 11.3987 8.79998 11.1654C8.79998 10.932 8.71953 10.7349 8.55865 10.574C8.39731 10.4127 8.19998 10.332 7.96665 10.332C7.73331 10.332 7.53598 10.4127 7.37465 10.574C7.21376 10.7349 7.13331 10.932 7.13331 11.1654C7.13331 11.3987 7.21376 11.5958 7.37465 11.7567C7.53598 11.918 7.73331 11.9987 7.96665 11.9987ZM8.06665 5.13203C8.37776 5.13203 8.62776 5.21803 8.81665 5.39003C9.00554 5.56248 9.09998 5.78759 9.09998 6.06536C9.09998 6.25425 9.0362 6.44581 8.90865 6.64003C8.78065 6.8347 8.59998 7.03759 8.36665 7.2487C8.03331 7.53759 7.78887 7.81536 7.63331 8.08203C7.47776 8.3487 7.39998 8.61536 7.39998 8.88203C7.39998 9.03759 7.45842 9.16803 7.57531 9.27336C7.69176 9.37914 7.82776 9.43203 7.98331 9.43203C8.13887 9.43203 8.27776 9.37648 8.39998 9.26536C8.5222 9.15425 8.59998 9.01536 8.63331 8.8487C8.66665 8.65981 8.74176 8.48492 8.85865 8.32403C8.97509 8.1627 9.16665 7.95425 9.43331 7.6987C9.77776 7.37648 10.0195 7.08203 10.1586 6.81536C10.2973 6.5487 10.3666 6.25425 10.3666 5.93203C10.3666 5.36536 10.1529 4.90136 9.72531 4.54003C9.29731 4.17914 8.74442 3.9987 8.06665 3.9987C7.59998 3.9987 7.1862 4.08759 6.82531 4.26536C6.46398 4.44314 6.18331 4.71536 5.98331 5.08203C5.90554 5.22648 5.87776 5.36803 5.89998 5.5067C5.9222 5.64581 5.99998 5.75981 6.13331 5.8487C6.27776 5.93759 6.4362 5.96536 6.60865 5.93203C6.78065 5.8987 6.9222 5.80425 7.03331 5.6487C7.15554 5.48203 7.30287 5.35425 7.47531 5.26536C7.64731 5.17648 7.84442 5.13203 8.06665 5.13203ZM7.99998 14.6654C7.08887 14.6654 6.22776 14.4903 5.41665 14.14C4.60554 13.7903 3.89731 13.3154 3.29198 12.7154C2.6862 12.1154 2.20842 11.4098 1.85865 10.5987C1.50842 9.78759 1.33331 8.92092 1.33331 7.9987C1.33331 7.07648 1.50842 6.20981 1.85865 5.3987C2.20842 4.58759 2.6862 3.88203 3.29198 3.28203C3.89731 2.68203 4.60554 2.20692 5.41665 1.8567C6.22776 1.50692 7.08887 1.33203 7.99998 1.33203C8.93331 1.33203 9.80553 1.50692 10.6166 1.8567C11.4278 2.20692 12.1333 2.68203 12.7333 3.28203C13.3333 3.88203 13.8055 4.58759 14.15 5.3987C14.4944 6.20981 14.6666 7.07648 14.6666 7.9987C14.6666 8.92092 14.4944 9.78759 14.15 10.5987C13.8055 11.4098 13.3333 12.1154 12.7333 12.7154C12.1333 13.3154 11.4278 13.7903 10.6166 14.14C9.80553 14.4903 8.93331 14.6654 7.99998 14.6654ZM7.99998 13.332C9.48887 13.332 10.75 12.8127 11.7833 11.774C12.8166 10.7349 13.3333 9.47647 13.3333 7.9987C13.3333 6.52092 12.8166 5.26248 11.7833 4.22336C10.75 3.1847 9.48887 2.66536 7.99998 2.66536C6.54442 2.66536 5.29153 3.1847 4.24131 4.22336C3.19154 5.26248 2.66665 6.52092 2.66665 7.9987C2.66665 9.47647 3.19154 10.7349 4.24131 11.774C5.29153 12.8127 6.54442 13.332 7.99998 13.332Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"4d6fd371ce5bf920331cee8796c7142dcb95b92e"},r("path",{key:"aa35380fe127ad8b4b0f4ff350833e6a38baf99b",d:"M11.95 18C12.3 18 12.596 17.879 12.838 17.637C13.0793 17.3957 13.2 17.1 13.2 16.75C13.2 16.4 13.0793 16.1043 12.838 15.863C12.596 15.621 12.3 15.5 11.95 15.5C11.6 15.5 11.304 15.621 11.062 15.863C10.8207 16.1043 10.7 16.4 10.7 16.75C10.7 17.1 10.8207 17.3957 11.062 17.637C11.304 17.879 11.6 18 11.95 18ZM12.1 7.7C12.5667 7.7 12.9417 7.829 13.225 8.087C13.5083 8.34567 13.65 8.68333 13.65 9.1C13.65 9.38333 13.5543 9.67067 13.363 9.962C13.171 10.254 12.9 10.5583 12.55 10.875C12.05 11.3083 11.6833 11.725 11.45 12.125C11.2167 12.525 11.1 12.925 11.1 13.325C11.1 13.5583 11.1877 13.754 11.363 13.912C11.5377 14.0707 11.7417 14.15 11.975 14.15C12.2083 14.15 12.4167 14.0667 12.6 13.9C12.7833 13.7333 12.9 13.525 12.95 13.275C13 12.9917 13.1127 12.7293 13.288 12.488C13.4627 12.246 13.75 11.9333 14.15 11.55C14.6667 11.0667 15.0293 10.625 15.238 10.225C15.446 9.825 15.55 9.38333 15.55 8.9C15.55 8.05 15.2293 7.354 14.588 6.812C13.946 6.27067 13.1167 6 12.1 6C11.4 6 10.7793 6.13333 10.238 6.4C9.696 6.66667 9.275 7.075 8.975 7.625C8.85833 7.84167 8.81667 8.054 8.85 8.262C8.88333 8.47067 9 8.64167 9.2 8.775C9.41667 8.90833 9.65433 8.95 9.913 8.9C10.171 8.85 10.3833 8.70833 10.55 8.475C10.7333 8.225 10.9543 8.03333 11.213 7.9C11.471 7.76667 11.7667 7.7 12.1 7.7ZM12 22C10.6333 22 9.34167 21.7373 8.125 21.212C6.90833 20.6873 5.846 19.975 4.938 19.075C4.02933 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.02933 5.825 4.938 4.925C5.846 4.025 6.90833 3.31233 8.125 2.787C9.34167 2.26233 10.6333 2 12 2C13.4 2 14.7083 2.26233 15.925 2.787C17.1417 3.31233 18.2 4.025 19.1 4.925C20 5.825 20.7083 6.88333 21.225 8.1C21.7417 9.31667 22 10.6167 22 12C22 13.3833 21.7417 14.6833 21.225 15.9C20.7083 17.1167 20 18.175 19.1 19.075C18.2 19.975 17.1417 20.6873 15.925 21.212C14.7083 21.7373 13.4 22 12 22ZM12 20C14.2333 20 16.125 19.221 17.675 17.663C19.225 16.1043 20 14.2167 20 12C20 9.78333 19.225 7.89567 17.675 6.337C16.125 4.779 14.2333 4 12 4C9.81667 4 7.93733 4.779 6.362 6.337C4.78733 7.89567 4 9.78333 4 12C4 14.2167 4.78733 16.1043 6.362 17.663C7.93733 19.221 9.81667 20 12 20Z",fill:"currentColor"})),this.size===28&&r(S,{key:"cb7865e9973f866cf31c98f56186b01cfbfafb85"},r("path",{key:"2cc0fab6c5540b5513996bba07d835958830a607",d:"M13.9417 20.9999C14.35 20.9999 14.6953 20.8588 14.9777 20.5764C15.2592 20.2949 15.4 19.9499 15.4 19.5416C15.4 19.1333 15.2592 18.7883 14.9777 18.5068C14.6953 18.2244 14.35 18.0833 13.9417 18.0833C13.5333 18.0833 13.188 18.2244 12.9057 18.5068C12.6241 18.7883 12.4833 19.1333 12.4833 19.5416C12.4833 19.9499 12.6241 20.2949 12.9057 20.5764C13.188 20.8588 13.5333 20.9999 13.9417 20.9999ZM14.1167 8.98325C14.6611 8.98325 15.0986 9.13375 15.4292 9.43475C15.7597 9.73653 15.925 10.1305 15.925 10.6166C15.925 10.9471 15.8134 11.2824 15.5902 11.6223C15.3662 11.9629 15.05 12.318 14.6417 12.6874C14.0583 13.193 13.6306 13.6791 13.3583 14.1458C13.0861 14.6124 12.95 15.0791 12.95 15.5458C12.95 15.818 13.0523 16.0463 13.2568 16.2306C13.4606 16.4157 13.6986 16.5083 13.9708 16.5083C14.2431 16.5083 14.4861 16.411 14.7 16.2166C14.9139 16.0221 15.05 15.7791 15.1083 15.4874C15.1667 15.1569 15.2981 14.8508 15.5027 14.5693C15.7064 14.2869 16.0417 13.9221 16.5083 13.4749C17.1111 12.911 17.5342 12.3958 17.7777 11.9291C18.0203 11.4624 18.1417 10.9471 18.1417 10.3833C18.1417 9.39159 17.7676 8.57959 17.0193 7.94725C16.2703 7.3157 15.3028 6.99992 14.1167 6.99992C13.3 6.99992 12.5759 7.15547 11.9443 7.46659C11.312 7.7777 10.8208 8.25409 10.4708 8.89575C10.3347 9.14853 10.2861 9.39625 10.325 9.63892C10.3639 9.88236 10.5 10.0819 10.7333 10.2374C10.9861 10.393 11.2634 10.4416 11.5652 10.3833C11.8662 10.3249 12.1139 10.1596 12.3083 9.88742C12.5222 9.59575 12.7801 9.37214 13.0818 9.21659C13.3828 9.06103 13.7278 8.98325 14.1167 8.98325ZM14 25.6666C12.4056 25.6666 10.8986 25.3601 9.47917 24.7473C8.05973 24.1351 6.82034 23.3041 5.761 22.2541C4.70089 21.2041 3.86478 19.9694 3.25267 18.5499C2.63978 17.1305 2.33334 15.6138 2.33334 13.9999C2.33334 12.386 2.63978 10.8694 3.25267 9.44992C3.86478 8.03048 4.70089 6.79575 5.761 5.74575C6.82034 4.69575 8.05973 3.86431 9.47917 3.25142C10.8986 2.63931 12.4056 2.33325 14 2.33325C15.6333 2.33325 17.1597 2.63931 18.5792 3.25142C19.9986 3.86431 21.2333 4.69575 22.2833 5.74575C23.3333 6.79575 24.1597 8.03048 24.7625 9.44992C25.3653 10.8694 25.6667 12.386 25.6667 13.9999C25.6667 15.6138 25.3653 17.1305 24.7625 18.5499C24.1597 19.9694 23.3333 21.2041 22.2833 22.2541C21.2333 23.3041 19.9986 24.1351 18.5792 24.7473C17.1597 25.3601 15.6333 25.6666 14 25.6666ZM14 23.3333C16.6056 23.3333 18.8125 22.4244 20.6208 20.6068C22.4292 18.7883 23.3333 16.586 23.3333 13.9999C23.3333 11.4138 22.4292 9.21153 20.6208 7.39309C18.8125 5.57542 16.6056 4.66659 14 4.66659C11.4528 4.66659 9.26023 5.57542 7.42234 7.39309C5.58523 9.21153 4.66667 11.4138 4.66667 13.9999C4.66667 16.586 5.58523 18.7883 7.42234 20.6068C9.26023 22.4244 11.4528 23.3333 14 23.3333Z",fill:"currentColor"})))}};SC.style=MB;const kC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_help:SC},Symbol.toStringTag,{value:"Module"})),LB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",xC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"d831b8be0306cd5a86d4bd199ec254444c9b9f02","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"4cf6b8919893cf1211914b74cbf1204f64958471"},r("path",{key:"5aae2d3819220966e8fd313ae6eb2cef155749e3",d:"M12.5333 13.6167L8.83333 9.91669C8.5 10.1722 8.11666 10.3778 7.68333 10.5334C7.25 10.6889 6.78889 10.7667 6.3 10.7667C5.06666 10.7667 4.02222 10.336 3.16666 9.47469C2.31111 8.6138 1.88333 7.56669 1.88333 6.33336C1.88333 5.10002 2.31111 4.05269 3.16666 3.19136C4.02222 2.33047 5.06666 1.90002 6.3 1.90002C7.53333 1.90002 8.58066 2.33047 9.442 3.19136C10.3029 4.05269 10.7333 5.10002 10.7333 6.33336C10.7333 6.82225 10.6584 7.28336 10.5087 7.71669C10.3584 8.15002 10.1556 8.5278 9.9 8.85002L13.6167 12.5834C13.75 12.7167 13.8167 12.8862 13.8167 13.092C13.8167 13.2974 13.7444 13.4722 13.6 13.6167C13.4556 13.7611 13.2751 13.8334 13.0587 13.8334C12.8418 13.8334 12.6667 13.7611 12.5333 13.6167ZM6.3 9.23336C7.11111 9.23336 7.8 8.95269 8.36667 8.39136C8.93333 7.83047 9.21666 7.14447 9.21666 6.33336C9.21666 5.52225 8.93333 4.83602 8.36667 4.27469C7.8 3.7138 7.11111 3.43336 6.3 3.43336C5.48889 3.43336 4.80289 3.7138 4.242 4.27469C3.68066 4.83602 3.4 5.52225 3.4 6.33336C3.4 7.14447 3.68066 7.83047 4.242 8.39136C4.80289 8.95269 5.48889 9.23336 6.3 9.23336Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"bd323f6a2991cf0b8441fa598656a36243841169"},r("path",{key:"dd8abac96e2449b4d16bc958eaf45b5d0e9a1f36",d:"M18.8 20.425L13.25 14.875C12.75 15.2583 12.175 15.5666 11.525 15.8C10.875 16.0333 10.1833 16.15 9.45001 16.15C7.60001 16.15 6.03335 15.504 4.75001 14.212C3.46668 12.9206 2.82501 11.35 2.82501 9.49998C2.82501 7.64998 3.46668 6.07898 4.75001 4.78698C6.03335 3.49564 7.60001 2.84998 9.45001 2.84998C11.3 2.84998 12.871 3.49564 14.163 4.78698C15.4543 6.07898 16.1 7.64998 16.1 9.49998C16.1 10.2333 15.9877 10.925 15.763 11.575C15.5377 12.225 15.2333 12.7916 14.85 13.275L20.425 18.875C20.625 19.075 20.725 19.3293 20.725 19.638C20.725 19.946 20.6167 20.2083 20.4 20.425C20.1833 20.6416 19.9127 20.75 19.588 20.75C19.2627 20.75 19 20.6416 18.8 20.425ZM9.45001 13.85C10.6667 13.85 11.7 13.429 12.55 12.587C13.4 11.7456 13.825 10.7166 13.825 9.49998C13.825 8.28331 13.4 7.25398 12.55 6.41198C11.7 5.57064 10.6667 5.14998 9.45001 5.14998C8.23335 5.14998 7.20435 5.57064 6.36301 6.41198C5.52101 7.25398 5.10001 8.28331 5.10001 9.49998C5.10001 10.7166 5.52101 11.7456 6.36301 12.587C7.20435 13.429 8.23335 13.85 9.45001 13.85Z",fill:"currentColor"})),this.size===28&&r(S,{key:"3bec5518e39011ec63ddcfe16fa6c25e86f60dd9"},r("path",{key:"6da78537adccdd68b9d489f41293b2d8a7bf5e8c",d:"M21.9333 23.8292L15.4583 17.3542C14.875 17.8014 14.2042 18.1611 13.4458 18.4333C12.6875 18.7056 11.8806 18.8417 11.025 18.8417C8.86667 18.8417 7.03889 18.088 5.54167 16.5807C4.04445 15.0741 3.29584 13.2417 3.29584 11.0833C3.29584 8.92501 4.04445 7.09218 5.54167 5.58485C7.03889 4.07829 8.86667 3.32501 11.025 3.32501C13.1833 3.32501 15.0162 4.07829 16.5235 5.58485C18.0301 7.09218 18.7833 8.92501 18.7833 11.0833C18.7833 11.9389 18.6523 12.7458 18.3902 13.5042C18.1273 14.2625 17.7722 14.9236 17.325 15.4875L23.8292 22.0208C24.0625 22.2542 24.1792 22.5509 24.1792 22.911C24.1792 23.2703 24.0528 23.5764 23.8 23.8292C23.5472 24.082 23.2314 24.2083 22.8527 24.2083C22.4731 24.2083 22.1667 24.082 21.9333 23.8292ZM11.025 16.1583C12.4444 16.1583 13.65 15.6672 14.6417 14.6848C15.6333 13.7033 16.1292 12.5028 16.1292 11.0833C16.1292 9.6639 15.6333 8.46301 14.6417 7.48068C13.65 6.49912 12.4444 6.00835 11.025 6.00835C9.60556 6.00835 8.40506 6.49912 7.4235 7.48068C6.44117 8.46301 5.95 9.6639 5.95 11.0833C5.95 12.5028 6.44117 13.7033 7.4235 14.6848C8.40506 15.6672 9.60556 16.1583 11.025 16.1583Z",fill:"currentColor"})))}};xC.style=LB;const zC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_search:xC},Symbol.toStringTag,{value:"Module"})),IB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",MC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"63120fa2ae0bc8d9537fe4095928e0071493f637","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"8e1905c7ce04a05f677ff40ba7fcf2f031dc4e21"},r("path",{key:"c4a870fb431d75551497bee09ec867c23863a8fd",d:"M8 1.33337C4.31334 1.33337 1.33334 4.31337 1.33334 8.00004C1.33334 11.6867 4.31334 14.6667 8 14.6667C11.6867 14.6667 14.6667 11.6867 14.6667 8.00004C14.6667 4.31337 11.6867 1.33337 8 1.33337ZM10.8667 10.8667C10.6067 11.1267 10.1867 11.1267 9.92667 10.8667L8 8.94004L6.07334 10.8667C5.81334 11.1267 5.39334 11.1267 5.13334 10.8667C4.87334 10.6067 4.87334 10.1867 5.13334 9.92671L7.06 8.00004L5.13334 6.07337C4.87334 5.81337 4.87334 5.39337 5.13334 5.13337C5.39334 4.87337 5.81334 4.87337 6.07334 5.13337L8 7.06004L9.92667 5.13337C10.1867 4.87337 10.6067 4.87337 10.8667 5.13337C11.1267 5.39337 11.1267 5.81337 10.8667 6.07337L8.94 8.00004L10.8667 9.92671C11.12 10.18 11.12 10.6067 10.8667 10.8667Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"06cc2ab8a72d0979c8d8a93bc07de6e18024c33b"},r("path",{key:"e4a0a48f9ecc01dd4612dc6e4fbf04e7b3e5c1ac",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM16.3 16.3C15.91 16.69 15.28 16.69 14.89 16.3L12 13.41L9.11 16.3C8.72 16.69 8.09 16.69 7.7 16.3C7.31 15.91 7.31 15.28 7.7 14.89L10.59 12L7.7 9.11C7.31 8.72 7.31 8.09 7.7 7.7C8.09 7.31 8.72 7.31 9.11 7.7L12 10.59L14.89 7.7C15.28 7.31 15.91 7.31 16.3 7.7C16.69 8.09 16.69 8.72 16.3 9.11L13.41 12L16.3 14.89C16.68 15.27 16.68 15.91 16.3 16.3Z",fill:"currentColor"})),this.size===28&&r(S,{key:"c0f1a787686de28c10824e8737aff113b93789f3"},r("path",{key:"7e85ba81de33918b033262d2854cba863a3159b5",d:"M14 2.33337C7.54834 2.33337 2.33334 7.54837 2.33334 14C2.33334 20.4517 7.54834 25.6667 14 25.6667C20.4517 25.6667 25.6667 20.4517 25.6667 14C25.6667 7.54837 20.4517 2.33337 14 2.33337ZM19.0167 19.0167C18.5617 19.4717 17.8267 19.4717 17.3717 19.0167L14 15.645L10.6283 19.0167C10.1733 19.4717 9.43834 19.4717 8.98334 19.0167C8.52834 18.5617 8.52834 17.8267 8.98334 17.3717L12.355 14L8.98334 10.6284C8.52834 10.1734 8.52834 9.43837 8.98334 8.98337C9.43834 8.52837 10.1733 8.52837 10.6283 8.98337L14 12.355L17.3717 8.98337C17.8267 8.52837 18.5617 8.52837 19.0167 8.98337C19.4717 9.43837 19.4717 10.1734 19.0167 10.6284L15.645 14L19.0167 17.3717C19.46 17.815 19.46 18.5617 19.0167 19.0167Z",fill:"currentColor"})))}};MC.style=IB;const PB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",LC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"69406cc6dab89f69aa2d348a4e2e17fc80aa623b","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"1b20324c76f7590731e370302965843ee2058baf"},r("path",{key:"fcf994c122aab593d50383861f6720bdef6f9fd0",d:"M4.39999 9.85C4.25554 9.70556 4.18332 9.52778 4.18332 9.31667C4.18332 9.10556 4.25554 8.92778 4.39999 8.78333L7.46665 5.71667C7.54443 5.63889 7.62776 5.58333 7.71665 5.55C7.80554 5.51667 7.89999 5.5 7.99999 5.5C8.09999 5.5 8.19443 5.51667 8.28332 5.55C8.37221 5.58333 8.45554 5.63889 8.53332 5.71667L11.6167 8.8C11.7611 8.94444 11.8307 9.11667 11.8253 9.31667C11.8195 9.51667 11.7444 9.69444 11.6 9.85C11.4555 9.98333 11.2778 10.05 11.0667 10.05C10.8555 10.05 10.6778 9.98333 10.5333 9.85L7.99999 7.3L5.44999 9.86667C5.30554 10 5.13332 10.0667 4.93332 10.0667C4.73332 10.0667 4.55554 9.99444 4.39999 9.85V9.85Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"918d1c391ce290995e088e8e8b9678187b974699"},r("path",{key:"028f3bea949de316ea05d5938a13e0047d7c485b",d:"M6.59999 14.775C6.38333 14.5583 6.27499 14.2917 6.27499 13.975C6.27499 13.6583 6.38333 13.3917 6.59999 13.175L11.2 8.575C11.3167 8.45833 11.4417 8.375 11.575 8.325C11.7083 8.275 11.85 8.25 12 8.25C12.15 8.25 12.2917 8.275 12.425 8.325C12.5583 8.375 12.6833 8.45833 12.8 8.575L17.425 13.2C17.6417 13.4167 17.746 13.675 17.738 13.975C17.7293 14.275 17.6167 14.5417 17.4 14.775C17.1833 14.975 16.9167 15.075 16.6 15.075C16.2833 15.075 16.0167 14.975 15.8 14.775L12 10.95L8.17499 14.8C7.95833 15 7.69999 15.1 7.39999 15.1C7.09999 15.1 6.83333 14.9917 6.59999 14.775Z",fill:"currentColor"})),this.size===28&&r(S,{key:"23928b5c368403bca02e49a798215c2a19258a09"},r("path",{key:"cb48861777cb9d77d519fb746c646e3231af57cd",d:"M7.7 17.2375C7.44722 16.9847 7.32083 16.6736 7.32083 16.3042C7.32083 15.9347 7.44722 15.6236 7.7 15.3708L13.0667 10.0042C13.2028 9.86806 13.3486 9.77083 13.5042 9.7125C13.6597 9.65417 13.825 9.625 14 9.625C14.175 9.625 14.3403 9.65417 14.4958 9.7125C14.6514 9.77083 14.7972 9.86806 14.9333 10.0042L20.3292 15.4C20.5819 15.6528 20.7037 15.9542 20.6943 16.3042C20.6842 16.6542 20.5528 16.9653 20.3 17.2375C20.0472 17.4708 19.7361 17.5875 19.3667 17.5875C18.9972 17.5875 18.6861 17.4708 18.4333 17.2375L14 12.775L9.5375 17.2667C9.28472 17.5 8.98333 17.6167 8.63333 17.6167C8.28333 17.6167 7.97222 17.4903 7.7 17.2375V17.2375Z",fill:"currentColor"})))}};LC.style=PB;const TB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",IC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"a8f2686dec7b791a91dbf1eb38967f21efdcb692","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"a60f39882861a300b72323dd5945ecad06a61242"},r("path",{key:"38038faeec1bb93eefe12034ba8d4ca372348518",d:"M7.99999 10.6665C8.83333 10.6665 9.54177 10.3749 10.1253 9.79184C10.7084 9.20828 11 8.49984 11 7.6665C11 6.83317 10.7084 6.12473 10.1253 5.54117C9.54177 4.95806 8.83333 4.6665 7.99999 4.6665C7.16666 4.6665 6.45821 4.95806 5.87466 5.54117C5.29155 6.12473 4.99999 6.83317 4.99999 7.6665C4.99999 8.49984 5.29155 9.20828 5.87466 9.79184C6.45821 10.3749 7.16666 10.6665 7.99999 10.6665ZM7.99999 9.4665C7.49999 9.4665 7.0751 9.29139 6.72533 8.94117C6.3751 8.59139 6.19999 8.1665 6.19999 7.6665C6.19999 7.1665 6.3751 6.74139 6.72533 6.39117C7.0751 6.04139 7.49999 5.8665 7.99999 5.8665C8.49999 5.8665 8.9251 6.04139 9.27533 6.39117C9.6251 6.74139 9.79999 7.1665 9.79999 7.6665C9.79999 8.1665 9.6251 8.59139 9.27533 8.94117C8.9251 9.29139 8.49999 9.4665 7.99999 9.4665ZM7.99999 12.6665C6.45555 12.6665 5.04444 12.2583 3.76666 11.4418C2.48888 10.6249 1.52221 9.52206 0.866659 8.13317C0.833325 8.07762 0.811103 8.00806 0.799992 7.9245C0.788881 7.84139 0.783325 7.75539 0.783325 7.6665C0.783325 7.57762 0.788881 7.49139 0.799992 7.40784C0.811103 7.32473 0.833325 7.25539 0.866659 7.19984C1.52221 5.81095 2.48888 4.70828 3.76666 3.89184C5.04444 3.07495 6.45555 2.6665 7.99999 2.6665C9.54444 2.6665 10.9555 3.07495 12.2333 3.89184C13.5111 4.70828 14.4778 5.81095 15.1333 7.19984C15.1667 7.25539 15.1889 7.32473 15.2 7.40784C15.2111 7.49139 15.2167 7.57762 15.2167 7.6665C15.2167 7.75539 15.2111 7.84139 15.2 7.9245C15.1889 8.00806 15.1667 8.07762 15.1333 8.13317C14.4778 9.52206 13.5111 10.6249 12.2333 11.4418C10.9555 12.2583 9.54444 12.6665 7.99999 12.6665ZM7.99999 11.3332C9.25555 11.3332 10.4084 11.0025 11.4587 10.3412C12.5084 9.68028 13.3111 8.78873 13.8667 7.6665C13.3111 6.54428 12.5084 5.6525 11.4587 4.99117C10.4084 4.33028 9.25555 3.99984 7.99999 3.99984C6.74444 3.99984 5.59155 4.33028 4.54133 4.99117C3.49155 5.6525 2.68888 6.54428 2.13333 7.6665C2.68888 8.78873 3.49155 9.68028 4.54133 10.3412C5.59155 11.0025 6.74444 11.3332 7.99999 11.3332Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"f62440717bce6bc14e01506203f5579cc63863fe"},r("path",{key:"7a6178df3039f86ce0670e73e813a136de884a64",d:"M12 17C13.25 17 14.3127 16.5627 15.188 15.688C16.0627 14.8127 16.5 13.75 16.5 12.5C16.5 11.25 16.0627 10.1873 15.188 9.312C14.3127 8.43733 13.25 8 12 8C10.75 8 9.68732 8.43733 8.81199 9.312C7.93732 10.1873 7.49999 11.25 7.49999 12.5C7.49999 13.75 7.93732 14.8127 8.81199 15.688C9.68732 16.5627 10.75 17 12 17ZM12 15.2C11.25 15.2 10.6127 14.9373 10.088 14.412C9.56265 13.8873 9.29999 13.25 9.29999 12.5C9.29999 11.75 9.56265 11.1123 10.088 10.587C10.6127 10.0623 11.25 9.8 12 9.8C12.75 9.8 13.3877 10.0623 13.913 10.587C14.4377 11.1123 14.7 11.75 14.7 12.5C14.7 13.25 14.4377 13.8873 13.913 14.412C13.3877 14.9373 12.75 15.2 12 15.2ZM12 20C9.68332 20 7.56665 19.3877 5.64999 18.163C3.73332 16.9377 2.28332 15.2833 1.29999 13.2C1.24999 13.1167 1.21665 13.0123 1.19999 12.887C1.18332 12.7623 1.17499 12.6333 1.17499 12.5C1.17499 12.3667 1.18332 12.2373 1.19999 12.112C1.21665 11.9873 1.24999 11.8833 1.29999 11.8C2.28332 9.71667 3.73332 8.06267 5.64999 6.838C7.56665 5.61267 9.68332 5 12 5C14.3167 5 16.4333 5.61267 18.35 6.838C20.2667 8.06267 21.7167 9.71667 22.7 11.8C22.75 11.8833 22.7833 11.9873 22.8 12.112C22.8167 12.2373 22.825 12.3667 22.825 12.5C22.825 12.6333 22.8167 12.7623 22.8 12.887C22.7833 13.0123 22.75 13.1167 22.7 13.2C21.7167 15.2833 20.2667 16.9377 18.35 18.163C16.4333 19.3877 14.3167 20 12 20ZM12 18C13.8833 18 15.6127 17.504 17.188 16.512C18.7627 15.5207 19.9667 14.1833 20.8 12.5C19.9667 10.8167 18.7627 9.479 17.188 8.487C15.6127 7.49567 13.8833 7 12 7C10.1167 7 8.38732 7.49567 6.81199 8.487C5.23732 9.479 4.03332 10.8167 3.19999 12.5C4.03332 14.1833 5.23732 15.5207 6.81199 16.512C8.38732 17.504 10.1167 18 12 18Z",fill:"currentColor"})),this.size===28&&r(S,{key:"c4d09e095513cf950f32b453186946b703e30247"},r("path",{key:"6197773f8c8c22ae183d382f2a691a41d3313581",d:"M14 19.6665C15.4583 19.6665 16.6981 19.1563 17.7193 18.1358C18.7398 17.1146 19.25 15.8748 19.25 14.4165C19.25 12.9582 18.7398 11.7184 17.7193 10.6972C16.6981 9.67673 15.4583 9.1665 14 9.1665C12.5417 9.1665 11.3019 9.67673 10.2807 10.6972C9.26024 11.7184 8.75002 12.9582 8.75002 14.4165C8.75002 15.8748 9.26024 17.1146 10.2807 18.1358C11.3019 19.1563 12.5417 19.6665 14 19.6665ZM14 17.5665C13.125 17.5665 12.3815 17.2601 11.7693 16.6472C11.1565 16.0351 10.85 15.2915 10.85 14.4165C10.85 13.5415 11.1565 12.7976 11.7693 12.1847C12.3815 11.5726 13.125 11.2665 14 11.2665C14.875 11.2665 15.619 11.5726 16.2318 12.1847C16.844 12.7976 17.15 13.5415 17.15 14.4165C17.15 15.2915 16.844 16.0351 16.2318 16.6472C15.619 17.2601 14.875 17.5665 14 17.5665ZM14 23.1665C11.2972 23.1665 8.82779 22.4521 6.59168 21.0233C4.35557 19.5938 2.66391 17.6637 1.51668 15.2332C1.45835 15.1359 1.41946 15.0142 1.40002 14.868C1.38057 14.7226 1.37085 14.5721 1.37085 14.4165C1.37085 14.2609 1.38057 14.1101 1.40002 13.9638C1.41946 13.8184 1.45835 13.6971 1.51668 13.5998C2.66391 11.1693 4.35557 9.23961 6.59168 7.81084C8.82779 6.38128 11.2972 5.6665 14 5.6665C16.7028 5.6665 19.1722 6.38128 21.4084 7.81084C23.6445 9.23961 25.3361 11.1693 26.4834 13.5998C26.5417 13.6971 26.5806 13.8184 26.6 13.9638C26.6195 14.1101 26.6292 14.2609 26.6292 14.4165C26.6292 14.5721 26.6195 14.7226 26.6 14.868C26.5806 15.0142 26.5417 15.1359 26.4834 15.2332C25.3361 17.6637 23.6445 19.5938 21.4084 21.0233C19.1722 22.4521 16.7028 23.1665 14 23.1665ZM14 20.8332C16.1972 20.8332 18.2148 20.2545 20.0527 19.0972C21.8898 17.9406 23.2945 16.3804 24.2667 14.4165C23.2945 12.4526 21.8898 10.892 20.0527 9.73467C18.2148 8.57811 16.1972 7.99984 14 7.99984C11.8028 7.99984 9.78524 8.57811 7.94735 9.73467C6.11024 10.892 4.70557 12.4526 3.73335 14.4165C4.70557 16.3804 6.11024 17.9406 7.94735 19.0972C9.78524 20.2545 11.8028 20.8332 14 20.8332Z",fill:"currentColor"})))}};IC.style=TB;const AB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",PC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"4f5b4b5df66b926f862f74bb22d447a80c1e21db","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"c7d67705f819abd44a21ada020f9bf130cf52906"},r("path",{key:"08d25a1e65ca9734361aee9a38d9d6061028c736",d:"M10.7333 8.86657L9.76666 7.8999C9.86666 7.37768 9.71666 6.88879 9.31666 6.43324C8.91666 5.97768 8.39999 5.7999 7.76666 5.8999L6.79999 4.93324C6.98888 4.84435 7.18044 4.77768 7.37466 4.73324C7.56933 4.68879 7.77777 4.66657 7.99999 4.66657C8.83333 4.66657 9.54177 4.95812 10.1253 5.54124C10.7084 6.12479 11 6.83324 11 7.66657C11 7.88879 10.9778 8.09723 10.9333 8.2919C10.8889 8.48612 10.8222 8.67768 10.7333 8.86657ZM12.8667 10.9666L11.9 10.0332C12.3222 9.71101 12.6973 9.35812 13.0253 8.97457C13.3529 8.59146 13.6333 8.15546 13.8667 7.66657C13.3111 6.54435 12.5138 5.65257 11.4747 4.99124C10.436 4.33035 9.27777 3.9999 7.99999 3.9999C7.67777 3.9999 7.3611 4.02212 7.04999 4.06657C6.73888 4.11101 6.43333 4.17768 6.13333 4.26657L5.09999 3.23324C5.55555 3.04435 6.02221 2.90257 6.49999 2.8079C6.97777 2.71368 7.47777 2.66657 7.99999 2.66657C9.58888 2.66657 11.0167 3.0859 12.2833 3.92457C13.55 4.76368 14.5 5.85546 15.1333 7.1999C15.1667 7.25546 15.1889 7.32479 15.2 7.4079C15.2111 7.49146 15.2167 7.57768 15.2167 7.66657C15.2167 7.75546 15.2084 7.84146 15.192 7.92457C15.1751 8.00812 15.1555 8.07768 15.1333 8.13324C14.8778 8.6999 14.5584 9.22212 14.1753 9.6999C13.7918 10.1777 13.3555 10.5999 12.8667 10.9666ZM12.7333 14.5999L10.4 12.2999C10.0111 12.4221 9.61955 12.5139 9.22533 12.5752C8.83066 12.6361 8.42221 12.6666 7.99999 12.6666C6.4111 12.6666 4.98333 12.2472 3.71666 11.4086C2.44999 10.5695 1.49999 9.47768 0.866659 8.13324C0.833325 8.07768 0.811103 8.00812 0.799992 7.92457C0.788881 7.84146 0.783325 7.75546 0.783325 7.66657C0.783325 7.57768 0.788881 7.49435 0.799992 7.41657C0.811103 7.33879 0.833325 7.27212 0.866659 7.21657C1.09999 6.71657 1.37777 6.25546 1.69999 5.83324C2.02221 5.41101 2.37777 5.02212 2.76666 4.66657L1.38333 3.26657C1.2611 3.14435 1.19999 2.99146 1.19999 2.8079C1.19999 2.62479 1.26666 2.46657 1.39999 2.33324C1.52221 2.21101 1.67777 2.1499 1.86666 2.1499C2.05555 2.1499 2.2111 2.21101 2.33333 2.33324L13.6667 13.6666C13.7889 13.7888 13.8529 13.9417 13.8587 14.1252C13.864 14.3083 13.8 14.4666 13.6667 14.5999C13.5444 14.7221 13.3889 14.7832 13.2 14.7832C13.0111 14.7832 12.8555 14.7221 12.7333 14.5999ZM3.69999 5.5999C3.37777 5.88879 3.08333 6.20546 2.81666 6.5499C2.54999 6.89435 2.32221 7.26657 2.13333 7.66657C2.68888 8.78879 3.48599 9.68035 4.52466 10.3412C5.56377 11.0026 6.72221 11.3332 7.99999 11.3332C8.22221 11.3332 8.43888 11.3195 8.64999 11.2919C8.8611 11.2639 9.07777 11.2332 9.29999 11.1999L8.69999 10.5666C8.57777 10.5999 8.4611 10.6248 8.34999 10.6412C8.23888 10.6581 8.12221 10.6666 7.99999 10.6666C7.16666 10.6666 6.45821 10.375 5.87466 9.7919C5.29155 9.20835 4.99999 8.4999 4.99999 7.66657C4.99999 7.54435 5.00821 7.42768 5.02466 7.31657C5.04155 7.20546 5.06666 7.08879 5.09999 6.96657L3.69999 5.5999Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"b6d65f8e49e24eaa28a1098565ff5c679abd3421"},r("path",{key:"9104f7a6e675284019c65e65de0d6a03df509dcc",d:"M16.1 12.3001L14.65 10.8501C14.8 10.0668 14.575 9.33343 13.975 8.6501C13.375 7.96676 12.6 7.7001 11.65 7.8501L10.2 6.4001C10.4833 6.26676 10.7707 6.16676 11.062 6.1001C11.354 6.03343 11.6667 6.0001 12 6.0001C13.25 6.0001 14.3127 6.43743 15.188 7.3121C16.0627 8.18743 16.5 9.2501 16.5 10.5001C16.5 10.8334 16.4667 11.1461 16.4 11.4381C16.3333 11.7294 16.2333 12.0168 16.1 12.3001ZM19.3 15.4501L17.85 14.0501C18.4833 13.5668 19.046 13.0374 19.538 12.4621C20.0293 11.8874 20.45 11.2334 20.8 10.5001C19.9667 8.81676 18.7707 7.4791 17.212 6.4871C15.654 5.49576 13.9167 5.0001 12 5.0001C11.5167 5.0001 11.0417 5.03343 10.575 5.1001C10.1083 5.16676 9.64999 5.26676 9.19999 5.4001L7.64999 3.8501C8.33332 3.56676 9.03332 3.3541 9.74999 3.2121C10.4667 3.07076 11.2167 3.0001 12 3.0001C14.3833 3.0001 16.525 3.6291 18.425 4.8871C20.325 6.14576 21.75 7.78343 22.7 9.8001C22.75 9.88343 22.7833 9.98743 22.8 10.1121C22.8167 10.2374 22.825 10.3668 22.825 10.5001C22.825 10.6334 22.8127 10.7624 22.788 10.8871C22.7627 11.0124 22.7333 11.1168 22.7 11.2001C22.3167 12.0501 21.8377 12.8334 21.263 13.5501C20.6877 14.2668 20.0333 14.9001 19.3 15.4501ZM19.1 20.9001L15.6 17.4501C15.0167 17.6334 14.4293 17.7711 13.838 17.8631C13.246 17.9544 12.6333 18.0001 12 18.0001C9.61665 18.0001 7.47499 17.3711 5.57499 16.1131C3.67499 14.8544 2.24999 13.2168 1.29999 11.2001C1.24999 11.1168 1.21665 11.0124 1.19999 10.8871C1.18332 10.7624 1.17499 10.6334 1.17499 10.5001C1.17499 10.3668 1.18332 10.2418 1.19999 10.1251C1.21665 10.0084 1.24999 9.90843 1.29999 9.8251C1.64999 9.0751 2.06665 8.38343 2.54999 7.7501C3.03332 7.11676 3.56665 6.53343 4.14999 6.0001L2.07499 3.9001C1.89165 3.71676 1.79999 3.48743 1.79999 3.2121C1.79999 2.93743 1.89999 2.7001 2.09999 2.5001C2.28332 2.31676 2.51665 2.2251 2.79999 2.2251C3.08332 2.2251 3.31665 2.31676 3.49999 2.5001L20.5 19.5001C20.6833 19.6834 20.7793 19.9128 20.788 20.1881C20.796 20.4628 20.7 20.7001 20.5 20.9001C20.3167 21.0834 20.0833 21.1751 19.8 21.1751C19.5167 21.1751 19.2833 21.0834 19.1 20.9001ZM5.54999 7.4001C5.06665 7.83343 4.62499 8.30843 4.22499 8.8251C3.82499 9.34176 3.48332 9.9001 3.19999 10.5001C4.03332 12.1834 5.22899 13.5208 6.78699 14.5121C8.34565 15.5041 10.0833 16.0001 12 16.0001C12.3333 16.0001 12.6583 15.9794 12.975 15.9381C13.2917 15.8961 13.6167 15.8501 13.95 15.8001L13.05 14.8501C12.8667 14.9001 12.6917 14.9374 12.525 14.9621C12.3583 14.9874 12.1833 15.0001 12 15.0001C10.75 15.0001 9.68732 14.5628 8.81199 13.6881C7.93732 12.8128 7.49999 11.7501 7.49999 10.5001C7.49999 10.3168 7.51232 10.1418 7.53699 9.9751C7.56232 9.80843 7.59999 9.63343 7.64999 9.4501L5.54999 7.4001Z",fill:"currentColor"})),this.size===28&&r(S,{key:"19cea003e973a0ea67bdde219455cb425303ed73"},r("path",{key:"8310c70e2c788489542421124a3430ba9d2c270b",d:"M18.7833 14.5166L17.0917 12.825C17.2667 11.9111 17.0042 11.0555 16.3042 10.2583C15.6042 9.46106 14.7 9.14995 13.5917 9.32495L11.9 7.63328C12.2306 7.47773 12.5658 7.36106 12.9057 7.28328C13.2463 7.20551 13.6111 7.16662 14 7.16662C15.4583 7.16662 16.6981 7.67684 17.7193 8.69728C18.7398 9.71851 19.25 10.9583 19.25 12.4166C19.25 12.8055 19.2111 13.1703 19.1333 13.511C19.0556 13.8508 18.9389 14.1861 18.7833 14.5166ZM22.5167 18.1916L20.825 16.5583C21.5639 15.9944 22.2203 15.3768 22.7943 14.7056C23.3676 14.0352 23.8583 13.2722 24.2667 12.4166C23.2945 10.4527 21.8991 8.89212 20.0807 7.73478C18.263 6.57823 16.2361 5.99995 14 5.99995C13.4361 5.99995 12.882 6.03884 12.3375 6.11662C11.7931 6.1944 11.2583 6.31106 10.7333 6.46662L8.92502 4.65828C9.72224 4.32773 10.5389 4.07962 11.375 3.91395C12.2111 3.74906 13.0861 3.66662 14 3.66662C16.7806 3.66662 19.2792 4.40045 21.4958 5.86812C23.7125 7.33656 25.375 9.24717 26.4834 11.6C26.5417 11.6972 26.5806 11.8185 26.6 11.964C26.6195 12.1102 26.6292 12.2611 26.6292 12.4166C26.6292 12.5722 26.6148 12.7227 26.586 12.8681C26.5565 13.0143 26.5222 13.1361 26.4834 13.2333C26.0361 14.225 25.4773 15.1388 24.8069 15.975C24.1356 16.8111 23.3722 17.55 22.5167 18.1916ZM22.2834 24.5499L18.2 20.525C17.5195 20.7388 16.8342 20.8995 16.1443 21.0068C15.4537 21.1133 14.7389 21.1666 14 21.1666C11.2195 21.1666 8.72085 20.4328 6.50418 18.9651C4.28752 17.4967 2.62502 15.5861 1.51668 13.2333C1.45835 13.1361 1.41946 13.0143 1.40002 12.8681C1.38057 12.7227 1.37085 12.5722 1.37085 12.4166C1.37085 12.2611 1.38057 12.1152 1.40002 11.9791C1.41946 11.843 1.45835 11.7263 1.51668 11.6291C1.92502 10.7541 2.41113 9.94717 2.97502 9.20828C3.53891 8.4694 4.16113 7.78884 4.84168 7.16662L2.42085 4.71662C2.20696 4.50273 2.10002 4.23517 2.10002 3.91395C2.10002 3.59351 2.21668 3.31662 2.45002 3.08328C2.66391 2.8694 2.93613 2.76245 3.26668 2.76245C3.59724 2.76245 3.86946 2.8694 4.08335 3.08328L23.9167 22.9166C24.1306 23.1305 24.2426 23.3981 24.2527 23.7193C24.262 24.0397 24.15 24.3166 23.9167 24.5499C23.7028 24.7638 23.4306 24.8708 23.1 24.8708C22.7695 24.8708 22.4972 24.7638 22.2834 24.5499ZM6.47502 8.79995C5.91113 9.30551 5.39585 9.85967 4.92918 10.4625C4.46252 11.0652 4.06391 11.7166 3.73335 12.4166C4.70557 14.3805 6.10052 15.9407 7.91818 17.0973C9.73663 18.2546 11.7639 18.8333 14 18.8333C14.3889 18.8333 14.7681 18.8092 15.1375 18.7609C15.507 18.7119 15.8861 18.6583 16.275 18.5999L15.225 17.4916C15.0111 17.55 14.807 17.5935 14.6125 17.6223C14.4181 17.6518 14.2139 17.6666 14 17.6666C12.5417 17.6666 11.3019 17.1564 10.2807 16.1359C9.26024 15.1147 8.75002 13.875 8.75002 12.4166C8.75002 12.2027 8.76441 11.9986 8.79318 11.8041C8.82274 11.6097 8.86668 11.4055 8.92502 11.1916L6.47502 8.79995Z",fill:"currentColor"})))}};PC.style=AB;const TC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_cancel:MC,swirl_icon_expand_less:LC,swirl_icon_visibility:IC,swirl_icon_visibility_off:PC},Symbol.toStringTag,{value:"Module"})),EB=".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}",AC=class{constructor(e){q(this,e),this.itemDrop=De(this,"itemDrop",7),this.valueChange=De(this,"valueChange",7),this.onClick=t=>{t.preventDefault();const i=t.target,s=i==null?void 0:i.closest("swirl-option-list-item"),n=t.composedPath()[0],l=Boolean(ct(n,'[role="option"]'));if(!Boolean(s)||!l){t.preventDefault();return}this.selectItem(this.items.findIndex(o=>o.value===s.value))},this.onKeyDown=t=>{if(t.code==="ArrowDown")t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemDown():this.focusNextItem();else if(t.code==="ArrowUp")t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemUp():this.focusPreviousItem();else if(t.code==="Space"||t.code==="Enter"){if(!t.target.classList.contains("option-list-item__drag-handle")&&Boolean(this.dragging)){t.preventDefault(),this.stopDrag(this.dragging);return}const s=t.composedPath()[0];if(!Boolean(ct(s,'[role="option"]')))return;t.preventDefault(),Boolean(this.dragging)?this.stopDrag(this.dragging):this.selectFocusedItem()}else t.code==="Home"?(t.preventDefault(),this.focusItem(0)):t.code==="End"?(t.preventDefault(),this.focusItem(this.items.length-1)):t.code==="KeyA"&&(t.metaKey||t.ctrlKey)&&this.multiSelect?(t.preventDefault(),this.selectAllItems()):t.code==="Tab"&&Boolean(this.dragging)&&t.preventDefault()},this.toggleDrag=t=>{const i=t.detail;Boolean(this.dragging)?this.stopDrag(i):this.startDrag(i)},this.startDrag=t=>{this.dragging=t,this.draggingStartIndex=this.getItemIndex(this.dragging),t.setAttribute("dragging","true");const i=this.getItemIndex(this.dragging);this.focusItem(i),this.assistiveText=this.assistiveTextItemGrabbed},this.stopDrag=t=>{this.dragging=void 0,t.removeAttribute("dragging");const i=this.getActiveItemIndex();this.assistiveText=`${this.assistiveTextItemMoved} ${i+1}`,this.itemDrop.emit({item:t,oldIndex:this.draggingStartIndex,newIndex:i}),this.draggingStartIndex=void 0,this.focusItem(i)},this.allowDeselect=!0,this.allowDrag=void 0,this.assistiveTextItemGrabbed="Item grabbed. Use arrow keys to move item up or down. Use spacebar to save position.",this.assistiveTextItemMoving="Current position:",this.assistiveTextItemMoved="Item moved. New position:",this.disabled=void 0,this.label=void 0,this.optionListId=void 0,this.multiSelect=void 0,this.value=[],this.assistiveText=void 0}componentDidLoad(){this.updateItems(),this.observeSlotChanges(),this.setItemAllowDragState(),this.setItemDisabledState(),this.setItemContext(),this.syncItemsWithValue(),this.setupDragDrop(),this.setSectionSeparator()}componentDidRender(){this.setupDragDrop()}disconnectedCallback(){var e,t;(e=this.observer)==null||e.disconnect(),(t=this.sortable)==null||t.destroy()}watchAllowDrag(){this.setItemAllowDragState(),this.setupDragDrop()}watchDisabled(){this.setItemDisabledState()}watchMultiSelect(){this.setItemContext()}watchValue(){this.syncItemsWithValue()}observeSlotChanges(){this.observer=new MutationObserver(()=>{this.updateItems(),this.setItemAllowDragState(),this.setItemDisabledState(),this.setItemContext(),this.syncItemsWithValue()}),this.observer.observe(this.listboxEl,{childList:!0,subtree:!0})}updateItems(){var t;this.items=W1(this.el,"swirl-option-list-item"),this.items.forEach(i=>{var s;return(s=i.querySelector('[role="option"]'))==null?void 0:s.removeAttribute("tabIndex")});const e=(t=this.items[0])==null?void 0:t.querySelector('[role="option"]');!Boolean(e)||e.setAttribute("tabIndex","0")}setItemDisabledState(){this.disabled&&this.items.forEach(e=>e.disabled=!0)}setItemContext(){this.multiSelect?this.items.forEach(e=>e.context="multi-select"):(this.items.forEach(e=>e.context="single-select"),this.value.length>1&&this.updateValue([this.value[0]]))}setupDragDrop(){Boolean(this.sortable)&&this.sortable.destroy(),this.allowDrag&&(this.sortable=h1.create(this.listboxEl,{animation:150,draggable:"swirl-option-list-item",handle:".option-list-item__drag-handle",onEnd:e=>{this.itemDrop.emit({item:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex})}}))}setItemAllowDragState(){if(this.allowDrag&&!this.multiSelect){console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");return}const e=W1(this.el,"swirl-option-list-section");if(this.allowDrag&&e.length>0){console.error("[SwirlOptionList] Drag can only be allowed for lists without sections.");return}this.allowDrag?this.items.forEach(t=>{t.setAttribute("allow-drag","true"),t.addEventListener("toggleDrag",this.toggleDrag)}):this.items.forEach(t=>{t.removeAttribute("allow-drag"),t.removeEventListener("toggleDrag",this.toggleDrag)})}selectItem(e){if(this.disabled)return;const t=this.items[e];if(t.disabled)return;const i=this.value.includes(t.value);i&&!this.allowDeselect||(this.multiSelect||(this.value=[]),i?this.updateValue(this.value.filter(s=>s!==t.value)):this.updateValue([...this.value,t.value]),this.focusItem(e))}updateValue(e){this.value=e,this.valueChange.emit(this.value)}selectFocusedItem(){this.disabled||this.getActiveItemIndex()===-1||this.selectItem(this.getActiveItemIndex())}selectAllItems(){if(this.disabled)return;this.items.every(t=>this.value.includes(t.value))?this.updateValue([]):this.updateValue(this.items.map(t=>t.value))}syncItemsWithValue(){var e;(e=this.items)==null||e.forEach(t=>t.selected=this.value.includes(t.value))}focusItem(e){var i;if(this.disabled)return;this.items.forEach(s=>s.querySelector('[role="option"]').removeAttribute("tabIndex"));const t=(i=this.items[e])==null?void 0:i.querySelector('[role="option"]');!Boolean(t)||(t.setAttribute("tabIndex","0"),t.focus(),this.focusedItem=t)}focusNextItem(){if(this.disabled)return;const e=this.getActiveItemIndex(),t=Math.min(e+1,this.items.length-1);this.focusItem(t)}focusPreviousItem(){const e=this.getActiveItemIndex(),t=Math.max(e-1,0);this.focusItem(t)}getActiveItemIndex(){return Boolean(this.focusedItem)?this.items.map(e=>e.querySelector('[role="option"]')).findIndex(e=>e===this.focusedItem):0}getItemIndex(e){return this.items.map(t=>t).findIndex(t=>t===e)}moveDraggedItemDown(){const e=this.dragging.nextElementSibling;!Boolean(e)||(e.after(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getActiveItemIndex()+1}`)}moveDraggedItemUp(){const e=this.dragging.previousElementSibling;!Boolean(e)||(e.before(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging)+1}`)}setSectionSeparator(){if(!this.el)return;Array.from(this.el.querySelectorAll("swirl-option-list-section")).filter(t=>t.isConnected).forEach((t,i)=>{var s;i===0&&((s=t.previousElementSibling)==null?void 0:s.tagName)!=="SWIRL-OPTION-LIST-ITEM"&&(t.hasSeparator=!1)})}render(){const e=this.multiSelect?"true":void 0,t=Boolean(this.dragging)?0:void 0;return r(Ne,{key:"0e58d896d5cc38c0c3597185d6564fe4638603f8"},r("swirl-visually-hidden",{key:"5bda19ea607761fce0b3951fa05a0edb1e3949bd",role:"alert"},this.assistiveText),r("div",{key:"c1ae35577977c77d21c3a6b4b996d20d38c669e1","aria-label":this.label,"aria-multiselectable":e,class:"option-list",id:this.optionListId,onClick:this.onClick,onKeyDown:this.onKeyDown,ref:i=>this.listboxEl=i,role:"listbox",tabIndex:t},r("slot",{key:"43e7744360af4a1fd6be972737fe09665871f3a7",onSlotchange:this.setSectionSeparator})))}get el(){return n1(this)}static get watchers(){return{allowDrag:["watchAllowDrag"],disabled:["watchDisabled"],multiSelect:["watchMultiSelect"],value:["watchValue"]}}};AC.style=EB;const $B=":host{display:inline-flex;max-width:100%}:host *{box-sizing:border-box}.tag{display:inline-flex;max-width:100%;align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--swirl-tag-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;gap:var(--s-space-4)}.tag--size-s{padding:var(--s-space-0) var(--s-space-4)}.tag--size-m{padding:var(--s-space-2) var(--s-space-8)}.tag--variant-outline{border-style:solid;border-width:var(--s-border-width-default);border-color:var(--s-border-strong)}.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-neutral-default)}.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--s-icon-info)}.tag--intent-info.tag--variant-outline{border-color:var(--s-border-info)}.tag--intent-info.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-info-default)}.tag--intent-info.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--s-icon-critical)}.tag--intent-critical.tag--variant-outline{border-color:var(--s-border-critical)}.tag--intent-critical.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-critical-default)}.tag--intent-critical.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--s-icon-warning)}.tag--intent-warning.tag--variant-outline{border-color:var(--s-border-warning)}.tag--intent-warning.tag--variant-strong{color:var(--s-text-dark);background-color:var(--s-surface-warning-default)}.tag--intent-warning.tag--variant-strong .tag__removal-button{color:var(--s-icon-dark)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--s-icon-success)}.tag--intent-success.tag--variant-outline{border-color:var(--s-border-success)}.tag--intent-success.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-success-default)}.tag--intent-success.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-special{color:var(--s-decorative-grape-text);background-color:var(--s-decorative-grape-surface-subdued)}.tag--intent-special .tag__removal-button{color:var(--s-decorative-grape-text)}.tag--intent-special.tag--variant-outline{border-color:var(--s-decorative-grape-text)}.tag--intent-special.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-decorative-grape-surface)}.tag--intent-special.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-translucent{color:var(--s-text-on-image);background-color:var(--s-surface-on-image-default)}.tag--intent-translucent .tag__removal-button{color:var(--s-icon-on-image)}.tag--intent-translucent.tag--variant-outline{border-color:var(--s-text-on-image)}.tag__icon{display:inline-flex;margin-left:calc(-1 * var(--s-space-4));flex-shrink:0;order:0}.tag--icon-position-end .tag__icon{margin-right:calc(-1 * var(--s-space-4));margin-left:0;order:2}.tag__label{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis;order:1}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer;flex-shrink:0;order:3}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}",EC=class{constructor(e){q(this,e),this.removeTag=De(this,"remove",7),this.onRemove=t=>{var i;(i=this.removeTag)==null||i.emit(t)},this.icon=void 0,this.iconPosition="start",this.intent="default",this.label=void 0,this.removable=void 0,this.bordered=void 0,this.size="m",this.removalButtonLabel="Remove",this.variant="default"}componentDidLoad(){this.forceIconProps()}componentWillLoad(){this.forceVariant()}componentDidRender(){this.forceIconProps()}forceIconProps(){var t;const e=(t=this.iconEl)==null?void 0:t.children[0];e==null||e.setAttribute("size","16")}forceVariant(){Boolean(this.bordered)&&(console.warn('[Swirl] The "bordered" prop of swirl-tag is deprecated and will be removed with the next major release. Please use the "variant" prop as "outline" to achieve the same result.'),this.variant="outline")}render(){const e=te("tag",`tag--icon-position-${this.iconPosition}`,`tag--intent-${this.intent}`,`tag--size-${this.size}`,`tag--variant-${this.variant}`);return r(Ne,{key:"aa043cbe2948f3ee3a96e411db399680f64efb36"},r("span",{key:"a33611f3c493208c00d6bf3d11118b8535251759",class:e,part:"tag"},this.icon&&r("span",{key:"15936268e6597d6c46d10deec46dc3dacc24d2ec",class:"tag__icon",innerHTML:this.icon,ref:t=>this.iconEl=t}),r("span",{key:"c13b0e05353eda1762f1321c7ca5c8fa6149e045",class:"tag__label"},this.label),this.removable&&r("button",{key:"93aab4e6b46d9bc21b2764e48575b14360c8a3de","aria-label":this.removalButtonLabel,class:"tag__removal-button",onClick:this.onRemove,tabIndex:this.el.ariaHidden==="true"?-1:void 0,type:"button"},r("swirl-icon-close",{key:"bff1d55e2e453edb9f107e7504a9d46a4acbbe68",size:16}))))}get el(){return n1(this)}};EC.style=$B;const $C=Object.freeze(Object.defineProperty({__proto__:null,swirl_option_list:AC,swirl_tag:EC},Symbol.toStringTag,{value:"Module"}));function OC(e,t){const i=new Date(e);return i.setDate(i.getDate()+t),i}function OB(e,t,i){const s=[],n=En(e),l=n.getDay()===0?7:n.getDay(),o=HC(e),d=o.getDay()===0?7:o.getDay(),a=i===1?7:i-1,h=[],f=[];if(t){let P=(7-i+l)%7,y=$n(n);for(;P>0;)h.push(y),y=$n(y),P-=1;h.reverse();let x=(7-d+a)%7,R=j2(o);for(;x>0;)f.push(R),R=j2(R),x-=1}let p=n;for(;p.getMonth()===e.getMonth();)s.push(p),p=j2(p);return[...h,...s,...f]}function En(e){return gi(new Date(`${String(NC(e)).padStart(4,"0")}-${String(VC(e)).padStart(2,"0")}-01`))}function mi(e){if(e instanceof Date)return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function HC(e){const t=En(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t}function VC(e){return e.getMonth()+1}function HB(e){return new Array(12).fill(void 0).map((t,i)=>{const s=gi(new Date(`2006-${String(i+1).padStart(2,"0")}-01`));return Intl.DateTimeFormat(e,{month:"long"}).format(s)})}function j2(e){return OC(e,1)}function RC(e){const t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()+1),t}function BC(e){const t=new Date(e);return t.setFullYear(t.getFullYear()+1),t}function $n(e){return FC(e,1)}function DC(e){const t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()-1),t}function ZC(e){const t=new Date(e);return t.setFullYear(t.getFullYear()-1),t}function VB(e,t){return new Array(7).fill(void 0).map((i,s)=>(e+s)%7+1).map(i=>{const s=gi(new Date(`2006-01-0${i}`));return[Intl.DateTimeFormat(t,{weekday:"short"}).format(s),Intl.DateTimeFormat(t,{weekday:"long"}).format(s)]})}function NC(e){return e.getFullYear()}function RB(e,t){if(!e||!t||!t.from||!t.to)return!1;const i=t.from<t.to?t.from:t.to,s=t.from<t.to?t.to:t.from;return e>=i&&e<=s}function Xt(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function gi(e){const t=new Date(e);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}function FC(e,t){const i=new Date(e);return i.setDate(i.getDate()-t),i}const BB=".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}",DB={clearButton:"Clear value",monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year"},jC=class{constructor(e){q(this,e),this.selectDate=De(this,"selectDate",7),this.changeMonth=De(this,"changeMonth",7),this.disabled=!1,this.disableDate=()=>!1,this.elementClassName="wc-datepicker",this.firstDayOfWeek=0,this.labels=DB,this.locale=(navigator==null?void 0:navigator.language)||"en-US",this.showClearButton=!1,this.showMonthStepper=!0,this.showTodayButton=!1,this.showYearStepper=!1,this.startDate=mi(new Date),this.init=()=>{this.currentDate=this.startDate?gi(new Date(this.startDate)):new Date,this.updateWeekdays()},this.nextMonth=()=>{this.updateCurrentDate(RC(this.currentDate))},this.nextYear=()=>{this.updateCurrentDate(BC(this.currentDate))},this.previousMonth=()=>{this.updateCurrentDate(DC(this.currentDate))},this.previousYear=()=>{this.updateCurrentDate(ZC(this.currentDate))},this.showToday=()=>{this.updateCurrentDate(new Date)},this.clear=()=>{this.value=void 0,this.selectDate.emit(void 0)},this.onClick=t=>{if(this.disabled)return;const i=t.target.closest("[data-date]");if(!Boolean(i))return;const s=gi(new Date(i.dataset.date));this.updateCurrentDate(s),this.onSelectDate(s)},this.onMonthSelect=t=>{const i=+t.target.value-1,s=new Date(this.currentDate);s.setMonth(i),this.updateCurrentDate(s)},this.onYearSelect=t=>{let i=+t.target.value;const s=t.target;isNaN(i)?(i=new Date().getFullYear(),s.value=String(i)):i<0?(i=0,s.value=String(i)):i>9999&&(i=9999,s.value=String(i));const n=new Date(this.currentDate);n.setFullYear(i),this.updateCurrentDate(n)},this.onKeyDown=t=>{this.disabled||(t.code==="ArrowLeft"?(t.preventDefault(),this.updateCurrentDate($n(this.currentDate),!0)):t.code==="ArrowRight"?(t.preventDefault(),this.updateCurrentDate(j2(this.currentDate),!0)):t.code==="ArrowUp"?(t.preventDefault(),this.updateCurrentDate(FC(this.currentDate,7),!0)):t.code==="ArrowDown"?(t.preventDefault(),this.updateCurrentDate(OC(this.currentDate,7),!0)):t.code==="PageUp"?(t.preventDefault(),t.shiftKey?this.updateCurrentDate(ZC(this.currentDate),!0):this.updateCurrentDate(DC(this.currentDate),!0)):t.code==="PageDown"?(t.preventDefault(),t.shiftKey?this.updateCurrentDate(BC(this.currentDate),!0):this.updateCurrentDate(RC(this.currentDate),!0)):t.code==="Home"?(t.preventDefault(),this.updateCurrentDate(En(this.currentDate),!0)):t.code==="End"?(t.preventDefault(),this.updateCurrentDate(HC(this.currentDate),!0)):(t.code==="Space"||t.code==="Enter")&&(t.preventDefault(),this.onSelectDate(this.currentDate)))},this.onMouseEnter=t=>{if(this.disabled)return;const i=gi(new Date(t.target.closest("td").dataset.date));this.hoveredDate=i},this.onMouseLeave=()=>{this.hoveredDate=void 0}}componentWillLoad(){this.init()}watchFirstDayOfWeek(){this.updateWeekdays()}watchLocale(){Boolean(this.locale)||(this.locale=(navigator==null?void 0:navigator.language)||"en-US"),this.updateWeekdays()}watchRange(){this.value=void 0,this.selectDate.emit(void 0)}watchStartDate(){this.currentDate=this.startDate?gi(new Date(this.startDate)):new Date}watchValue(){Boolean(this.value)&&(Array.isArray(this.value)&&this.value.length>=1?this.currentDate=this.value[0]:this.value instanceof Date&&(this.currentDate=this.value))}componentDidRender(){this.moveFocusAfterMonthChanged&&(this.focusDate(this.currentDate),this.moveFocusAfterMonthChanged=!1)}updateWeekdays(){this.weekdays=VB(this.firstDayOfWeek===0?7:this.firstDayOfWeek,this.locale)}getClassName(e){return Boolean(e)?`${this.elementClassName}__${e}`:this.elementClassName}getCalendarRows(){const e=OB(this.currentDate,!0,this.firstDayOfWeek===0?7:this.firstDayOfWeek),t=[];for(let i=0;i<e.length;i+=7){const s=e.slice(i,i+7);t.push(s)}return t}getTitle(){if(!!Boolean(this.currentDate))return Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.currentDate)}focusDate(e){var t;(t=this.el.querySelector(`[data-date="${mi(e)}"]`))===null||t===void 0||t.focus()}updateCurrentDate(e,t){const i=e.getMonth(),s=e.getFullYear();if(s>9999||s<0)return;(i!==this.currentDate.getMonth()||s!==this.currentDate.getFullYear())&&(this.changeMonth.emit({month:VC(e),year:NC(e)}),t&&(this.moveFocusAfterMonthChanged=!0)),this.currentDate=e,t&&this.focusDate(this.currentDate)}onSelectDate(e){var t,i;if(!this.disableDate(e))if(this.isRangeValue(this.value)){const s=((t=this.value)===null||t===void 0?void 0:t[0])===void 0||this.value.length===2?[e]:[this.value[0],e];s.length===2&&s[0]>s[1]&&s.reverse();const n=s[1]===void 0?[mi(s[0])]:[mi(s[0]),mi(s[1])];this.value=s,this.selectDate.emit(n)}else{if(((i=this.value)===null||i===void 0?void 0:i.getTime())===e.getTime())return;this.value=e,this.selectDate.emit(mi(e))}}isRangeValue(e){return this.range}render(){const e=this.showTodayButton||this.showClearButton;return r(Ne,null,r("div",{"aria-disabled":String(this.disabled),"aria-label":this.labels.picker,class:{[this.getClassName()]:!0,[`${this.getClassName()}--disabled`]:this.disabled},role:"group"},r("div",{class:this.getClassName("header")},r("span",{"aria-atomic":"true","aria-live":"polite",class:"visually-hidden"},this.getTitle()),this.showYearStepper&&r("button",{"aria-label":this.labels.previousYearButton,class:this.getClassName("previous-year-button"),disabled:this.disabled,innerHTML:this.previousYearButtonContent||void 0,onClick:this.previousYear,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"11 17 6 12 11 7"}),r("polyline",{points:"18 17 13 12 18 7"}))),this.showMonthStepper&&r("button",{"aria-label":this.labels.previousMonthButton,class:this.getClassName("previous-month-button"),disabled:this.disabled,innerHTML:this.previousMonthButtonContent||void 0,onClick:this.previousMonth,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"15 18 9 12 15 6"}))),r("span",{class:this.getClassName("current-month")},r("select",{"aria-label":this.labels.monthSelect,class:this.getClassName("month-select"),disabled:this.disabled,name:"month",onChange:this.onMonthSelect},HB(this.locale).map((t,i)=>r("option",{key:t,selected:this.currentDate.getMonth()===i,value:i+1},t))),r("input",{"aria-label":this.labels.yearSelect,class:this.getClassName("year-select"),disabled:this.disabled,max:9999,maxLength:4,min:1,name:"year",onChange:this.onYearSelect,type:"number",value:this.currentDate.getFullYear()})),this.showMonthStepper&&r("button",{"aria-label":this.labels.nextMonthButton,class:this.getClassName("next-month-button"),disabled:this.disabled,innerHTML:this.nextMonthButtonContent||void 0,onClick:this.nextMonth,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"9 18 15 12 9 6"}))),this.showYearStepper&&r("button",{"aria-label":this.labels.nextYearButton,class:this.getClassName("next-year-button"),disabled:this.disabled,innerHTML:this.nextYearButtonContent||void 0,onClick:this.nextYear,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"13 17 18 12 13 7"}),r("polyline",{points:"6 17 11 12 6 7"})))),r("div",{class:this.getClassName("body")},r("table",{class:this.getClassName("calendar"),onKeyDown:this.onKeyDown,role:"grid"},r("thead",{class:this.getClassName("calendar-header")},r("tr",{class:this.getClassName("weekday-row")},this.weekdays.map(t=>r("th",{abbr:t[1],class:this.getClassName("weekday"),key:t[0],scope:"col"},r("span",null,t[0]))))),r("tbody",null,this.getCalendarRows().map(t=>{const i=`row-${t[0].getMonth()}-${t[0].getDate()}`;return r("tr",{class:this.getClassName("calendar-row"),key:i},t.map(s=>{var n,l,o,d,a;const h=Xt(s,this.currentDate),f=s.getMonth()!==this.currentDate.getMonth(),p=Array.isArray(this.value)?Xt(s,this.value[0])||Xt(s,this.value[1]):Xt(s,this.value),z=this.isRangeValue?RB(s,{from:(n=this.value)===null||n===void 0?void 0:n[0],to:((l=this.value)===null||l===void 0?void 0:l[1])||this.hoveredDate||this.currentDate}):!1,P=Boolean((o=this.value)===null||o===void 0?void 0:o[0])?[(d=this.value)===null||d===void 0?void 0:d[0],((a=this.value)===null||a===void 0?void 0:a[1])||this.hoveredDate].sort((k,$)=>k-$):[],y=this.range&&Xt(P[0],s),g=this.range&&Xt(P[1],s),x=Xt(s,new Date),R=this.disableDate(s),u=`cell-${s.getMonth()}-${s.getDate()}`,v={[this.getClassName("date")]:!0,[this.getClassName("date--current")]:h,[this.getClassName("date--disabled")]:R,[this.getClassName("date--overflowing")]:f,[this.getClassName("date--today")]:x,[this.getClassName("date--selected")]:p,[this.getClassName("date--in-range")]:z,[this.getClassName("date--start")]:y,[this.getClassName("date--end")]:g},O=p?"strong":x?"em":"span";return r("td",{"aria-disabled":String(R),"aria-selected":p?"true":void 0,class:v,"data-date":mi(s),key:u,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,role:"gridcell",tabIndex:Xt(s,this.currentDate)&&!this.disabled?0:-1},r(O,{"aria-hidden":"true"},s.getDate()),r("span",{class:"visually-hidden"},Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long"}).format(s)))}))})))),e&&r("div",{class:this.getClassName("footer")},this.showTodayButton&&r("button",{class:this.getClassName("today-button"),disabled:this.disabled,innerHTML:this.todayButtonContent||void 0,onClick:this.showToday,type:"button"},this.labels.todayButton),this.showClearButton&&r("button",{class:this.getClassName("clear-button"),disabled:this.disabled,innerHTML:this.clearButtonContent||void 0,onClick:this.clear,type:"button"},this.labels.clearButton))))}get el(){return n1(this)}static get watchers(){return{firstDayOfWeek:["watchFirstDayOfWeek"],locale:["watchLocale"],range:["watchRange"],startDate:["watchStartDate"],value:["watchValue"]}}};jC.style=BB;const WC=Object.freeze(Object.defineProperty({__proto__:null,wc_datepicker:jC},Symbol.toStringTag,{value:"Module"})),ZB=':host{display:block}:host *{box-sizing:border-box}.button-group--segmented ::slotted(*:not(:last-child)){position:relative}.button-group--segmented ::slotted(*:not(:last-child)):after{position:absolute;z-index:1;top:50%;left:100%;width:var(--s-border-width-default);height:calc(100% - var(--s-space-16));background-color:var(--s-border-strong);content:"";transform:translate3d(-50%, -50%, 0);pointer-events:none}.button-group--segmented ::slotted(*:not(:last-child):not([disabled])[intent="primary"]):after{background-color:var(--s-text-on-action-primary)}.button-group--segmented ::slotted(*:not(:last-child)[disabled="false"][intent="primary"]):after{background-color:var(--s-text-on-action-primary)}.button-group--segmented ::slotted(*:not(:first-child):not(:last-child)){--swirl-button-border-top-right-radius:0;--swirl-button-border-top-left-radius:0;--swirl-button-border-bottom-right-radius:0;--swirl-button-border-bottom-left-radius:0;--swirl-icon-button-border-top-right-radius:0;--swirl-icon-button-border-top-left-radius:0;--swirl-icon-button-border-bottom-right-radius:0;--swirl-icon-button-border-bottom-left-radius:0}.button-group--segmented ::slotted(*:first-child){--swirl-button-border-top-right-radius:0;--swirl-button-border-bottom-right-radius:0;--swirl-icon-button-border-top-right-radius:0;--swirl-icon-button-border-bottom-right-radius:0;--swirl-icon-button-border-top-left-radius:var(--s-border-radius-base);--swirl-icon-button-border-bottom-left-radius:var(--s-border-radius-base)}.button-group--segmented ::slotted(*:last-child){--swirl-button-border-top-left-radius:0;--swirl-button-border-bottom-left-radius:0;--swirl-icon-button-border-top-right-radius:var(--s-border-radius-base);--swirl-icon-button-border-bottom-right-radius:var(--s-border-radius-base);--swirl-icon-button-border-top-left-radius:0;--swirl-icon-button-border-bottom-left-radius:0}',UC=class{constructor(e){q(this,e),this.orientation="horizontal",this.segmented=void 0,this.spacing="8",this.stretch=void 0,this.wrap=void 0}render(){const e=this.segmented?"0":this.spacing,t=te("button-group",{"button-group--segmented":this.segmented});return r(Ne,{key:"3ba97e21adc41e84cc00510846c4afa0908a0346"},r("swirl-stack",{key:"68274c5d09b125086e29a2c47351f66d1f2b6bc4",align:this.orientation==="vertical"&&this.stretch?"stretch":"start",class:t,justify:this.orientation==="horizontal"&&this.stretch?"stretch":"start",orientation:this.orientation,role:"group",spacing:e,wrap:this.wrap},r("slot",{key:"8116255c942708969132eab81ef8ecaeb2a29ff7"})))}};UC.style=ZB;const GC=Object.freeze(Object.defineProperty({__proto__:null,swirl_button_group:UC},Symbol.toStringTag,{value:"Module"})),NB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",qC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"72e69557206bcb7d65be6c5536e5f5d3b5fe2639","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"0b6e5404ac89473dd8ee3619f5c0733a44499bc4"},r("path",{key:"e53cc37497ce4362d8939ef316a39b9a053ec754",d:"M7.99998 11.3333C8.18887 11.3333 8.34731 11.2693 8.47531 11.1413C8.60287 11.0138 8.66665 10.8555 8.66665 10.6666V7.98331C8.66665 7.79442 8.60287 7.63887 8.47531 7.51665C8.34731 7.39442 8.18887 7.33331 7.99998 7.33331C7.81109 7.33331 7.65287 7.39709 7.52531 7.52465C7.39731 7.65265 7.33331 7.81109 7.33331 7.99998V10.6833C7.33331 10.8722 7.39731 11.0278 7.52531 11.15C7.65287 11.2722 7.81109 11.3333 7.99998 11.3333ZM7.99998 5.99998C8.18887 5.99998 8.34731 5.93598 8.47531 5.80798C8.60287 5.68042 8.66665 5.5222 8.66665 5.33331C8.66665 5.14442 8.60287 4.98598 8.47531 4.85798C8.34731 4.73042 8.18887 4.66665 7.99998 4.66665C7.81109 4.66665 7.65287 4.73042 7.52531 4.85798C7.39731 4.98598 7.33331 5.14442 7.33331 5.33331C7.33331 5.5222 7.39731 5.68042 7.52531 5.80798C7.65287 5.93598 7.81109 5.99998 7.99998 5.99998ZM7.99998 14.6666C7.07776 14.6666 6.21109 14.4915 5.39998 14.1413C4.58887 13.7915 3.88331 13.3166 3.28331 12.7166C2.68331 12.1166 2.20842 11.4111 1.85865 10.6C1.50842 9.78887 1.33331 8.9222 1.33331 7.99998C1.33331 7.07776 1.50842 6.21109 1.85865 5.39998C2.20842 4.58887 2.68331 3.88331 3.28331 3.28331C3.88331 2.68331 4.58887 2.2082 5.39998 1.85798C6.21109 1.5082 7.07776 1.33331 7.99998 1.33331C8.9222 1.33331 9.78887 1.5082 10.6 1.85798C11.4111 2.2082 12.1166 2.68331 12.7166 3.28331C13.3166 3.88331 13.7915 4.58887 14.1413 5.39998C14.4915 6.21109 14.6666 7.07776 14.6666 7.99998C14.6666 8.9222 14.4915 9.78887 14.1413 10.6C13.7915 11.4111 13.3166 12.1166 12.7166 12.7166C12.1166 13.3166 11.4111 13.7915 10.6 14.1413C9.78887 14.4915 8.9222 14.6666 7.99998 14.6666ZM7.99998 13.3333C9.47776 13.3333 10.7362 12.814 11.7753 11.7753C12.814 10.7362 13.3333 9.47776 13.3333 7.99998C13.3333 6.5222 12.814 5.26376 11.7753 4.22465C10.7362 3.18598 9.47776 2.66665 7.99998 2.66665C6.5222 2.66665 5.26398 3.18598 4.22531 4.22465C3.1862 5.26376 2.66665 6.5222 2.66665 7.99998C2.66665 9.47776 3.1862 10.7362 4.22531 11.7753C5.26398 12.814 6.5222 13.3333 7.99998 13.3333Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"e9e1d874390958ad1a96bbf0e363ceef191a4c82"},r("path",{key:"8ebd1d7704b398b14758083e4ec2538143ff65c3",d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V11.975C13 11.6917 12.9043 11.4583 12.713 11.275C12.521 11.0917 12.2833 11 12 11C11.7167 11 11.4793 11.0957 11.288 11.287C11.096 11.479 11 11.7167 11 12V16.025C11 16.3083 11.096 16.5417 11.288 16.725C11.4793 16.9083 11.7167 17 12 17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.9043 8.52067 13 8.28333 13 8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8C11 8.28333 11.096 8.52067 11.288 8.712C11.4793 8.904 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:"currentColor"})),this.size===28&&r(S,{key:"7e9a0b4cd020501df661b89f4f0a8cb6cc64fbc7"},r("path",{key:"a4c448a6c226c296ff0cb3b8db8fc2d60f859da4",d:"M14 19.8333C14.3305 19.8333 14.6078 19.7213 14.8318 19.4973C15.055 19.2741 15.1666 18.9972 15.1666 18.6666V13.9708C15.1666 13.6403 15.055 13.368 14.8318 13.1541C14.6078 12.9403 14.3305 12.8333 14 12.8333C13.6694 12.8333 13.3925 12.9449 13.1693 13.1681C12.9453 13.3921 12.8333 13.6694 12.8333 14V18.6958C12.8333 19.0264 12.9453 19.2986 13.1693 19.5125C13.3925 19.7264 13.6694 19.8333 14 19.8333ZM14 10.5C14.3305 10.5 14.6078 10.388 14.8318 10.164C15.055 9.94076 15.1666 9.66387 15.1666 9.33331C15.1666 9.00276 15.055 8.72548 14.8318 8.50148C14.6078 8.27826 14.3305 8.16665 14 8.16665C13.6694 8.16665 13.3925 8.27826 13.1693 8.50148C12.9453 8.72548 12.8333 9.00276 12.8333 9.33331C12.8333 9.66387 12.9453 9.94076 13.1693 10.164C13.3925 10.388 13.6694 10.5 14 10.5ZM14 25.6666C12.3861 25.6666 10.8694 25.3602 9.44998 24.7473C8.03054 24.1352 6.79581 23.3041 5.74581 22.2541C4.69581 21.2041 3.86476 19.9694 3.25265 18.55C2.63976 17.1305 2.33331 15.6139 2.33331 14C2.33331 12.3861 2.63976 10.8694 3.25265 9.44998C3.86476 8.03054 4.69581 6.79581 5.74581 5.74581C6.79581 4.69581 8.03054 3.86437 9.44998 3.25148C10.8694 2.63937 12.3861 2.33331 14 2.33331C15.6139 2.33331 17.1305 2.63937 18.55 3.25148C19.9694 3.86437 21.2041 4.69581 22.2541 5.74581C23.3041 6.79581 24.1352 8.03054 24.7473 9.44998C25.3602 10.8694 25.6666 12.3861 25.6666 14C25.6666 15.6139 25.3602 17.1305 24.7473 18.55C24.1352 19.9694 23.3041 21.2041 22.2541 22.2541C21.2041 23.3041 19.9694 24.1352 18.55 24.7473C17.1305 25.3602 15.6139 25.6666 14 25.6666ZM14 23.3333C16.5861 23.3333 18.7884 22.4245 20.6068 20.6068C22.4245 18.7884 23.3333 16.5861 23.3333 14C23.3333 11.4139 22.4245 9.21159 20.6068 7.39315C18.7884 5.57548 16.5861 4.66665 14 4.66665C11.4139 4.66665 9.21198 5.57548 7.39431 7.39315C5.57587 9.21159 4.66665 11.4139 4.66665 14C4.66665 16.5861 5.57587 18.7884 7.39431 20.6068C9.21198 22.4245 11.4139 23.3333 14 23.3333Z",fill:"currentColor"})))}};qC.style=NB;const YC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_info:qC},Symbol.toStringTag,{value:"Module"})),FB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",KC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"4adc01513f9623d00a8ab52024f024a565a5f3ea","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"ea7256b9ab0c285ab9bd488613f6b963147058bc"},r("path",{key:"41afe42ff9e2c05c7e1c90675ec040940fb6f8e0","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"2c7f1a0196dd86809c842ceec23731b0ba02a7ee"},r("path",{key:"244af96b1323fe0286daadee5a179282d81cf935","fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z",fill:"currentColor"})),this.size===28&&r(S,{key:"09b8b34286ed82e5656199291bc80e8c45cc3c96"},r("path",{key:"3e7f6b4270262de0a7fa94a9e08973b97d80be65","fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z",fill:"currentColor"})))}};KC.style=FB;const jB=`.sc-swirl-option-list-item-h{position:relative;display:block;width:100%}.sc-swirl-option-list-item-h *.sc-swirl-option-list-item{box-sizing:border-box}.option-list-item.sc-swirl-option-list-item{display:inline-flex;width:100%;min-width:15rem;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);border-radius:var(--s-border-radius-sm);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item.sc-swirl-option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item.sc-swirl-option-list-item:focus{outline:none}.option-list-item.sc-swirl-option-list-item:focus-visible{background-color:var(--s-surface-overlay-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item.sc-swirl-option-list-item{min-height:0;padding:var(--s-space-8) var(--s-space-12);gap:var(--s-space-8)}}.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label-container.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1.5rem)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label-container.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1rem)}}.option-list-item--dragging.sc-swirl-option-list-item{z-index:1;border-radius:var(--s-border-radius-s);background-color:var(--s-surface-overlay-pressed);box-shadow:0 0.0625rem 0.125rem rgba(25, 26, 28, 0.08),
|
|
539
|
+
`;const s=document.createElement("iframe");this.el.append(s);const n=s.contentWindow;n.document.write(i),n.focus(),await new Promise(l=>setTimeout(l,100)),n.print(),s.remove()}getScale(e){var i;const t=D1()?0:32;return this.zoom==="auto"?(((i=this.scrollContainer)==null?void 0:i.clientWidth)-t)/e.view[2]:isNaN(this.zoom)?1:this.zoom}restoreScrollPosition(){var e,t;this.scrollContainer.scrollTop=this.recentScrollPosition.y*((e=this.scrollContainer)==null?void 0:e.scrollHeight),this.scrollContainer.scrollLeft=this.recentScrollPosition.x*((t=this.scrollContainer)==null?void 0:t.scrollWidth)}render(){const e=!this.error&&!this.loading&&this.visiblePages.length>0,t=this.loading,i=te("file-viewer-pdf",`file-viewer-pdf--view-mode-${this.viewMode}`);return r(Ne,{key:"fc44bde6b49ee1fcf3283f03cd92a0ca2df2fd89",class:i,exportparts:"file-viewer-pdf__pagination"},this.error&&r("swirl-inline-error",{key:"51731c3e8a10fc9c23f617948af158eef59a7c71",class:"file-viewer-pdf__error",message:this.errorMessage}),r("div",{key:"f3a1c104d2bd73bd9271310b53c333f9a69695e3","aria-describedby":"pagination",class:"file-viewer-pdf__pages",onScroll:this.onScroll,ref:s=>this.scrollContainer=s},this.pages.map(s=>{const n=s.getViewport({scale:this.getScale(s)}),l=n.height,o=n.width,d=this.renderedPages.includes(s.pageNumber);return r("div",{"aria-label":s.pageNumber,class:"file-viewer-pdf__page","data-page-number":s.pageNumber,hidden:!this.singlePageMode||s.pageNumber===this.singlePageModePage?void 0:!0,id:`page-${s.pageNumber}`,key:s.pageNumber,role:"region",style:{width:`${o}px`,height:`${l}px`},tabIndex:0},!d&&r("swirl-spinner",{class:"file-viewer-pdf__page-spinner"}),r("canvas",{class:"file-viewer-pdf__canvas",style:{opacity:d?"1":"0"}}),r("div",{class:"file-viewer-pdf__text-container"}))})),e&&r("span",{key:"6c21f44b36b998d10beb38b9c758b1931c3f0bab",class:"file-viewer-pdf__pagination",id:"pagination",part:"file-viewer-pdf__pagination"},r("span",{key:"3629ad2f2da41395d4089a20174ec815ffb45c1d","aria-current":"page"},this.currentPage)," /"," ",this.doc.numPages),t&&r("div",{key:"4e41abc8439c59dcc389a6bdd47538b4592c7915",class:"file-viewer-pdf__spinner"},r("swirl-spinner",{key:"a391c38d897af60076a0d30977a2c82434a88c71"})))}get el(){return n1(this)}static get watchers(){return{file:["watchProps"],viewMode:["watchViewMode"],zoom:["watchZoom"]}}};mC.style=SB;const kB=":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)}",gC=class{constructor(e){q(this,e),this.activate=De(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}componentWillLoad(){this.updateText()}componentDidLoad(){this.activate.emit(this.el)}async updateText(){this.error=!1,this.loading=!0;try{const e=await fetch(this.file);this.text=await e.text(),this.loading=!1}catch{this.loading=!1,this.error=!0}}render(){return r(Ne,{key:"906e67ca66d8243b8ea1a9012462d2635c341b18",class:"file-viewer-text",exportparts:"file-viewer-text__text"},this.error&&r("swirl-inline-error",{key:"1adff96153d849dcf93a885f33e1d4dd7eefaa67",class:"file-viewer-text__error",message:this.errorMessage}),r("pre",{key:"5a05947f405f6452dc674782b38945570d7a2847",class:"file-viewer-text__text",part:"file-viewer-text__text",tabIndex:0},this.text),this.loading&&r("div",{key:"922c8419088bc441761226aac66d644240689d1a",class:"file-viewer-text__spinner"},r("swirl-spinner",{key:"cc183ed9ecd4582bb6c5b7c84c9a0e23bd6cc72b"})))}get el(){return n1(this)}static get watchers(){return{file:["updateText"]}}};gC.style=kB;const xB=":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)}",wC=class{constructor(e){q(this,e),this.activate=De(this,"activate",7),this.autoplay=void 0,this.disableDownload=void 0,this.file=void 0,this.type=void 0}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}render(){return r(Ne,{key:"f8f2bef246a6df61c0e35566651ea8b348d6a9f4",class:"file-viewer-video"},r("video",{key:"51a0ac1e270cb96fa80e46a327be080989e07f25",autoplay:this.autoplay,class:"file-viewer-video__video",controls:!0,ref:e=>this.videoEl=e},r("source",{key:"86fa6c072078272c9801e33444891521043fe9c6",src:this.file,type:this.type})))}get el(){return n1(this)}static get watchers(){return{disableDownload:["watchDisableDownload"]}}};wC.style=xB;const yC=Object.freeze(Object.defineProperty({__proto__:null,swirl_file_viewer:dC,swirl_file_viewer_audio:hC,swirl_file_viewer_csv:fC,swirl_file_viewer_fallback:bC,swirl_file_viewer_image:CC,swirl_file_viewer_pdf:mC,swirl_file_viewer_text:gC,swirl_file_viewer_video:wC},Symbol.toStringTag,{value:"Module"})),zB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",vC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"0537f7d3e8627ef57040c046cfd67eebed24fadf","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"b92f6d84c78e3c4b844da670956ad5958efc5049"},r("path",{key:"4a98a2f3706688a8febdcd580418055c7afc1ec2",d:"M5.73333 11.6C5.58889 11.4556 5.51666 11.2778 5.51666 11.0667C5.51666 10.8556 5.58889 10.6778 5.73333 10.5333L8.26666 8.00002L5.73333 5.46668C5.58889 5.32224 5.51666 5.14446 5.51666 4.93335C5.51666 4.72224 5.58889 4.54446 5.73333 4.40002C5.87777 4.25557 6.05555 4.18335 6.26666 4.18335C6.47777 4.18335 6.65555 4.25557 6.8 4.40002L9.86666 7.46668C9.94444 7.54446 10 7.62779 10.0333 7.71668C10.0667 7.80557 10.0833 7.90002 10.0833 8.00002C10.0833 8.10002 10.0667 8.19446 10.0333 8.28335C10 8.37224 9.94444 8.45557 9.86666 8.53335L6.8 11.6C6.65555 11.7445 6.47777 11.8167 6.26666 11.8167C6.05555 11.8167 5.87777 11.7445 5.73333 11.6V11.6Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"8dc2d1dac899cb7ea939738a0faaf9259068ed32"},r("path",{key:"5a96927cad12bed07f1880730ac12235909848f9",d:"M8.59999 17.4C8.38333 17.1834 8.27499 16.9167 8.27499 16.6C8.27499 16.2834 8.38333 16.0167 8.59999 15.8L12.4 12L8.59999 8.20002C8.38333 7.98336 8.27499 7.71669 8.27499 7.40002C8.27499 7.08336 8.38333 6.81669 8.59999 6.60002C8.81666 6.38336 9.08333 6.27502 9.39999 6.27502C9.71666 6.27502 9.98333 6.38336 10.2 6.60002L14.8 11.2C14.9167 11.3167 15 11.4417 15.05 11.575C15.1 11.7084 15.125 11.85 15.125 12C15.125 12.15 15.1 12.2917 15.05 12.425C15 12.5584 14.9167 12.6834 14.8 12.8L10.2 17.4C9.98333 17.6167 9.71666 17.725 9.39999 17.725C9.08333 17.725 8.81666 17.6167 8.59999 17.4Z",fill:"currentColor"})),this.size===28&&r(S,{key:"ab9d97edaf8ef4dd10354ded376caab60d8c4e76"},r("path",{key:"c75f992af5fa12ab0005ba8abfe98354ed0b699e",d:"M10.0333 20.3C9.78056 20.0472 9.65417 19.7361 9.65417 19.3666C9.65417 18.9972 9.78056 18.6861 10.0333 18.4333L14.4667 14L10.0333 9.56663C9.78056 9.31386 9.65417 9.00275 9.65417 8.6333C9.65417 8.26386 9.78056 7.95275 10.0333 7.69997C10.2861 7.44719 10.5972 7.3208 10.9667 7.3208C11.3361 7.3208 11.6472 7.44719 11.9 7.69997L17.2667 13.0666C17.4028 13.2027 17.5 13.3486 17.5583 13.5041C17.6167 13.6597 17.6458 13.825 17.6458 14C17.6458 14.175 17.6167 14.3402 17.5583 14.4958C17.5 14.6514 17.4028 14.7972 17.2667 14.9333L11.9 20.3C11.6472 20.5527 11.3361 20.6791 10.9667 20.6791C10.5972 20.6791 10.2861 20.5527 10.0333 20.3V20.3Z",fill:"currentColor"})))}};vC.style=zB;const _C=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_chevron_right:vC},Symbol.toStringTag,{value:"Module"})),MB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",SC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"98a265b3c1018ca586faeb0df3fbbdb365eab376","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"f73062d6001bb4a6b60fa6a397f46ed9864d3ee6"},r("path",{key:"c9c855c0eeaf11a5182e1f89baee8c5bc5f82c4f",d:"M7.96665 11.9987C8.19998 11.9987 8.39731 11.918 8.55865 11.7567C8.71953 11.5958 8.79998 11.3987 8.79998 11.1654C8.79998 10.932 8.71953 10.7349 8.55865 10.574C8.39731 10.4127 8.19998 10.332 7.96665 10.332C7.73331 10.332 7.53598 10.4127 7.37465 10.574C7.21376 10.7349 7.13331 10.932 7.13331 11.1654C7.13331 11.3987 7.21376 11.5958 7.37465 11.7567C7.53598 11.918 7.73331 11.9987 7.96665 11.9987ZM8.06665 5.13203C8.37776 5.13203 8.62776 5.21803 8.81665 5.39003C9.00554 5.56248 9.09998 5.78759 9.09998 6.06536C9.09998 6.25425 9.0362 6.44581 8.90865 6.64003C8.78065 6.8347 8.59998 7.03759 8.36665 7.2487C8.03331 7.53759 7.78887 7.81536 7.63331 8.08203C7.47776 8.3487 7.39998 8.61536 7.39998 8.88203C7.39998 9.03759 7.45842 9.16803 7.57531 9.27336C7.69176 9.37914 7.82776 9.43203 7.98331 9.43203C8.13887 9.43203 8.27776 9.37648 8.39998 9.26536C8.5222 9.15425 8.59998 9.01536 8.63331 8.8487C8.66665 8.65981 8.74176 8.48492 8.85865 8.32403C8.97509 8.1627 9.16665 7.95425 9.43331 7.6987C9.77776 7.37648 10.0195 7.08203 10.1586 6.81536C10.2973 6.5487 10.3666 6.25425 10.3666 5.93203C10.3666 5.36536 10.1529 4.90136 9.72531 4.54003C9.29731 4.17914 8.74442 3.9987 8.06665 3.9987C7.59998 3.9987 7.1862 4.08759 6.82531 4.26536C6.46398 4.44314 6.18331 4.71536 5.98331 5.08203C5.90554 5.22648 5.87776 5.36803 5.89998 5.5067C5.9222 5.64581 5.99998 5.75981 6.13331 5.8487C6.27776 5.93759 6.4362 5.96536 6.60865 5.93203C6.78065 5.8987 6.9222 5.80425 7.03331 5.6487C7.15554 5.48203 7.30287 5.35425 7.47531 5.26536C7.64731 5.17648 7.84442 5.13203 8.06665 5.13203ZM7.99998 14.6654C7.08887 14.6654 6.22776 14.4903 5.41665 14.14C4.60554 13.7903 3.89731 13.3154 3.29198 12.7154C2.6862 12.1154 2.20842 11.4098 1.85865 10.5987C1.50842 9.78759 1.33331 8.92092 1.33331 7.9987C1.33331 7.07648 1.50842 6.20981 1.85865 5.3987C2.20842 4.58759 2.6862 3.88203 3.29198 3.28203C3.89731 2.68203 4.60554 2.20692 5.41665 1.8567C6.22776 1.50692 7.08887 1.33203 7.99998 1.33203C8.93331 1.33203 9.80553 1.50692 10.6166 1.8567C11.4278 2.20692 12.1333 2.68203 12.7333 3.28203C13.3333 3.88203 13.8055 4.58759 14.15 5.3987C14.4944 6.20981 14.6666 7.07648 14.6666 7.9987C14.6666 8.92092 14.4944 9.78759 14.15 10.5987C13.8055 11.4098 13.3333 12.1154 12.7333 12.7154C12.1333 13.3154 11.4278 13.7903 10.6166 14.14C9.80553 14.4903 8.93331 14.6654 7.99998 14.6654ZM7.99998 13.332C9.48887 13.332 10.75 12.8127 11.7833 11.774C12.8166 10.7349 13.3333 9.47647 13.3333 7.9987C13.3333 6.52092 12.8166 5.26248 11.7833 4.22336C10.75 3.1847 9.48887 2.66536 7.99998 2.66536C6.54442 2.66536 5.29153 3.1847 4.24131 4.22336C3.19154 5.26248 2.66665 6.52092 2.66665 7.9987C2.66665 9.47647 3.19154 10.7349 4.24131 11.774C5.29153 12.8127 6.54442 13.332 7.99998 13.332Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"4d6fd371ce5bf920331cee8796c7142dcb95b92e"},r("path",{key:"aa35380fe127ad8b4b0f4ff350833e6a38baf99b",d:"M11.95 18C12.3 18 12.596 17.879 12.838 17.637C13.0793 17.3957 13.2 17.1 13.2 16.75C13.2 16.4 13.0793 16.1043 12.838 15.863C12.596 15.621 12.3 15.5 11.95 15.5C11.6 15.5 11.304 15.621 11.062 15.863C10.8207 16.1043 10.7 16.4 10.7 16.75C10.7 17.1 10.8207 17.3957 11.062 17.637C11.304 17.879 11.6 18 11.95 18ZM12.1 7.7C12.5667 7.7 12.9417 7.829 13.225 8.087C13.5083 8.34567 13.65 8.68333 13.65 9.1C13.65 9.38333 13.5543 9.67067 13.363 9.962C13.171 10.254 12.9 10.5583 12.55 10.875C12.05 11.3083 11.6833 11.725 11.45 12.125C11.2167 12.525 11.1 12.925 11.1 13.325C11.1 13.5583 11.1877 13.754 11.363 13.912C11.5377 14.0707 11.7417 14.15 11.975 14.15C12.2083 14.15 12.4167 14.0667 12.6 13.9C12.7833 13.7333 12.9 13.525 12.95 13.275C13 12.9917 13.1127 12.7293 13.288 12.488C13.4627 12.246 13.75 11.9333 14.15 11.55C14.6667 11.0667 15.0293 10.625 15.238 10.225C15.446 9.825 15.55 9.38333 15.55 8.9C15.55 8.05 15.2293 7.354 14.588 6.812C13.946 6.27067 13.1167 6 12.1 6C11.4 6 10.7793 6.13333 10.238 6.4C9.696 6.66667 9.275 7.075 8.975 7.625C8.85833 7.84167 8.81667 8.054 8.85 8.262C8.88333 8.47067 9 8.64167 9.2 8.775C9.41667 8.90833 9.65433 8.95 9.913 8.9C10.171 8.85 10.3833 8.70833 10.55 8.475C10.7333 8.225 10.9543 8.03333 11.213 7.9C11.471 7.76667 11.7667 7.7 12.1 7.7ZM12 22C10.6333 22 9.34167 21.7373 8.125 21.212C6.90833 20.6873 5.846 19.975 4.938 19.075C4.02933 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.02933 5.825 4.938 4.925C5.846 4.025 6.90833 3.31233 8.125 2.787C9.34167 2.26233 10.6333 2 12 2C13.4 2 14.7083 2.26233 15.925 2.787C17.1417 3.31233 18.2 4.025 19.1 4.925C20 5.825 20.7083 6.88333 21.225 8.1C21.7417 9.31667 22 10.6167 22 12C22 13.3833 21.7417 14.6833 21.225 15.9C20.7083 17.1167 20 18.175 19.1 19.075C18.2 19.975 17.1417 20.6873 15.925 21.212C14.7083 21.7373 13.4 22 12 22ZM12 20C14.2333 20 16.125 19.221 17.675 17.663C19.225 16.1043 20 14.2167 20 12C20 9.78333 19.225 7.89567 17.675 6.337C16.125 4.779 14.2333 4 12 4C9.81667 4 7.93733 4.779 6.362 6.337C4.78733 7.89567 4 9.78333 4 12C4 14.2167 4.78733 16.1043 6.362 17.663C7.93733 19.221 9.81667 20 12 20Z",fill:"currentColor"})),this.size===28&&r(S,{key:"cb7865e9973f866cf31c98f56186b01cfbfafb85"},r("path",{key:"2cc0fab6c5540b5513996bba07d835958830a607",d:"M13.9417 20.9999C14.35 20.9999 14.6953 20.8588 14.9777 20.5764C15.2592 20.2949 15.4 19.9499 15.4 19.5416C15.4 19.1333 15.2592 18.7883 14.9777 18.5068C14.6953 18.2244 14.35 18.0833 13.9417 18.0833C13.5333 18.0833 13.188 18.2244 12.9057 18.5068C12.6241 18.7883 12.4833 19.1333 12.4833 19.5416C12.4833 19.9499 12.6241 20.2949 12.9057 20.5764C13.188 20.8588 13.5333 20.9999 13.9417 20.9999ZM14.1167 8.98325C14.6611 8.98325 15.0986 9.13375 15.4292 9.43475C15.7597 9.73653 15.925 10.1305 15.925 10.6166C15.925 10.9471 15.8134 11.2824 15.5902 11.6223C15.3662 11.9629 15.05 12.318 14.6417 12.6874C14.0583 13.193 13.6306 13.6791 13.3583 14.1458C13.0861 14.6124 12.95 15.0791 12.95 15.5458C12.95 15.818 13.0523 16.0463 13.2568 16.2306C13.4606 16.4157 13.6986 16.5083 13.9708 16.5083C14.2431 16.5083 14.4861 16.411 14.7 16.2166C14.9139 16.0221 15.05 15.7791 15.1083 15.4874C15.1667 15.1569 15.2981 14.8508 15.5027 14.5693C15.7064 14.2869 16.0417 13.9221 16.5083 13.4749C17.1111 12.911 17.5342 12.3958 17.7777 11.9291C18.0203 11.4624 18.1417 10.9471 18.1417 10.3833C18.1417 9.39159 17.7676 8.57959 17.0193 7.94725C16.2703 7.3157 15.3028 6.99992 14.1167 6.99992C13.3 6.99992 12.5759 7.15547 11.9443 7.46659C11.312 7.7777 10.8208 8.25409 10.4708 8.89575C10.3347 9.14853 10.2861 9.39625 10.325 9.63892C10.3639 9.88236 10.5 10.0819 10.7333 10.2374C10.9861 10.393 11.2634 10.4416 11.5652 10.3833C11.8662 10.3249 12.1139 10.1596 12.3083 9.88742C12.5222 9.59575 12.7801 9.37214 13.0818 9.21659C13.3828 9.06103 13.7278 8.98325 14.1167 8.98325ZM14 25.6666C12.4056 25.6666 10.8986 25.3601 9.47917 24.7473C8.05973 24.1351 6.82034 23.3041 5.761 22.2541C4.70089 21.2041 3.86478 19.9694 3.25267 18.5499C2.63978 17.1305 2.33334 15.6138 2.33334 13.9999C2.33334 12.386 2.63978 10.8694 3.25267 9.44992C3.86478 8.03048 4.70089 6.79575 5.761 5.74575C6.82034 4.69575 8.05973 3.86431 9.47917 3.25142C10.8986 2.63931 12.4056 2.33325 14 2.33325C15.6333 2.33325 17.1597 2.63931 18.5792 3.25142C19.9986 3.86431 21.2333 4.69575 22.2833 5.74575C23.3333 6.79575 24.1597 8.03048 24.7625 9.44992C25.3653 10.8694 25.6667 12.386 25.6667 13.9999C25.6667 15.6138 25.3653 17.1305 24.7625 18.5499C24.1597 19.9694 23.3333 21.2041 22.2833 22.2541C21.2333 23.3041 19.9986 24.1351 18.5792 24.7473C17.1597 25.3601 15.6333 25.6666 14 25.6666ZM14 23.3333C16.6056 23.3333 18.8125 22.4244 20.6208 20.6068C22.4292 18.7883 23.3333 16.586 23.3333 13.9999C23.3333 11.4138 22.4292 9.21153 20.6208 7.39309C18.8125 5.57542 16.6056 4.66659 14 4.66659C11.4528 4.66659 9.26023 5.57542 7.42234 7.39309C5.58523 9.21153 4.66667 11.4138 4.66667 13.9999C4.66667 16.586 5.58523 18.7883 7.42234 20.6068C9.26023 22.4244 11.4528 23.3333 14 23.3333Z",fill:"currentColor"})))}};SC.style=MB;const kC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_help:SC},Symbol.toStringTag,{value:"Module"})),LB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",xC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"d831b8be0306cd5a86d4bd199ec254444c9b9f02","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"4cf6b8919893cf1211914b74cbf1204f64958471"},r("path",{key:"5aae2d3819220966e8fd313ae6eb2cef155749e3",d:"M12.5333 13.6167L8.83333 9.91669C8.5 10.1722 8.11666 10.3778 7.68333 10.5334C7.25 10.6889 6.78889 10.7667 6.3 10.7667C5.06666 10.7667 4.02222 10.336 3.16666 9.47469C2.31111 8.6138 1.88333 7.56669 1.88333 6.33336C1.88333 5.10002 2.31111 4.05269 3.16666 3.19136C4.02222 2.33047 5.06666 1.90002 6.3 1.90002C7.53333 1.90002 8.58066 2.33047 9.442 3.19136C10.3029 4.05269 10.7333 5.10002 10.7333 6.33336C10.7333 6.82225 10.6584 7.28336 10.5087 7.71669C10.3584 8.15002 10.1556 8.5278 9.9 8.85002L13.6167 12.5834C13.75 12.7167 13.8167 12.8862 13.8167 13.092C13.8167 13.2974 13.7444 13.4722 13.6 13.6167C13.4556 13.7611 13.2751 13.8334 13.0587 13.8334C12.8418 13.8334 12.6667 13.7611 12.5333 13.6167ZM6.3 9.23336C7.11111 9.23336 7.8 8.95269 8.36667 8.39136C8.93333 7.83047 9.21666 7.14447 9.21666 6.33336C9.21666 5.52225 8.93333 4.83602 8.36667 4.27469C7.8 3.7138 7.11111 3.43336 6.3 3.43336C5.48889 3.43336 4.80289 3.7138 4.242 4.27469C3.68066 4.83602 3.4 5.52225 3.4 6.33336C3.4 7.14447 3.68066 7.83047 4.242 8.39136C4.80289 8.95269 5.48889 9.23336 6.3 9.23336Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"bd323f6a2991cf0b8441fa598656a36243841169"},r("path",{key:"dd8abac96e2449b4d16bc958eaf45b5d0e9a1f36",d:"M18.8 20.425L13.25 14.875C12.75 15.2583 12.175 15.5666 11.525 15.8C10.875 16.0333 10.1833 16.15 9.45001 16.15C7.60001 16.15 6.03335 15.504 4.75001 14.212C3.46668 12.9206 2.82501 11.35 2.82501 9.49998C2.82501 7.64998 3.46668 6.07898 4.75001 4.78698C6.03335 3.49564 7.60001 2.84998 9.45001 2.84998C11.3 2.84998 12.871 3.49564 14.163 4.78698C15.4543 6.07898 16.1 7.64998 16.1 9.49998C16.1 10.2333 15.9877 10.925 15.763 11.575C15.5377 12.225 15.2333 12.7916 14.85 13.275L20.425 18.875C20.625 19.075 20.725 19.3293 20.725 19.638C20.725 19.946 20.6167 20.2083 20.4 20.425C20.1833 20.6416 19.9127 20.75 19.588 20.75C19.2627 20.75 19 20.6416 18.8 20.425ZM9.45001 13.85C10.6667 13.85 11.7 13.429 12.55 12.587C13.4 11.7456 13.825 10.7166 13.825 9.49998C13.825 8.28331 13.4 7.25398 12.55 6.41198C11.7 5.57064 10.6667 5.14998 9.45001 5.14998C8.23335 5.14998 7.20435 5.57064 6.36301 6.41198C5.52101 7.25398 5.10001 8.28331 5.10001 9.49998C5.10001 10.7166 5.52101 11.7456 6.36301 12.587C7.20435 13.429 8.23335 13.85 9.45001 13.85Z",fill:"currentColor"})),this.size===28&&r(S,{key:"3bec5518e39011ec63ddcfe16fa6c25e86f60dd9"},r("path",{key:"6da78537adccdd68b9d489f41293b2d8a7bf5e8c",d:"M21.9333 23.8292L15.4583 17.3542C14.875 17.8014 14.2042 18.1611 13.4458 18.4333C12.6875 18.7056 11.8806 18.8417 11.025 18.8417C8.86667 18.8417 7.03889 18.088 5.54167 16.5807C4.04445 15.0741 3.29584 13.2417 3.29584 11.0833C3.29584 8.92501 4.04445 7.09218 5.54167 5.58485C7.03889 4.07829 8.86667 3.32501 11.025 3.32501C13.1833 3.32501 15.0162 4.07829 16.5235 5.58485C18.0301 7.09218 18.7833 8.92501 18.7833 11.0833C18.7833 11.9389 18.6523 12.7458 18.3902 13.5042C18.1273 14.2625 17.7722 14.9236 17.325 15.4875L23.8292 22.0208C24.0625 22.2542 24.1792 22.5509 24.1792 22.911C24.1792 23.2703 24.0528 23.5764 23.8 23.8292C23.5472 24.082 23.2314 24.2083 22.8527 24.2083C22.4731 24.2083 22.1667 24.082 21.9333 23.8292ZM11.025 16.1583C12.4444 16.1583 13.65 15.6672 14.6417 14.6848C15.6333 13.7033 16.1292 12.5028 16.1292 11.0833C16.1292 9.6639 15.6333 8.46301 14.6417 7.48068C13.65 6.49912 12.4444 6.00835 11.025 6.00835C9.60556 6.00835 8.40506 6.49912 7.4235 7.48068C6.44117 8.46301 5.95 9.6639 5.95 11.0833C5.95 12.5028 6.44117 13.7033 7.4235 14.6848C8.40506 15.6672 9.60556 16.1583 11.025 16.1583Z",fill:"currentColor"})))}};xC.style=LB;const zC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_search:xC},Symbol.toStringTag,{value:"Module"})),IB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",MC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"63120fa2ae0bc8d9537fe4095928e0071493f637","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"8e1905c7ce04a05f677ff40ba7fcf2f031dc4e21"},r("path",{key:"c4a870fb431d75551497bee09ec867c23863a8fd",d:"M8 1.33337C4.31334 1.33337 1.33334 4.31337 1.33334 8.00004C1.33334 11.6867 4.31334 14.6667 8 14.6667C11.6867 14.6667 14.6667 11.6867 14.6667 8.00004C14.6667 4.31337 11.6867 1.33337 8 1.33337ZM10.8667 10.8667C10.6067 11.1267 10.1867 11.1267 9.92667 10.8667L8 8.94004L6.07334 10.8667C5.81334 11.1267 5.39334 11.1267 5.13334 10.8667C4.87334 10.6067 4.87334 10.1867 5.13334 9.92671L7.06 8.00004L5.13334 6.07337C4.87334 5.81337 4.87334 5.39337 5.13334 5.13337C5.39334 4.87337 5.81334 4.87337 6.07334 5.13337L8 7.06004L9.92667 5.13337C10.1867 4.87337 10.6067 4.87337 10.8667 5.13337C11.1267 5.39337 11.1267 5.81337 10.8667 6.07337L8.94 8.00004L10.8667 9.92671C11.12 10.18 11.12 10.6067 10.8667 10.8667Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"06cc2ab8a72d0979c8d8a93bc07de6e18024c33b"},r("path",{key:"e4a0a48f9ecc01dd4612dc6e4fbf04e7b3e5c1ac",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM16.3 16.3C15.91 16.69 15.28 16.69 14.89 16.3L12 13.41L9.11 16.3C8.72 16.69 8.09 16.69 7.7 16.3C7.31 15.91 7.31 15.28 7.7 14.89L10.59 12L7.7 9.11C7.31 8.72 7.31 8.09 7.7 7.7C8.09 7.31 8.72 7.31 9.11 7.7L12 10.59L14.89 7.7C15.28 7.31 15.91 7.31 16.3 7.7C16.69 8.09 16.69 8.72 16.3 9.11L13.41 12L16.3 14.89C16.68 15.27 16.68 15.91 16.3 16.3Z",fill:"currentColor"})),this.size===28&&r(S,{key:"c0f1a787686de28c10824e8737aff113b93789f3"},r("path",{key:"7e85ba81de33918b033262d2854cba863a3159b5",d:"M14 2.33337C7.54834 2.33337 2.33334 7.54837 2.33334 14C2.33334 20.4517 7.54834 25.6667 14 25.6667C20.4517 25.6667 25.6667 20.4517 25.6667 14C25.6667 7.54837 20.4517 2.33337 14 2.33337ZM19.0167 19.0167C18.5617 19.4717 17.8267 19.4717 17.3717 19.0167L14 15.645L10.6283 19.0167C10.1733 19.4717 9.43834 19.4717 8.98334 19.0167C8.52834 18.5617 8.52834 17.8267 8.98334 17.3717L12.355 14L8.98334 10.6284C8.52834 10.1734 8.52834 9.43837 8.98334 8.98337C9.43834 8.52837 10.1733 8.52837 10.6283 8.98337L14 12.355L17.3717 8.98337C17.8267 8.52837 18.5617 8.52837 19.0167 8.98337C19.4717 9.43837 19.4717 10.1734 19.0167 10.6284L15.645 14L19.0167 17.3717C19.46 17.815 19.46 18.5617 19.0167 19.0167Z",fill:"currentColor"})))}};MC.style=IB;const PB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",LC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"69406cc6dab89f69aa2d348a4e2e17fc80aa623b","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"1b20324c76f7590731e370302965843ee2058baf"},r("path",{key:"fcf994c122aab593d50383861f6720bdef6f9fd0",d:"M4.39999 9.85C4.25554 9.70556 4.18332 9.52778 4.18332 9.31667C4.18332 9.10556 4.25554 8.92778 4.39999 8.78333L7.46665 5.71667C7.54443 5.63889 7.62776 5.58333 7.71665 5.55C7.80554 5.51667 7.89999 5.5 7.99999 5.5C8.09999 5.5 8.19443 5.51667 8.28332 5.55C8.37221 5.58333 8.45554 5.63889 8.53332 5.71667L11.6167 8.8C11.7611 8.94444 11.8307 9.11667 11.8253 9.31667C11.8195 9.51667 11.7444 9.69444 11.6 9.85C11.4555 9.98333 11.2778 10.05 11.0667 10.05C10.8555 10.05 10.6778 9.98333 10.5333 9.85L7.99999 7.3L5.44999 9.86667C5.30554 10 5.13332 10.0667 4.93332 10.0667C4.73332 10.0667 4.55554 9.99444 4.39999 9.85V9.85Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"918d1c391ce290995e088e8e8b9678187b974699"},r("path",{key:"028f3bea949de316ea05d5938a13e0047d7c485b",d:"M6.59999 14.775C6.38333 14.5583 6.27499 14.2917 6.27499 13.975C6.27499 13.6583 6.38333 13.3917 6.59999 13.175L11.2 8.575C11.3167 8.45833 11.4417 8.375 11.575 8.325C11.7083 8.275 11.85 8.25 12 8.25C12.15 8.25 12.2917 8.275 12.425 8.325C12.5583 8.375 12.6833 8.45833 12.8 8.575L17.425 13.2C17.6417 13.4167 17.746 13.675 17.738 13.975C17.7293 14.275 17.6167 14.5417 17.4 14.775C17.1833 14.975 16.9167 15.075 16.6 15.075C16.2833 15.075 16.0167 14.975 15.8 14.775L12 10.95L8.17499 14.8C7.95833 15 7.69999 15.1 7.39999 15.1C7.09999 15.1 6.83333 14.9917 6.59999 14.775Z",fill:"currentColor"})),this.size===28&&r(S,{key:"23928b5c368403bca02e49a798215c2a19258a09"},r("path",{key:"cb48861777cb9d77d519fb746c646e3231af57cd",d:"M7.7 17.2375C7.44722 16.9847 7.32083 16.6736 7.32083 16.3042C7.32083 15.9347 7.44722 15.6236 7.7 15.3708L13.0667 10.0042C13.2028 9.86806 13.3486 9.77083 13.5042 9.7125C13.6597 9.65417 13.825 9.625 14 9.625C14.175 9.625 14.3403 9.65417 14.4958 9.7125C14.6514 9.77083 14.7972 9.86806 14.9333 10.0042L20.3292 15.4C20.5819 15.6528 20.7037 15.9542 20.6943 16.3042C20.6842 16.6542 20.5528 16.9653 20.3 17.2375C20.0472 17.4708 19.7361 17.5875 19.3667 17.5875C18.9972 17.5875 18.6861 17.4708 18.4333 17.2375L14 12.775L9.5375 17.2667C9.28472 17.5 8.98333 17.6167 8.63333 17.6167C8.28333 17.6167 7.97222 17.4903 7.7 17.2375V17.2375Z",fill:"currentColor"})))}};LC.style=PB;const TB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",IC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"a8f2686dec7b791a91dbf1eb38967f21efdcb692","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"a60f39882861a300b72323dd5945ecad06a61242"},r("path",{key:"38038faeec1bb93eefe12034ba8d4ca372348518",d:"M7.99999 10.6665C8.83333 10.6665 9.54177 10.3749 10.1253 9.79184C10.7084 9.20828 11 8.49984 11 7.6665C11 6.83317 10.7084 6.12473 10.1253 5.54117C9.54177 4.95806 8.83333 4.6665 7.99999 4.6665C7.16666 4.6665 6.45821 4.95806 5.87466 5.54117C5.29155 6.12473 4.99999 6.83317 4.99999 7.6665C4.99999 8.49984 5.29155 9.20828 5.87466 9.79184C6.45821 10.3749 7.16666 10.6665 7.99999 10.6665ZM7.99999 9.4665C7.49999 9.4665 7.0751 9.29139 6.72533 8.94117C6.3751 8.59139 6.19999 8.1665 6.19999 7.6665C6.19999 7.1665 6.3751 6.74139 6.72533 6.39117C7.0751 6.04139 7.49999 5.8665 7.99999 5.8665C8.49999 5.8665 8.9251 6.04139 9.27533 6.39117C9.6251 6.74139 9.79999 7.1665 9.79999 7.6665C9.79999 8.1665 9.6251 8.59139 9.27533 8.94117C8.9251 9.29139 8.49999 9.4665 7.99999 9.4665ZM7.99999 12.6665C6.45555 12.6665 5.04444 12.2583 3.76666 11.4418C2.48888 10.6249 1.52221 9.52206 0.866659 8.13317C0.833325 8.07762 0.811103 8.00806 0.799992 7.9245C0.788881 7.84139 0.783325 7.75539 0.783325 7.6665C0.783325 7.57762 0.788881 7.49139 0.799992 7.40784C0.811103 7.32473 0.833325 7.25539 0.866659 7.19984C1.52221 5.81095 2.48888 4.70828 3.76666 3.89184C5.04444 3.07495 6.45555 2.6665 7.99999 2.6665C9.54444 2.6665 10.9555 3.07495 12.2333 3.89184C13.5111 4.70828 14.4778 5.81095 15.1333 7.19984C15.1667 7.25539 15.1889 7.32473 15.2 7.40784C15.2111 7.49139 15.2167 7.57762 15.2167 7.6665C15.2167 7.75539 15.2111 7.84139 15.2 7.9245C15.1889 8.00806 15.1667 8.07762 15.1333 8.13317C14.4778 9.52206 13.5111 10.6249 12.2333 11.4418C10.9555 12.2583 9.54444 12.6665 7.99999 12.6665ZM7.99999 11.3332C9.25555 11.3332 10.4084 11.0025 11.4587 10.3412C12.5084 9.68028 13.3111 8.78873 13.8667 7.6665C13.3111 6.54428 12.5084 5.6525 11.4587 4.99117C10.4084 4.33028 9.25555 3.99984 7.99999 3.99984C6.74444 3.99984 5.59155 4.33028 4.54133 4.99117C3.49155 5.6525 2.68888 6.54428 2.13333 7.6665C2.68888 8.78873 3.49155 9.68028 4.54133 10.3412C5.59155 11.0025 6.74444 11.3332 7.99999 11.3332Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"f62440717bce6bc14e01506203f5579cc63863fe"},r("path",{key:"7a6178df3039f86ce0670e73e813a136de884a64",d:"M12 17C13.25 17 14.3127 16.5627 15.188 15.688C16.0627 14.8127 16.5 13.75 16.5 12.5C16.5 11.25 16.0627 10.1873 15.188 9.312C14.3127 8.43733 13.25 8 12 8C10.75 8 9.68732 8.43733 8.81199 9.312C7.93732 10.1873 7.49999 11.25 7.49999 12.5C7.49999 13.75 7.93732 14.8127 8.81199 15.688C9.68732 16.5627 10.75 17 12 17ZM12 15.2C11.25 15.2 10.6127 14.9373 10.088 14.412C9.56265 13.8873 9.29999 13.25 9.29999 12.5C9.29999 11.75 9.56265 11.1123 10.088 10.587C10.6127 10.0623 11.25 9.8 12 9.8C12.75 9.8 13.3877 10.0623 13.913 10.587C14.4377 11.1123 14.7 11.75 14.7 12.5C14.7 13.25 14.4377 13.8873 13.913 14.412C13.3877 14.9373 12.75 15.2 12 15.2ZM12 20C9.68332 20 7.56665 19.3877 5.64999 18.163C3.73332 16.9377 2.28332 15.2833 1.29999 13.2C1.24999 13.1167 1.21665 13.0123 1.19999 12.887C1.18332 12.7623 1.17499 12.6333 1.17499 12.5C1.17499 12.3667 1.18332 12.2373 1.19999 12.112C1.21665 11.9873 1.24999 11.8833 1.29999 11.8C2.28332 9.71667 3.73332 8.06267 5.64999 6.838C7.56665 5.61267 9.68332 5 12 5C14.3167 5 16.4333 5.61267 18.35 6.838C20.2667 8.06267 21.7167 9.71667 22.7 11.8C22.75 11.8833 22.7833 11.9873 22.8 12.112C22.8167 12.2373 22.825 12.3667 22.825 12.5C22.825 12.6333 22.8167 12.7623 22.8 12.887C22.7833 13.0123 22.75 13.1167 22.7 13.2C21.7167 15.2833 20.2667 16.9377 18.35 18.163C16.4333 19.3877 14.3167 20 12 20ZM12 18C13.8833 18 15.6127 17.504 17.188 16.512C18.7627 15.5207 19.9667 14.1833 20.8 12.5C19.9667 10.8167 18.7627 9.479 17.188 8.487C15.6127 7.49567 13.8833 7 12 7C10.1167 7 8.38732 7.49567 6.81199 8.487C5.23732 9.479 4.03332 10.8167 3.19999 12.5C4.03332 14.1833 5.23732 15.5207 6.81199 16.512C8.38732 17.504 10.1167 18 12 18Z",fill:"currentColor"})),this.size===28&&r(S,{key:"c4d09e095513cf950f32b453186946b703e30247"},r("path",{key:"6197773f8c8c22ae183d382f2a691a41d3313581",d:"M14 19.6665C15.4583 19.6665 16.6981 19.1563 17.7193 18.1358C18.7398 17.1146 19.25 15.8748 19.25 14.4165C19.25 12.9582 18.7398 11.7184 17.7193 10.6972C16.6981 9.67673 15.4583 9.1665 14 9.1665C12.5417 9.1665 11.3019 9.67673 10.2807 10.6972C9.26024 11.7184 8.75002 12.9582 8.75002 14.4165C8.75002 15.8748 9.26024 17.1146 10.2807 18.1358C11.3019 19.1563 12.5417 19.6665 14 19.6665ZM14 17.5665C13.125 17.5665 12.3815 17.2601 11.7693 16.6472C11.1565 16.0351 10.85 15.2915 10.85 14.4165C10.85 13.5415 11.1565 12.7976 11.7693 12.1847C12.3815 11.5726 13.125 11.2665 14 11.2665C14.875 11.2665 15.619 11.5726 16.2318 12.1847C16.844 12.7976 17.15 13.5415 17.15 14.4165C17.15 15.2915 16.844 16.0351 16.2318 16.6472C15.619 17.2601 14.875 17.5665 14 17.5665ZM14 23.1665C11.2972 23.1665 8.82779 22.4521 6.59168 21.0233C4.35557 19.5938 2.66391 17.6637 1.51668 15.2332C1.45835 15.1359 1.41946 15.0142 1.40002 14.868C1.38057 14.7226 1.37085 14.5721 1.37085 14.4165C1.37085 14.2609 1.38057 14.1101 1.40002 13.9638C1.41946 13.8184 1.45835 13.6971 1.51668 13.5998C2.66391 11.1693 4.35557 9.23961 6.59168 7.81084C8.82779 6.38128 11.2972 5.6665 14 5.6665C16.7028 5.6665 19.1722 6.38128 21.4084 7.81084C23.6445 9.23961 25.3361 11.1693 26.4834 13.5998C26.5417 13.6971 26.5806 13.8184 26.6 13.9638C26.6195 14.1101 26.6292 14.2609 26.6292 14.4165C26.6292 14.5721 26.6195 14.7226 26.6 14.868C26.5806 15.0142 26.5417 15.1359 26.4834 15.2332C25.3361 17.6637 23.6445 19.5938 21.4084 21.0233C19.1722 22.4521 16.7028 23.1665 14 23.1665ZM14 20.8332C16.1972 20.8332 18.2148 20.2545 20.0527 19.0972C21.8898 17.9406 23.2945 16.3804 24.2667 14.4165C23.2945 12.4526 21.8898 10.892 20.0527 9.73467C18.2148 8.57811 16.1972 7.99984 14 7.99984C11.8028 7.99984 9.78524 8.57811 7.94735 9.73467C6.11024 10.892 4.70557 12.4526 3.73335 14.4165C4.70557 16.3804 6.11024 17.9406 7.94735 19.0972C9.78524 20.2545 11.8028 20.8332 14 20.8332Z",fill:"currentColor"})))}};IC.style=TB;const AB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",PC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"4f5b4b5df66b926f862f74bb22d447a80c1e21db","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"c7d67705f819abd44a21ada020f9bf130cf52906"},r("path",{key:"08d25a1e65ca9734361aee9a38d9d6061028c736",d:"M10.7333 8.86657L9.76666 7.8999C9.86666 7.37768 9.71666 6.88879 9.31666 6.43324C8.91666 5.97768 8.39999 5.7999 7.76666 5.8999L6.79999 4.93324C6.98888 4.84435 7.18044 4.77768 7.37466 4.73324C7.56933 4.68879 7.77777 4.66657 7.99999 4.66657C8.83333 4.66657 9.54177 4.95812 10.1253 5.54124C10.7084 6.12479 11 6.83324 11 7.66657C11 7.88879 10.9778 8.09723 10.9333 8.2919C10.8889 8.48612 10.8222 8.67768 10.7333 8.86657ZM12.8667 10.9666L11.9 10.0332C12.3222 9.71101 12.6973 9.35812 13.0253 8.97457C13.3529 8.59146 13.6333 8.15546 13.8667 7.66657C13.3111 6.54435 12.5138 5.65257 11.4747 4.99124C10.436 4.33035 9.27777 3.9999 7.99999 3.9999C7.67777 3.9999 7.3611 4.02212 7.04999 4.06657C6.73888 4.11101 6.43333 4.17768 6.13333 4.26657L5.09999 3.23324C5.55555 3.04435 6.02221 2.90257 6.49999 2.8079C6.97777 2.71368 7.47777 2.66657 7.99999 2.66657C9.58888 2.66657 11.0167 3.0859 12.2833 3.92457C13.55 4.76368 14.5 5.85546 15.1333 7.1999C15.1667 7.25546 15.1889 7.32479 15.2 7.4079C15.2111 7.49146 15.2167 7.57768 15.2167 7.66657C15.2167 7.75546 15.2084 7.84146 15.192 7.92457C15.1751 8.00812 15.1555 8.07768 15.1333 8.13324C14.8778 8.6999 14.5584 9.22212 14.1753 9.6999C13.7918 10.1777 13.3555 10.5999 12.8667 10.9666ZM12.7333 14.5999L10.4 12.2999C10.0111 12.4221 9.61955 12.5139 9.22533 12.5752C8.83066 12.6361 8.42221 12.6666 7.99999 12.6666C6.4111 12.6666 4.98333 12.2472 3.71666 11.4086C2.44999 10.5695 1.49999 9.47768 0.866659 8.13324C0.833325 8.07768 0.811103 8.00812 0.799992 7.92457C0.788881 7.84146 0.783325 7.75546 0.783325 7.66657C0.783325 7.57768 0.788881 7.49435 0.799992 7.41657C0.811103 7.33879 0.833325 7.27212 0.866659 7.21657C1.09999 6.71657 1.37777 6.25546 1.69999 5.83324C2.02221 5.41101 2.37777 5.02212 2.76666 4.66657L1.38333 3.26657C1.2611 3.14435 1.19999 2.99146 1.19999 2.8079C1.19999 2.62479 1.26666 2.46657 1.39999 2.33324C1.52221 2.21101 1.67777 2.1499 1.86666 2.1499C2.05555 2.1499 2.2111 2.21101 2.33333 2.33324L13.6667 13.6666C13.7889 13.7888 13.8529 13.9417 13.8587 14.1252C13.864 14.3083 13.8 14.4666 13.6667 14.5999C13.5444 14.7221 13.3889 14.7832 13.2 14.7832C13.0111 14.7832 12.8555 14.7221 12.7333 14.5999ZM3.69999 5.5999C3.37777 5.88879 3.08333 6.20546 2.81666 6.5499C2.54999 6.89435 2.32221 7.26657 2.13333 7.66657C2.68888 8.78879 3.48599 9.68035 4.52466 10.3412C5.56377 11.0026 6.72221 11.3332 7.99999 11.3332C8.22221 11.3332 8.43888 11.3195 8.64999 11.2919C8.8611 11.2639 9.07777 11.2332 9.29999 11.1999L8.69999 10.5666C8.57777 10.5999 8.4611 10.6248 8.34999 10.6412C8.23888 10.6581 8.12221 10.6666 7.99999 10.6666C7.16666 10.6666 6.45821 10.375 5.87466 9.7919C5.29155 9.20835 4.99999 8.4999 4.99999 7.66657C4.99999 7.54435 5.00821 7.42768 5.02466 7.31657C5.04155 7.20546 5.06666 7.08879 5.09999 6.96657L3.69999 5.5999Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"b6d65f8e49e24eaa28a1098565ff5c679abd3421"},r("path",{key:"9104f7a6e675284019c65e65de0d6a03df509dcc",d:"M16.1 12.3001L14.65 10.8501C14.8 10.0668 14.575 9.33343 13.975 8.6501C13.375 7.96676 12.6 7.7001 11.65 7.8501L10.2 6.4001C10.4833 6.26676 10.7707 6.16676 11.062 6.1001C11.354 6.03343 11.6667 6.0001 12 6.0001C13.25 6.0001 14.3127 6.43743 15.188 7.3121C16.0627 8.18743 16.5 9.2501 16.5 10.5001C16.5 10.8334 16.4667 11.1461 16.4 11.4381C16.3333 11.7294 16.2333 12.0168 16.1 12.3001ZM19.3 15.4501L17.85 14.0501C18.4833 13.5668 19.046 13.0374 19.538 12.4621C20.0293 11.8874 20.45 11.2334 20.8 10.5001C19.9667 8.81676 18.7707 7.4791 17.212 6.4871C15.654 5.49576 13.9167 5.0001 12 5.0001C11.5167 5.0001 11.0417 5.03343 10.575 5.1001C10.1083 5.16676 9.64999 5.26676 9.19999 5.4001L7.64999 3.8501C8.33332 3.56676 9.03332 3.3541 9.74999 3.2121C10.4667 3.07076 11.2167 3.0001 12 3.0001C14.3833 3.0001 16.525 3.6291 18.425 4.8871C20.325 6.14576 21.75 7.78343 22.7 9.8001C22.75 9.88343 22.7833 9.98743 22.8 10.1121C22.8167 10.2374 22.825 10.3668 22.825 10.5001C22.825 10.6334 22.8127 10.7624 22.788 10.8871C22.7627 11.0124 22.7333 11.1168 22.7 11.2001C22.3167 12.0501 21.8377 12.8334 21.263 13.5501C20.6877 14.2668 20.0333 14.9001 19.3 15.4501ZM19.1 20.9001L15.6 17.4501C15.0167 17.6334 14.4293 17.7711 13.838 17.8631C13.246 17.9544 12.6333 18.0001 12 18.0001C9.61665 18.0001 7.47499 17.3711 5.57499 16.1131C3.67499 14.8544 2.24999 13.2168 1.29999 11.2001C1.24999 11.1168 1.21665 11.0124 1.19999 10.8871C1.18332 10.7624 1.17499 10.6334 1.17499 10.5001C1.17499 10.3668 1.18332 10.2418 1.19999 10.1251C1.21665 10.0084 1.24999 9.90843 1.29999 9.8251C1.64999 9.0751 2.06665 8.38343 2.54999 7.7501C3.03332 7.11676 3.56665 6.53343 4.14999 6.0001L2.07499 3.9001C1.89165 3.71676 1.79999 3.48743 1.79999 3.2121C1.79999 2.93743 1.89999 2.7001 2.09999 2.5001C2.28332 2.31676 2.51665 2.2251 2.79999 2.2251C3.08332 2.2251 3.31665 2.31676 3.49999 2.5001L20.5 19.5001C20.6833 19.6834 20.7793 19.9128 20.788 20.1881C20.796 20.4628 20.7 20.7001 20.5 20.9001C20.3167 21.0834 20.0833 21.1751 19.8 21.1751C19.5167 21.1751 19.2833 21.0834 19.1 20.9001ZM5.54999 7.4001C5.06665 7.83343 4.62499 8.30843 4.22499 8.8251C3.82499 9.34176 3.48332 9.9001 3.19999 10.5001C4.03332 12.1834 5.22899 13.5208 6.78699 14.5121C8.34565 15.5041 10.0833 16.0001 12 16.0001C12.3333 16.0001 12.6583 15.9794 12.975 15.9381C13.2917 15.8961 13.6167 15.8501 13.95 15.8001L13.05 14.8501C12.8667 14.9001 12.6917 14.9374 12.525 14.9621C12.3583 14.9874 12.1833 15.0001 12 15.0001C10.75 15.0001 9.68732 14.5628 8.81199 13.6881C7.93732 12.8128 7.49999 11.7501 7.49999 10.5001C7.49999 10.3168 7.51232 10.1418 7.53699 9.9751C7.56232 9.80843 7.59999 9.63343 7.64999 9.4501L5.54999 7.4001Z",fill:"currentColor"})),this.size===28&&r(S,{key:"19cea003e973a0ea67bdde219455cb425303ed73"},r("path",{key:"8310c70e2c788489542421124a3430ba9d2c270b",d:"M18.7833 14.5166L17.0917 12.825C17.2667 11.9111 17.0042 11.0555 16.3042 10.2583C15.6042 9.46106 14.7 9.14995 13.5917 9.32495L11.9 7.63328C12.2306 7.47773 12.5658 7.36106 12.9057 7.28328C13.2463 7.20551 13.6111 7.16662 14 7.16662C15.4583 7.16662 16.6981 7.67684 17.7193 8.69728C18.7398 9.71851 19.25 10.9583 19.25 12.4166C19.25 12.8055 19.2111 13.1703 19.1333 13.511C19.0556 13.8508 18.9389 14.1861 18.7833 14.5166ZM22.5167 18.1916L20.825 16.5583C21.5639 15.9944 22.2203 15.3768 22.7943 14.7056C23.3676 14.0352 23.8583 13.2722 24.2667 12.4166C23.2945 10.4527 21.8991 8.89212 20.0807 7.73478C18.263 6.57823 16.2361 5.99995 14 5.99995C13.4361 5.99995 12.882 6.03884 12.3375 6.11662C11.7931 6.1944 11.2583 6.31106 10.7333 6.46662L8.92502 4.65828C9.72224 4.32773 10.5389 4.07962 11.375 3.91395C12.2111 3.74906 13.0861 3.66662 14 3.66662C16.7806 3.66662 19.2792 4.40045 21.4958 5.86812C23.7125 7.33656 25.375 9.24717 26.4834 11.6C26.5417 11.6972 26.5806 11.8185 26.6 11.964C26.6195 12.1102 26.6292 12.2611 26.6292 12.4166C26.6292 12.5722 26.6148 12.7227 26.586 12.8681C26.5565 13.0143 26.5222 13.1361 26.4834 13.2333C26.0361 14.225 25.4773 15.1388 24.8069 15.975C24.1356 16.8111 23.3722 17.55 22.5167 18.1916ZM22.2834 24.5499L18.2 20.525C17.5195 20.7388 16.8342 20.8995 16.1443 21.0068C15.4537 21.1133 14.7389 21.1666 14 21.1666C11.2195 21.1666 8.72085 20.4328 6.50418 18.9651C4.28752 17.4967 2.62502 15.5861 1.51668 13.2333C1.45835 13.1361 1.41946 13.0143 1.40002 12.8681C1.38057 12.7227 1.37085 12.5722 1.37085 12.4166C1.37085 12.2611 1.38057 12.1152 1.40002 11.9791C1.41946 11.843 1.45835 11.7263 1.51668 11.6291C1.92502 10.7541 2.41113 9.94717 2.97502 9.20828C3.53891 8.4694 4.16113 7.78884 4.84168 7.16662L2.42085 4.71662C2.20696 4.50273 2.10002 4.23517 2.10002 3.91395C2.10002 3.59351 2.21668 3.31662 2.45002 3.08328C2.66391 2.8694 2.93613 2.76245 3.26668 2.76245C3.59724 2.76245 3.86946 2.8694 4.08335 3.08328L23.9167 22.9166C24.1306 23.1305 24.2426 23.3981 24.2527 23.7193C24.262 24.0397 24.15 24.3166 23.9167 24.5499C23.7028 24.7638 23.4306 24.8708 23.1 24.8708C22.7695 24.8708 22.4972 24.7638 22.2834 24.5499ZM6.47502 8.79995C5.91113 9.30551 5.39585 9.85967 4.92918 10.4625C4.46252 11.0652 4.06391 11.7166 3.73335 12.4166C4.70557 14.3805 6.10052 15.9407 7.91818 17.0973C9.73663 18.2546 11.7639 18.8333 14 18.8333C14.3889 18.8333 14.7681 18.8092 15.1375 18.7609C15.507 18.7119 15.8861 18.6583 16.275 18.5999L15.225 17.4916C15.0111 17.55 14.807 17.5935 14.6125 17.6223C14.4181 17.6518 14.2139 17.6666 14 17.6666C12.5417 17.6666 11.3019 17.1564 10.2807 16.1359C9.26024 15.1147 8.75002 13.875 8.75002 12.4166C8.75002 12.2027 8.76441 11.9986 8.79318 11.8041C8.82274 11.6097 8.86668 11.4055 8.92502 11.1916L6.47502 8.79995Z",fill:"currentColor"})))}};PC.style=AB;const TC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_cancel:MC,swirl_icon_expand_less:LC,swirl_icon_visibility:IC,swirl_icon_visibility_off:PC},Symbol.toStringTag,{value:"Module"})),EB=".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}",AC=class{constructor(e){q(this,e),this.itemDrop=De(this,"itemDrop",7),this.valueChange=De(this,"valueChange",7),this.onClick=t=>{t.preventDefault();const i=t.target,s=i==null?void 0:i.closest("swirl-option-list-item"),n=t.composedPath()[0],l=Boolean(ct(n,'[role="option"]'));if(!Boolean(s)||!l){t.preventDefault();return}this.selectItem(this.items.findIndex(o=>o.value===s.value))},this.onKeyDown=t=>{if(t.code==="ArrowDown")t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemDown():this.focusNextItem();else if(t.code==="ArrowUp")t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemUp():this.focusPreviousItem();else if(t.code==="Space"||t.code==="Enter"){if(!t.target.classList.contains("option-list-item__drag-handle")&&Boolean(this.dragging)){t.preventDefault(),this.stopDrag(this.dragging);return}const s=t.composedPath()[0];if(!Boolean(ct(s,'[role="option"]')))return;t.preventDefault(),Boolean(this.dragging)?this.stopDrag(this.dragging):this.selectFocusedItem()}else t.code==="Home"?(t.preventDefault(),this.focusItem(0)):t.code==="End"?(t.preventDefault(),this.focusItem(this.items.length-1)):t.code==="KeyA"&&(t.metaKey||t.ctrlKey)&&this.multiSelect?(t.preventDefault(),this.selectAllItems()):t.code==="Tab"&&Boolean(this.dragging)&&t.preventDefault()},this.toggleDrag=t=>{const i=t.detail;Boolean(this.dragging)?this.stopDrag(i):this.startDrag(i)},this.startDrag=t=>{this.dragging=t,this.draggingStartIndex=this.getItemIndex(this.dragging),t.setAttribute("dragging","true");const i=this.getItemIndex(this.dragging);this.focusItem(i),this.assistiveText=this.assistiveTextItemGrabbed},this.stopDrag=t=>{this.dragging=void 0,t.removeAttribute("dragging");const i=this.getActiveItemIndex();this.assistiveText=`${this.assistiveTextItemMoved} ${i+1}`,this.itemDrop.emit({item:t,oldIndex:this.draggingStartIndex,newIndex:i}),this.draggingStartIndex=void 0,this.focusItem(i)},this.allowDeselect=!0,this.allowDrag=void 0,this.assistiveTextItemGrabbed="Item grabbed. Use arrow keys to move item up or down. Use spacebar to save position.",this.assistiveTextItemMoving="Current position:",this.assistiveTextItemMoved="Item moved. New position:",this.disabled=void 0,this.label=void 0,this.optionListId=void 0,this.multiSelect=void 0,this.value=[],this.assistiveText=void 0}componentDidLoad(){this.updateItems(),this.observeSlotChanges(),this.setItemAllowDragState(),this.setItemDisabledState(),this.setItemContext(),this.syncItemsWithValue(),this.setupDragDrop(),this.setSectionSeparator()}componentDidRender(){this.setupDragDrop()}disconnectedCallback(){var e,t;(e=this.observer)==null||e.disconnect(),(t=this.sortable)==null||t.destroy()}watchAllowDrag(){this.setItemAllowDragState(),this.setupDragDrop()}watchDisabled(){this.setItemDisabledState()}watchMultiSelect(){this.setItemContext()}watchValue(){this.syncItemsWithValue()}observeSlotChanges(){this.observer=new MutationObserver(()=>{this.updateItems(),this.setItemAllowDragState(),this.setItemDisabledState(),this.setItemContext(),this.syncItemsWithValue()}),this.observer.observe(this.listboxEl,{childList:!0,subtree:!0})}updateItems(){var t;this.items=W1(this.el,"swirl-option-list-item"),this.items.forEach(i=>{var s;return(s=i.querySelector('[role="option"]'))==null?void 0:s.removeAttribute("tabIndex")});const e=(t=this.items[0])==null?void 0:t.querySelector('[role="option"]');!Boolean(e)||e.setAttribute("tabIndex","0")}setItemDisabledState(){this.disabled&&this.items.forEach(e=>e.disabled=!0)}setItemContext(){this.multiSelect?this.items.forEach(e=>e.context="multi-select"):(this.items.forEach(e=>e.context="single-select"),this.value.length>1&&this.updateValue([this.value[0]]))}setupDragDrop(){Boolean(this.sortable)&&this.sortable.destroy(),this.allowDrag&&(this.sortable=h1.create(this.listboxEl,{animation:150,draggable:"swirl-option-list-item",handle:".option-list-item__drag-handle",onEnd:e=>{this.itemDrop.emit({item:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex})}}))}setItemAllowDragState(){if(this.allowDrag&&!this.multiSelect){console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");return}const e=W1(this.el,"swirl-option-list-section");if(this.allowDrag&&e.length>0){console.error("[SwirlOptionList] Drag can only be allowed for lists without sections.");return}this.allowDrag?this.items.forEach(t=>{t.setAttribute("allow-drag","true"),t.addEventListener("toggleDrag",this.toggleDrag)}):this.items.forEach(t=>{t.removeAttribute("allow-drag"),t.removeEventListener("toggleDrag",this.toggleDrag)})}selectItem(e){if(this.disabled)return;const t=this.items[e];if(t.disabled)return;const i=this.value.includes(t.value);i&&!this.allowDeselect||(this.multiSelect||(this.value=[]),i?this.updateValue(this.value.filter(s=>s!==t.value)):this.updateValue([...this.value,t.value]),this.focusItem(e))}updateValue(e){this.value=e,this.valueChange.emit(this.value)}selectFocusedItem(){this.disabled||this.getActiveItemIndex()===-1||this.selectItem(this.getActiveItemIndex())}selectAllItems(){if(this.disabled)return;this.items.every(t=>this.value.includes(t.value))?this.updateValue([]):this.updateValue(this.items.map(t=>t.value))}syncItemsWithValue(){var e;(e=this.items)==null||e.forEach(t=>t.selected=this.value.includes(t.value))}focusItem(e){var i;if(this.disabled)return;this.items.forEach(s=>s.querySelector('[role="option"]').removeAttribute("tabIndex"));const t=(i=this.items[e])==null?void 0:i.querySelector('[role="option"]');!Boolean(t)||(t.setAttribute("tabIndex","0"),t.focus(),this.focusedItem=t)}focusNextItem(){if(this.disabled)return;const e=this.getActiveItemIndex(),t=Math.min(e+1,this.items.length-1);this.focusItem(t)}focusPreviousItem(){const e=this.getActiveItemIndex(),t=Math.max(e-1,0);this.focusItem(t)}getActiveItemIndex(){return Boolean(this.focusedItem)?this.items.map(e=>e.querySelector('[role="option"]')).findIndex(e=>e===this.focusedItem):0}getItemIndex(e){return this.items.map(t=>t).findIndex(t=>t===e)}moveDraggedItemDown(){const e=this.dragging.nextElementSibling;!Boolean(e)||(e.after(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getActiveItemIndex()+1}`)}moveDraggedItemUp(){const e=this.dragging.previousElementSibling;!Boolean(e)||(e.before(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging)+1}`)}setSectionSeparator(){if(!this.el)return;Array.from(this.el.querySelectorAll("swirl-option-list-section")).filter(t=>t.isConnected).forEach((t,i)=>{var s;i===0&&((s=t.previousElementSibling)==null?void 0:s.tagName)!=="SWIRL-OPTION-LIST-ITEM"&&(t.hasSeparator=!1)})}render(){const e=this.multiSelect?"true":void 0,t=Boolean(this.dragging)?0:void 0;return r(Ne,{key:"0e58d896d5cc38c0c3597185d6564fe4638603f8"},r("swirl-visually-hidden",{key:"5bda19ea607761fce0b3951fa05a0edb1e3949bd",role:"alert"},this.assistiveText),r("div",{key:"c1ae35577977c77d21c3a6b4b996d20d38c669e1","aria-label":this.label,"aria-multiselectable":e,class:"option-list",id:this.optionListId,onClick:this.onClick,onKeyDown:this.onKeyDown,ref:i=>this.listboxEl=i,role:"listbox",tabIndex:t},r("slot",{key:"43e7744360af4a1fd6be972737fe09665871f3a7",onSlotchange:this.setSectionSeparator})))}get el(){return n1(this)}static get watchers(){return{allowDrag:["watchAllowDrag"],disabled:["watchDisabled"],multiSelect:["watchMultiSelect"],value:["watchValue"]}}};AC.style=EB;const $B=":host{display:inline-flex;max-width:100%}:host *{box-sizing:border-box}.tag{display:inline-flex;max-width:100%;align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--swirl-tag-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;gap:var(--s-space-4)}.tag--size-s{padding:var(--s-space-0) var(--s-space-4)}.tag--size-m{padding:var(--s-space-2) var(--s-space-8)}.tag--variant-outline{border-style:solid;border-width:var(--s-border-width-default);border-color:var(--s-border-strong)}.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-neutral-default)}.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--s-icon-info)}.tag--intent-info.tag--variant-outline{border-color:var(--s-border-info)}.tag--intent-info.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-info-default)}.tag--intent-info.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--s-icon-critical)}.tag--intent-critical.tag--variant-outline{border-color:var(--s-border-critical)}.tag--intent-critical.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-critical-default)}.tag--intent-critical.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--s-icon-warning)}.tag--intent-warning.tag--variant-outline{border-color:var(--s-border-warning)}.tag--intent-warning.tag--variant-strong{color:var(--s-text-dark);background-color:var(--s-surface-warning-default)}.tag--intent-warning.tag--variant-strong .tag__removal-button{color:var(--s-icon-dark)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--s-icon-success)}.tag--intent-success.tag--variant-outline{border-color:var(--s-border-success)}.tag--intent-success.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-surface-success-default)}.tag--intent-success.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-special{color:var(--s-decorative-grape-text);background-color:var(--s-decorative-grape-surface-subdued)}.tag--intent-special .tag__removal-button{color:var(--s-decorative-grape-text)}.tag--intent-special.tag--variant-outline{border-color:var(--s-decorative-grape-text)}.tag--intent-special.tag--variant-strong{color:var(--s-text-on-action-primary);background-color:var(--s-decorative-grape-surface)}.tag--intent-special.tag--variant-strong .tag__removal-button{color:var(--s-icon-on-action-primary)}.tag--intent-translucent{color:var(--s-text-on-image);background-color:var(--s-surface-on-image-default)}.tag--intent-translucent .tag__removal-button{color:var(--s-icon-on-image)}.tag--intent-translucent.tag--variant-outline{border-color:var(--s-text-on-image)}.tag__icon{display:inline-flex;margin-left:calc(-1 * var(--s-space-4));flex-shrink:0;order:0}.tag--icon-position-end .tag__icon{margin-right:calc(-1 * var(--s-space-4));margin-left:0;order:2}.tag__label{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis;order:1}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer;flex-shrink:0;order:3}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}",EC=class{constructor(e){q(this,e),this.removeTag=De(this,"remove",7),this.onRemove=t=>{var i;(i=this.removeTag)==null||i.emit(t)},this.icon=void 0,this.iconPosition="start",this.intent="default",this.label=void 0,this.removable=void 0,this.bordered=void 0,this.size="m",this.removalButtonLabel="Remove",this.variant="default"}componentDidLoad(){this.forceIconProps()}componentWillLoad(){this.forceVariant()}componentDidRender(){this.forceIconProps()}forceIconProps(){var t;const e=(t=this.iconEl)==null?void 0:t.children[0];e==null||e.setAttribute("size","16")}forceVariant(){Boolean(this.bordered)&&(console.warn('[Swirl] The "bordered" prop of swirl-tag is deprecated and will be removed with the next major release. Please use the "variant" prop as "outline" to achieve the same result.'),this.variant="outline")}render(){const e=te("tag",`tag--icon-position-${this.iconPosition}`,`tag--intent-${this.intent}`,`tag--size-${this.size}`,`tag--variant-${this.variant}`);return r(Ne,{key:"aa043cbe2948f3ee3a96e411db399680f64efb36"},r("span",{key:"a33611f3c493208c00d6bf3d11118b8535251759",class:e,part:"tag"},this.icon&&r("span",{key:"15936268e6597d6c46d10deec46dc3dacc24d2ec",class:"tag__icon",innerHTML:this.icon,ref:t=>this.iconEl=t}),r("span",{key:"c13b0e05353eda1762f1321c7ca5c8fa6149e045",class:"tag__label"},this.label),this.removable&&r("button",{key:"93aab4e6b46d9bc21b2764e48575b14360c8a3de","aria-label":this.removalButtonLabel,class:"tag__removal-button",onClick:this.onRemove,tabIndex:this.el.ariaHidden==="true"?-1:void 0,type:"button"},r("swirl-icon-close",{key:"bff1d55e2e453edb9f107e7504a9d46a4acbbe68",size:16}))))}get el(){return n1(this)}};EC.style=$B;const $C=Object.freeze(Object.defineProperty({__proto__:null,swirl_option_list:AC,swirl_tag:EC},Symbol.toStringTag,{value:"Module"}));function OC(e,t){const i=new Date(e);return i.setDate(i.getDate()+t),i}function OB(e,t,i){const s=[],n=En(e),l=n.getDay()===0?7:n.getDay(),o=HC(e),d=o.getDay()===0?7:o.getDay(),a=i===1?7:i-1,h=[],f=[];if(t){let P=(7-i+l)%7,y=$n(n);for(;P>0;)h.push(y),y=$n(y),P-=1;h.reverse();let x=(7-d+a)%7,R=j2(o);for(;x>0;)f.push(R),R=j2(R),x-=1}let p=n;for(;p.getMonth()===e.getMonth();)s.push(p),p=j2(p);return[...h,...s,...f]}function En(e){return gi(new Date(`${String(NC(e)).padStart(4,"0")}-${String(VC(e)).padStart(2,"0")}-01`))}function mi(e){if(e instanceof Date)return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function HC(e){const t=En(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t}function VC(e){return e.getMonth()+1}function HB(e){return new Array(12).fill(void 0).map((t,i)=>{const s=gi(new Date(`2006-${String(i+1).padStart(2,"0")}-01`));return Intl.DateTimeFormat(e,{month:"long"}).format(s)})}function j2(e){return OC(e,1)}function RC(e){const t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()+1),t}function BC(e){const t=new Date(e);return t.setFullYear(t.getFullYear()+1),t}function $n(e){return FC(e,1)}function DC(e){const t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()-1),t}function ZC(e){const t=new Date(e);return t.setFullYear(t.getFullYear()-1),t}function VB(e,t){return new Array(7).fill(void 0).map((i,s)=>(e+s)%7+1).map(i=>{const s=gi(new Date(`2006-01-0${i}`));return[Intl.DateTimeFormat(t,{weekday:"short"}).format(s),Intl.DateTimeFormat(t,{weekday:"long"}).format(s)]})}function NC(e){return e.getFullYear()}function RB(e,t){if(!e||!t||!t.from||!t.to)return!1;const i=t.from<t.to?t.from:t.to,s=t.from<t.to?t.to:t.from;return e>=i&&e<=s}function Xt(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function gi(e){const t=new Date(e);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}function FC(e,t){const i=new Date(e);return i.setDate(i.getDate()-t),i}const BB=".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}",DB={clearButton:"Clear value",monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year"},jC=class{constructor(e){q(this,e),this.selectDate=De(this,"selectDate",7),this.changeMonth=De(this,"changeMonth",7),this.disabled=!1,this.disableDate=()=>!1,this.elementClassName="wc-datepicker",this.firstDayOfWeek=0,this.labels=DB,this.locale=(navigator==null?void 0:navigator.language)||"en-US",this.showClearButton=!1,this.showMonthStepper=!0,this.showTodayButton=!1,this.showYearStepper=!1,this.startDate=mi(new Date),this.init=()=>{this.currentDate=this.startDate?gi(new Date(this.startDate)):new Date,this.updateWeekdays()},this.nextMonth=()=>{this.updateCurrentDate(RC(this.currentDate))},this.nextYear=()=>{this.updateCurrentDate(BC(this.currentDate))},this.previousMonth=()=>{this.updateCurrentDate(DC(this.currentDate))},this.previousYear=()=>{this.updateCurrentDate(ZC(this.currentDate))},this.showToday=()=>{this.updateCurrentDate(new Date)},this.clear=()=>{this.value=void 0,this.selectDate.emit(void 0)},this.onClick=t=>{if(this.disabled)return;const i=t.target.closest("[data-date]");if(!Boolean(i))return;const s=gi(new Date(i.dataset.date));this.updateCurrentDate(s),this.onSelectDate(s)},this.onMonthSelect=t=>{const i=+t.target.value-1,s=new Date(this.currentDate);s.setMonth(i),this.updateCurrentDate(s)},this.onYearSelect=t=>{let i=+t.target.value;const s=t.target;isNaN(i)?(i=new Date().getFullYear(),s.value=String(i)):i<0?(i=0,s.value=String(i)):i>9999&&(i=9999,s.value=String(i));const n=new Date(this.currentDate);n.setFullYear(i),this.updateCurrentDate(n)},this.onKeyDown=t=>{this.disabled||(t.code==="ArrowLeft"?(t.preventDefault(),this.updateCurrentDate($n(this.currentDate),!0)):t.code==="ArrowRight"?(t.preventDefault(),this.updateCurrentDate(j2(this.currentDate),!0)):t.code==="ArrowUp"?(t.preventDefault(),this.updateCurrentDate(FC(this.currentDate,7),!0)):t.code==="ArrowDown"?(t.preventDefault(),this.updateCurrentDate(OC(this.currentDate,7),!0)):t.code==="PageUp"?(t.preventDefault(),t.shiftKey?this.updateCurrentDate(ZC(this.currentDate),!0):this.updateCurrentDate(DC(this.currentDate),!0)):t.code==="PageDown"?(t.preventDefault(),t.shiftKey?this.updateCurrentDate(BC(this.currentDate),!0):this.updateCurrentDate(RC(this.currentDate),!0)):t.code==="Home"?(t.preventDefault(),this.updateCurrentDate(En(this.currentDate),!0)):t.code==="End"?(t.preventDefault(),this.updateCurrentDate(HC(this.currentDate),!0)):(t.code==="Space"||t.code==="Enter")&&(t.preventDefault(),this.onSelectDate(this.currentDate)))},this.onMouseEnter=t=>{if(this.disabled)return;const i=gi(new Date(t.target.closest("td").dataset.date));this.hoveredDate=i},this.onMouseLeave=()=>{this.hoveredDate=void 0}}componentWillLoad(){this.init()}watchFirstDayOfWeek(){this.updateWeekdays()}watchLocale(){Boolean(this.locale)||(this.locale=(navigator==null?void 0:navigator.language)||"en-US"),this.updateWeekdays()}watchRange(){this.value=void 0,this.selectDate.emit(void 0)}watchStartDate(){this.currentDate=this.startDate?gi(new Date(this.startDate)):new Date}watchValue(){Boolean(this.value)&&(Array.isArray(this.value)&&this.value.length>=1?this.currentDate=this.value[0]:this.value instanceof Date&&(this.currentDate=this.value))}componentDidRender(){this.moveFocusAfterMonthChanged&&(this.focusDate(this.currentDate),this.moveFocusAfterMonthChanged=!1)}updateWeekdays(){this.weekdays=VB(this.firstDayOfWeek===0?7:this.firstDayOfWeek,this.locale)}getClassName(e){return Boolean(e)?`${this.elementClassName}__${e}`:this.elementClassName}getCalendarRows(){const e=OB(this.currentDate,!0,this.firstDayOfWeek===0?7:this.firstDayOfWeek),t=[];for(let i=0;i<e.length;i+=7){const s=e.slice(i,i+7);t.push(s)}return t}getTitle(){if(!!Boolean(this.currentDate))return Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.currentDate)}focusDate(e){var t;(t=this.el.querySelector(`[data-date="${mi(e)}"]`))===null||t===void 0||t.focus()}updateCurrentDate(e,t){const i=e.getMonth(),s=e.getFullYear();if(s>9999||s<0)return;(i!==this.currentDate.getMonth()||s!==this.currentDate.getFullYear())&&(this.changeMonth.emit({month:VC(e),year:NC(e)}),t&&(this.moveFocusAfterMonthChanged=!0)),this.currentDate=e,t&&this.focusDate(this.currentDate)}onSelectDate(e){var t,i;if(!this.disableDate(e))if(this.isRangeValue(this.value)){const s=((t=this.value)===null||t===void 0?void 0:t[0])===void 0||this.value.length===2?[e]:[this.value[0],e];s.length===2&&s[0]>s[1]&&s.reverse();const n=s[1]===void 0?[mi(s[0])]:[mi(s[0]),mi(s[1])];this.value=s,this.selectDate.emit(n)}else{if(((i=this.value)===null||i===void 0?void 0:i.getTime())===e.getTime())return;this.value=e,this.selectDate.emit(mi(e))}}isRangeValue(e){return this.range}render(){const e=this.showTodayButton||this.showClearButton;return r(Ne,null,r("div",{"aria-disabled":String(this.disabled),"aria-label":this.labels.picker,class:{[this.getClassName()]:!0,[`${this.getClassName()}--disabled`]:this.disabled},role:"group"},r("div",{class:this.getClassName("header")},r("span",{"aria-atomic":"true","aria-live":"polite",class:"visually-hidden"},this.getTitle()),this.showYearStepper&&r("button",{"aria-label":this.labels.previousYearButton,class:this.getClassName("previous-year-button"),disabled:this.disabled,innerHTML:this.previousYearButtonContent||void 0,onClick:this.previousYear,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"11 17 6 12 11 7"}),r("polyline",{points:"18 17 13 12 18 7"}))),this.showMonthStepper&&r("button",{"aria-label":this.labels.previousMonthButton,class:this.getClassName("previous-month-button"),disabled:this.disabled,innerHTML:this.previousMonthButtonContent||void 0,onClick:this.previousMonth,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"15 18 9 12 15 6"}))),r("span",{class:this.getClassName("current-month")},r("select",{"aria-label":this.labels.monthSelect,class:this.getClassName("month-select"),disabled:this.disabled,name:"month",onChange:this.onMonthSelect},HB(this.locale).map((t,i)=>r("option",{key:t,selected:this.currentDate.getMonth()===i,value:i+1},t))),r("input",{"aria-label":this.labels.yearSelect,class:this.getClassName("year-select"),disabled:this.disabled,max:9999,maxLength:4,min:1,name:"year",onChange:this.onYearSelect,type:"number",value:this.currentDate.getFullYear()})),this.showMonthStepper&&r("button",{"aria-label":this.labels.nextMonthButton,class:this.getClassName("next-month-button"),disabled:this.disabled,innerHTML:this.nextMonthButtonContent||void 0,onClick:this.nextMonth,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"9 18 15 12 9 6"}))),this.showYearStepper&&r("button",{"aria-label":this.labels.nextYearButton,class:this.getClassName("next-year-button"),disabled:this.disabled,innerHTML:this.nextYearButtonContent||void 0,onClick:this.nextYear,type:"button"},r("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},r("polyline",{points:"13 17 18 12 13 7"}),r("polyline",{points:"6 17 11 12 6 7"})))),r("div",{class:this.getClassName("body")},r("table",{class:this.getClassName("calendar"),onKeyDown:this.onKeyDown,role:"grid"},r("thead",{class:this.getClassName("calendar-header")},r("tr",{class:this.getClassName("weekday-row")},this.weekdays.map(t=>r("th",{abbr:t[1],class:this.getClassName("weekday"),key:t[0],scope:"col"},r("span",null,t[0]))))),r("tbody",null,this.getCalendarRows().map(t=>{const i=`row-${t[0].getMonth()}-${t[0].getDate()}`;return r("tr",{class:this.getClassName("calendar-row"),key:i},t.map(s=>{var n,l,o,d,a;const h=Xt(s,this.currentDate),f=s.getMonth()!==this.currentDate.getMonth(),p=Array.isArray(this.value)?Xt(s,this.value[0])||Xt(s,this.value[1]):Xt(s,this.value),z=this.isRangeValue?RB(s,{from:(n=this.value)===null||n===void 0?void 0:n[0],to:((l=this.value)===null||l===void 0?void 0:l[1])||this.hoveredDate||this.currentDate}):!1,P=Boolean((o=this.value)===null||o===void 0?void 0:o[0])?[(d=this.value)===null||d===void 0?void 0:d[0],((a=this.value)===null||a===void 0?void 0:a[1])||this.hoveredDate].sort((k,$)=>k-$):[],y=this.range&&Xt(P[0],s),g=this.range&&Xt(P[1],s),x=Xt(s,new Date),R=this.disableDate(s),u=`cell-${s.getMonth()}-${s.getDate()}`,v={[this.getClassName("date")]:!0,[this.getClassName("date--current")]:h,[this.getClassName("date--disabled")]:R,[this.getClassName("date--overflowing")]:f,[this.getClassName("date--today")]:x,[this.getClassName("date--selected")]:p,[this.getClassName("date--in-range")]:z,[this.getClassName("date--start")]:y,[this.getClassName("date--end")]:g},O=p?"strong":x?"em":"span";return r("td",{"aria-disabled":String(R),"aria-selected":p?"true":void 0,class:v,"data-date":mi(s),key:u,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,role:"gridcell",tabIndex:Xt(s,this.currentDate)&&!this.disabled?0:-1},r(O,{"aria-hidden":"true"},s.getDate()),r("span",{class:"visually-hidden"},Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long"}).format(s)))}))})))),e&&r("div",{class:this.getClassName("footer")},this.showTodayButton&&r("button",{class:this.getClassName("today-button"),disabled:this.disabled,innerHTML:this.todayButtonContent||void 0,onClick:this.showToday,type:"button"},this.labels.todayButton),this.showClearButton&&r("button",{class:this.getClassName("clear-button"),disabled:this.disabled,innerHTML:this.clearButtonContent||void 0,onClick:this.clear,type:"button"},this.labels.clearButton))))}get el(){return n1(this)}static get watchers(){return{firstDayOfWeek:["watchFirstDayOfWeek"],locale:["watchLocale"],range:["watchRange"],startDate:["watchStartDate"],value:["watchValue"]}}};jC.style=BB;const WC=Object.freeze(Object.defineProperty({__proto__:null,wc_datepicker:jC},Symbol.toStringTag,{value:"Module"})),ZB=':host{display:block}:host *{box-sizing:border-box}.button-group--segmented ::slotted(*:not(:last-child)){position:relative}.button-group--segmented ::slotted(*:not(:last-child)):after{position:absolute;z-index:1;top:50%;left:100%;width:var(--s-border-width-default);height:calc(100% - var(--s-space-16));background-color:var(--s-border-strong);content:"";transform:translate3d(-50%, -50%, 0);pointer-events:none}.button-group--segmented ::slotted(*:not(:last-child):not([disabled])[intent="primary"]):after{background-color:var(--s-text-on-action-primary)}.button-group--segmented ::slotted(*:not(:last-child)[disabled="false"][intent="primary"]):after{background-color:var(--s-text-on-action-primary)}.button-group--segmented ::slotted(*:not(:first-child):not(:last-child)){--swirl-button-border-top-right-radius:0;--swirl-button-border-top-left-radius:0;--swirl-button-border-bottom-right-radius:0;--swirl-button-border-bottom-left-radius:0;--swirl-icon-button-border-top-right-radius:0;--swirl-icon-button-border-top-left-radius:0;--swirl-icon-button-border-bottom-right-radius:0;--swirl-icon-button-border-bottom-left-radius:0}.button-group--segmented ::slotted(*:first-child){--swirl-button-border-top-right-radius:0;--swirl-button-border-bottom-right-radius:0;--swirl-icon-button-border-top-right-radius:0;--swirl-icon-button-border-bottom-right-radius:0;--swirl-icon-button-border-top-left-radius:var(--s-border-radius-base);--swirl-icon-button-border-bottom-left-radius:var(--s-border-radius-base)}.button-group--segmented ::slotted(*:last-child){--swirl-button-border-top-left-radius:0;--swirl-button-border-bottom-left-radius:0;--swirl-icon-button-border-top-right-radius:var(--s-border-radius-base);--swirl-icon-button-border-bottom-right-radius:var(--s-border-radius-base);--swirl-icon-button-border-top-left-radius:0;--swirl-icon-button-border-bottom-left-radius:0}',UC=class{constructor(e){q(this,e),this.orientation="horizontal",this.segmented=void 0,this.spacing="8",this.stretch=void 0,this.wrap=void 0}render(){const e=this.segmented?"0":this.spacing,t=te("button-group",{"button-group--segmented":this.segmented});return r(Ne,{key:"3ba97e21adc41e84cc00510846c4afa0908a0346"},r("swirl-stack",{key:"68274c5d09b125086e29a2c47351f66d1f2b6bc4",align:this.orientation==="vertical"&&this.stretch?"stretch":"start",class:t,justify:this.orientation==="horizontal"&&this.stretch?"stretch":"start",orientation:this.orientation,role:"group",spacing:e,wrap:this.wrap},r("slot",{key:"8116255c942708969132eab81ef8ecaeb2a29ff7"})))}};UC.style=ZB;const GC=Object.freeze(Object.defineProperty({__proto__:null,swirl_button_group:UC},Symbol.toStringTag,{value:"Module"})),NB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",qC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"72e69557206bcb7d65be6c5536e5f5d3b5fe2639","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"0b6e5404ac89473dd8ee3619f5c0733a44499bc4"},r("path",{key:"e53cc37497ce4362d8939ef316a39b9a053ec754",d:"M7.99998 11.3333C8.18887 11.3333 8.34731 11.2693 8.47531 11.1413C8.60287 11.0138 8.66665 10.8555 8.66665 10.6666V7.98331C8.66665 7.79442 8.60287 7.63887 8.47531 7.51665C8.34731 7.39442 8.18887 7.33331 7.99998 7.33331C7.81109 7.33331 7.65287 7.39709 7.52531 7.52465C7.39731 7.65265 7.33331 7.81109 7.33331 7.99998V10.6833C7.33331 10.8722 7.39731 11.0278 7.52531 11.15C7.65287 11.2722 7.81109 11.3333 7.99998 11.3333ZM7.99998 5.99998C8.18887 5.99998 8.34731 5.93598 8.47531 5.80798C8.60287 5.68042 8.66665 5.5222 8.66665 5.33331C8.66665 5.14442 8.60287 4.98598 8.47531 4.85798C8.34731 4.73042 8.18887 4.66665 7.99998 4.66665C7.81109 4.66665 7.65287 4.73042 7.52531 4.85798C7.39731 4.98598 7.33331 5.14442 7.33331 5.33331C7.33331 5.5222 7.39731 5.68042 7.52531 5.80798C7.65287 5.93598 7.81109 5.99998 7.99998 5.99998ZM7.99998 14.6666C7.07776 14.6666 6.21109 14.4915 5.39998 14.1413C4.58887 13.7915 3.88331 13.3166 3.28331 12.7166C2.68331 12.1166 2.20842 11.4111 1.85865 10.6C1.50842 9.78887 1.33331 8.9222 1.33331 7.99998C1.33331 7.07776 1.50842 6.21109 1.85865 5.39998C2.20842 4.58887 2.68331 3.88331 3.28331 3.28331C3.88331 2.68331 4.58887 2.2082 5.39998 1.85798C6.21109 1.5082 7.07776 1.33331 7.99998 1.33331C8.9222 1.33331 9.78887 1.5082 10.6 1.85798C11.4111 2.2082 12.1166 2.68331 12.7166 3.28331C13.3166 3.88331 13.7915 4.58887 14.1413 5.39998C14.4915 6.21109 14.6666 7.07776 14.6666 7.99998C14.6666 8.9222 14.4915 9.78887 14.1413 10.6C13.7915 11.4111 13.3166 12.1166 12.7166 12.7166C12.1166 13.3166 11.4111 13.7915 10.6 14.1413C9.78887 14.4915 8.9222 14.6666 7.99998 14.6666ZM7.99998 13.3333C9.47776 13.3333 10.7362 12.814 11.7753 11.7753C12.814 10.7362 13.3333 9.47776 13.3333 7.99998C13.3333 6.5222 12.814 5.26376 11.7753 4.22465C10.7362 3.18598 9.47776 2.66665 7.99998 2.66665C6.5222 2.66665 5.26398 3.18598 4.22531 4.22465C3.1862 5.26376 2.66665 6.5222 2.66665 7.99998C2.66665 9.47776 3.1862 10.7362 4.22531 11.7753C5.26398 12.814 6.5222 13.3333 7.99998 13.3333Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"e9e1d874390958ad1a96bbf0e363ceef191a4c82"},r("path",{key:"8ebd1d7704b398b14758083e4ec2538143ff65c3",d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V11.975C13 11.6917 12.9043 11.4583 12.713 11.275C12.521 11.0917 12.2833 11 12 11C11.7167 11 11.4793 11.0957 11.288 11.287C11.096 11.479 11 11.7167 11 12V16.025C11 16.3083 11.096 16.5417 11.288 16.725C11.4793 16.9083 11.7167 17 12 17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.9043 8.52067 13 8.28333 13 8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8C11 8.28333 11.096 8.52067 11.288 8.712C11.4793 8.904 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:"currentColor"})),this.size===28&&r(S,{key:"7e9a0b4cd020501df661b89f4f0a8cb6cc64fbc7"},r("path",{key:"a4c448a6c226c296ff0cb3b8db8fc2d60f859da4",d:"M14 19.8333C14.3305 19.8333 14.6078 19.7213 14.8318 19.4973C15.055 19.2741 15.1666 18.9972 15.1666 18.6666V13.9708C15.1666 13.6403 15.055 13.368 14.8318 13.1541C14.6078 12.9403 14.3305 12.8333 14 12.8333C13.6694 12.8333 13.3925 12.9449 13.1693 13.1681C12.9453 13.3921 12.8333 13.6694 12.8333 14V18.6958C12.8333 19.0264 12.9453 19.2986 13.1693 19.5125C13.3925 19.7264 13.6694 19.8333 14 19.8333ZM14 10.5C14.3305 10.5 14.6078 10.388 14.8318 10.164C15.055 9.94076 15.1666 9.66387 15.1666 9.33331C15.1666 9.00276 15.055 8.72548 14.8318 8.50148C14.6078 8.27826 14.3305 8.16665 14 8.16665C13.6694 8.16665 13.3925 8.27826 13.1693 8.50148C12.9453 8.72548 12.8333 9.00276 12.8333 9.33331C12.8333 9.66387 12.9453 9.94076 13.1693 10.164C13.3925 10.388 13.6694 10.5 14 10.5ZM14 25.6666C12.3861 25.6666 10.8694 25.3602 9.44998 24.7473C8.03054 24.1352 6.79581 23.3041 5.74581 22.2541C4.69581 21.2041 3.86476 19.9694 3.25265 18.55C2.63976 17.1305 2.33331 15.6139 2.33331 14C2.33331 12.3861 2.63976 10.8694 3.25265 9.44998C3.86476 8.03054 4.69581 6.79581 5.74581 5.74581C6.79581 4.69581 8.03054 3.86437 9.44998 3.25148C10.8694 2.63937 12.3861 2.33331 14 2.33331C15.6139 2.33331 17.1305 2.63937 18.55 3.25148C19.9694 3.86437 21.2041 4.69581 22.2541 5.74581C23.3041 6.79581 24.1352 8.03054 24.7473 9.44998C25.3602 10.8694 25.6666 12.3861 25.6666 14C25.6666 15.6139 25.3602 17.1305 24.7473 18.55C24.1352 19.9694 23.3041 21.2041 22.2541 22.2541C21.2041 23.3041 19.9694 24.1352 18.55 24.7473C17.1305 25.3602 15.6139 25.6666 14 25.6666ZM14 23.3333C16.5861 23.3333 18.7884 22.4245 20.6068 20.6068C22.4245 18.7884 23.3333 16.5861 23.3333 14C23.3333 11.4139 22.4245 9.21159 20.6068 7.39315C18.7884 5.57548 16.5861 4.66665 14 4.66665C11.4139 4.66665 9.21198 5.57548 7.39431 7.39315C5.57587 9.21159 4.66665 11.4139 4.66665 14C4.66665 16.5861 5.57587 18.7884 7.39431 20.6068C9.21198 22.4245 11.4139 23.3333 14 23.3333Z",fill:"currentColor"})))}};qC.style=NB;const YC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_info:qC},Symbol.toStringTag,{value:"Module"})),FB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",KC=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"4adc01513f9623d00a8ab52024f024a565a5f3ea","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"ea7256b9ab0c285ab9bd488613f6b963147058bc"},r("path",{key:"41afe42ff9e2c05c7e1c90675ec040940fb6f8e0","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"2c7f1a0196dd86809c842ceec23731b0ba02a7ee"},r("path",{key:"244af96b1323fe0286daadee5a179282d81cf935","fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z",fill:"currentColor"})),this.size===28&&r(S,{key:"09b8b34286ed82e5656199291bc80e8c45cc3c96"},r("path",{key:"3e7f6b4270262de0a7fa94a9e08973b97d80be65","fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z",fill:"currentColor"})))}};KC.style=FB;const jB=`.sc-swirl-option-list-item-h{position:relative;display:block;width:100%}.sc-swirl-option-list-item-h *.sc-swirl-option-list-item{box-sizing:border-box}.option-list-item.sc-swirl-option-list-item{display:inline-flex;width:100%;min-width:15rem;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);border-radius:var(--s-border-radius-sm);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item.sc-swirl-option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item.sc-swirl-option-list-item:focus{outline:none}.option-list-item.sc-swirl-option-list-item:focus-visible{background-color:var(--s-surface-overlay-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item.sc-swirl-option-list-item{min-height:0;padding:var(--s-space-8) var(--s-space-12);gap:var(--s-space-8)}}.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label-container.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1.5rem)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label-container.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1rem)}}.option-list-item--dragging.sc-swirl-option-list-item{z-index:1;border-radius:var(--s-border-radius-s);background-color:var(--s-surface-overlay-pressed);box-shadow:0 0.0625rem 0.125rem rgba(25, 26, 28, 0.08),
|
|
540
540
|
0 0.25rem 2rem rgba(25, 26, 28, 0.16)}.option-list-item--dragging.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item{color:var(--s-icon-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.option-list-item--disabled.sc-swirl-option-list-item{cursor:default}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{background-color:var(--s-icon-disabled)}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-text-on-status)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__description.sc-swirl-option-list-item{color:var(--s-text-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__selection-icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-icon-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-disabled);background-color:var(--s-surface-overlay-default)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__avatar.sc-swirl-option-list-item{filter:grayscale(100%)}.option-list-item--show-avatar.sc-swirl-option-list-item .option-list-item__avatar.sc-swirl-option-list-item{display:inline-flex}.option-list-item__label-container.sc-swirl-option-list-item{display:flex;flex-grow:1;flex-direction:column;overflow:hidden}.option-list-item__label-container.sc-swirl-option-list-item>*.sc-swirl-option-list-item{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__label.sc-swirl-option-list-item{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.option-list-item__description.sc-swirl-option-list-item{color:var(--s-text-subdued);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__description.sc-swirl-option-list-item{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.option-list-item__avatar.sc-swirl-option-list-item{display:none;width:2.5rem;height:2.5rem;flex-shrink:0}.option-list-item__icon.sc-swirl-option-list-item{display:inline-flex;position:relative;width:1.5rem;height:1.5rem;flex-shrink:0;color:var(--s-icon-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__icon.sc-swirl-option-list-item{width:1.25rem;height:1.25rem}}.option-list-item__icon-badge.sc-swirl-option-list-item{position:absolute;display:grid;bottom:0;right:0}.option-list-item__selection-icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}.option-list-item__checkbox.sc-swirl-option-list-item{display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2);flex-shrink:0}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__checkbox.sc-swirl-option-list-item{width:1.375rem;height:1.375rem}}.option-list-item__checkbox-box.sc-swirl-option-list-item{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s)}.option-list-item__checkbox-icon.sc-swirl-option-list-item{display:inline-flex}.option-list-item__drag-handle.sc-swirl-option-list-item{position:absolute;z-index:1;top:50%;right:var(--s-space-4);display:inline-flex;margin:0;padding:0;padding:var(--s-space-8);flex-shrink:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:grab;transform:translateY(-50%)}.option-list-item__drag-handle.sc-swirl-option-list-item:active{cursor:grabbing}.option-list-item__drag-handle.sc-swirl-option-list-item:focus:not(:focus-visible){outline:none}.option-list-item__drag-handle.sc-swirl-option-list-item:focus-visible{outline-color:var(--s-focus-default)}`,XC=class{constructor(e){q(this,e),this.toggleDrag=De(this,"toggleDrag",7),this.desktopMediaQuery=et(),this.elementId=Mi(),this.desktopMediaQueryHandler=t=>{this.forceIconProps(t.matches),this.updateIconSize(t.matches)},this.onDragHandleKeyDown=t=>{(t.code==="Space"||t.code==="Enter")&&(t.preventDefault(),this.toggleDrag.emit(this.el))},this.onBlur=()=>{this.focused=!1},this.onFocus=()=>{this.focused=!0},this.allowDrag=void 0,this.context="single-select",this.description=void 0,this.disabled=void 0,this.dragging=void 0,this.dragHandleDescription="Press spacebar to toggle grab",this.dragHandleLabel="Move option",this.icon=void 0,this.iconBadge=void 0,this.label=void 0,this.selected=!1,this.swirlAriaRole="option",this.value=void 0,this.iconSize=24,this.focused=void 0}componentDidLoad(){this.forceIconProps(this.desktopMediaQuery.matches),this.updateIconSize(this.desktopMediaQuery.matches),this.desktopMediaQuery.addEventListener("change",this.desktopMediaQueryHandler)}disconnectedCallback(){var e,t;(t=(e=this.desktopMediaQuery).removeEventListener)==null||t.call(e,"change",this.desktopMediaQueryHandler)}forceIconProps(e){var i;const t=(i=this.iconEl)==null?void 0:i.children[0];t==null||t.setAttribute("size",e?"20":"24")}updateIconSize(e){this.iconSize=e?20:24}render(){const e=this.disabled?"true":void 0,t=String(this.selected),i=this.context==="multi-select",s=Boolean(this.icon)&&this.context==="single-select",n=Boolean(this.iconBadge),l=this.el.querySelector('[slot="avatar"]'),o=this.selected&&this.context==="single-select",d=te("option-list-item",`option-list-item--context-${this.context}`,{"option-list-item--disabled":this.disabled,"option-list-item--draggable":this.allowDrag,"option-list-item--dragging":this.dragging,"option-list-item--selected":this.selected,"option-list-item--show-avatar":l});return r(Ne,{key:"af019b6745db50086125eafef092fefec4529d9b"},r("div",{key:"e5fae098a7c87f3fcd569971e5befe1e937e6187","aria-checked":this.swirlAriaRole==="menuitemradio"?t:void 0,"aria-describedby":Boolean(this.description)?`option-list-item-${this.elementId}-description`:void 0,"aria-disabled":e,"aria-labelledby":`option-list-item-${this.elementId}-label`,"aria-selected":this.swirlAriaRole==="option"?t:void 0,class:d,id:`option-list-item-${this.elementId}`,onBlur:this.onBlur,onFocus:this.onFocus,part:"option-list-item",role:this.swirlAriaRole},s&&r("span",{key:"4bb4605bec790297e858dc191ce739ca7a7fc15f",class:"option-list-item__icon",innerHTML:this.icon,ref:a=>this.iconEl=a},n&&r("span",{key:"187934100efed7d64177dab42dfb2cf8f4fa3bcd",class:"option-list-item__icon-badge",innerHTML:this.iconBadge})),i&&r("span",{key:"73383423f4318beb554d29d19d3c084e644f2d9c",class:"option-list-item__checkbox"},r("span",{key:"9d39a8728e8d3d349df5f29b8064ad3991e7c69a",class:"option-list-item__checkbox-box"},this.selected&&r("swirl-icon-check-strong",{key:"19835649797e70c0163cef6ad77373141aa17ffb",class:"option-list-item__checkbox-icon",size:16}))),r("span",{key:"6deeb6c90a6c65c26a8af36973ad4562cc86c06f",class:"option-list-item__avatar"},r("slot",{key:"733db89be34cbcdd32c3831ef910628ff4da1e0a",name:"avatar"})),r("span",{key:"103881477943772f336b9e86e54ded03a66e7a42",class:"option-list-item__label-container"},r("span",{key:"fe86bafe56b7f9f66cf846a4b8fb49174b5aaca7",class:"option-list-item__label",id:`option-list-item-${this.elementId}-label`,part:"option-list-item__label"},this.label),this.description&&r("span",{key:"0242394567de7fcd7f05c3827dac275b2159a60f",class:"option-list-item__description",id:`option-list-item-${this.elementId}-description`},this.description)),o&&r("span",{key:"665b080344e85b02111ebd390acc3e46a26cf054",class:"option-list-item__selection-icon"},r("swirl-icon-check-small",{key:"112f73e489c034a85264fcc47d8bb89104b8ba53",size:this.iconSize}))),this.allowDrag&&r("button",{key:"c8e74ab1c619b02008b5012ecc3369b4c23c1584","aria-describedby":this.dragHandleDescription,"aria-label":`${this.dragHandleLabel} "${this.label}"`,class:"option-list-item__drag-handle",onKeyDown:this.onDragHandleKeyDown,tabIndex:this.focused?0:-1,type:"button"},r("swirl-icon-drag-handle",{key:"8b45eb82b6616f811a3b54384cca5843ad8adc2c",size:this.iconSize})))}get el(){return n1(this)}};XC.style=jB;const QC=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_check_small:KC,swirl_option_list_item:XC},Symbol.toStringTag,{value:"Module"})),WB=":host{display:block;width:100%}:host *{box-sizing:border-box}:host(.circle){display:inline-flex;width:auto}.progress-indicator--variant-bar{display:block;width:100%;height:0.25rem;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.progress-indicator--variant-bar::-webkit-progress-bar{border-radius:0.125rem;background-color:var(--s-surface-raised-default)}.progress-indicator--variant-bar::-webkit-progress-value{border-radius:0.125rem;background-color:var(--s-border-highlight);-webkit-transition:width 0.25s;transition:width 0.25s}.progress-indicator--variant-bar::-moz-progress-bar{height:0.25rem;border-radius:0.125rem;background-color:var(--s-border-highlight);-moz-transition:width 0.25s;transition:width 0.25s}@media (prefers-reduced-motion){.progress-indicator--variant-bar::-moz-progress-bar{-moz-transition:none;transition:none}}.progress-indicator--variant-bar.progress-indicator--size-s{height:0.125rem}.progress-indicator--variant-bar.progress-indicator--size-s::-webkit-progress-bar{border-radius:0.0625rem}.progress-indicator--variant-bar.progress-indicator--size-s::-webkit-progress-value{border-radius:0.0625rem}.progress-indicator--variant-bar.progress-indicator--size-s::-moz-progress-bar{height:0.125rem;border-radius:0.0625rem}.progress-indicator--variant-circle{position:relative;display:inline-flex;overflow:hidden;width:3rem;height:3rem}.progress-indicator--variant-circle.progress-indicator--size-s{width:1.5rem;height:1.5rem}.progress-indicator__circle{position:absolute;width:100%;height:100%;transform:rotate(-90deg);inset:0}.progress-indicator__circle-background{stroke:var(--s-border-default);stroke-linecap:round}.progress-indicator__circle-value{transition:stroke-dashoffset 0.25s;stroke:var(--s-interactive-primary-default);stroke-linecap:round}@media (prefers-reduced-motion){.progress-indicator__circle-value{transition:none}}",JC=class{constructor(e){q(this,e),this.label=void 0,this.size="m",this.value=0,this.variant="bar"}render(){const e=te("progress-indicator",`progress-indicator--size-${this.size}`,`progress-indicator--variant-${this.variant}`),t=this.size==="m"?4:2,i=this.size==="m"?20:10,s=Math.round(i*2*Math.PI),n=Math.round(s*((100-this.value)/100));return r(Ne,{key:"745f511e382e11f52d4b6ac45a88cf655f4d3884",class:this.variant},this.variant==="bar"&&r("progress",{key:"0ff970ba8d7e84870672bea7fde1906797124756","aria-label":this.label,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.value,class:e,max:100,value:this.value}),this.variant==="circle"&&r("span",{key:"4f147ff83b14ac372188f6dab2b0c81eadd43f4d",role:"progressbar","aria-label":this.label,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.value,class:e},r("svg",{key:"ae758909e31ecc6bb03c0493ca7365f619655eb4",class:"progress-indicator__circle",focusable:"false",viewBox:`0 0 ${(i+t)*2} ${(i+t)*2}`},r("circle",{key:"5a225ad9bfdd462498fec8a7c54116af078b7366",class:"progress-indicator__circle-background",cx:i+t,cy:i+t,r:i,fill:"none","stroke-width":t}),r("circle",{key:"5be353d2a49a206a0103939add1de1d138fff8e4",class:"progress-indicator__circle-value",cx:i+t,cy:i+t,r:i,fill:"none","stroke-width":t,"stroke-dasharray":s,"stroke-dashoffset":n}))))}};JC.style=WB;const ep=Object.freeze(Object.defineProperty({__proto__:null,swirl_progress_indicator:JC},Symbol.toStringTag,{value:"Module"})),UB=":host{display:block;width:100%}:host(.box--bordered){border:var(--s-border-width-default) solid var(--s-border-default)}:host(.box--border-color-default){border-color:var(--s-border-default)}:host(.box--border-color-strong){border-color:var(--s-border-strong)}:host(.box--bordered-block-end){border-block-end-width:var(--s-border-width-default);border-block-end-style:solid}:host(.box--bordered-block-start){border-block-start-width:var(--s-border-width-default);border-block-start-style:solid}:host(.box--bordered-inline-end){border-inline-end-width:var(--s-border-width-default);border-inline-end-style:solid}:host(.box--bordered-inline-start){border-inline-start-width:var(--s-border-width-default);border-inline-start-style:solid}:host(.box--bordered-block-start-when-scrolled.box--scrollable){border-block-start-width:var(--s-border-width-default);border-block-start-style:solid;border-block-start-color:transparent}:host(.box--bordered-block-start-when-scrolled.box--scrollable:not(.box--scrolled-to-top)){border-block-start-color:var(--s-border-default)}:host(.box--bordered-block-end-when-scrolled.box--scrollable){border-block-end-width:var(--s-border-width-default);border-block-end-style:solid;border-block-end-color:transparent}:host(.box--bordered-block-end-when-scrolled.box--scrollable:not(.box--scrolled-to-bottom)){border-block-end-color:var(--s-border-default)}:host(.box--cover){width:100%;height:100%}:host *{box-sizing:border-box}",tp=class{constructor(e){q(this,e),this.componentLoad=De(this,"componentLoad",7),this.onScroll=()=>{this.updateScrollState()},this.borderColor="default",this.bordered=void 0,this.borderedBlockEnd=void 0,this.borderedBlockEndWhenScrolled=void 0,this.borderedBlockStart=void 0,this.borderedBlockStartWhenScrolled=void 0,this.borderedInlineEnd=void 0,this.borderedInlineStart=void 0,this.bottom=void 0,this.centerBlock=void 0,this.centerInline=void 0,this.cover=void 0,this.height=void 0,this.left=void 0,this.maxHeight=void 0,this.minHeight=void 0,this.maxWidth=void 0,this.minWidth=void 0,this.overflow="visible",this.padding="0",this.paddingBlockEnd=void 0,this.paddingBlockStart=void 0,this.paddingInlineEnd=void 0,this.paddingInlineStart=void 0,this.position=void 0,this.right=void 0,this.basis=void 0,this.shrink=void 0,this.grow=void 0,this.top=void 0,this.width=void 0,this.zIndex=void 0,this.scrollState={scrollable:!1,scrolledToBottom:!1,scrolledToTop:!1}}componentDidLoad(){this.componentLoad.emit(),queueMicrotask(()=>{this.updateScrollState()})}updateScrollState(){const e={scrollable:this.el.scrollHeight>this.el.clientHeight,scrolledToTop:this.el.scrollTop===0,scrolledToBottom:Math.round(this.el.scrollTop+this.el.clientHeight)>=this.el.scrollHeight};Object.keys(e).some(t=>e[t]!==this.scrollState[t])&&(this.scrollState=e)}render(){const e={alignItems:this.centerBlock?"center":void 0,bottom:this.bottom,display:this.centerBlock||this.centerInline?"flex":void 0,flexBasis:this.basis,flexShrink:this.shrink,flexGrow:this.grow,height:this.cover?"100%":this.height,justifyContent:this.centerInline?"center":void 0,left:this.left,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,overflow:this.overflow,padding:`var(--s-space-${this.padding})`,paddingBlockEnd:Boolean(this.paddingBlockEnd)?`var(--s-space-${this.paddingBlockEnd})`:void 0,paddingBlockStart:Boolean(this.paddingBlockStart)?`var(--s-space-${this.paddingBlockStart})`:void 0,paddingInlineEnd:Boolean(this.paddingInlineEnd)?`var(--s-space-${this.paddingInlineEnd})`:void 0,paddingInlineStart:Boolean(this.paddingInlineStart)?`var(--s-space-${this.paddingInlineStart})`:void 0,position:Boolean(this.overflow)?this.position||"relative":this.position,right:this.right,top:this.top,width:this.cover?"100%":this.width,zIndex:this.zIndex},t=te("box",`box--border-color-${this.borderColor}`,{"box--bordered":this.bordered,"box--bordered-block-end":this.borderedBlockEnd,"box--bordered-block-end-when-scrolled":this.borderedBlockEndWhenScrolled,"box--bordered-block-start":this.borderedBlockStart,"box--bordered-block-start-when-scrolled":this.borderedBlockStartWhenScrolled,"box--bordered-inline-end":this.borderedInlineEnd,"box--bordered-inline-start":this.borderedInlineStart,"box--cover":this.cover,"box--scrollable":this.scrollState.scrollable,"box--scrolled-to-top":this.scrollState.scrolledToTop,"box--scrolled-to-bottom":this.scrollState.scrolledToBottom});return r(Ne,{key:"c8296ade3ea2dcaa4e14897557c343b433de562c",class:t,onScroll:this.onScroll,style:e},r("slot",{key:"a0029e22b4fc9b60cb679af27f7ae66d366c0ef4"}))}get el(){return n1(this)}};tp.style=UB;const ip=Object.freeze(Object.defineProperty({__proto__:null,swirl_box:tp},Symbol.toStringTag,{value:"Module"})),GB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",rp=class{constructor(e){q(this,e),this.color=void 0,this.glyph=void 0,this.size=24}render(){const e=`swirl-icon-${this.glyph}`;return r(Ne,{key:"d7f06ce3018ed274786a93f41cd584247aea0db6"},r(e,{key:"aaeffc681d6591577737130e782cab094cbe4070",color:this.color,size:this.size}))}};rp.style=GB;const sp=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon:rp},Symbol.toStringTag,{value:"Module"})),qB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",np=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"d73951bb9a5271dc2a53bee8414b6bc1513862fa","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"260b7734f70015782254606aebe5fdda61fec449"},r("path",{key:"61a4b9023dcab8800ff208b2af7bf7bdf38b84a6",d:"M4.00002 14.6666C3.63335 14.6666 3.31958 14.5362 3.05869 14.2753C2.79735 14.014 2.66669 13.7 2.66669 13.3333V2.66665C2.66669 2.29998 2.79735 1.98598 3.05869 1.72465C3.31958 1.46376 3.63335 1.33331 4.00002 1.33331H8.78335C8.96113 1.33331 9.13069 1.36665 9.29202 1.43331C9.45291 1.49998 9.59446 1.59442 9.71669 1.71665L12.95 4.94998C13.0722 5.0722 13.1667 5.21376 13.2334 5.37465C13.3 5.53598 13.3334 5.70553 13.3334 5.88331V13.3333C13.3334 13.7 13.2029 14.014 12.942 14.2753C12.6807 14.5362 12.3667 14.6666 12 14.6666H4.00002ZM8.66669 5.33331V2.66665H4.00002V13.3333H12V5.99998H9.33335C9.14446 5.99998 8.98624 5.93598 8.85869 5.80798C8.73069 5.68042 8.66669 5.5222 8.66669 5.33331Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"c0450ae1cf5706f2543d0a481698d7964a97fa61"},r("path",{key:"7a9ae65ca8a3da87429522c4cf290fe6610a3d05",d:"M6 22C5.45 22 4.97933 21.8043 4.588 21.413C4.196 21.021 4 20.55 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.97933 2.19567 5.45 2 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.1793 2.25 14.3917 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60833 19.75 7.82067 19.85 8.062C19.95 8.304 20 8.55833 20 8.825V20C20 20.55 19.8043 21.021 19.413 21.413C19.021 21.8043 18.55 22 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.4793 8.904 13.288 8.712C13.096 8.52067 13 8.28333 13 8Z",fill:"currentColor"})),this.size===28&&r(S,{key:"049f4a8d49a95d83293484e35192255819a60a41"},r("path",{key:"a43523b418fdaba2caf30912f642dc1d77ba9ffc",d:"M7.00002 25.6666C6.35835 25.6666 5.80924 25.4384 5.35269 24.9818C4.89535 24.5245 4.66669 23.975 4.66669 23.3333V4.66665C4.66669 4.02498 4.89535 3.47548 5.35269 3.01815C5.80924 2.56159 6.35835 2.33331 7.00002 2.33331H15.3709C15.682 2.33331 15.9787 2.39165 16.261 2.50831C16.5426 2.62498 16.7903 2.79026 17.0042 3.00415L22.6625 8.66248C22.8764 8.87637 23.0417 9.12409 23.1584 9.40565C23.275 9.68798 23.3334 9.9847 23.3334 10.2958V23.3333C23.3334 23.975 23.1051 24.5245 22.6485 24.9818C22.1912 25.4384 21.6417 25.6666 21 25.6666H7.00002ZM15.1667 9.33331V4.66665H7.00002V23.3333H21V10.5H16.3334C16.0028 10.5 15.7259 10.388 15.5027 10.164C15.2787 9.94076 15.1667 9.66387 15.1667 9.33331Z",fill:"currentColor"})))}};np.style=qB;const op=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_file:np},Symbol.toStringTag,{value:"Module"})),YB=".sc-swirl-heading-h{display:block;width:100%}.sc-swirl-heading-h *.sc-swirl-heading{box-sizing:border-box}.heading.sc-swirl-heading{display:block;width:100%;margin:0;padding:0;text-align:start}.heading--balanced.sc-swirl-heading{text-wrap:balance}.heading--align-start.sc-swirl-heading{text-align:start}.heading--align-center.sc-swirl-heading{text-align:center}.heading--align-end.sc-swirl-heading{text-align:end}.heading--level-1.sc-swirl-heading{font-size:var(--s-font-size-2xl);font-weight:var(--s-font-weight-bold);line-height:var(--s-line-height-2xl);letter-spacing:var(--s-letter-spacing-tight)}.heading--level-2.sc-swirl-heading{font-size:var(--s-font-size-xl);font-weight:var(--s-font-weight-bold);line-height:var(--s-line-height-xl)}.heading--level-3.sc-swirl-heading{font-size:var(--s-font-size-lg);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-lg)}.heading--level-4.sc-swirl-heading{font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-base)}.heading--level-5.sc-swirl-heading,.heading--level-6.sc-swirl-heading{font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-sm)}.heading--truncate.sc-swirl-heading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}",ap=class{constructor(e){q(this,e),this.align="start",this.as=void 0,this.balance=!0,this.headingId=void 0,this.level=1,this.lines=void 0,this.text=void 0,this.truncate=void 0}render(){const e=this.as||`h${this.level}`,t=Boolean(this.lines)?{display:"-webkit-box",overflow:"hidden","-webkit-line-clamp":String(this.lines),"-webkit-box-orient":"vertical",whiteSpace:"normal"}:void 0,i=te("heading",`heading--align-${this.align}`,`heading--level-${this.level}`,{"heading--balanced":this.balance,"heading--truncate":this.truncate});return r(Ne,{key:"dd4ed3748fc507e7ba2d848224a64a9b5283387e"},r(e,{key:"02a22700a704330179fe3af567e78f93717c2081",class:i,id:this.headingId,style:t},this.text))}};ap.style=YB;const lp=Object.freeze(Object.defineProperty({__proto__:null,swirl_heading:ap},Symbol.toStringTag,{value:"Module"})),KB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",cp=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"288055193d89de6a75ae6881dbf26db685bfd2aa","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"944965721866271683b72f7260552b72ff4241ba"},r("path",{key:"ec8b15296100b68c4fb8d2af9e19ef8e57f72e5b","fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0404 4.29289C13.431 4.68342 13.431 5.31658 13.0404 5.70711L6.7071 12.0404C6.31657 12.431 5.68341 12.431 5.29288 12.0404L2.95955 9.70711C2.56903 9.31658 2.56903 8.68342 2.95955 8.29289C3.35007 7.90237 3.98324 7.90237 4.37376 8.29289L5.99999 9.91912L11.6262 4.29289C12.0167 3.90237 12.6499 3.90237 13.0404 4.29289Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"be838e612762a32972329eb8553d82957802c50b"},r("path",{key:"c00513096d0f0ebc210f39560b578c80ed5c9b74","fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.5607 6.43934C20.1464 7.02513 20.1464 7.97487 19.5607 8.56066L10.0607 18.0607C9.47487 18.6464 8.52513 18.6464 7.93934 18.0607L4.43934 14.5607C3.85355 13.9749 3.85355 13.0251 4.43934 12.4393C5.02513 11.8536 5.97487 11.8536 6.56066 12.4393L9 14.8787L17.4393 6.43934C18.0251 5.85355 18.9749 5.85355 19.5607 6.43934Z",fill:"currentColor"})),this.size===28&&r(S,{key:"12896abff437792318a739081dec78e1089a6a2d"},r("path",{key:"e54292ee13c551249360b0bcd99042953450a248","fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.8208 7.51256C23.5042 8.19598 23.5042 9.30402 22.8208 9.98744L11.7374 21.0708C11.054 21.7542 9.94597 21.7542 9.26255 21.0708L5.17922 16.9874C4.4958 16.304 4.4958 15.196 5.17922 14.5126C5.86264 13.8291 6.97068 13.8291 7.65409 14.5126L10.5 17.3585L20.3459 7.51256C21.0293 6.82915 22.1373 6.82915 22.8208 7.51256Z",fill:"currentColor"})))}};cp.style=KB;const XB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",dp=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"1cecc5ee4bfc8d1f6258147850f0bc421ce223a2","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"c1f428d4861ce936cf488547914ed46c687c4344"},r("rect",{key:"dce716e64b06560943c784d65ff9ea16871c10d6",x:"9",y:"3",width:"2",height:"2",rx:"1",fill:"currentColor"}),r("rect",{key:"00f7f3f01dee40444d314990166d7385eb8b5751",x:"9",y:"7",width:"2",height:"2",rx:"1",fill:"currentColor"}),r("rect",{key:"e8577a4f857c660fab9fd636345e7929e94d1f25",x:"9",y:"11",width:"2",height:"2",rx:"1",fill:"currentColor"}),r("rect",{key:"cbfae42664f3535cae9d326206f583a0c8df5dd4",x:"5",y:"3",width:"2",height:"2",rx:"1",fill:"currentColor"}),r("rect",{key:"ca402125b9024d9449670459627cb169b637376a",x:"5",y:"7",width:"2",height:"2",rx:"1",fill:"currentColor"}),r("rect",{key:"016a6116c93439aaf00c84a6cea625483252a328",x:"5",y:"11",width:"2",height:"2",rx:"1",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"b376ba175c2edc5f9366f67b1cb6111447740142"},r("rect",{key:"1a21d7765059da89931e6e6d7a7e067971f7fa0f",x:"13.5",y:"4.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),r("rect",{key:"a3c56f7085479bba589efc86d0d37007c221f4ff",x:"13.5",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),r("rect",{key:"1ef8e44f8442e29de13cc8b7d79032e8b6b5c116",x:"13.5",y:"16.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),r("rect",{key:"1967ee8dc454c45154f1917661d97ab3de546dcf",x:"7.5",y:"4.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),r("rect",{key:"28b5d5ae2781720073f5b97aa738c12cff1e5673",x:"7.5",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),r("rect",{key:"1da40bd88a52d70d2056de77c26f6f515cb2e475",x:"7.5",y:"16.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"})),this.size===28&&r(S,{key:"ab5cfea62b2e49ab3bcea12d135dae04abce0a37"},r("rect",{key:"ad2e9bf46ae4637a4e893b7e5274f354c3d40bdd",x:"15.75",y:"5.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),r("rect",{key:"d129f2f0f3fcb1e51173353b0961f5ca6f53f2d0",x:"15.75",y:"12.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),r("rect",{key:"8e5faba8169cb5629e0bdeaa9bb2b851526d702b",x:"15.75",y:"19.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),r("rect",{key:"e568dcc4315d0413f651ce0c551983538a18bb01",x:"8.75",y:"5.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),r("rect",{key:"a7f7e41ccf22d83a570288fc9a3c156d8ac2e271",x:"8.75",y:"12.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),r("rect",{key:"7ecb5d645223d44e336079668bb83bbe9b09e5b2",x:"8.75",y:"19.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"})))}};dp.style=XB;const hp=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_check_strong:cp,swirl_icon_drag_handle:dp},Symbol.toStringTag,{value:"Module"})),QB=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",up=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"1f78feeec813bc552c35d5386091c228416f663f","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"33b63f71d68a0466cb115ae9099aa235bb0b0c33"},r("path",{key:"107ec77fbd4bb087b8f1db44ceb97700a2bab794",d:"M7.99999 10.05C7.89999 10.05 7.80554 10.0334 7.71665 10C7.62777 9.9667 7.54443 9.9167 7.46665 9.85003L4.38332 6.7667C4.23888 6.62225 4.16954 6.44714 4.17532 6.24137C4.18065 6.03603 4.25554 5.86114 4.39999 5.7167C4.54443 5.57225 4.72221 5.50003 4.93332 5.50003C5.14443 5.50003 5.32221 5.57225 5.46665 5.7167L7.99999 8.25003L10.55 5.70003C10.6944 5.55559 10.8695 5.48625 11.0753 5.49203C11.2807 5.49737 11.4555 5.57225 11.6 5.7167C11.7444 5.86114 11.8167 6.03892 11.8167 6.25003C11.8167 6.46114 11.7444 6.63892 11.6 6.78337L8.53332 9.85003C8.45554 9.9167 8.37221 9.9667 8.28332 10C8.19443 10.0334 8.09999 10.05 7.99999 10.05V10.05Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"fbfdf63320ce0a1a0a530d7d4158cb7e941d19b8"},r("path",{key:"e1ee0a2589b5fc389fc9173626a1c2611e3ac1b8",d:"M12 15.075C11.85 15.075 11.7083 15.05 11.575 15C11.4417 14.95 11.3167 14.875 11.2 14.775L6.57501 10.15C6.35835 9.93338 6.25435 9.67072 6.26301 9.36205C6.27101 9.05405 6.38335 8.79172 6.60001 8.57505C6.81668 8.35838 7.08335 8.25005 7.40001 8.25005C7.71668 8.25005 7.98335 8.35838 8.20001 8.57505L12 12.375L15.825 8.55005C16.0417 8.33338 16.3043 8.22938 16.613 8.23805C16.921 8.24605 17.1833 8.35838 17.4 8.57505C17.6167 8.79172 17.725 9.05838 17.725 9.37505C17.725 9.69172 17.6167 9.95838 17.4 10.175L12.8 14.775C12.6833 14.875 12.5583 14.95 12.425 15C12.2917 15.05 12.15 15.075 12 15.075Z",fill:"currentColor"})),this.size===28&&r(S,{key:"fa88aed81a55ed3c56e7f60596dcc5c0380bf183"},r("path",{key:"5fb5b78f640230651c146061e12aa067cb984c60",d:"M14 17.5876C13.825 17.5876 13.6597 17.5584 13.5042 17.5001C13.3486 17.4417 13.2028 17.3542 13.0667 17.2376L7.67083 11.8417C7.41805 11.5889 7.29672 11.2825 7.30683 10.9224C7.31616 10.5631 7.44722 10.257 7.69999 10.0042C7.95277 9.75145 8.26388 9.62506 8.63333 9.62506C9.00277 9.62506 9.31388 9.75145 9.56666 10.0042L14 14.4376L18.4625 9.97506C18.7153 9.72228 19.0217 9.60095 19.3818 9.61106C19.7412 9.62039 20.0472 9.75145 20.3 10.0042C20.5528 10.257 20.6792 10.5681 20.6792 10.9376C20.6792 11.307 20.5528 11.6181 20.3 11.8709L14.9333 17.2376C14.7972 17.3542 14.6514 17.4417 14.4958 17.5001C14.3403 17.5584 14.175 17.5876 14 17.5876V17.5876Z",fill:"currentColor"})))}};up.style=QB;const fp=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_expand_more:up},Symbol.toStringTag,{value:"Module"})),JB=":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{animation:none}}.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;animation:0.15s popover-fade-scale-in-xy}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{animation:none}}.popover--closing .popover__backdrop{animation:0.15s popover-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{animation:none}}.popover--closing .popover__content{animation:0.15s popover-slide-out;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{animation:none}}.popover--inactive .popover__content{display:none}@media (max-width: 767px){.popover--fullscreen-bottom-sheet.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--fullscreen-bottom-sheet.popover--active:not(.popover--closing) .popover__content{animation:none}}.popover--fullscreen-bottom-sheet.popover--closing .popover__content{animation:0.15s popover-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--fullscreen-bottom-sheet.popover--closing .popover__content{animation:none}}.popover--fullscreen-bottom-sheet .popover__backdrop{display:none}.popover--fullscreen-bottom-sheet .popover__content{top:0;border-top-left-radius:0;border-top-right-radius:0}.popover--fullscreen-bottom-sheet .popover__scroll-container{height:100%;max-height:none;padding-top:0;padding-bottom:0}.popover--fullscreen-bottom-sheet .popover__handle{display:none}}@media (min-width: 768px){.popover--animation-scale-in-y.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-fade-scale-in-y}}@media (prefers-reduced-motion){.popover--animation-scale-in-y.popover--active:not(.popover--closing) .popover__content{animation:none}}@media (min-width: 768px){.popover--animation-fade-in.popover--active:not(.popover--closing) .popover__content{animation:0.15s popover-fade-in}}@media (prefers-reduced-motion){.popover--animation-fade-in.popover--active:not(.popover--closing) .popover__content{animation:none}}@media (min-width: 768px){.popover--transparent .popover__content{background-color:transparent;box-shadow:none}}@media (min-width: 768px){.popover--transparent .popover__scroll-container{padding:0}}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-base);animation:none;box-shadow:var(--s-shadow-level-2)}}.popover__scroll-container{overflow-x:hidden;overflow-y:auto;width:100%;max-height:90vh;padding-top:var(--s-space-24);padding-bottom:var(--s-space-24);overscroll-behavior:contain}@media (min-width: 768px){.popover__scroll-container{max-height:22rem;padding-top:0;padding-bottom:0}}@media (min-width: 768px){.popover--padded .popover__scroll-container{padding:var(--s-space-4)}}.popover__handle{position:absolute;top:var(--s-space-8);left:50%;width:2.5rem;height:0.375rem;border-radius:0.1875rem;background-color:var(--s-border-default);transform:translatex(-50%)}@media (min-width: 768px){.popover__handle{display:none}}@keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@keyframes popover-fade-scale-in-xy{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes popover-fade-scale-in-y{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}",bp=class{constructor(e){q(this,e),this.popoverClose=De(this,"popoverClose",7),this.popoverOpen=De(this,"popoverOpen",7),this.toggle=t=>{t.stopPropagation(),this.active?this.close():this.open()},this.onKeydown=t=>{t.code==="Escape"&&this.active&&(t.stopImmediatePropagation(),t.stopPropagation(),this.close())},this.reposition=async()=>{const t=D1();if(!Boolean(this.triggerEl)||!Boolean(this.contentContainer))return;if(t){this.position=void 0;return}const i=typeof this.offset=="number"?{mainAxis:this.offset,crossAxis:0}:{mainAxis:this.offset[0],crossAxis:this.offset[1]},s=this.enableFlip?[r3(i),j3(),Ps()]:[r3(i),j3()];this.position=await K3(this.triggerEl,this.contentContainer,{middleware:s,placement:this.placement,strategy:"fixed"})},this.onCloseButtonClick=()=>{this.close()},this.animation="scale-in-xy",this.disableScrollLock=void 0,this.enableFlip=!0,this.fullscreenBottomSheet=void 0,this.label=void 0,this.maxHeight="22rem",this.offset=8,this.padded=!0,this.popoverId=void 0,this.placement="bottom-start",this.returnFocusToTrigger=!0,this.transparent=void 0,this.trigger=void 0,this.triggerContainer=void 0,this.useContainerWidth=void 0,this.active=!1,this.closing=!1,this.position=void 0}componentDidLoad(){this.connectTrigger(),this.updateTriggerAttributes(),Boolean(this.trigger)&&console.warn('[Swirl] The "trigger" prop of swirl-popover is deprecated and will be removed with the next major release. Please use the swirl-popover-trigger component instead. https://swirl-storybook.flip-app.dev/?path=/docs/components-swirlpopovertrigger--docs')}disconnectedCallback(){this.unlockBodyScroll()}onWindowFocusIn(e){var p;if(!this.active)return;const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),i="webkit"in window,s=t||i,n=e.target,l=e.relatedTarget,o=Ii(),d=["SWIRL-TAB"],a=!this.el.contains(n)&&!this.el.contains(o),h=n!==this.triggerEl&&!((p=this.triggerEl)!=null&&p.contains(n)),f=s&&!this.el.contains(l||n)&&l!==this.el;!d.includes(n.tagName)&&a&&h&&(!s||f)&&this.close()}onWindowClick(e){if(!this.active||this.closing)return;const t=e.target,i=this.el.contains(t),s=e.composedPath().some(l=>Boolean(l)&&l instanceof Node?this.el.contains(l):!1),n=t===this.triggerEl||this.triggerEl.contains(t)||e.composedPath().includes(this.triggerEl);!i&&!s&&!n&&this.close()}async close(e){var t;this.closing||!this.active||(this.popoverClose.emit(),this.disableAutoUpdate&&this.disableAutoUpdate(),this.closing=!0,setTimeout(()=>{this.active=!1,this.closing=!1,this.updateTriggerAttributes()},150),this.unlockBodyScroll(),this.returnFocusToTrigger&&!e&&((t=this.getNativeTriggerElement())==null||t.focus()))}async open(e,t){if(this.triggerEl=e||this.triggerEl,this.active||!Boolean(this.triggerEl))return;this.adjustWidth(),this.active=!0,this.updateTriggerAttributes();const i=this.getFocusableChildren();requestAnimationFrame(async()=>{await this.reposition(),this.popoverOpen.emit({position:this.position}),i.length>0&&!t?i[0].focus():t||this.contentContainer.focus(),this.disableAutoUpdate&&this.disableAutoUpdate(),this.disableAutoUpdate=Y3(this.triggerEl,this.contentContainer,()=>this.reposition()),this.scrollContainer.scrollTop=0,this.lockBodyScroll()})}async isOpen(){return this.active&&!this.closing}connectTrigger(){if(!Boolean(this.trigger)){this.triggerEl=void 0;return}this.triggerEl=typeof this.trigger=="string"?W1(this.triggerContainer||document.body,`#${this.trigger}`)[0]:this.trigger,Boolean(this.triggerEl)&&this.triggerEl.addEventListener("click",e=>{this.toggle(e)})}getNativeTriggerElement(){var e,t,i,s;return(e=this.triggerEl)!=null&&e.tagName.startsWith("SWIRL-")?((t=this.triggerEl)==null?void 0:t.children[0])||((s=(i=this.triggerEl)==null?void 0:i.shadowRoot)==null?void 0:s.children[0])||this.triggerEl:this.triggerEl}updateTriggerAttributes(){if(!Boolean(this.triggerEl))return;const e=this.getNativeTriggerElement();e.setAttribute("aria-controls",this.el.id),e.setAttribute("aria-expanded",String(this.active)),e.setAttribute("aria-haspopup","dialog")}getFocusableChildren(){return W1(this.el,'[role="menuitem"], [role="listbox"]')}adjustWidth(){let e=this.useContainerWidth;[!0,"true"].includes(this.useContainerWidth)?e=!0:[!1,"false"].includes(this.useContainerWidth)&&(e=!1);const t=!window.matchMedia("(min-width: 768px)").matches;if(Boolean(e)&&!t){const i=typeof e=="string"?this.el.closest(e)||this.el.parentElement:this.el.parentElement;this.contentContainer.style.maxWidth="none",this.contentContainer.style.width=i.getBoundingClientRect().width+"px"}else this.contentContainer.style.maxWidth="",this.contentContainer.style.width=""}lockBodyScroll(){!D1()||this.disableScrollLock||!Boolean(this.scrollContainer)||y2(this.scrollContainer)}unlockBodyScroll(){!D1()||this.disableScrollLock||!Boolean(this.scrollContainer)||v2(this.scrollContainer)}render(){var i,s,n;const e=!window.matchMedia("(min-width: 768px)").matches,t=te("popover",`popover--animation-${this.animation}`,`popover--placement-${(i=this.position)==null?void 0:i.placement}`,{"popover--active":this.active,"popover--closing":this.closing,"popover--fullscreen-bottom-sheet":this.fullscreenBottomSheet,"popover--inactive":!this.active,"popover--transparent":this.transparent,"popover--padded":this.padded});return r(Ne,{key:"8cc2a47b4d323076fa8a99a3103ec05f344cba82"},r("div",{key:"87744921bfbdce95cbae142b5933899aadb70b10",class:t,onKeyDown:this.onKeydown},r("div",{key:"dbdfc2600405c69444e75f89d49da5c4a3513cb7","aria-hidden":this.active?"false":"true","aria-label":this.label,class:"popover__content",id:this.popoverId,part:"popover__content",role:"dialog",ref:l=>this.contentContainer=l,style:{top:Boolean(this.position)?`${(s=this.position)==null?void 0:s.y}px`:"",left:Boolean(this.position)?`${(n=this.position)==null?void 0:n.x}px`:""},tabindex:"-1"},r("span",{key:"5cc7da47b47ec4fbd548450d6bdf52e9bd5f7881",class:"popover__handle"}),r("div",{key:"e7c9b23a67fb304cc6bb12acb754f1b12276b3c5",class:"popover__scroll-container",part:"popover__scroll-container",ref:l=>this.scrollContainer=l,style:{maxHeight:!e&&Boolean(this.maxHeight)?this.maxHeight:void 0}},r("slot",{key:"24b92c9f4661a7fc0d59e135122599c676125a96"}))),this.active&&r("div",{key:"dd3bf688564c3e89e8ffae934fc36644cc1574aa",class:"popover__backdrop",onClick:this.onCloseButtonClick})))}get el(){return n1(this)}};bp.style=JB;const eD=".sc-swirl-popover-trigger-h{display:contents}",Cp=class{constructor(e){q(this,e),this.triggerIsActive=!1,this.popoverMouseEnter=()=>{this.stopHoverLingerTimer()},this.popoverMouseLeave=()=>{this.triggerIsActive&&this.mouseleaveHandler()},this.onMouseenter=()=>{!this.triggerOnHover||(this.stopHoverLingerTimer(),this.triggerIsActive=!0,this.hoverDelayReference=setTimeout(()=>{this.hoverDelayReference=void 0,this.triggerOnHover&&this.mouseenterHandler()},this.hoverDelay))},this.mouseenterHandler=()=>{const t=this.getPopoverEl(),i=this.getTriggerEl();t.open(i,!0),t.addEventListener("popoverOpen",()=>{this.updateTriggerElAriaAttributes(!0)},{once:!0}),t.addEventListener("popoverClose",()=>{this.updateTriggerElAriaAttributes(!1)},{once:!0})},this.onMouseleave=()=>{clearTimeout(this.hoverDelayReference),this.mouseleaveHandler()},this.mouseleaveHandler=()=>{!this.triggerOnHover||this.startHoverLingerTimer()},this.onClick=()=>{if(!this.triggerOnClick)return;const t=this.getPopoverEl(),i=this.getTriggerEl();t.open(i),t.addEventListener("popoverOpen",()=>{this.updateTriggerElAriaAttributes(!0)},{once:!0}),t.addEventListener("popoverClose",()=>{this.updateTriggerElAriaAttributes(!1)},{once:!0})},this.updateTriggerElAriaAttributes=t=>{var n;if(!this.setAriaAttributes)return;const i=this.getTriggerEl();if(!Boolean(i))return;const s=typeof this.swirlPopover=="string"?this.swirlPopover:(n=this.swirlPopover)==null?void 0:n.id;i.tagName.startsWith("SWIRL-")?(i.setAttribute("swirl-aria-controls",s),i.setAttribute("swirl-aria-expanded",String(t||"false")),i.setAttribute("swirl-aria-haspopup","dialog")):(i.setAttribute("aria-controls",s),i.setAttribute("aria-expanded",String(t||"false")),i.setAttribute("aria-haspopup","dialog"))},this.hidePopoverWhenInvisible=!0,this.parentScrollContainer=void 0,this.setAriaAttributes=!0,this.swirlPopover=void 0,this.triggerOnClick=!0,this.triggerOnHover=!1,this.hoverLingerDuration=void 0,this.hoverDelay=void 0}componentDidLoad(){if(this.updateTriggerElAriaAttributes(),this.setupHoverListeners(),this.hidePopoverWhenInvisible){this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange.bind(this),{root:this.parentScrollContainer,threshold:1});const e=this.el.querySelector("*");if(!Boolean(e))return;this.intersectionObserver.observe(e)}}disconnectedCallback(){var t;(t=this.intersectionObserver)==null||t.disconnect();const e=this.getPopoverEl();Boolean(e)&&(e.removeEventListener("mouseenter",this.popoverMouseEnter),e.removeEventListener("mouseleave",this.popoverMouseLeave))}watchPopover(){this.updateTriggerElAriaAttributes()}watchHover(){clearTimeout(this.hoverDelayReference),clearTimeout(this.hoverLingerReference)}getPopoverEl(){return typeof this.swirlPopover=="string"?document.querySelector(`#${this.swirlPopover}`):this.swirlPopover}getTriggerEl(){return this.el.children.length!==1&&console.warn('[Swirl] The "swirl-popover-trigger" component expects exactly one child element.'),this.el.children[0]}onVisibilityChange(e){var i;!e[0].isIntersecting&&this.isPopoverOpen()&&((i=this.getPopoverEl())==null||i.close())}setupHoverListeners(){const e=this.getPopoverEl();Boolean(e)&&(e.addEventListener("mouseenter",this.popoverMouseEnter),e.addEventListener("mouseleave",this.popoverMouseLeave))}startHoverLingerTimer(){clearTimeout(this.hoverLingerReference),this.hoverLingerReference=setTimeout(()=>{this.triggerIsActive&&this.isPopoverOpen()&&this.getPopoverEl().close(!0),this.triggerIsActive=!1},this.hoverLingerDuration)}stopHoverLingerTimer(){clearTimeout(this.hoverLingerReference)}isPopoverOpen(){var i;const e=this.getPopoverEl();return(i=e==null?void 0:e.shadowRoot.firstChild)==null?void 0:i.classList.contains("popover--active")}render(){return r(Ne,{key:"2ec455950fb30654030e6970ad4b1b20734a3855",onClick:this.onClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},r("slot",{key:"1b8bf8f81bdf3d0ce1567097729fa6f13ed92d1c"}))}get el(){return n1(this)}static get watchers(){return{swirlPopover:["watchPopover"],triggerOnHover:["watchHover"]}}};Cp.style=eD;const pp=Object.freeze(Object.defineProperty({__proto__:null,swirl_popover:bp,swirl_popover_trigger:Cp},Symbol.toStringTag,{value:"Module"})),tD=":host{display:flex;width:100%;align-items:center;gap:var(--s-space-8)}:host *{box-sizing:border-box}:host(.separator--orientation-vertical){display:inline-flex;width:auto;flex-direction:column}:host(.separator--orientation-vertical) .separator__line{width:var(--s-border-width-default);height:100%;min-height:1.125rem}:host(.separator--color-strong) .separator__line{background-color:var(--s-border-strong)}:host(.separator--color-strong) .separator__label{color:var(--s-text-subdued)}:host(.separator--color-highlight) .separator__line{background-color:var(--s-border-highlight)}:host(.separator--color-highlight) .separator__label{color:var(--s-text-highlight)}.separator__line{display:block;width:100%;height:var(--s-border-width-default);background-color:var(--s-border-default)}.separator__label{flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:var(--s-font-size-sm);color:var(--s-text-disabled)}",mp=class{constructor(e){q(this,e),this.borderColor="default",this.color="default",this.label=void 0,this.orientation="horizontal",this.spacing="8"}componentWillLoad(){this.forceColor()}forceColor(){this.borderColor!=="default"&&(console.warn('[Swirl] The "borderColor" prop of swirl-separator is deprecated and will be removed with the next major release. Please use the "color" prop to achieve the same result.'),this.color=this.borderColor)}render(){const e=this.orientation==="horizontal"?{paddingTop:`var(--s-space-${this.spacing})`,paddingBottom:`var(--s-space-${this.spacing})`}:{paddingRight:`var(--s-space-${this.spacing})`,paddingLeft:`var(--s-space-${this.spacing})`},t=te("separator",`separator--color-${this.color}`,`separator--orientation-${this.orientation}`);return r(Ne,{key:"2bb244ed44ae203e950deeacf824108dd5dca113","aria-orientation":this.orientation,class:t,role:"separator",style:e},r("span",{key:"88d7f7383d3083f70164fb93548835085e15ce20",class:"separator__line"}),this.label&&r(S,{key:"8f7500a0c14d5bfee5c7cf62839dac69c6587013"},r("span",{key:"4be755e74288cf1f298f8a4c52da1205104c8752",class:"separator__label"},this.label),r("span",{key:"8f2296aa2bb0480a971480618f9765c1a967ea8d",class:"separator__line"})))}};mp.style=tD;const gp=Object.freeze(Object.defineProperty({__proto__:null,swirl_separator:mp},Symbol.toStringTag,{value:"Module"})),iD=":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--active .tooltip__popper{display:block}.tooltip--visible .tooltip__popper{animation:tooltip-fade-in 0.15s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}.tooltip--actual-placement-top .tooltip__arrow{top:calc(100% - 0.0625rem);transform:translate3d(0, -50%, 0) rotate(45deg)}.tooltip--actual-placement-bottom .tooltip__arrow{bottom:calc(100% - 0.0625rem);transform:translate3d(0, 50%, 0) rotate(45deg)}.tooltip--actual-placement-left .tooltip__arrow{left:calc(100% - 0.0625rem);transform:translate3d(-50%, 0, 0) rotate(45deg)}.tooltip--actual-placement-right .tooltip__arrow{right:calc(100% - 0.0625rem);transform:translate3d(50%, 0, 0) rotate(45deg)}.tooltip .tooltip__reference{display:contents}.tooltip__popper{position:absolute;z-index:var(--s-z-40);display:none;max-width:17.5rem;opacity:0}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:calc(var(--s-space-8) + 0.0625rem);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);box-shadow:var(--s-shadow-level-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__content{white-space:normal}.tooltip__arrow{position:absolute;width:0.6875rem;height:0.6875rem;border-radius:0.125rem;background-color:var(--s-surface-neutral-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}",wp=class{constructor(e){q(this,e),this.onKeydown=t=>{t.code==="Escape"&&this.hide()},this.reposition=async()=>{var l,o;const t=this.el.children[0];if(!Boolean(t)||!Boolean(this.popperEl))return;const i=[...this.options.middleware.filter(d=>d.name!=="arrow"),Ox({element:this.arrowElement,padding:12})];this.actualPosition=await K3(t,this.popperEl,{...this.options,middleware:i});const s=(l=this.actualPosition.middlewareData.arrow)==null?void 0:l.x,n=(o=this.actualPosition.middlewareData.arrow)==null?void 0:o.y;this.arrowStyles={left:Boolean(s)?s+"px":void 0,top:Boolean(n)?n+"px":void 0}},this.show=()=>{!this.active||(this.visible=!0,requestAnimationFrame(()=>{const t=this.el.children[0];!Boolean(t)||(this.reposition(),this.disableAutoUpdate=Y3(t,this.popperEl,this.reposition.bind(this)))}))},this.showWithDelay=()=>{!this.active||(Boolean(this.showTimeout)&&(clearTimeout(this.showTimeout),this.showTimeout=void 0),this.showTimeout=setTimeout(()=>{this.show()},this.delay))},this.hide=()=>{var t;Boolean(this.showTimeout)&&(clearTimeout(this.showTimeout),this.showTimeout=void 0),this.visible=!1,(t=this.disableAutoUpdate)==null||t.call(this)},this.updateOptions=()=>{const t=+getComputedStyle(document.documentElement).getPropertyValue("--s-space-12").replace("rem","")*16;this.options={middleware:[r3(t),j3(),Ps()],placement:this.position,strategy:this.positioning}},this.active=!0,this.content=void 0,this.delay=300,this.position="top",this.positioning="absolute",this.actualPosition=void 0,this.arrowStyles=void 0,this.visible=!1}watchPosition(){this.updateOptions()}onMouseEnter(){this.showWithDelay()}onMouseLeave(){this.hide()}onWindowResize(){!this.active||this.reposition()}onWindowScroll(){!this.active||!this.visible||this.reposition()}componentWillLoad(){this.reposition()}componentDidLoad(){this.updateOptions()}render(){var t,i,s;const e=te("tooltip",`tooltip--actual-placement-${(t=this.actualPosition)==null?void 0:t.placement}`,{"tooltip--active":this.active,"tooltip--visible":this.visible});return r(Ne,{key:"bb0876790cd15f687658d29771ceb91b8dd88001",onKeydown:this.onKeydown},r("span",{key:"9da9846ede5394a165faa1ded155f88f9760a947",class:e},r("span",{key:"327bbb9753c47e08c0909f2df05aa4d86b5a4022",class:"tooltip__reference","aria-describedby":"tooltip",onFocusout:this.hide,onClick:this.hide,onFocusin:this.show},r("slot",{key:"5b5a39b6507808a3926b613af1612b19d64585ad"})),r("span",{key:"81122c462ef32fb61185efe4bd796eec600eb341",class:"tooltip__popper",ref:n=>this.popperEl=n,style:{top:Boolean(this.actualPosition)?`${(i=this.actualPosition)==null?void 0:i.y}px`:"",left:Boolean(this.actualPosition)?`${(s=this.actualPosition)==null?void 0:s.x}px`:"",position:this.positioning}},this.visible&&r("span",{key:"5bdfba1be1a42825041510626995a68726a6cec2",class:"tooltip__bubble",id:"tooltip",part:"tooltip__bubble",role:"tooltip"},r("span",{key:"98b85837ac1ab5e8809bc264e67eb6b058837405",class:"tooltip__content",innerHTML:this.content})),r("span",{key:"d6486b3b8b03567eadc72b514c2fa874040c1e6c",class:"tooltip__arrow",ref:n=>this.arrowElement=n,style:{...this.arrowStyles,visibility:this.visible?"visible":"hidden"}}))))}get el(){return n1(this)}static get watchers(){return{position:["watchPosition"]}}};wp.style=iD;const yp=Object.freeze(Object.defineProperty({__proto__:null,swirl_tooltip:wp},Symbol.toStringTag,{value:"Module"})),rD=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",vp=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"67cfbf206db15b6fd13a977781b0850fb9eb01c3","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"a02ab4f6cd27312b41c1837a1851a95bb571bb09"},r("path",{key:"e20e7540221b8cb7e3f3cb4ecb6f07499aa30548",d:"M8 9.06672L4.8 12.2667C4.65555 12.4112 4.47777 12.4834 4.26666 12.4834C4.05555 12.4834 3.87777 12.4112 3.73333 12.2667C3.58888 12.1223 3.51666 11.9445 3.51666 11.7334C3.51666 11.5223 3.58888 11.3445 3.73333 11.2001L6.93333 8.00006L3.73333 4.80006C3.58888 4.65561 3.51666 4.47783 3.51666 4.26672C3.51666 4.05561 3.58888 3.87783 3.73333 3.73339C3.87777 3.58895 4.05555 3.51672 4.26666 3.51672C4.47777 3.51672 4.65555 3.58895 4.8 3.73339L8 6.93339L11.2 3.73339C11.3444 3.58895 11.5222 3.51672 11.7333 3.51672C11.9444 3.51672 12.1222 3.58895 12.2667 3.73339C12.4111 3.87783 12.4833 4.05561 12.4833 4.26672C12.4833 4.47783 12.4111 4.65561 12.2667 4.80006L9.06666 8.00006L12.2667 11.2001C12.4111 11.3445 12.4833 11.5223 12.4833 11.7334C12.4833 11.9445 12.4111 12.1223 12.2667 12.2667C12.1222 12.4112 11.9444 12.4834 11.7333 12.4834C11.5222 12.4834 11.3444 12.4112 11.2 12.2667L8 9.06672Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"a593d195c4fe819fccef79114b4bf841b8affb42"},r("path",{key:"dcd2cd35af9eef65b3512ed053f122a6f62ddc6a",d:"M12 13.6L7.19999 18.4C6.98333 18.6167 6.71666 18.725 6.39999 18.725C6.08333 18.725 5.81666 18.6167 5.59999 18.4C5.38333 18.1834 5.27499 17.9167 5.27499 17.6C5.27499 17.2834 5.38333 17.0167 5.59999 16.8L10.4 12L5.59999 7.20002C5.38333 6.98336 5.27499 6.71669 5.27499 6.40002C5.27499 6.08336 5.38333 5.81669 5.59999 5.60002C5.81666 5.38336 6.08333 5.27502 6.39999 5.27502C6.71666 5.27502 6.98333 5.38336 7.19999 5.60002L12 10.4L16.8 5.60002C17.0167 5.38336 17.2833 5.27502 17.6 5.27502C17.9167 5.27502 18.1833 5.38336 18.4 5.60002C18.6167 5.81669 18.725 6.08336 18.725 6.40002C18.725 6.71669 18.6167 6.98336 18.4 7.20002L13.6 12L18.4 16.8C18.6167 17.0167 18.725 17.2834 18.725 17.6C18.725 17.9167 18.6167 18.1834 18.4 18.4C18.1833 18.6167 17.9167 18.725 17.6 18.725C17.2833 18.725 17.0167 18.6167 16.8 18.4L12 13.6Z",fill:"currentColor"})),this.size===28&&r(S,{key:"790629fe8f8d77c01f11c693521115187374647d"},r("path",{key:"d418b519495176854062b44ddca6f3ac74074063",d:"M14 15.8667L8.40001 21.4667C8.14723 21.7195 7.83612 21.8458 7.46667 21.8458C7.09723 21.8458 6.78612 21.7195 6.53334 21.4667C6.28056 21.2139 6.15417 20.9028 6.15417 20.5333C6.15417 20.1639 6.28056 19.8528 6.53334 19.6L12.1333 14L6.53334 8.40001C6.28056 8.14723 6.15417 7.83612 6.15417 7.46667C6.15417 7.09723 6.28056 6.78612 6.53334 6.53334C6.78612 6.28056 7.09723 6.15417 7.46667 6.15417C7.83612 6.15417 8.14723 6.28056 8.40001 6.53334L14 12.1333L19.6 6.53334C19.8528 6.28056 20.1639 6.15417 20.5333 6.15417C20.9028 6.15417 21.2139 6.28056 21.4667 6.53334C21.7195 6.78612 21.8458 7.09723 21.8458 7.46667C21.8458 7.83612 21.7195 8.14723 21.4667 8.40001L15.8667 14L21.4667 19.6C21.7195 19.8528 21.8458 20.1639 21.8458 20.5333C21.8458 20.9028 21.7195 21.2139 21.4667 21.4667C21.2139 21.7195 20.9028 21.8458 20.5333 21.8458C20.1639 21.8458 19.8528 21.7195 19.6 21.4667L14 15.8667Z",fill:"currentColor"})))}};vp.style=rD;const _p=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_close:vp},Symbol.toStringTag,{value:"Module"})),sD=":host{display:inline-flex;max-width:100%;max-height:100%}.swirl-icon{max-width:100%;max-height:100%}",Sp=class{constructor(e){q(this,e),this.color=void 0,this.size=24}render(){const e=this.size===20?24:this.size,t={color:Boolean(this.color)?`var(--s-icon-${this.color})`:void 0},i=te("swirl-icon",`swirl-icon--size-${this.size}`);return r("svg",{key:"fb5bbc3283f10f13e38adc97dff622510fc8c217","aria-hidden":"true",class:i,fill:"none",height:this.size,part:"icon",style:t,viewBox:`0 0 ${e} ${e}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&r(S,{key:"ce4fcb6fe4846bc85bc55f87134168bb2e390921"},r("path",{key:"db9d6e564c1ac6b61aacf1eb39f514baa0947c9c",d:"M6.05 14C5.87222 14 5.70267 13.9667 5.54133 13.9C5.38044 13.8333 5.23889 13.7389 5.11667 13.6167L2.38333 10.8833C2.26111 10.7611 2.16667 10.6196 2.1 10.4587C2.03333 10.2973 2 10.1278 2 9.95V6.05C2 5.87222 2.03333 5.70267 2.1 5.54133C2.16667 5.38044 2.26111 5.23889 2.38333 5.11667L5.11667 2.38333C5.23889 2.26111 5.38044 2.16667 5.54133 2.1C5.70267 2.03333 5.87222 2 6.05 2H9.95C10.1278 2 10.2973 2.03333 10.4587 2.1C10.6196 2.16667 10.7611 2.26111 10.8833 2.38333L13.6167 5.11667C13.7389 5.23889 13.8333 5.38044 13.9 5.54133C13.9667 5.70267 14 5.87222 14 6.05V9.95C14 10.1278 13.9667 10.2973 13.9 10.4587C13.8333 10.6196 13.7389 10.7611 13.6167 10.8833L10.8833 13.6167C10.7611 13.7389 10.6196 13.8333 10.4587 13.9C10.2973 13.9667 10.1278 14 9.95 14H6.05ZM8 11.3333C8.18889 11.3333 8.34733 11.2693 8.47533 11.1413C8.60289 11.0138 8.66667 10.8556 8.66667 10.6667C8.66667 10.4778 8.60289 10.3193 8.47533 10.1913C8.34733 10.0638 8.18889 10 8 10C7.81111 10 7.65289 10.0638 7.52533 10.1913C7.39733 10.3193 7.33333 10.4778 7.33333 10.6667C7.33333 10.8556 7.39733 11.0138 7.52533 11.1413C7.65289 11.2693 7.81111 11.3333 8 11.3333ZM8 8.66667C8.18889 8.66667 8.34733 8.60267 8.47533 8.47467C8.60289 8.34711 8.66667 8.18889 8.66667 8V5.33333C8.66667 5.14444 8.60289 4.986 8.47533 4.858C8.34733 4.73044 8.18889 4.66667 8 4.66667C7.81111 4.66667 7.65289 4.73044 7.52533 4.858C7.39733 4.986 7.33333 5.14444 7.33333 5.33333V8C7.33333 8.18889 7.39733 8.34711 7.52533 8.47467C7.65289 8.60267 7.81111 8.66667 8 8.66667ZM6.06667 12.6667H9.93333L12.6667 9.93333V6.06667L9.93333 3.33333H6.06667L3.33333 6.06667V9.93333L6.06667 12.6667Z",fill:"currentColor"})),(this.size===20||this.size===24)&&r(S,{key:"ddd1fbd0fb85b382ff37bd348ec8076a1324e810"},r("path",{key:"e3a72c20fc4ad61a2f3e067df720c4c105c92546",d:"M9.075 21C8.80833 21 8.554 20.95 8.312 20.85C8.07067 20.75 7.85833 20.6083 7.675 20.425L3.575 16.325C3.39167 16.1417 3.25 15.9293 3.15 15.688C3.05 15.446 3 15.1917 3 14.925V9.075C3 8.80833 3.05 8.554 3.15 8.312C3.25 8.07067 3.39167 7.85833 3.575 7.675L7.675 3.575C7.85833 3.39167 8.07067 3.25 8.312 3.15C8.554 3.05 8.80833 3 9.075 3H14.925C15.1917 3 15.446 3.05 15.688 3.15C15.9293 3.25 16.1417 3.39167 16.325 3.575L20.425 7.675C20.6083 7.85833 20.75 8.07067 20.85 8.312C20.95 8.554 21 8.80833 21 9.075V14.925C21 15.1917 20.95 15.446 20.85 15.688C20.75 15.9293 20.6083 16.1417 20.425 16.325L16.325 20.425C16.1417 20.6083 15.9293 20.75 15.688 20.85C15.446 20.95 15.1917 21 14.925 21H9.075ZM12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16C13 15.7167 12.9043 15.479 12.713 15.287C12.521 15.0957 12.2833 15 12 15C11.7167 15 11.4793 15.0957 11.288 15.287C11.096 15.479 11 15.7167 11 16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.9043 12.5207 13 12.2833 13 12V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V12C11 12.2833 11.096 12.5207 11.288 12.712C11.4793 12.904 11.7167 13 12 13ZM9.1 19H14.9L19 14.9V9.1L14.9 5H9.1L5 9.1V14.9L9.1 19Z",fill:"currentColor"})),this.size===28&&r(S,{key:"1f7536ac606723e3ef69ce305b6a4b0e5f5a99d4"},r("path",{key:"4b4064341ba0fb8be7cd8b39d89c7c357a107276",d:"M10.5875 24.5C10.2764 24.5 9.97967 24.4417 9.69733 24.325C9.41578 24.2083 9.16806 24.0431 8.95417 23.8292L4.17083 19.0458C3.95694 18.8319 3.79167 18.5842 3.675 18.3027C3.55833 18.0203 3.5 17.7236 3.5 17.4125V10.5875C3.5 10.2764 3.55833 9.97967 3.675 9.69733C3.79167 9.41578 3.95694 9.16806 4.17083 8.95417L8.95417 4.17083C9.16806 3.95694 9.41578 3.79167 9.69733 3.675C9.97967 3.55833 10.2764 3.5 10.5875 3.5H17.4125C17.7236 3.5 18.0203 3.55833 18.3027 3.675C18.5842 3.79167 18.8319 3.95694 19.0458 4.17083L23.8292 8.95417C24.0431 9.16806 24.2083 9.41578 24.325 9.69733C24.4417 9.97967 24.5 10.2764 24.5 10.5875V17.4125C24.5 17.7236 24.4417 18.0203 24.325 18.3027C24.2083 18.5842 24.0431 18.8319 23.8292 19.0458L19.0458 23.8292C18.8319 24.0431 18.5842 24.2083 18.3027 24.325C18.0203 24.4417 17.7236 24.5 17.4125 24.5H10.5875ZM14 19.8333C14.3306 19.8333 14.6078 19.7213 14.8318 19.4973C15.0551 19.2741 15.1667 18.9972 15.1667 18.6667C15.1667 18.3361 15.0551 18.0588 14.8318 17.8348C14.6078 17.6116 14.3306 17.5 14 17.5C13.6694 17.5 13.3926 17.6116 13.1693 17.8348C12.9453 18.0588 12.8333 18.3361 12.8333 18.6667C12.8333 18.9972 12.9453 19.2741 13.1693 19.4973C13.3926 19.7213 13.6694 19.8333 14 19.8333ZM14 15.1667C14.3306 15.1667 14.6078 15.0547 14.8318 14.8307C15.0551 14.6074 15.1667 14.3306 15.1667 14V9.33333C15.1667 9.00278 15.0551 8.7255 14.8318 8.5015C14.6078 8.27828 14.3306 8.16667 14 8.16667C13.6694 8.16667 13.3926 8.27828 13.1693 8.5015C12.9453 8.7255 12.8333 9.00278 12.8333 9.33333V14C12.8333 14.3306 12.9453 14.6074 13.1693 14.8307C13.3926 15.0547 13.6694 15.1667 14 15.1667ZM10.6167 22.1667H17.3833L22.1667 17.3833V10.6167L17.3833 5.83333H10.6167L5.83333 10.6167V17.3833L10.6167 22.1667Z",fill:"currentColor"})))}};Sp.style=sD;const nD=":host{display:inline-flex}:host *{box-sizing:border-box}.inline-error{display:inline-flex;color:var(--s-text-critical);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.inline-error{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.inline-error--size-s{font-size:var(--s-font-size-sm)}.inline-error--size-s .inline-error__icon{width:1rem;height:1rem;margin-top:0.125rem}.inline-error--size-s .inline-error__message{padding-top:0}.inline-error__icon{display:inline-flex;width:1.5rem;height:1.5rem;color:var(--s-icon-critical);align-self:flex-start}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.inline-error__icon{width:1.25rem;height:1.25rem}}.inline-error__message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-left:var(--s-space-4);padding-top:0.0625rem;white-space:pre-line}",kp=class{constructor(e){q(this,e),this.desktopMediaQuery=et(),this.desktopMediaQueryHandler=t=>{this.forceIconProps(t.matches)},this.message=void 0,this.size="m"}componentDidLoad(){this.forceIconProps(this.desktopMediaQuery.matches),this.desktopMediaQuery.addEventListener("change",this.desktopMediaQueryHandler)}disconnectedCallback(){var e,t;(t=(e=this.desktopMediaQuery).removeEventListener)==null||t.call(e,"change",this.desktopMediaQueryHandler)}forceIconProps(e){if(!Boolean(this.iconEl))return;const t=this.iconEl.children[0];let i="24";this.size==="s"?i="16":e&&(i="20"),t==null||t.setAttribute("size",i)}render(){const e=te("inline-error",`inline-error--size-${this.size}`);return r(Ne,{key:"03ae6eed446e44d9298186c4c4290636e77677b5"},r("span",{key:"a15e36cd1849e826a6cd578d50d3582e34bf1144",class:e,part:"inline-error"},r("span",{key:"c81ca9d7f26de1c5cd4d70a806b7e58b0baa3f6d",class:"inline-error__icon",ref:t=>this.iconEl=t},r("swirl-icon-error",{key:"c2b57b25a9219581521dfe043e54c2580f2b198f"})),r("span",{key:"0709c36c7aa4b4bb6c415b1175d3f7d2564bd0d6",class:"inline-error__message"},this.message)))}};kp.style=nD;const oD=":host{display:inline-flex}:host *{box-sizing:border-box}.spinner{position:relative;display:inline-flex;overflow:hidden;width:2.25rem;height:2.25rem}.spinner--size-xs,.spinner--size-20{width:1.25rem;height:1.25rem}.spinner--size-xs .spinner__circle,.spinner--size-20 .spinner__circle{stroke-width:0.1875rem}.spinner--size-s,.spinner--size-24{width:1.5rem;height:1.5rem}.spinner--size-s .spinner__circle,.spinner--size-24 .spinner__circle{stroke-width:0.1875rem}.spinner__indicator{position:absolute;inset:0;width:100%;height:100%;transform-origin:center center;animation:spinner-rotate 2s linear infinite}.spinner__background{stroke:var(--s-border-default);stroke-linecap:round}.spinner__circle{animation:spinner-dash 1.5s ease-in-out infinite;stroke:var(--s-interactive-primary-default);stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}@keyframes spinner-rotate{100%{transform:rotate(360deg)}}@keyframes spinner-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}",xp=class{constructor(e){q(this,e),this.label=void 0,this.size="m"}render(){const e=te("spinner",`spinner--size-${this.size}`);return r(Ne,{key:"b9dddf95b58c1ce121b4a3766eff546983f58b5a"},r("span",{key:"61bce909dddbc1ac4dc76f45ea7b7a51add2378a",class:e,role:Boolean(this.label)?"status":void 0},r("svg",{key:"b72fe8c8d56bb8e54b8af538fbe3f53fe057c491","aria-hidden":"true",class:"spinner__indicator",focusable:"false",viewBox:"0 0 50 50"},r("circle",{key:"8d587eff7afa8446e669f2712c7aac1a3b05e4b4",class:"spinner__background",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"4"}),r("circle",{key:"5d0f0a6839ad9bf0aea0087f0306fc9e940955cf",class:"spinner__circle",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"4"})),this.label&&r("swirl-visually-hidden",{key:"112d5953ae085646de9b962be651bc71f5389fd6"},r("span",{key:"24aeb34aff1601d38232f96e2d7f7fef3f95e3c2",class:"spinner__label"},this.label))))}};xp.style=oD;const zp=Object.freeze(Object.defineProperty({__proto__:null,swirl_icon_error:Sp,swirl_inline_error:kp,swirl_spinner:xp},Symbol.toStringTag,{value:"Module"}));var Mp={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.balanceText=i()})(rt,()=>{let t,i,s;const n={sel:[],el:[]};let l=!1,o=!1;function d(){}function a(L,V){Array.prototype.forEach.call(L,V)}function h(L){document.readyState!=="loading"?L():document.addEventListener?document.addEventListener("DOMContentLoaded",L):document.attachEvent("onreadystatechange",()=>{document.readyState!=="loading"&&L()})}function f(L,V,H,...le){let re;return function(){const de=this;function ue(){H||L.apply(de,le),re=null}re?clearTimeout(re):H&&L.apply(de,le),re=setTimeout(ue,V||100)}}function p(){if(typeof window>"u")return!1;const{style:L}=document.documentElement;return L.textWrap||L.WebkitTextWrap||L.MozTextWrap||L.MsTextWrap}function z(){this.reset()}z.prototype.reset=function(){this.index=0,this.width=0};function P(L){return i.some(V=>V.start<L&&L<V.end)}function y(L,V){if(L.nodeType===L.ELEMENT_NODE)if(window.getComputedStyle(L).whiteSpace==="nowrap"){const le=L.outerHTML.length;i.push({start:s,end:s+le}),s+=le}else a(L.childNodes,le=>{y(le,!0)}),V&&(s+=L.outerHTML.length-L.innerHTML.length);else L.nodeType===L.COMMENT_NODE?s+=L.length+7:L.nodeType===L.PROCESSING_INSTRUCTION_NODE?s+=L.length+2:s+=L.length}function g(L,V,H){if(H===0)L.style.whiteSpace=V,s=0,i=[],y(L,!1),L.style.whiteSpace="nowrap";else{const le=[];i.forEach(re=>{re.start>H&&le.push({start:re.start-H,end:re.end-H})}),i=le}}function x(L){let V=L.querySelectorAll('br[data-owner="balance-text-hyphen"]');a(V,le=>{le.outerHTML=""}),V=L.querySelectorAll('br[data-owner="balance-text"]'),a(V,le=>{le.outerHTML=" "});let H=L.querySelectorAll('span[data-owner="balance-text-softhyphen"]');if(H.length>0&&a(H,le=>{const re=document.createTextNode("\xAD");le.parentNode.insertBefore(re,le),le.parentNode.removeChild(le)}),H=L.querySelectorAll('span[data-owner="balance-text-justify"]'),H.length>0){let le="";a(H,re=>{le+=re.textContent,re.parentNode.removeChild(re)}),L.innerHTML=le}}const R=function(L){return(L.currentStyle||window.getComputedStyle(L,null)).textAlign==="justify"};function u(L,V,H){V=V.trim();const le=V.split(" ").length;if(V=`${V} `,le<2)return V;const re=document.createElement("span");re.innerHTML=V,L.appendChild(re);const de=re.offsetWidth;re.parentNode.removeChild(re);const ue=Math.floor((H-de)/(le-1));re.style.wordSpacing=`${ue}px`,re.setAttribute("data-owner","balance-text-justify");const Y=document.createElement("div");return Y.appendChild(re),Y.innerHTML}function v(L,V){const H=/([^\S\u00a0]|-|\u2014|\u2013|\u00ad)(?![^<]*>)/g;let le;if(!t)for(t=[],le=H.exec(L);le!==null;)P(le.index)||t.push(le.index),le=H.exec(L);return t.indexOf(V)!==-1}function O(L,V){return V===0||V===L.length||v(L,V-1)&&!v(L,V)}function k(L,V,H,le,re,de,ue){let Y;if(V&&typeof V=="string")for(;;){for(;!O(V,de);)de+=re;if(L.innerHTML=V.substr(0,de),Y=L.offsetWidth,re<0){if(Y<=le||Y<=0||de===0)break}else if(le<=Y||H<=Y||de===V.length)break;de+=re}ue.index=de,ue.width=Y}function $(L,V){const H=document.createElement("div");H.style.display="block",H.style.position="absolute",H.style.bottom=0,H.style.right=0,H.style.width=0,H.style.height=0,H.style.margin=0,H.style.padding=0,H.style.visibility="hidden",H.style.overflow="hidden";const le=document.createElement("span");le.style.fontSize="2000px",le.innerHTML=" ",H.appendChild(le),L.appendChild(H);const re=le.getBoundingClientRect();H.parentNode.removeChild(H);const de=re.height/re.width;return V/de}function N(L){return L?typeof L=="string"?document.querySelectorAll(L):L.tagName&&L.querySelectorAll?[L]:L:[]}function T(L){a(N(L),V=>{x(V);const le=V.style.whiteSpace,re=V.style.float,de=V.style.display,ue=V.style.position,Y=V.style.lineHeight;V.style.lineHeight="normal";const Q=V.offsetWidth,J=V.offsetHeight;V.style.whiteSpace="nowrap",V.style.float="none",V.style.display="inline",V.style.position="static";let W=V.offsetWidth;const Ce=V.offsetHeight,_e=le==="pre-wrap"?0:$(V,Ce);if(Q>0&&W>Q&&W<5e3){let Le=V.innerHTML,Ie="",oe="";const Z=R(V);let X=Math.round(J/Ce),ee=0,_,A,D,F,G,ce,pe;for(;X>1;)t=null,g(V,le,ee),_=Math.round((W+_e)/X-_e),A=Math.round((Le.length+1)/X)-1,D=new z,k(V,Le,Q,_,-1,A,D),F=new z,A=D.index,k(V,Le,Q,_,1,A,F),D.reset(),A=F.index,k(V,Le,Q,_,-1,A,D),D.index===0?G=F.index:Q<F.width||D.index===F.index?G=D.index:G=Math.abs(_-D.width)<Math.abs(F.width-_)?D.index:F.index,oe=Le.substr(0,G).replace(/\s$/,""),pe=Boolean(oe.match(/\u00ad$/)),pe&&(oe=oe.replace(/\u00ad$/,'<span data-owner="balance-text-softhyphen">-</span>')),Z?Ie+=u(V,oe,Q):(Ie+=oe,ce=pe||Boolean(oe.match(/(-|\u2014|\u2013)$/)),Ie+=ce?'<br data-owner="balance-text-hyphen" />':'<br data-owner="balance-text" aria-hidden="true" />'),Le=Le.substr(G),ee=G,X--,V.innerHTML=Le,W=V.offsetWidth;Z?V.innerHTML=Ie+u(V,Le,Q):V.innerHTML=Ie+Le}V.style.whiteSpace=le,V.style.float=re,V.style.display=de,V.style.position=ue,V.style.lineHeight=Y})}function E(){const L=n.sel.join(","),V=N(L),H=Array.prototype.concat.apply(n.el,V);T(H)}function M(){l||(h(E),window.addEventListener("load",E),window.addEventListener("resize",f(E)),l=!0)}function C(L){typeof L=="string"?n.sel.push(L):a(N(L),V=>{n.el.push(V)}),M(),E()}function b(L){typeof L=="string"?n.sel=n.sel.filter(V=>V!==L):(L=N(L),n.el=n.el.filter(V=>L.indexOf(V)===-1))}function w(){o||(n.sel.push(".balance-text"),M(),o=!0)}function I(L,V){L?V&&V.watch===!0?C(L):V&&V.watch===!1?b(L):T(L):w()}return I.updateWatched=E,p()?(d.updateWatched=d,d):I})})(Mp);const aD=Mp.exports;/**
|
|
541
541
|
shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
|
|
542
542
|
@version v5.0.2
|