@swisspost/internet-header 10.1.0 → 10.2.0
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/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-MGiZpKVI.js → package-2syswPDO.js} +1 -1
- package/dist/cjs/{package-E6EPRPpB.js → package-DQQbs4bt.js} +2 -2
- package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/post-autocomplete.cjs.entry.js +11 -2
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-closebutton.cjs.entry.js +1 -1
- package/dist/cjs/post-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +31 -13
- package/dist/cjs/post-header.cjs.entry.js +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu.cjs.entry.js +1 -1
- package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +3 -3
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown.cjs.entry.js +8 -8
- package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +1 -1
- package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/components/internal/Link.js +1 -1
- package/dist/collection/components/post-internet-header/post-internet-header.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/package2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/swisspost-internet-header.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-ClQfdhMK.js → package-BEOiFUNg.js} +2 -2
- package/dist/esm/{package-jK9tFtoG.js → package-YQBh4peU.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +1 -1
- package/dist/esm/post-autocomplete.entry.js +11 -2
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm/post-breadcrumbs.entry.js +1 -1
- package/dist/esm/post-closebutton.entry.js +1 -1
- package/dist/esm/post-date-picker.entry.js +1 -1
- package/dist/esm/post-footer.entry.js +31 -13
- package/dist/esm/post-header.entry.js +1 -1
- package/dist/esm/post-icon.entry.js +1 -1
- package/dist/esm/post-language-menu-item.entry.js +1 -1
- package/dist/esm/post-language-menu.entry.js +1 -1
- package/dist/esm/post-linkarea.entry.js +1 -1
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +3 -3
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +2 -2
- package/dist/esm/post-megadropdown-trigger.entry.js +2 -2
- package/dist/esm/post-megadropdown.entry.js +8 -8
- package/dist/esm/post-menu-item.entry.js +1 -1
- package/dist/esm/post-menu_2.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +1 -1
- package/dist/esm/post-popover-trigger.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
- package/dist/esm/post-side-navigation.entry.js +2 -2
- package/dist/esm/post-stepper-item.entry.js +2 -2
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-togglebutton.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +2 -2
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{package-ClQfdhMK.js → package-BEOiFUNg.js} +1 -1
- package/dist/esm-es5/package-YQBh4peU.js +1 -0
- package/dist/esm-es5/post-accordion_4.entry.js +1 -1
- package/dist/esm-es5/post-autocomplete.entry.js +1 -1
- package/dist/esm-es5/post-avatar.entry.js +1 -1
- package/dist/esm-es5/post-back-to-top.entry.js +1 -1
- package/dist/esm-es5/post-banner.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/post-closebutton.entry.js +1 -1
- package/dist/esm-es5/post-date-picker.entry.js +1 -1
- package/dist/esm-es5/post-footer.entry.js +1 -1
- package/dist/esm-es5/post-header.entry.js +1 -1
- package/dist/esm-es5/post-icon.entry.js +1 -1
- package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-language-menu.entry.js +1 -1
- package/dist/esm-es5/post-linkarea.entry.js +1 -1
- package/dist/esm-es5/post-listbox-option.entry.js +1 -1
- package/dist/esm-es5/post-listbox.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown.entry.js +1 -1
- package/dist/esm-es5/post-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-menu_2.entry.js +1 -1
- package/dist/esm-es5/post-number-input.entry.js +1 -1
- package/dist/esm-es5/post-pagination.entry.js +1 -1
- package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
- package/dist/esm-es5/post-popover.entry.js +1 -1
- package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
- package/dist/esm-es5/post-progressbar.entry.js +1 -1
- package/dist/esm-es5/post-rating.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation.entry.js +1 -1
- package/dist/esm-es5/post-stepper-item.entry.js +1 -1
- package/dist/esm-es5/post-stepper.entry.js +1 -1
- package/dist/esm-es5/post-tab-item.entry.js +1 -1
- package/dist/esm-es5/post-tab-panel.entry.js +1 -1
- package/dist/esm-es5/post-tabs.entry.js +1 -1
- package/dist/esm-es5/post-togglebutton.entry.js +1 -1
- package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
- package/dist/esm-es5/post-tooltip.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-a5705a24.entry.js → p-0018572d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-806b3bb9.entry.js → p-0432ea2e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6b19deb1.system.entry.js → p-04cf59e4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e9ae044e.entry.js → p-04d92bd1.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f606f337.system.entry.js → p-0bffd1b3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-97eaecab.entry.js → p-0cfd71fd.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-157333c4.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fe6a6a22.entry.js → p-16f9605f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4d49c5ef.system.entry.js → p-17257472.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fcf9631e.entry.js → p-1aaa2b5b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45d5a353.entry.js → p-1b3d12fe.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-1ea8aa7b.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-217899fe.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-2992eede.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-779e1686.entry.js → p-2bd9d12d.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-2d7fbb16.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-4107bc25.system.entry.js → p-2f9015c7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f986d587.entry.js → p-2fa843b1.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-23fa3342.entry.js → p-30be319e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-b5665fc8.system.entry.js → p-311b1a06.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cd2583f5.entry.js → p-367bb89f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fec8e79e.system.entry.js → p-37a651ba.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-67889b8a.system.entry.js → p-388ff4b0.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dc287805.system.entry.js → p-3a69d97a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d4f8cba4.entry.js → p-3c55978f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1386d1d4.system.entry.js → p-4ade4bc8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ca000634.system.entry.js → p-4e8fbe60.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0bf25ebc.system.entry.js → p-4ee32cba.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ea8c458a.entry.js → p-50cd7954.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-aa4ed181.entry.js → p-53ab8bd7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d2fa80e5.entry.js → p-5507b066.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6427c6b0.system.entry.js → p-658cdc8b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-664cacb4.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ad77e312.entry.js → p-6902ba81.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ef183dab.entry.js → p-693be85f.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-6e338cb9.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ec3c17b7.system.entry.js → p-8035438a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9d0b4493.entry.js → p-80860b2a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d42d1570.entry.js → p-80c03198.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-18a84bc1.system.entry.js → p-82316b5a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-faca91f3.system.entry.js → p-8429a0f8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-72187f34.system.entry.js → p-8499b019.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f074310f.entry.js → p-8630a05f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-786e11c5.entry.js → p-8a3118d3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5daa12df.entry.js → p-8e1f9fe7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-c16adcb7.entry.js → p-946e0d66.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9c5c32af.system.entry.js → p-94b12111.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a1b94999.entry.js → p-980d6e7d.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-994e894b.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e655c88c.system.entry.js → p-9b476cbf.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-68dcd52c.system.entry.js → p-9d69f71c.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9da73a63.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-CDL0cxX6.system.js → p-Bz5HDsjW.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-tBnwOTPV.system.js → p-C-jY5kgj.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-BEtiMUfS.system.js → p-DaXn118n.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CNZqHwmo.js → p-EbHv-NGg.js} +1 -1
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/p-YQBh4peU.js +1 -0
- package/dist/swisspost-internet-header/{p-4f70afb5.system.entry.js → p-a017f91d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2a8e1e33.entry.js → p-a0a9f632.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-da88d37e.system.entry.js → p-a4a7d445.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ad91f6c0.system.entry.js → p-a8d713f0.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2d1355fa.system.entry.js → p-aebd16d2.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-10bdbca2.entry.js → p-b97832aa.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d2599e7b.entry.js → p-bb71e55f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d558b697.entry.js → p-c98897dc.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-cc32910f.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-bebf0896.entry.js → p-ce4e20c6.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ce5265e7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-5329e0b0.system.entry.js → p-d121eed9.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-77199d61.system.entry.js → p-d230f557.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-64428c96.system.entry.js → p-d3e5d8ab.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-15820529.system.entry.js → p-d424deaf.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e25b4f0b.entry.js → p-d6521b69.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9776463e.entry.js → p-d763cf81.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d8c35ad7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-73d21f06.system.entry.js → p-dfcbf2ae.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1b9a5275.system.entry.js → p-e0cebd00.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-e6e3e2a1.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b94bcb65.system.entry.js → p-e83fb5f9.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bff2014b.entry.js → p-eb2210a4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fc6ef72b.system.entry.js → p-ec5c1d1a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dfbe1d02.entry.js → p-f18ed6ce.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cccfd211.entry.js → p-f33c08e6.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d604cf73.system.entry.js → p-f4ee9401.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-f7b1f331.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-1c40acd2.entry.js → p-f89053da.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7f0d52e1.entry.js → p-fa3bf2b6.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-c6e57a0c.system.entry.js → p-fb22f9cc.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-20a0a7e7.system.entry.js → p-fbb8f147.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/package-jK9tFtoG.js +0 -1
- package/dist/swisspost-internet-header/p-01f39bb3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-05cab026.entry.js +0 -1
- package/dist/swisspost-internet-header/p-200dc938.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3028df9f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-45af06c6.entry.js +0 -1
- package/dist/swisspost-internet-header/p-50d3eb3c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-520d3f06.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5ae377df.entry.js +0 -1
- package/dist/swisspost-internet-header/p-63b15be9.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7cdf89dc.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8bd09f9e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8f06d58d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-99c19dd2.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ba63e3e0.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-jK9tFtoG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,H as n,g as r}from"./p-h3opCZqH.js";import{v as s}from"./p-jK9tFtoG.js";import{O as i}from"./p-Drxf8XVU.js";import{P as a}from"./p-DRiVosES.js";import{T as p}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=Math.min,l=Math.max,f=Math.round,u=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function v(t,e,o){return l(t,c(e,o))}function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function y(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function S(t){return w(y(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const T=["left","right"],E=["right","left"],M=["top","bottom"],A=["bottom","top"];function O(t){const e=g(t);return d[e]+t.slice(e.length)}function H(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function L(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}function $(t,e,o){let{reference:n,floating:r}=t;const s=y(e),i=S(e),a=b(i),p=g(e),c="y"===s,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,u=n[a]/2-r[a]/2;let h;switch(p){case"top":h={x:l,y:n.y-r.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-r.width,y:f};break;default:h={x:n.x,y:n.y}}switch(x(e)){case"start":h[i]-=u*(o&&c?-1:1);break;case"end":h[i]+=u*(o&&c?-1:1)}return h}async function D(t,e){var o;void 0===e&&(e={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:p}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=m(e,t),d=H(h),v=a[u?"floating"===f?"reference":"floating":f],g=L(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(v)))||o?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:p})),x="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},y=L(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:p}):x);return{top:(g.top-y.top+d.top)/b.y,bottom:(y.bottom-g.bottom+d.bottom)/b.y,left:(g.left-y.left+d.left)/b.x,right:(y.right-g.right+d.right)/b.x}}function j(t){const e=c(...t.map((t=>t.left))),o=c(...t.map((t=>t.top)));return{x:e,y:o,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-o}}const R=new Set(["left","top"]);function z(){return"undefined"!=typeof window}function F(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!z()&&(t instanceof Node||t instanceof C(t).Node)}function B(t){return!!z()&&(t instanceof Element||t instanceof C(t).Element)}function q(t){return!!z()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function I(t){return!(!z()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function N(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&"inline"!==r&&"contents"!==r}function G(t){return/^(table|td|th)$/.test(F(t))}function V(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const U=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Z=t=>!!t&&"none"!==t;let _;function K(t){const e=B(t)?Q(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!Y()&&(Z(e.backdropFilter)||Z(e.filter))||U.test(e.willChange||"")||X.test(e.contain||"")}function Y(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function J(t){return/^(html|body|#document)$/.test(F(t))}function Q(t){return C(t).getComputedStyle(t)}function tt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||P(t);return I(e)?e.host:e}function ot(t){const e=et(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&N(e)?e:ot(e)}function nt(t,e,o){var n;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=ot(t),s=r===(null==(n=t.ownerDocument)?void 0:n.body),i=C(r);if(s){const t=rt(i);return e.concat(i,i.visualViewport||[],N(r)?r:[],t&&o?nt(t):[])}return e.concat(r,nt(r,[],o))}function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=Q(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=q(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:n,a=f(o)!==s||f(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function it(t){return B(t)?t:t.contextElement}function at(t){const e=it(t);if(!q(e))return h(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:s}=st(e);let i=(s?f(o.width):o.width)/n,a=(s?f(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const pt=h(0);function ct(t){const e=C(t);return Y()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pt}function lt(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=it(t);let i=h(1);e&&(n?B(n)&&(i=at(n)):i=at(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==C(t))&&e}(s,o,n)?ct(s):h(0);let p=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,l=r.width/i.x,f=r.height/i.y;if(s){const t=C(s),e=n&&B(n)?C(n):n;let o=t,r=rt(o);for(;r&&n&&e!==o;){const t=at(r),e=r.getBoundingClientRect(),n=Q(r),s=e.left+(r.clientLeft+parseFloat(n.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(n.paddingTop))*t.y;p*=t.x,c*=t.y,l*=t.x,f*=t.y,p+=s,c+=i,o=C(r),r=rt(o)}}return L({width:l,height:f,x:p,y:c})}function ft(t,e){const o=tt(t).scrollLeft;return e?e.left+o:lt(P(t)).left+o}function ut(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-ft(t,o),y:o.top+e.scrollTop}}function ht(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=C(t),n=P(t),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,p=0;if(r){s=r.width,i=r.height;const t=Y();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,p=r.offsetTop)}const c=ft(n);if(c<=0){const t=n.ownerDocument,e=t.body,o=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-e.clientWidth-r);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:a,y:p}}(t,o);else if("document"===e)n=function(t){const e=P(t),o=tt(t),n=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=l(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+ft(t);const a=-o.scrollTop;return"rtl"===Q(n).direction&&(i+=l(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}(P(t));else if(B(e))n=function(t,e){const o=lt(t,!0,"fixed"===e),n=o.top+t.clientTop,r=o.left+t.clientLeft,s=q(t)?at(t):h(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:n*s.y}}(e,o);else{const o=ct(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return L(n)}function dt(t,e){const o=et(t);return!(o===e||!B(o)||J(o))&&("fixed"===Q(o).position||dt(o,e))}function vt(t,e,o){const n=q(e),r=P(e),s="fixed"===o,i=lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const p=h(0);function c(){p.x=ft(r)}if(n||!n&&!s)if(("body"!==F(e)||N(r))&&(a=tt(e)),n){const t=lt(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else r&&c();s&&!n&&r&&c();const l=!r||n||s?h(0):ut(r,a);return{x:i.left+a.scrollLeft-p.x-l.x,y:i.top+a.scrollTop-p.y-l.y,width:i.width,height:i.height}}function mt(t){return"static"===Q(t).position}function gt(t,e){if(!q(t)||"fixed"===Q(t).position)return null;if(e)return e(t);let o=t.offsetParent;return P(t)===o&&(o=o.ownerDocument.body),o}function xt(t,e){const o=C(t);if(V(t))return o;if(!q(t)){let e=et(t);for(;e&&!J(e);){if(B(e)&&!mt(e))return e;e=et(e)}return o}let n=gt(t,e);for(;n&&G(n)&&mt(n);)n=gt(n,e);return n&&J(n)&&mt(n)&&!K(n)?o:n||function(t){let e=et(t);for(;q(e)&&!J(e);){if(K(e))return e;if(V(e))return null;e=et(e)}return null}(t)||o}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const s="fixed"===r,i=P(n),a=!!e&&V(e.floating);if(n===i||a&&s)return o;let p={scrollLeft:0,scrollTop:0},c=h(1);const l=h(0),f=q(n);if((f||!f&&!s)&&(("body"!==F(n)||N(i))&&(p=tt(n)),f)){const t=lt(n);c=at(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}const u=!i||f||s?h(0):ut(i,p);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-p.scrollLeft*c.x+l.x+u.x,y:o.y*c.y-p.scrollTop*c.y+l.y+u.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const s=[..."clippingAncestors"===o?V(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let n=nt(t,[],!1).filter((t=>B(t)&&"body"!==F(t))),r=null;const s="fixed"===Q(t).position;let i=s?et(t):t;for(;B(i)&&!J(i);){const e=Q(i),o=K(i);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(i)&&!o&&dt(t,i))?n=n.filter((t=>t!==i)):r=e,i=et(i)}return e.set(t,n),n}(e,this._c):[].concat(o),n],i=ht(e,s[0],r);let a=i.top,p=i.right,f=i.bottom,u=i.left;for(let t=1;t<s.length;t++){const o=ht(e,s[t],r);a=l(o.top,a),p=c(o.right,p),f=c(o.bottom,f),u=l(o.left,u)}return{width:p-u,height:f-a,x:u,y:a}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,o=this.getDimensions,n=await o(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=st(t);return{width:e,height:o}},getScale:at,isElement:B,isRTL:function(t){return"rtl"===Q(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const yt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=e,p=await async function(t,e){const{placement:o,platform:n,elements:r}=t,s=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=g(o),a=x(o),p="y"===y(o),c=R.has(i)?-1:1,l=s&&p?-1:1,f=m(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),p?{x:h*l,y:u*c}:{x:u*c,y:h*l}}(e,t);return i===(null==(o=a.offset)?void 0:o.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:i}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:p,elements:c}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=m(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const H=g(r),L=y(a),$=g(a)===a,D=await(null==p.isRTL?void 0:p.isRTL(c.floating)),j=u||($||!v?[O(a)]:function(t){const e=O(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&j.push(...function(t,e,o,n){const r=x(t);let s=function(t,e,o){switch(t){case"top":case"bottom":return o?e?E:T:e?T:E;case"left":case"right":return e?M:A;default:return[]}}(g(t),"start"===o,n);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(k)))),s}(a,v,d,D));const z=[a,...j],F=await p.detectOverflow(e,w),C=[];let P=(null==(n=s.flip)?void 0:n.overflows)||[];if(l&&C.push(F[H]),f){const t=function(t,e,o){void 0===o&&(o=!1);const n=x(t),r=S(t),s=b(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=O(i)),[i,O(i)]}(r,i,D);C.push(F[t[0]],F[t[1]])}if(P=[...P,{placement:r,overflows:C}],!C.every((t=>t<=0))){var W,B;const t=((null==(W=s.flip)?void 0:W.index)||0)+1,e=z[t];if(e&&("alignment"!==f||L===y(e)||P.every((t=>y(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let o=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!o)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=y(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:s,platform:i,elements:a}=e,{apply:p=()=>{},...f}=m(t,e),u=await i.detectOverflow(e,f),h=g(r),d=x(r),v="y"===y(r),{width:w,height:b}=s.floating;let S,k;"top"===h||"bottom"===h?(S=h,k=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(k=h,S="end"===d?"top":"bottom");const T=b-u.top-u.bottom,E=w-u.left-u.right;let M=c(b-u[S],T),A=c(w-u[k],E);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=l(u.left,0),e=l(u.right,0),o=l(u.top,0),n=l(u.bottom,0);v?A=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):M=b-2*(0!==o||0!==n?o+n:l(u.top,u.bottom))}await p({...e,availableWidth:A,availableHeight:M});const O=await i.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},Tt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:r,platform:s,strategy:i}=e,{padding:a=2,x:p,y:f}=m(t,e),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let n=null;for(let t=0;t<e.length;t++){const r=e[t];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map((t=>L(j(t))))}(u),d=L(j(u)),v=H(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=p&&null!=f)return h.find((t=>p>t.left-v.left&&p<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||d;if(h.length>=2){if("y"===y(o)){const t=h[0],e=h[h.length-1],n="top"===g(o),r=t.top,s=e.bottom,i=n?t.left:e.left,a=n?t.right:e.right;return{top:r,bottom:s,left:i,right:a,width:a-i,height:s-r,x:i,y:r}}const t="left"===g(o),e=l(...h.map((t=>t.right))),n=c(...h.map((t=>t.left))),r=h.filter((o=>t?o.left===n:o.right===e)),s=r[0].top,i=r[r.length-1].bottom;return{top:s,bottom:i,left:n,right:e,width:e-n,height:i-s,x:n,y:s}}return d}},floating:n.floating,strategy:i});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};var Et=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(o||"")}},Mt=new WeakMap;function At(t,e,o){Mt.set(t,setTimeout((()=>{Mt.has(t)&&t.dispatchEvent(new Et("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Ot=globalThis.ShadowRoot||function(){},Ht=globalThis.HTMLDialogElement||function(){},Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,jt=new WeakMap;function Rt(t){return jt.get(t)||"hidden"}var zt=new WeakMap;function Ft(t){return[...t].pop()}function Ct(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Rt(t)||!e&&"hidden"!==Rt(t)||t instanceof Ht&&t.hasAttribute("open")||document.fullscreenElement===t)}function Pt(t){if(!t)return 0;const e=$t.get(document)||new Set,o=Dt.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Wt(t){let e;const o=Dt.get(t)||new Set,n=$t.get(t)||new Set,r=o.size>0?o:n.size>0?n:null;return r?(e=Ft(r),e.isConnected?e:(r.delete(e),Wt(t))):null}function Bt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function qt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?qt(t.parentNode):t}function It(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===jt.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}function Nt(t,e){const o=new Map;let n=0;for(const t of e||[])o.set(t,n),n+=1;o.set(t,n),n+=1;let r=null;return function(e){if(!e)return;let n=!1,s=null,i=null;for(;!n;){if(s=It(e)||null,null===s)return;if(!o.has(s))return;"hint"!==t.popover&&"auto"!==s.popover||(n=!0),n||(e=s.parentElement)}i=o.get(s),(null===r||o.get(r)<i)&&(r=s)}(t.parentElement||qt(t)),r}function Gt(t){return!(t.hidden||t instanceof Ot||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Vt=new WeakMap;function Ut(t){if(!Ct(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Et("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ct(t,!1))return;let o=!1;const n=t.popover;let r=null;const s=Nt(t,$t.get(e)||new Set),i=Nt(t,Dt.get(e)||new Set);if("auto"===n&&(Zt(Dt.get(e)||new Set,o,!0),Kt(s||e,o,!0),r="auto"),"hint"===n&&(i?(Kt(i,o,!0),r="hint"):(Zt(Dt.get(e)||new Set,o,!0),s?(Kt(s,o,!0),r="auto"):r="hint")),"auto"===n||"hint"===n){if(n!==t.popover||!Ct(t,!1))return;Wt(e)||(o=!0),"auto"===r?($t.has(e)||$t.set(e,new Set),$t.get(e).add(t)):"hint"===r&&(Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var p;t.classList.add(":popover-open"),jt.set(t,"showing"),Lt.has(e)||Lt.set(e,new Set),Lt.get(e).add(t),te(zt.get(t),!0),p=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(Gt(r))return r;r=n.nextNode()}}(p)?.focus(),o&&a&&"auto"===t.popover&&Vt.set(t,a),At(t,"closed","open")}function Xt(t,e=!1,o=!1){if(!Ct(t,!0))return;const n=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Kt(t,e,o),!Ct(t,!0)))return;const r=$t.get(n)||new Set,s=r.has(t)&&Ft(r)===t;if(te(zt.get(t),!1),zt.delete(t),o&&(t.dispatchEvent(new Et("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ft(r)!==t&&Kt(t,e,o),!Ct(t,!0)))return;Lt.get(n)?.delete(t),r.delete(t),Dt.get(n)?.delete(t),t.classList.remove(":popover-open"),jt.set(t,"hidden"),o&&At(t,"open","closed");const i=Vt.get(t);i&&(Vt.delete(t),e&&i.focus())}function Zt(t,e=!1,o=!1){let n=Bt(t);for(;n;)Xt(n,e,o),n=Bt(t)}function _t(t,e,o,n){let r=!1,s=!1;for(;r||!s;){s=!0;let i=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){i=o;break}if(!i)return;for(;"showing"===Rt(i)&&e.size;)Xt(Ft(e),o,n);e.has(t)&&Ft(e)!==t&&(r=!0),r&&(n=!1)}}function Kt(t,e,o){const n=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let n=Wt(t);for(;n;)Xt(n,e,o),n=Wt(t)}(n,e,o);Dt.get(n)?.has(t)?_t(t,Dt.get(n),e,o):(Zt(Dt.get(n)||new Set,e,o),$t.get(n)?.has(t)&&_t(t,$t.get(n),e,o))}var Yt=new WeakMap;function Jt(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!Wt(o))return;const n=function(t){const e=It(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}(t);return Pt(e)>Pt(o)?e:o}(e);if(n&&"pointerdown"===t.type)Yt.set(o,n);else if("pointerup"===t.type){const t=Yt.get(o)===n;Yt.delete(o),t&&Kt(n||o,!1,!0)}}var Qt=new WeakMap;function te(t,e=!1){if(!t)return;Qt.has(t)||Qt.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=Qt.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ee=globalThis.ShadowRoot||function(){};function oe(t,e,o){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,o(t))}})}var ne=/(^|[^\\]):popover-open\b/g;var re=null;function se(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===re)try{(re=new CSSStyleSheet).replaceSync(e)}catch{re=!1}if(!1===re){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[re,...t.adoptedStyleSheets]}var ie=function(t,e,o,n){var r,s=arguments.length,i=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(s<3?r(i):s>3?r(e,o,i):r(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};const ae={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},pe=class{constructor(o){t(this,o),this.postBeforeShow=e(this,"postBeforeShow"),this.postShow=e(this,"postShow"),this.postHide=e(this,"postHide"),this.postBeforeToggle=e(this,"postBeforeToggle"),this.postToggle=e(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ne,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Et,oe(Document.prototype,"querySelector",t),oe(Document.prototype,"querySelectorAll",t),oe(Element.prototype,"querySelector",t),oe(Element.prototype,"querySelectorAll",t),oe(Element.prototype,"matches",t),oe(Element.prototype,"closest",t),oe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Ut(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Xt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===jt.get(this)&&void 0===t.force||!1===t.force?Xt(this,!0,!0):void 0!==t.force&&!0!==t.force||Ut(this),"showing"===jt.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return se(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&se(t.shadowRoot),t}}});const n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=qt(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ee)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var s;r(HTMLButtonElement),r(HTMLInputElement),(s=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const n=qt(o);if(!(n instanceof ee||n instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=Rt(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Xt(e,!0,!0):Ct(e,!1)&&(zt.set(e,t),Ut(e)))}(r),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||Kt(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",Jt),s.addEventListener("pointerup",Jt),se(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||o)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):o}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ae[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let o;try{if(o=t(e),!o)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=o,"running"===o.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await o.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===o&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=it(t),h=r||s?[...f?nt(f):[],...e?nt(e):[]]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=f&&a?function(t,e){let o,n=null;const r=P(t);function s(){var t;clearTimeout(o),null==(t=n)||t.disconnect(),n=null}return function i(a,p){void 0===a&&(a=!1),void 0===p&&(p=1),s();const f=t.getBoundingClientRect(),{left:h,top:d,width:v,height:m}=f;if(a||e(),!v||!m)return;const g={rootMargin:-u(d)+"px "+-u(r.clientWidth-(h+v))+"px "+-u(r.clientHeight-(d+m))+"px "+-u(h)+"px",threshold:l(0,c(1,p))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(n!==p){if(!x)return i();n?i(!1,n):o=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||bt(f,t.getBoundingClientRect())||i(),x=!1}try{n=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(w,g)}n.observe(t)}(!0),s}(f,o):null;let v,m=-1,g=null;i&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===f&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),f&&!p&&g.observe(f),e&&g.observe(e));let x=p?lt(t):null;return p&&function e(){const n=lt(t);x&&!bt(x,n)&&o(),x=n,v=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,p&&cancelAnimationFrame(v)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:n}=await this.computeMainPosition(),r=n.split("-")[0];if(this.dynamicPlacement=r,this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,n=pe.STATIC_SIDES[r],s=-.5*this.arrowRef.offsetWidth;n&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[n]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),o=St({padding:this.getHeaderHeight(),crossAxis:!1}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:p={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=m(t,e),l={x:o,y:n},f=await s.detectOverflow(e,c),u=y(g(r)),h=w(u);let d=l[h],x=l[u];i&&(d=v(d+f["y"===h?"top":"left"],d,d-f["y"===h?"bottom":"right"])),a&&(x=v(x+f["y"===u?"top":"left"],x,x-f["y"===u?"bottom":"right"]));const b=p.fn({...e,[h]:d,[u]:x});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:i,[u]:a}}}}}}({padding:t,limiter:(s={offset:32},void 0===s&&(s={}),{options:s,fn(t){const{x:e,y:o,placement:n,rects:r,middlewareData:i}=t,{offset:a=0,mainAxis:p=!0,crossAxis:c=!0}=m(s,t),l={x:e,y:o},f=y(n),u=w(f);let h=l[u],d=l[f];const v=m(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const t="y"===u?"height":"width",e=r.reference[u]-r.floating[t]+x.mainAxis,o=r.reference[u]+r.reference[t]-x.mainAxis;h<e?h=e:h>o&&(h=o)}if(c){var b,S;const t="y"===u?"width":"height",e=R.has(g(n)),o=r.reference[f]-r.floating[t]+(e&&(null==(b=i.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),s=r.reference[f]+r.reference[t]+(e?0:(null==(S=i.offset)?void 0:S[f])||0)-(e?x.crossAxis:0);d<o?d=o:d>s&&(d=s)}return{[u]:h,[f]:d}}})}),r=[yt(this.offset??(this.arrow?t+4:t)),Tt(),...e?[o,n]:[n,o],kt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}})];var s;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:p}=e,{element:l,padding:f=0}=m(t,e)||{};if(null==l)return{};const u=H(f),h={x:o,y:n},d=S(r),g=b(d),w=await i.getDimensions(l),y="y"===d,k=y?"top":"left",T=y?"bottom":"right",E=y?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[d]-h[d]-s.floating[g],A=h[d]-s.reference[d],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let L=O?O[E]:0;L&&await(null==i.isElement?void 0:i.isElement(O))||(L=a.floating[E]||s.floating[g]);const $=M/2-A/2,D=L/2-w[g]/2-1,j=c(u[k],D),R=c(u[T],D),z=j,F=L-w[g]-R,C=L/2-w[g]/2+$,P=v(z,C,F),W=!p.arrow&&null!=x(r)&&C!==P&&s.reference[g]/2-(C<z?j:R)-w[g]/2<0,B=W?C<z?C-z:C-F:0;return{[d]:h[d]+B,data:{[d]:P,centerOffset:C-P-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const n=new Map,r={platform:wt,...o},s={...r.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:D},p=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:f}=$(c,n,p),u=n,h=0;const d={};for(let o=0;o<s.length;o++){const v=s[o];if(!v)continue;const{name:m,fn:g}=v,{x,y:w,data:b,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});l=null!=x?x:l,f=null!=w?w:f,d[m]={...d[m],...b},y&&h<50&&(h++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:l,y:f}=$(c,u,p))),o=-1)}return{x:l,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,n=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);pe.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${n.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${n.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${n.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${n.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${n.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${n.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${n.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${n.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${n.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${n.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${n.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${n.trigger.yEnd}px`))}render(){return o(n,{key:"ef1853c057a7c44af1b3e9247f6690f7d3b38b4a","data-version":s,popover:"auto"},o("div",{key:"66da2a4abe897e9619891078dbff25737aa9dd2a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"183416754cb5f9fdf3d1301186325535aabc2c96","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"6742ebb4ef07a3ab3b25f71dabd3a8252f654b6b",part:"post-popovercontainer-border-mask"}),o("slot",{key:"00cd0fc4bd4f20ac3abc23b0f5a69de51e4ab292"})))}get host(){return r(this)}};pe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},pe.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ie([i(a)],pe.prototype,"placement",void 0),ie([p("number")],pe.prototype,"edgeGap",void 0),ie([i(["triangle","trapezoid"])],pe.prototype,"safeSpace",void 0),pe.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}';export{pe as post_popovercontainer}
|
|
1
|
+
import{r as t,c as e,h as o,H as n,g as r}from"./p-h3opCZqH.js";import{v as s}from"./p-YQBh4peU.js";import{O as i}from"./p-Drxf8XVU.js";import{P as a}from"./p-DRiVosES.js";import{T as p}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=Math.min,l=Math.max,f=Math.round,u=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function v(t,e,o){return l(t,c(e,o))}function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function y(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function S(t){return w(y(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const T=["left","right"],E=["right","left"],M=["top","bottom"],A=["bottom","top"];function O(t){const e=g(t);return d[e]+t.slice(e.length)}function H(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function L(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}function $(t,e,o){let{reference:n,floating:r}=t;const s=y(e),i=S(e),a=b(i),p=g(e),c="y"===s,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,u=n[a]/2-r[a]/2;let h;switch(p){case"top":h={x:l,y:n.y-r.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-r.width,y:f};break;default:h={x:n.x,y:n.y}}switch(x(e)){case"start":h[i]-=u*(o&&c?-1:1);break;case"end":h[i]+=u*(o&&c?-1:1)}return h}async function D(t,e){var o;void 0===e&&(e={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:p}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=m(e,t),d=H(h),v=a[u?"floating"===f?"reference":"floating":f],g=L(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(v)))||o?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:p})),x="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},y=L(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:p}):x);return{top:(g.top-y.top+d.top)/b.y,bottom:(y.bottom-g.bottom+d.bottom)/b.y,left:(g.left-y.left+d.left)/b.x,right:(y.right-g.right+d.right)/b.x}}function j(t){const e=c(...t.map((t=>t.left))),o=c(...t.map((t=>t.top)));return{x:e,y:o,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-o}}const R=new Set(["left","top"]);function z(){return"undefined"!=typeof window}function F(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!z()&&(t instanceof Node||t instanceof C(t).Node)}function B(t){return!!z()&&(t instanceof Element||t instanceof C(t).Element)}function q(t){return!!z()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function I(t){return!(!z()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function N(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&"inline"!==r&&"contents"!==r}function U(t){return/^(table|td|th)$/.test(F(t))}function V(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const G=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Y=t=>!!t&&"none"!==t;let Z;function _(t){const e=B(t)?K(t):t;return Y(e.transform)||Y(e.translate)||Y(e.scale)||Y(e.rotate)||Y(e.perspective)||!Q()&&(Y(e.backdropFilter)||Y(e.filter))||G.test(e.willChange||"")||X.test(e.contain||"")}function Q(){return null==Z&&(Z="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Z}function J(t){return/^(html|body|#document)$/.test(F(t))}function K(t){return C(t).getComputedStyle(t)}function tt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||P(t);return I(e)?e.host:e}function ot(t){const e=et(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&N(e)?e:ot(e)}function nt(t,e,o){var n;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=ot(t),s=r===(null==(n=t.ownerDocument)?void 0:n.body),i=C(r);if(s){const t=rt(i);return e.concat(i,i.visualViewport||[],N(r)?r:[],t&&o?nt(t):[])}return e.concat(r,nt(r,[],o))}function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=K(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=q(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:n,a=f(o)!==s||f(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function it(t){return B(t)?t:t.contextElement}function at(t){const e=it(t);if(!q(e))return h(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:s}=st(e);let i=(s?f(o.width):o.width)/n,a=(s?f(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const pt=h(0);function ct(t){const e=C(t);return Q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pt}function lt(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=it(t);let i=h(1);e&&(n?B(n)&&(i=at(n)):i=at(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==C(t))&&e}(s,o,n)?ct(s):h(0);let p=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,l=r.width/i.x,f=r.height/i.y;if(s){const t=C(s),e=n&&B(n)?C(n):n;let o=t,r=rt(o);for(;r&&n&&e!==o;){const t=at(r),e=r.getBoundingClientRect(),n=K(r),s=e.left+(r.clientLeft+parseFloat(n.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(n.paddingTop))*t.y;p*=t.x,c*=t.y,l*=t.x,f*=t.y,p+=s,c+=i,o=C(r),r=rt(o)}}return L({width:l,height:f,x:p,y:c})}function ft(t,e){const o=tt(t).scrollLeft;return e?e.left+o:lt(P(t)).left+o}function ut(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-ft(t,o),y:o.top+e.scrollTop}}function ht(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=C(t),n=P(t),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,p=0;if(r){s=r.width,i=r.height;const t=Q();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,p=r.offsetTop)}const c=ft(n);if(c<=0){const t=n.ownerDocument,e=t.body,o=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-e.clientWidth-r);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:a,y:p}}(t,o);else if("document"===e)n=function(t){const e=P(t),o=tt(t),n=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=l(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+ft(t);const a=-o.scrollTop;return"rtl"===K(n).direction&&(i+=l(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}(P(t));else if(B(e))n=function(t,e){const o=lt(t,!0,"fixed"===e),n=o.top+t.clientTop,r=o.left+t.clientLeft,s=q(t)?at(t):h(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:n*s.y}}(e,o);else{const o=ct(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return L(n)}function dt(t,e){const o=et(t);return!(o===e||!B(o)||J(o))&&("fixed"===K(o).position||dt(o,e))}function vt(t,e,o){const n=q(e),r=P(e),s="fixed"===o,i=lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const p=h(0);function c(){p.x=ft(r)}if(n||!n&&!s)if(("body"!==F(e)||N(r))&&(a=tt(e)),n){const t=lt(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else r&&c();s&&!n&&r&&c();const l=!r||n||s?h(0):ut(r,a);return{x:i.left+a.scrollLeft-p.x-l.x,y:i.top+a.scrollTop-p.y-l.y,width:i.width,height:i.height}}function mt(t){return"static"===K(t).position}function gt(t,e){if(!q(t)||"fixed"===K(t).position)return null;if(e)return e(t);let o=t.offsetParent;return P(t)===o&&(o=o.ownerDocument.body),o}function xt(t,e){const o=C(t);if(V(t))return o;if(!q(t)){let e=et(t);for(;e&&!J(e);){if(B(e)&&!mt(e))return e;e=et(e)}return o}let n=gt(t,e);for(;n&&U(n)&&mt(n);)n=gt(n,e);return n&&J(n)&&mt(n)&&!_(n)?o:n||function(t){let e=et(t);for(;q(e)&&!J(e);){if(_(e))return e;if(V(e))return null;e=et(e)}return null}(t)||o}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const s="fixed"===r,i=P(n),a=!!e&&V(e.floating);if(n===i||a&&s)return o;let p={scrollLeft:0,scrollTop:0},c=h(1);const l=h(0),f=q(n);if((f||!f&&!s)&&(("body"!==F(n)||N(i))&&(p=tt(n)),f)){const t=lt(n);c=at(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}const u=!i||f||s?h(0):ut(i,p);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-p.scrollLeft*c.x+l.x+u.x,y:o.y*c.y-p.scrollTop*c.y+l.y+u.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const s=[..."clippingAncestors"===o?V(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let n=nt(t,[],!1).filter((t=>B(t)&&"body"!==F(t))),r=null;const s="fixed"===K(t).position;let i=s?et(t):t;for(;B(i)&&!J(i);){const e=K(i),o=_(i);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(i)&&!o&&dt(t,i))?n=n.filter((t=>t!==i)):r=e,i=et(i)}return e.set(t,n),n}(e,this._c):[].concat(o),n],i=ht(e,s[0],r);let a=i.top,p=i.right,f=i.bottom,u=i.left;for(let t=1;t<s.length;t++){const o=ht(e,s[t],r);a=l(o.top,a),p=c(o.right,p),f=c(o.bottom,f),u=l(o.left,u)}return{width:p-u,height:f-a,x:u,y:a}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,o=this.getDimensions,n=await o(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=st(t);return{width:e,height:o}},getScale:at,isElement:B,isRTL:function(t){return"rtl"===K(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const yt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=e,p=await async function(t,e){const{placement:o,platform:n,elements:r}=t,s=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=g(o),a=x(o),p="y"===y(o),c=R.has(i)?-1:1,l=s&&p?-1:1,f=m(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),p?{x:h*l,y:u*c}:{x:u*c,y:h*l}}(e,t);return i===(null==(o=a.offset)?void 0:o.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:i}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:p,elements:c}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=m(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const H=g(r),L=y(a),$=g(a)===a,D=await(null==p.isRTL?void 0:p.isRTL(c.floating)),j=u||($||!v?[O(a)]:function(t){const e=O(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&j.push(...function(t,e,o,n){const r=x(t);let s=function(t,e,o){switch(t){case"top":case"bottom":return o?e?E:T:e?T:E;case"left":case"right":return e?M:A;default:return[]}}(g(t),"start"===o,n);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(k)))),s}(a,v,d,D));const z=[a,...j],F=await p.detectOverflow(e,w),C=[];let P=(null==(n=s.flip)?void 0:n.overflows)||[];if(l&&C.push(F[H]),f){const t=function(t,e,o){void 0===o&&(o=!1);const n=x(t),r=S(t),s=b(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=O(i)),[i,O(i)]}(r,i,D);C.push(F[t[0]],F[t[1]])}if(P=[...P,{placement:r,overflows:C}],!C.every((t=>t<=0))){var W,B;const t=((null==(W=s.flip)?void 0:W.index)||0)+1,e=z[t];if(e&&("alignment"!==f||L===y(e)||P.every((t=>y(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let o=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!o)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=y(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:s,platform:i,elements:a}=e,{apply:p=()=>{},...f}=m(t,e),u=await i.detectOverflow(e,f),h=g(r),d=x(r),v="y"===y(r),{width:w,height:b}=s.floating;let S,k;"top"===h||"bottom"===h?(S=h,k=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(k=h,S="end"===d?"top":"bottom");const T=b-u.top-u.bottom,E=w-u.left-u.right;let M=c(b-u[S],T),A=c(w-u[k],E);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=l(u.left,0),e=l(u.right,0),o=l(u.top,0),n=l(u.bottom,0);v?A=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):M=b-2*(0!==o||0!==n?o+n:l(u.top,u.bottom))}await p({...e,availableWidth:A,availableHeight:M});const O=await i.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},Tt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:r,platform:s,strategy:i}=e,{padding:a=2,x:p,y:f}=m(t,e),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let n=null;for(let t=0;t<e.length;t++){const r=e[t];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map((t=>L(j(t))))}(u),d=L(j(u)),v=H(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=p&&null!=f)return h.find((t=>p>t.left-v.left&&p<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||d;if(h.length>=2){if("y"===y(o)){const t=h[0],e=h[h.length-1],n="top"===g(o),r=t.top,s=e.bottom,i=n?t.left:e.left,a=n?t.right:e.right;return{top:r,bottom:s,left:i,right:a,width:a-i,height:s-r,x:i,y:r}}const t="left"===g(o),e=l(...h.map((t=>t.right))),n=c(...h.map((t=>t.left))),r=h.filter((o=>t?o.left===n:o.right===e)),s=r[0].top,i=r[r.length-1].bottom;return{top:s,bottom:i,left:n,right:e,width:e-n,height:i-s,x:n,y:s}}return d}},floating:n.floating,strategy:i});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};var Et=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(o||"")}},Mt=new WeakMap;function At(t,e,o){Mt.set(t,setTimeout((()=>{Mt.has(t)&&t.dispatchEvent(new Et("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Ot=globalThis.ShadowRoot||function(){},Ht=globalThis.HTMLDialogElement||function(){},Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,jt=new WeakMap;function Rt(t){return jt.get(t)||"hidden"}var zt=new WeakMap;function Ft(t){return[...t].pop()}function Ct(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Rt(t)||!e&&"hidden"!==Rt(t)||t instanceof Ht&&t.hasAttribute("open")||document.fullscreenElement===t)}function Pt(t){if(!t)return 0;const e=$t.get(document)||new Set,o=Dt.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Wt(t){let e;const o=Dt.get(t)||new Set,n=$t.get(t)||new Set,r=o.size>0?o:n.size>0?n:null;return r?(e=Ft(r),e.isConnected?e:(r.delete(e),Wt(t))):null}function Bt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function qt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?qt(t.parentNode):t}function It(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===jt.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}function Nt(t,e){const o=new Map;let n=0;for(const t of e||[])o.set(t,n),n+=1;o.set(t,n),n+=1;let r=null;return function(e){if(!e)return;let n=!1,s=null,i=null;for(;!n;){if(s=It(e)||null,null===s)return;if(!o.has(s))return;"hint"!==t.popover&&"auto"!==s.popover||(n=!0),n||(e=s.parentElement)}i=o.get(s),(null===r||o.get(r)<i)&&(r=s)}(t.parentElement||qt(t)),r}function Ut(t){return!(t.hidden||t instanceof Ot||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Vt=new WeakMap;function Gt(t){if(!Ct(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Et("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ct(t,!1))return;let o=!1;const n=t.popover;let r=null;const s=Nt(t,$t.get(e)||new Set),i=Nt(t,Dt.get(e)||new Set);if("auto"===n&&(Yt(Dt.get(e)||new Set,o,!0),_t(s||e,o,!0),r="auto"),"hint"===n&&(i?(_t(i,o,!0),r="hint"):(Yt(Dt.get(e)||new Set,o,!0),s?(_t(s,o,!0),r="auto"):r="hint")),"auto"===n||"hint"===n){if(n!==t.popover||!Ct(t,!1))return;Wt(e)||(o=!0),"auto"===r?($t.has(e)||$t.set(e,new Set),$t.get(e).add(t)):"hint"===r&&(Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var p;t.classList.add(":popover-open"),jt.set(t,"showing"),Lt.has(e)||Lt.set(e,new Set),Lt.get(e).add(t),te(zt.get(t),!0),p=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(Ut(r))return r;r=n.nextNode()}}(p)?.focus(),o&&a&&"auto"===t.popover&&Vt.set(t,a),At(t,"closed","open")}function Xt(t,e=!1,o=!1){if(!Ct(t,!0))return;const n=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(_t(t,e,o),!Ct(t,!0)))return;const r=$t.get(n)||new Set,s=r.has(t)&&Ft(r)===t;if(te(zt.get(t),!1),zt.delete(t),o&&(t.dispatchEvent(new Et("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ft(r)!==t&&_t(t,e,o),!Ct(t,!0)))return;Lt.get(n)?.delete(t),r.delete(t),Dt.get(n)?.delete(t),t.classList.remove(":popover-open"),jt.set(t,"hidden"),o&&At(t,"open","closed");const i=Vt.get(t);i&&(Vt.delete(t),e&&i.focus())}function Yt(t,e=!1,o=!1){let n=Bt(t);for(;n;)Xt(n,e,o),n=Bt(t)}function Zt(t,e,o,n){let r=!1,s=!1;for(;r||!s;){s=!0;let i=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){i=o;break}if(!i)return;for(;"showing"===Rt(i)&&e.size;)Xt(Ft(e),o,n);e.has(t)&&Ft(e)!==t&&(r=!0),r&&(n=!1)}}function _t(t,e,o){const n=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let n=Wt(t);for(;n;)Xt(n,e,o),n=Wt(t)}(n,e,o);Dt.get(n)?.has(t)?Zt(t,Dt.get(n),e,o):(Yt(Dt.get(n)||new Set,e,o),$t.get(n)?.has(t)&&Zt(t,$t.get(n),e,o))}var Qt=new WeakMap;function Jt(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!Wt(o))return;const n=function(t){const e=It(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}(t);return Pt(e)>Pt(o)?e:o}(e);if(n&&"pointerdown"===t.type)Qt.set(o,n);else if("pointerup"===t.type){const t=Qt.get(o)===n;Qt.delete(o),t&&_t(n||o,!1,!0)}}var Kt=new WeakMap;function te(t,e=!1){if(!t)return;Kt.has(t)||Kt.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=Kt.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ee=globalThis.ShadowRoot||function(){};function oe(t,e,o){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,o(t))}})}var ne=/(^|[^\\]):popover-open\b/g;var re=null;function se(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===re)try{(re=new CSSStyleSheet).replaceSync(e)}catch{re=!1}if(!1===re){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[re,...t.adoptedStyleSheets]}var ie=function(t,e,o,n){var r,s=arguments.length,i=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(s<3?r(i):s>3?r(e,o,i):r(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};const ae={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},pe=class{constructor(o){t(this,o),this.postBeforeShow=e(this,"postBeforeShow"),this.postShow=e(this,"postShow"),this.postHide=e(this,"postHide"),this.postBeforeToggle=e(this,"postBeforeToggle"),this.postToggle=e(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ne,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Et,oe(Document.prototype,"querySelector",t),oe(Document.prototype,"querySelectorAll",t),oe(Element.prototype,"querySelector",t),oe(Element.prototype,"querySelectorAll",t),oe(Element.prototype,"matches",t),oe(Element.prototype,"closest",t),oe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Gt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Xt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===jt.get(this)&&void 0===t.force||!1===t.force?Xt(this,!0,!0):void 0!==t.force&&!0!==t.force||Gt(this),"showing"===jt.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return se(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&se(t.shadowRoot),t}}});const n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=qt(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ee)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var s;r(HTMLButtonElement),r(HTMLInputElement),(s=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const n=qt(o);if(!(n instanceof ee||n instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=Rt(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Xt(e,!0,!0):Ct(e,!1)&&(zt.set(e,t),Gt(e)))}(r),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||_t(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",Jt),s.addEventListener("pointerup",Jt),se(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||o)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):o}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ae[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let o;try{if(o=t(e),!o)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=o,"running"===o.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await o.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===o&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=it(t),h=r||s?[...f?nt(f):[],...e?nt(e):[]]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=f&&a?function(t,e){let o,n=null;const r=P(t);function s(){var t;clearTimeout(o),null==(t=n)||t.disconnect(),n=null}return function i(a,p){void 0===a&&(a=!1),void 0===p&&(p=1),s();const f=t.getBoundingClientRect(),{left:h,top:d,width:v,height:m}=f;if(a||e(),!v||!m)return;const g={rootMargin:-u(d)+"px "+-u(r.clientWidth-(h+v))+"px "+-u(r.clientHeight-(d+m))+"px "+-u(h)+"px",threshold:l(0,c(1,p))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(n!==p){if(!x)return i();n?i(!1,n):o=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||bt(f,t.getBoundingClientRect())||i(),x=!1}try{n=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(w,g)}n.observe(t)}(!0),s}(f,o):null;let v,m=-1,g=null;i&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===f&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),f&&!p&&g.observe(f),e&&g.observe(e));let x=p?lt(t):null;return p&&function e(){const n=lt(t);x&&!bt(x,n)&&o(),x=n,v=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,p&&cancelAnimationFrame(v)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:n}=await this.computeMainPosition(),r=n.split("-")[0];if(this.dynamicPlacement=r,this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,n=pe.STATIC_SIDES[r],s=-.5*this.arrowRef.offsetWidth;n&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[n]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),o=St({padding:this.getHeaderHeight(),crossAxis:!1}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:p={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=m(t,e),l={x:o,y:n},f=await s.detectOverflow(e,c),u=y(g(r)),h=w(u);let d=l[h],x=l[u];i&&(d=v(d+f["y"===h?"top":"left"],d,d-f["y"===h?"bottom":"right"])),a&&(x=v(x+f["y"===u?"top":"left"],x,x-f["y"===u?"bottom":"right"]));const b=p.fn({...e,[h]:d,[u]:x});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:i,[u]:a}}}}}}({padding:t,limiter:(s={offset:32},void 0===s&&(s={}),{options:s,fn(t){const{x:e,y:o,placement:n,rects:r,middlewareData:i}=t,{offset:a=0,mainAxis:p=!0,crossAxis:c=!0}=m(s,t),l={x:e,y:o},f=y(n),u=w(f);let h=l[u],d=l[f];const v=m(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const t="y"===u?"height":"width",e=r.reference[u]-r.floating[t]+x.mainAxis,o=r.reference[u]+r.reference[t]-x.mainAxis;h<e?h=e:h>o&&(h=o)}if(c){var b,S;const t="y"===u?"width":"height",e=R.has(g(n)),o=r.reference[f]-r.floating[t]+(e&&(null==(b=i.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),s=r.reference[f]+r.reference[t]+(e?0:(null==(S=i.offset)?void 0:S[f])||0)-(e?x.crossAxis:0);d<o?d=o:d>s&&(d=s)}return{[u]:h,[f]:d}}})}),r=[yt(this.offset??(this.arrow?t+4:t)),Tt(),...e?[o,n]:[n,o],kt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}})];var s;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:p}=e,{element:l,padding:f=0}=m(t,e)||{};if(null==l)return{};const u=H(f),h={x:o,y:n},d=S(r),g=b(d),w=await i.getDimensions(l),y="y"===d,k=y?"top":"left",T=y?"bottom":"right",E=y?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[d]-h[d]-s.floating[g],A=h[d]-s.reference[d],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let L=O?O[E]:0;L&&await(null==i.isElement?void 0:i.isElement(O))||(L=a.floating[E]||s.floating[g]);const $=M/2-A/2,D=L/2-w[g]/2-1,j=c(u[k],D),R=c(u[T],D),z=j,F=L-w[g]-R,C=L/2-w[g]/2+$,P=v(z,C,F),W=!p.arrow&&null!=x(r)&&C!==P&&s.reference[g]/2-(C<z?j:R)-w[g]/2<0,B=W?C<z?C-z:C-F:0;return{[d]:h[d]+B,data:{[d]:P,centerOffset:C-P-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const n=new Map,r={platform:wt,...o},s={...r.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:D},p=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:f}=$(c,n,p),u=n,h=0;const d={};for(let o=0;o<s.length;o++){const v=s[o];if(!v)continue;const{name:m,fn:g}=v,{x,y:w,data:b,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});l=null!=x?x:l,f=null!=w?w:f,d[m]={...d[m],...b},y&&h<50&&(h++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:l,y:f}=$(c,u,p))),o=-1)}return{x:l,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,n=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);pe.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${n.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${n.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${n.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${n.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${n.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${n.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${n.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${n.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${n.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${n.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${n.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${n.trigger.yEnd}px`))}render(){return o(n,{key:"be9f32a35f247f5b2cb54599b96e715ce1a5a1f1","data-version":s,popover:"auto"},o("div",{key:"ad2616c15dfec83e1e53ad14cb145aee2d625c9a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"293ba9d1ba2a7b57297cd4aa716ba1369b2f8988","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"7b9d47b53a4d4a672490eccdc88a7eb0552b5574",part:"post-popovercontainer-border-mask"}),o("slot",{key:"4b4249d6ebe1c247634bbb76b08ec01e73dc7d4b"})))}get host(){return r(this)}};pe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},pe.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ie([i(a)],pe.prototype,"placement",void 0),ie([p("number")],pe.prototype,"edgeGap",void 0),ie([i(["triangle","trapezoid"])],pe.prototype,"safeSpace",void 0),pe.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}';export{pe as post_popovercontainer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(e,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=e[t]};return r(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,t,n){function i(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,o){function a(r){try{u(n.next(r))}catch(r){o(r)}}function s(r){try{u(n["throw"](r))}catch(r){o(r)}}function u(r){r.done?t(r.value):i(r.value).then(a,s)}u((n=n.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(e){return u([r,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(t=0)),t)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){t.label=s[1];break}if(s[0]===6&&t.label<o[1]){t.label=o[1];o=s;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(s);break}if(o[2])t.ops.pop();t.trys.pop();continue}s=e.call(r,t)}catch(r){s=[6,r];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(r,e){var t={};for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0)t[n]=r[n];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++){if(e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i]))t[n[i]]=r[n[i]]}return t};var __spreadArray=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return r.concat(o||Array.prototype.slice.call(e))};System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-CiwQnVr3.system.js","./p-BYB4z0RW.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(r){"use strict";var e,t,n,i,o,a,s,u,f;return{setters:[function(r){e=r.r;t=r.c;n=r.h;i=r.H;o=r.g},function(r){a=r.v},function(r){s=r.O},function(r){u=r.P},function(r){f=r.T},null],execute:function(){var p=this;var c=Math.min;var v=Math.max;var l=Math.round;var d=Math.floor;var h=function(r){return{x:r,y:r}};var g={left:"right",right:"left",bottom:"top",top:"bottom"};function b(r,e,t){return v(r,c(e,t))}function w(r,e){return typeof r==="function"?r(e):r}function x(r){return r.split("-")[0]}function m(r){return r.split("-")[1]}function y(r){return r==="x"?"y":"x"}function _(r){return r==="y"?"height":"width"}function k(r){var e=r[0];return e==="t"||e==="b"?"y":"x"}function S(r){return y(k(r))}function A(r,e,t){if(t===void 0){t=false}var n=m(r);var i=S(r);var o=_(i);var a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[o]>e.floating[o]){a=z(a)}return[a,z(a)]}function T(r){var e=z(r);return[E(r),e,E(e)]}function E(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}var O=["left","right"];var M=["right","left"];var j=["top","bottom"];var L=["bottom","top"];function H(r,e,t){switch(r){case"top":case"bottom":if(t)return e?M:O;return e?O:M;case"left":case"right":return e?j:L;default:return[]}}function R(r,e,t,n){var i=m(r);var o=H(x(r),t==="start",n);if(i){o=o.map((function(r){return r+"-"+i}));if(e){o=o.concat(o.map(E))}}return o}function z(r){var e=x(r);return g[e]+r.slice(e.length)}function D(r){return __assign({top:0,right:0,bottom:0,left:0},r)}function C(r){return typeof r!=="number"?D(r):{top:r,right:r,bottom:r,left:r}}function F(r){var e=r.x,t=r.y,n=r.width,i=r.height;return{width:n,height:i,top:t,left:e,right:e+n,bottom:t+i,x:e,y:t}}function W(r,e,t){var n=r.reference,i=r.floating;var o=k(e);var a=S(e);var s=_(a);var u=x(e);var f=o==="y";var p=n.x+n.width/2-i.width/2;var c=n.y+n.height/2-i.height/2;var v=n[s]/2-i[s]/2;var l;switch(u){case"top":l={x:p,y:n.y-i.height};break;case"bottom":l={x:p,y:n.y+n.height};break;case"right":l={x:n.x+n.width,y:c};break;case"left":l={x:n.x-i.width,y:c};break;default:l={x:n.x,y:n.y}}switch(m(e)){case"start":l[a]-=v*(t&&f?-1:1);break;case"end":l[a]+=v*(t&&f?-1:1);break}return l}function B(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,f,p,c,v,l,d,h,g,b,x,m,y,_,k,S,A,T,E,O,M,j,L,H,R,z,D,W;var B;return __generator(this,(function(P){switch(P.label){case 0:if(e===void 0){e={}}n=r.x,i=r.y,o=r.platform,a=r.rects,s=r.elements,u=r.strategy;f=w(e,r),p=f.boundary,c=p===void 0?"clippingAncestors":p,v=f.rootBoundary,l=v===void 0?"viewport":v,d=f.elementContext,h=d===void 0?"floating":d,g=f.altBoundary,b=g===void 0?false:g,x=f.padding,m=x===void 0?0:x;y=C(m);_=h==="floating"?"reference":"floating";k=s[b?_:h];A=F;E=(T=o).getClippingRect;B={};return[4,o.isElement==null?void 0:o.isElement(k)];case 1:if(!((t=P.sent())!=null?t:true))return[3,2];O=k;return[3,5];case 2:M=k.contextElement;if(M)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)];case 3:M=P.sent();P.label=4;case 4:O=M;P.label=5;case 5:return[4,E.apply(T,[(B.element=O,B.boundary=c,B.rootBoundary=l,B.strategy=u,B)])];case 6:S=A.apply(void 0,[P.sent()]);j=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)];case 7:L=P.sent();return[4,o.isElement==null?void 0:o.isElement(L)];case 8:if(!P.sent())return[3,10];return[4,o.getScale==null?void 0:o.getScale(L)];case 9:R=P.sent()||{x:1,y:1};return[3,11];case 10:R={x:1,y:1};P.label=11;case 11:H=R;D=F;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:j,offsetParent:L,strategy:u})];case 12:W=P.sent();return[3,14];case 13:W=j;P.label=14;case 14:z=D.apply(void 0,[W]);return[2,{top:(S.top-z.top+y.top)/H.y,bottom:(z.bottom-S.bottom+y.bottom)/H.y,left:(S.left-z.left+y.left)/H.x,right:(z.right-S.right+y.right)/H.x}]}}))}))}var P=50;var I=function(r,e,t){return __awaiter(p,void 0,void 0,(function(){var n,i,o,a,s,u,f,p,c,v,l,d,h,g,b,w,x,m,y,_,k,S,A,T,E,O;var M;return __generator(this,(function(j){switch(j.label){case 0:n=t.placement,i=n===void 0?"bottom":n,o=t.strategy,a=o===void 0?"absolute":o,s=t.middleware,u=s===void 0?[]:s,f=t.platform;p=f.detectOverflow?f:__assign(__assign({},f),{detectOverflow:B});return[4,f.isRTL==null?void 0:f.isRTL(e)];case 1:c=j.sent();return[4,f.getElementRects({reference:r,floating:e,strategy:a})];case 2:v=j.sent();l=W(v,i,c),d=l.x,h=l.y;g=i;b=0;w={};x=0;j.label=3;case 3:if(!(x<u.length))return[3,11];m=u[x];if(!m){return[3,10]}y=m.name,_=m.fn;return[4,_({x:d,y:h,initialPlacement:i,placement:g,strategy:a,middlewareData:w,rects:v,platform:p,elements:{reference:r,floating:e}})];case 4:k=j.sent(),S=k.x,A=k.y,T=k.data,E=k.reset;d=S!=null?S:d;h=A!=null?A:h;w[y]=__assign(__assign({},w[y]),T);if(!(E&&b<P))return[3,10];b++;if(!(typeof E==="object"))return[3,9];if(E.placement){g=E.placement}if(!E.rects)return[3,8];if(!(E.rects===true))return[3,6];return[4,f.getElementRects({reference:r,floating:e,strategy:a})];case 5:O=j.sent();return[3,7];case 6:O=E.rects;j.label=7;case 7:v=O;j.label=8;case 8:M=W(v,g,c),d=M.x,h=M.y;j.label=9;case 9:x=-1;j.label=10;case 10:x++;return[3,3];case 11:return[2,{x:d,y:h,placement:g,strategy:a,middlewareData:w}]}}))}))};var q=function(r){return{name:"arrow",options:r,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,f,p,v,l,d,h,g,x,y,k,A,T,E,O,M,j,L,H,R,z,D,F,W,B,P,I,q,N;var $,G;return __generator(this,(function(K){switch(K.label){case 0:t=e.x,n=e.y,i=e.placement,o=e.rects,a=e.platform,s=e.elements,u=e.middlewareData;f=w(r,e)||{},p=f.element,v=f.padding,l=v===void 0?0:v;if(p==null){return[2,{}]}d=C(l);h={x:t,y:n};g=S(i);x=_(g);return[4,a.getDimensions(p)];case 1:y=K.sent();k=g==="y";A=k?"top":"left";T=k?"bottom":"right";E=k?"clientHeight":"clientWidth";O=o.reference[x]+o.reference[g]-h[g]-o.floating[x];M=h[g]-o.reference[g];return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(p)];case 2:j=K.sent();L=j?j[E]:0;H=!L;if(H)return[3,4];return[4,a.isElement==null?void 0:a.isElement(j)];case 3:H=!K.sent();K.label=4;case 4:if(H){L=s.floating[E]||o.floating[x]}R=O/2-M/2;z=L/2-y[x]/2-1;D=c(d[A],z);F=c(d[T],z);W=D;B=L-y[x]-F;P=L/2-y[x]/2+R;I=b(W,P,B);q=!u.arrow&&m(i)!=null&&P!==I&&o.reference[x]/2-(P<W?D:F)-y[x]/2<0;N=q?P<W?P-W:P-B:0;return[2,($={},$[g]=h[g]+N,$.data=__assign((G={},G[g]=I,G.centerOffset=P-I-N,G),q&&{alignmentOffset:N}),$.reset=q,$)]}}))}))}}};var N=function(r){if(r===void 0){r={}}return{name:"flip",options:r,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,f,p,c,v,l,d,h,g,b,m,y,_,S,E,O,M,j,L,H,D,C,F,W,B,P,I,q,N,$,G,K,V,Q;return __generator(this,(function(Y){switch(Y.label){case 0:i=e.placement,o=e.middlewareData,a=e.rects,s=e.initialPlacement,u=e.platform,f=e.elements;p=w(r,e),c=p.mainAxis,v=c===void 0?true:c,l=p.crossAxis,d=l===void 0?true:l,h=p.fallbackPlacements,g=p.fallbackStrategy,b=g===void 0?"bestFit":g,m=p.fallbackAxisSideDirection,y=m===void 0?"none":m,_=p.flipAlignment,S=_===void 0?true:_,E=__rest(p,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset){return[2,{}]}O=x(i);M=k(s);j=x(s)===s;return[4,u.isRTL==null?void 0:u.isRTL(f.floating)];case 1:L=Y.sent();H=h||(j||!S?[z(s)]:T(s));D=y!=="none";if(!h&&D){H.push.apply(H,R(s,S,y,L))}C=__spreadArray([s],H,true);return[4,u.detectOverflow(e,E)];case 2:F=Y.sent();W=[];B=((n=o.flip)==null?void 0:n.overflows)||[];if(v){W.push(F[O])}if(d){P=A(i,a,L);W.push(F[P[0]],F[P[1]])}B=__spreadArray(__spreadArray([],B,true),[{placement:i,overflows:W}],false);if(!W.every((function(r){return r<=0}))){N=(((I=o.flip)==null?void 0:I.index)||0)+1;$=C[N];if($){G=d==="alignment"?M!==k($):false;if(!G||B.every((function(r){return k(r.placement)===M?r.overflows[0]>0:true}))){return[2,{data:{index:N,overflows:B},reset:{placement:$}}]}}K=(q=B.filter((function(r){return r.overflows[0]<=0})).sort((function(r,e){return r.overflows[1]-e.overflows[1]}))[0])==null?void 0:q.placement;if(!K){switch(b){case"bestFit":{Q=(V=B.filter((function(r){if(D){var e=k(r.placement);return e===M||e==="y"}return true})).map((function(r){return[r.placement,r.overflows.filter((function(r){return r>0})).reduce((function(r,e){return r+e}),0)]})).sort((function(r,e){return r[1]-e[1]}))[0])==null?void 0:V[0];if(Q){K=Q}break}case"initialPlacement":K=s;break}}if(i!==K){return[2,{reset:{placement:K}}]}}return[2,{}]}}))}))}}};function $(r){var e=c.apply(void 0,r.map((function(r){return r.left})));var t=c.apply(void 0,r.map((function(r){return r.top})));var n=v.apply(void 0,r.map((function(r){return r.right})));var i=v.apply(void 0,r.map((function(r){return r.bottom})));return{x:e,y:t,width:n-e,height:i-t}}function G(r){var e=r.slice().sort((function(r,e){return r.y-e.y}));var t=[];var n=null;for(var i=0;i<e.length;i++){var o=e[i];if(!n||o.y-n.y>n.height/2){t.push([o])}else{t[t.length-1].push(o)}n=o}return t.map((function(r){return F($(r))}))}var K=function(r){if(r===void 0){r={}}return{name:"inline",options:r,fn:function(e){return __awaiter(this,void 0,void 0,(function(){function t(){if(m.length===2&&m[0].left>m[1].right&&l!=null&&d!=null){return m.find((function(r){return l>r.left-_.left&&l<r.right+_.right&&d>r.top-_.top&&d<r.bottom+_.bottom}))||y}if(m.length>=2){if(k(n)==="y"){var r=m[0];var e=m[m.length-1];var t=x(n)==="top";var i=r.top;var o=e.bottom;var a=t?r.left:e.left;var s=t?r.right:e.right;var u=s-a;var f=o-i;return{top:i,bottom:o,left:a,right:s,width:u,height:f,x:a,y:i}}var p=x(n)==="left";var h=v.apply(void 0,m.map((function(r){return r.right})));var g=c.apply(void 0,m.map((function(r){return r.left})));var b=m.filter((function(r){return p?r.left===g:r.right===h}));var w=b[0].top;var S=b[b.length-1].bottom;var A=g;var T=h;var E=T-A;var O=S-w;return{top:w,bottom:S,left:A,right:T,width:E,height:O,x:A,y:w}}return y}var n,i,o,a,s,u,f,p,l,d,h,g,b,m,y,_,S;return __generator(this,(function(c){switch(c.label){case 0:n=e.placement,i=e.elements,o=e.rects,a=e.platform,s=e.strategy;u=w(r,e),f=u.padding,p=f===void 0?2:f,l=u.x,d=u.y;b=(g=Array).from;return[4,a.getClientRects==null?void 0:a.getClientRects(i.reference)];case 1:h=b.apply(g,[c.sent()||[]]);m=G(h);y=F($(h));_=C(p);return[4,a.getElementRects({reference:{getBoundingClientRect:t},floating:i.floating,strategy:s})];case 2:S=c.sent();if(o.reference.x!==S.reference.x||o.reference.y!==S.reference.y||o.reference.width!==S.reference.width||o.reference.height!==S.reference.height){return[2,{reset:{rects:S}}]}return[2,{}]}}))}))}}};var V=new Set(["left","top"]);function Q(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,f,p,c,v,l,d,h;return __generator(this,(function(g){switch(g.label){case 0:t=r.placement,n=r.platform,i=r.elements;return[4,n.isRTL==null?void 0:n.isRTL(i.floating)];case 1:o=g.sent();a=x(t);s=m(t);u=k(t)==="y";f=V.has(a)?-1:1;p=o&&u?-1:1;c=w(e,r);v=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis},l=v.mainAxis,d=v.crossAxis,h=v.alignmentAxis;if(s&&typeof h==="number"){d=s==="end"?h*-1:h}return[2,u?{x:d*p,y:l*f}:{x:l*f,y:d*p}]}}))}))}var Y=function(r){if(r===void 0){r=0}return{name:"offset",options:r,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u;return __generator(this,(function(f){switch(f.label){case 0:i=e.x,o=e.y,a=e.placement,s=e.middlewareData;return[4,Q(e,r)];case 1:u=f.sent();if(a===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset){return[2,{}]}return[2,{x:i+u.x,y:o+u.y,data:__assign(__assign({},u),{placement:a})}]}}))}))}}};var Z=function(r){if(r===void 0){r={}}return{name:"shift",options:r,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,f,p,c,v,l,d,h,g,m,_,S,A,T,E,O,A,T,M,j,L;var H,R;return __generator(this,(function(z){switch(z.label){case 0:t=e.x,n=e.y,i=e.placement,o=e.platform;a=w(r,e),s=a.mainAxis,u=s===void 0?true:s,f=a.crossAxis,p=f===void 0?false:f,c=a.limiter,v=c===void 0?{fn:function(r){var e=r.x,t=r.y;return{x:e,y:t}}}:c,l=__rest(a,["mainAxis","crossAxis","limiter"]);d={x:t,y:n};return[4,o.detectOverflow(e,l)];case 1:h=z.sent();g=k(x(i));m=y(g);_=d[m];S=d[g];if(u){A=m==="y"?"top":"left";T=m==="y"?"bottom":"right";E=_+h[A];O=_-h[T];_=b(E,_,O)}if(p){A=g==="y"?"top":"left";T=g==="y"?"bottom":"right";M=S+h[A];j=S-h[T];S=b(M,S,j)}L=v.fn(__assign(__assign({},e),(H={},H[m]=_,H[g]=S,H)));return[2,__assign(__assign({},L),{data:{x:L.x-t,y:L.y-n,enabled:(R={},R[m]=u,R[g]=p,R)}})]}}))}))}}};var J=function(r){if(r===void 0){r={}}return{options:r,fn:function(e){var t;var n=e.x,i=e.y,o=e.placement,a=e.rects,s=e.middlewareData;var u=w(r,e),f=u.offset,p=f===void 0?0:f,c=u.mainAxis,v=c===void 0?true:c,l=u.crossAxis,d=l===void 0?true:l;var h={x:n,y:i};var g=k(o);var b=y(g);var m=h[b];var _=h[g];var S=w(p,e);var A=typeof S==="number"?{mainAxis:S,crossAxis:0}:__assign({mainAxis:0,crossAxis:0},S);if(v){var T=b==="y"?"height":"width";var E=a.reference[b]-a.floating[T]+A.mainAxis;var O=a.reference[b]+a.reference[T]-A.mainAxis;if(m<E){m=E}else if(m>O){m=O}}if(d){var M,j;var T=b==="y"?"width":"height";var L=V.has(x(o));var E=a.reference[g]-a.floating[T]+(L?((M=s.offset)==null?void 0:M[g])||0:0)+(L?0:A.crossAxis);var O=a.reference[g]+a.reference[T]+(L?0:((j=s.offset)==null?void 0:j[g])||0)-(L?A.crossAxis:0);if(_<E){_=E}else if(_>O){_=O}}return t={},t[b]=m,t[g]=_,t}}};var U=function(r){if(r===void 0){r={}}return{name:"size",options:r,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,f,p,l,d,h,g,b,y,_,S,A,T,E,O,M,j,L,H,R,z,D,C,F,W,B;return __generator(this,(function(P){switch(P.label){case 0:i=e.placement,o=e.rects,a=e.platform,s=e.elements;u=w(r,e),f=u.apply,p=f===void 0?function(){}:f,l=__rest(u,["apply"]);return[4,a.detectOverflow(e,l)];case 1:d=P.sent();h=x(i);g=m(i);b=k(i)==="y";y=o.floating,_=y.width,S=y.height;if(!(h==="top"||h==="bottom"))return[3,3];A=h;E=g;return[4,a.isRTL==null?void 0:a.isRTL(s.floating)];case 2:T=E===(P.sent()?"start":"end")?"left":"right";return[3,4];case 3:T=h;A=g==="end"?"top":"bottom";P.label=4;case 4:O=S-d.top-d.bottom;M=_-d.left-d.right;j=c(S-d[A],O);L=c(_-d[T],M);H=!e.middlewareData.shift;R=j;z=L;if((t=e.middlewareData.shift)!=null&&t.enabled.x){z=M}if((n=e.middlewareData.shift)!=null&&n.enabled.y){R=O}if(H&&!g){D=v(d.left,0);C=v(d.right,0);F=v(d.top,0);W=v(d.bottom,0);if(b){z=_-2*(D!==0||C!==0?D+C:v(d.left,d.right))}else{R=S-2*(F!==0||W!==0?F+W:v(d.top,d.bottom))}}return[4,p(__assign(__assign({},e),{availableWidth:z,availableHeight:R}))];case 5:P.sent();return[4,a.getDimensions(s.floating)];case 6:B=P.sent();if(_!==B.width||S!==B.height){return[2,{reset:{rects:true}}]}return[2,{}]}}))}))}}};function X(){return typeof window!=="undefined"}function rr(r){if(nr(r)){return(r.nodeName||"").toLowerCase()}return"#document"}function er(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function tr(r){var e;return(e=(nr(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function nr(r){if(!X()){return false}return r instanceof Node||r instanceof er(r).Node}function ir(r){if(!X()){return false}return r instanceof Element||r instanceof er(r).Element}function or(r){if(!X()){return false}return r instanceof HTMLElement||r instanceof er(r).HTMLElement}function ar(r){if(!X()||typeof ShadowRoot==="undefined"){return false}return r instanceof ShadowRoot||r instanceof er(r).ShadowRoot}function sr(r){var e=wr(r),t=e.overflow,n=e.overflowX,i=e.overflowY,o=e.display;return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&o!=="inline"&&o!=="contents"}function ur(r){return/^(table|td|th)$/.test(rr(r))}function fr(r){try{if(r.matches(":popover-open")){return true}}catch(r){}try{return r.matches(":modal")}catch(r){return false}}var pr=/transform|translate|scale|rotate|perspective|filter/;var cr=/paint|layout|strict|content/;var vr=function(r){return!!r&&r!=="none"};var lr;function dr(r){var e=ir(r)?wr(r):r;return vr(e.transform)||vr(e.translate)||vr(e.scale)||vr(e.rotate)||vr(e.perspective)||!gr()&&(vr(e.backdropFilter)||vr(e.filter))||pr.test(e.willChange||"")||cr.test(e.contain||"")}function hr(r){var e=mr(r);while(or(e)&&!br(e)){if(dr(e)){return e}else if(fr(e)){return null}e=mr(e)}return null}function gr(){if(lr==null){lr=typeof CSS!=="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}return lr}function br(r){return/^(html|body|#document)$/.test(rr(r))}function wr(r){return er(r).getComputedStyle(r)}function xr(r){if(ir(r)){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}return{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function mr(r){if(rr(r)==="html"){return r}var e=r.assignedSlot||r.parentNode||ar(r)&&r.host||tr(r);return ar(e)?e.host:e}function yr(r){var e=mr(r);if(br(e)){return r.ownerDocument?r.ownerDocument.body:r.body}if(or(e)&&sr(e)){return e}return yr(e)}function _r(r,e,t){var n;if(e===void 0){e=[]}if(t===void 0){t=true}var i=yr(r);var o=i===((n=r.ownerDocument)==null?void 0:n.body);var a=er(i);if(o){var s=kr(a);return e.concat(a,a.visualViewport||[],sr(i)?i:[],s&&t?_r(s):[])}else{return e.concat(i,_r(i,[],t))}}function kr(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Sr(r){var e=wr(r);var t=parseFloat(e.width)||0;var n=parseFloat(e.height)||0;var i=or(r);var o=i?r.offsetWidth:t;var a=i?r.offsetHeight:n;var s=l(t)!==o||l(n)!==a;if(s){t=o;n=a}return{width:t,height:n,$:s}}function Ar(r){return!ir(r)?r.contextElement:r}function Tr(r){var e=Ar(r);if(!or(e)){return h(1)}var t=e.getBoundingClientRect();var n=Sr(e),i=n.width,o=n.height,a=n.$;var s=(a?l(t.width):t.width)/i;var u=(a?l(t.height):t.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!u||!Number.isFinite(u)){u=1}return{x:s,y:u}}var Er=h(0);function Or(r){var e=er(r);if(!gr()||!e.visualViewport){return Er}return{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mr(r,e,t){if(e===void 0){e=false}if(!t||e&&t!==er(r)){return false}return e}function jr(r,e,t,n){if(e===void 0){e=false}if(t===void 0){t=false}var i=r.getBoundingClientRect();var o=Ar(r);var a=h(1);if(e){if(n){if(ir(n)){a=Tr(n)}}else{a=Tr(r)}}var s=Mr(o,t,n)?Or(o):h(0);var u=(i.left+s.x)/a.x;var f=(i.top+s.y)/a.y;var p=i.width/a.x;var c=i.height/a.y;if(o){var v=er(o);var l=n&&ir(n)?er(n):n;var d=v;var g=kr(d);while(g&&n&&l!==d){var b=Tr(g);var w=g.getBoundingClientRect();var x=wr(g);var m=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x;var y=w.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x;f*=b.y;p*=b.x;c*=b.y;u+=m;f+=y;d=er(g);g=kr(d)}}return F({width:p,height:c,x:u,y:f})}function Lr(r,e){var t=xr(r).scrollLeft;if(!e){return jr(tr(r)).left+t}return e.left+t}function Hr(r,e){var t=r.getBoundingClientRect();var n=t.left+e.scrollLeft-Lr(r,t);var i=t.top+e.scrollTop;return{x:n,y:i}}function Rr(r){var e=r.elements,t=r.rect,n=r.offsetParent,i=r.strategy;var o=i==="fixed";var a=tr(n);var s=e?fr(e.floating):false;if(n===a||s&&o){return t}var u={scrollLeft:0,scrollTop:0};var f=h(1);var p=h(0);var c=or(n);if(c||!c&&!o){if(rr(n)!=="body"||sr(a)){u=xr(n)}if(c){var v=jr(n);f=Tr(n);p.x=v.x+n.clientLeft;p.y=v.y+n.clientTop}}var l=a&&!c&&!o?Hr(a,u):h(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+p.x+l.x,y:t.y*f.y-u.scrollTop*f.y+p.y+l.y}}function zr(r){return Array.from(r.getClientRects())}function Dr(r){var e=tr(r);var t=xr(r);var n=r.ownerDocument.body;var i=v(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth);var o=v(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);var a=-t.scrollLeft+Lr(r);var s=-t.scrollTop;if(wr(n).direction==="rtl"){a+=v(e.clientWidth,n.clientWidth)-i}return{width:i,height:o,x:a,y:s}}var Cr=25;function Fr(r,e){var t=er(r);var n=tr(r);var i=t.visualViewport;var o=n.clientWidth;var a=n.clientHeight;var s=0;var u=0;if(i){o=i.width;a=i.height;var f=gr();if(!f||f&&e==="fixed"){s=i.offsetLeft;u=i.offsetTop}}var p=Lr(n);if(p<=0){var c=n.ownerDocument;var v=c.body;var l=getComputedStyle(v);var d=c.compatMode==="CSS1Compat"?parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0:0;var h=Math.abs(n.clientWidth-v.clientWidth-d);if(h<=Cr){o-=h}}else if(p<=Cr){o+=p}return{width:o,height:a,x:s,y:u}}function Wr(r,e){var t=jr(r,true,e==="fixed");var n=t.top+r.clientTop;var i=t.left+r.clientLeft;var o=or(r)?Tr(r):h(1);var a=r.clientWidth*o.x;var s=r.clientHeight*o.y;var u=i*o.x;var f=n*o.y;return{width:a,height:s,x:u,y:f}}function Br(r,e,t){var n;if(e==="viewport"){n=Fr(r,t)}else if(e==="document"){n=Dr(tr(r))}else if(ir(e)){n=Wr(e,t)}else{var i=Or(r);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return F(n)}function Pr(r,e){var t=mr(r);if(t===e||!ir(t)||br(t)){return false}return wr(t).position==="fixed"||Pr(t,e)}function Ir(r,e){var t=e.get(r);if(t){return t}var n=_r(r,[],false).filter((function(r){return ir(r)&&rr(r)!=="body"}));var i=null;var o=wr(r).position==="fixed";var a=o?mr(r):r;while(ir(a)&&!br(a)){var s=wr(a);var u=dr(a);if(!u&&s.position==="fixed"){i=null}var f=o?!u&&!i:!u&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||sr(a)&&!u&&Pr(r,a);if(f){n=n.filter((function(r){return r!==a}))}else{i=s}a=mr(a)}e.set(r,n);return n}function qr(r){var e=r.element,t=r.boundary,n=r.rootBoundary,i=r.strategy;var o=t==="clippingAncestors"?fr(e)?[]:Ir(e,this._c):[].concat(t);var a=__spreadArray(__spreadArray([],o,true),[n],false);var s=Br(e,a[0],i);var u=s.top;var f=s.right;var p=s.bottom;var l=s.left;for(var d=1;d<a.length;d++){var h=Br(e,a[d],i);u=v(h.top,u);f=c(h.right,f);p=c(h.bottom,p);l=v(h.left,l)}return{width:f-l,height:p-u,x:l,y:u}}function Nr(r){var e=Sr(r),t=e.width,n=e.height;return{width:t,height:n}}function $r(r,e,t){var n=or(e);var i=tr(e);var o=t==="fixed";var a=jr(r,true,o,e);var s={scrollLeft:0,scrollTop:0};var u=h(0);function f(){u.x=Lr(i)}if(n||!n&&!o){if(rr(e)!=="body"||sr(i)){s=xr(e)}if(n){var p=jr(e,true,o,e);u.x=p.x+e.clientLeft;u.y=p.y+e.clientTop}else if(i){f()}}if(o&&!n&&i){f()}var c=i&&!n&&!o?Hr(i,s):h(0);var v=a.left+s.scrollLeft-u.x-c.x;var l=a.top+s.scrollTop-u.y-c.y;return{x:v,y:l,width:a.width,height:a.height}}function Gr(r){return wr(r).position==="static"}function Kr(r,e){if(!or(r)||wr(r).position==="fixed"){return null}if(e){return e(r)}var t=r.offsetParent;if(tr(r)===t){t=t.ownerDocument.body}return t}function Vr(r,e){var t=er(r);if(fr(r)){return t}if(!or(r)){var n=mr(r);while(n&&!br(n)){if(ir(n)&&!Gr(n)){return n}n=mr(n)}return t}var i=Kr(r,e);while(i&&ur(i)&&Gr(i)){i=Kr(i,e)}if(i&&br(i)&&Gr(i)&&!dr(i)){return t}return i||hr(r)||t}var Qr=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,o;var a;return __generator(this,(function(s){switch(s.label){case 0:e=this.getOffsetParent||Vr;t=this.getDimensions;return[4,t(r.floating)];case 1:n=s.sent();a={};i=$r;o=[r.reference];return[4,e(r.floating)];case 2:return[2,(a.reference=i.apply(void 0,o.concat([s.sent(),r.strategy])),a.floating={x:0,y:0,width:n.width,height:n.height},a)]}}))}))};function Yr(r){return wr(r).direction==="rtl"}var Zr={convertOffsetParentRelativeRectToViewportRelativeRect:Rr,getDocumentElement:tr,getClippingRect:qr,getOffsetParent:Vr,getElementRects:Qr,getClientRects:zr,getDimensions:Nr,getScale:Tr,isElement:ir,isRTL:Yr};function Jr(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function Ur(r,e){var t=null;var n;var i=tr(r);function o(){var r;clearTimeout(n);(r=t)==null||r.disconnect();t=null}function a(s,u){if(s===void 0){s=false}if(u===void 0){u=1}o();var f=r.getBoundingClientRect();var p=f.left,l=f.top,h=f.width,g=f.height;if(!s){e()}if(!h||!g){return}var b=d(l);var w=d(i.clientWidth-(p+h));var x=d(i.clientHeight-(l+g));var m=d(p);var y=-b+"px "+-w+"px "+-x+"px "+-m+"px";var _={rootMargin:y,threshold:v(0,c(1,u))||1};var k=true;function S(e){var t=e[0].intersectionRatio;if(t!==u){if(!k){return a()}if(!t){n=setTimeout((function(){a(false,1e-7)}),1e3)}else{a(false,t)}}if(t===1&&!Jr(f,r.getBoundingClientRect())){a()}k=false}try{t=new IntersectionObserver(S,__assign(__assign({},_),{root:i.ownerDocument}))}catch(r){t=new IntersectionObserver(S,_)}t.observe(r)}a(true);return o}function Xr(r,e,t,n){if(n===void 0){n={}}var i=n.ancestorScroll,o=i===void 0?true:i,a=n.ancestorResize,s=a===void 0?true:a,u=n.elementResize,f=u===void 0?typeof ResizeObserver==="function":u,p=n.layoutShift,c=p===void 0?typeof IntersectionObserver==="function":p,v=n.animationFrame,l=v===void 0?false:v;var d=Ar(r);var h=o||s?__spreadArray(__spreadArray([],d?_r(d):[],true),e?_r(e):[],true):[];h.forEach((function(r){o&&r.addEventListener("scroll",t,{passive:true});s&&r.addEventListener("resize",t)}));var g=d&&c?Ur(d,t):null;var b=-1;var w=null;if(f){w=new ResizeObserver((function(r){var n=r[0];if(n&&n.target===d&&w&&e){w.unobserve(e);cancelAnimationFrame(b);b=requestAnimationFrame((function(){var r;(r=w)==null||r.observe(e)}))}t()}));if(d&&!l){w.observe(d)}if(e){w.observe(e)}}var x;var m=l?jr(r):null;if(l){y()}function y(){var e=jr(r);if(m&&!Jr(m,e)){t()}m=e;x=requestAnimationFrame(y)}t();return function(){var r;h.forEach((function(r){o&&r.removeEventListener("scroll",t);s&&r.removeEventListener("resize",t)}));g==null||g();(r=w)==null||r.disconnect();w=null;if(l){cancelAnimationFrame(x)}}}var re=Y;var ee=Z;var te=N;var ne=U;var ie=q;var oe=K;var ae=J;var se=function(r,e,t){var n=new Map;var i=__assign({platform:Zr},t);var o=__assign(__assign({},i.platform),{_c:n});return I(r,e,__assign(__assign({},i),{platform:o}))};var ue=250;var fe="ease-out";function pe(r){if(!r)return;return r.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:ue,easing:fe,fill:"forwards"})}var ce=function(r){__extends(e,r);function e(e,t){if(t===void 0){t={}}var n=this;var i=t.oldState,o=i===void 0?"":i,a=t.newState,s=a===void 0?"":a,u=__rest(t,["oldState","newState"]);n=r.call(this,e,u)||this;n.oldState=String(o||"");n.newState=String(s||"");return n}return e}(Event);var ve=new WeakMap;function le(r,e,t){ve.set(r,setTimeout((function(){if(!ve.has(r))return;r.dispatchEvent(new ce("toggle",{cancelable:false,oldState:e,newState:t}))}),0))}var de=globalThis.ShadowRoot||function(){};var he=globalThis.HTMLDialogElement||function(){};var ge=new WeakMap;var be=new WeakMap;var we=new WeakMap;var xe=new WeakMap;function me(r){return xe.get(r)||"hidden"}var ye=new WeakMap;function _e(r){return __spreadArray([],r,true).pop()}function ke(r){var e=r.popoverTargetElement;if(!(e instanceof HTMLElement)){return}var t=me(e);if(r.popoverTargetAction==="show"&&t==="showing"){return}if(r.popoverTargetAction==="hide"&&t==="hidden")return;if(t==="showing"){We(e,true,true)}else if(Se(e,false)){ye.set(e,r);Fe(e)}}function Se(r,e){if(r.popover!=="auto"&&r.popover!=="manual"&&r.popover!=="hint"){return false}if(!r.isConnected)return false;if(e&&me(r)!=="showing"){return false}if(!e&&me(r)!=="hidden"){return false}if(r instanceof he&&r.hasAttribute("open")){return false}if(document.fullscreenElement===r)return false;return true}function Ae(r){if(!r)return 0;var e=be.get(document)||new Set;var t=we.get(document)||new Set;if(t.has(r)){return __spreadArray([],t,true).indexOf(r)+e.size+1}if(e.has(r)){return __spreadArray([],e,true).indexOf(r)+1}return 0}function Te(r){var e=je(r);var t=Le(r);if(Ae(e)>Ae(t)){return e}return t}function Ee(r){var e;var t=we.get(r)||new Set;var n=be.get(r)||new Set;var i=t.size>0?t:n.size>0?n:null;if(i){e=_e(i);if(!e.isConnected){i.delete(e);return Ee(r)}return e}return null}function Oe(r){for(var e=0,t=r||[];e<t.length;e++){var n=t[e];if(!n.isConnected){r.delete(n)}else{return n}}return null}function Me(r){if(typeof r.getRootNode==="function"){return r.getRootNode()}if(r.parentNode)return Me(r.parentNode);return r}function je(r){while(r){if(r instanceof HTMLElement&&r.popover==="auto"&&xe.get(r)==="showing"){return r}r=r instanceof Element&&r.assignedSlot||r.parentElement||Me(r);if(r instanceof de)r=r.host;if(r instanceof Document)return}}function Le(r){while(r){var e=r.popoverTargetElement;if(e instanceof HTMLElement)return e;r=r.parentElement||Me(r);if(r instanceof de)r=r.host;if(r instanceof Document)return}}function He(r,e){var t=new Map;var n=0;for(var i=0,o=e||[];i<o.length;i++){var a=o[i];t.set(a,n);n+=1}t.set(r,n);n+=1;var s=null;function u(e){if(!e)return;var n=false;var i=null;var o=null;while(!n){i=je(e)||null;if(i===null)return;if(!t.has(i))return;if(r.popover==="hint"||i.popover==="auto"){n=true}if(!n){e=i.parentElement}}o=t.get(i);if(s===null||t.get(s)<o){s=i}}u(r.parentElement||Me(r));return s}function Re(r){if(r.hidden||r instanceof de)return false;if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLSelectElement||r instanceof HTMLTextAreaElement||r instanceof HTMLOptGroupElement||r instanceof HTMLOptionElement||r instanceof HTMLFieldSetElement){if(r.disabled)return false}if(r instanceof HTMLInputElement&&r.type==="hidden"){return false}if(r instanceof HTMLAnchorElement&&r.href===""){return false}return typeof r.tabIndex==="number"&&r.tabIndex!==-1}function ze(r){if(r.shadowRoot&&r.shadowRoot.delegatesFocus!==true){return null}var e=r;if(e.shadowRoot){e=e.shadowRoot}var t=e.querySelector("[autofocus]");if(t){return t}else{var n=e.querySelectorAll("slot");for(var i=0,o=n;i<o.length;i++){var a=o[i];var s=a.assignedElements({flatten:true});for(var u=0,f=s;u<f.length;u++){var p=f[u];if(p.hasAttribute("autofocus")){return p}else{t=p.querySelector("[autofocus]");if(t){return t}}}}}var c=r.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);var v=c.currentNode;while(v){if(Re(v)){return v}v=c.nextNode()}}function De(r){var e;(e=ze(r))===null||e===void 0?void 0:e.focus()}var Ce=new WeakMap;function Fe(r){if(!Se(r,false)){return}var e=r.ownerDocument;if(!r.dispatchEvent(new ce("beforetoggle",{cancelable:true,oldState:"closed",newState:"open"}))){return}if(!Se(r,false)){return}var t=false;var n=r.popover;var i=null;var o=He(r,be.get(e)||new Set);var a=He(r,we.get(e)||new Set);if(n==="auto"){Pe(we.get(e)||new Set,t,true);var s=o||e;qe(s,t,true);i="auto"}if(n==="hint"){if(a){qe(a,t,true);i="hint"}else{Pe(we.get(e)||new Set,t,true);if(o){qe(o,t,true);i="auto"}else{i="hint"}}}if(n==="auto"||n==="hint"){if(n!==r.popover||!Se(r,false)){return}if(!Ee(e)){t=true}if(i==="auto"){if(!be.has(e)){be.set(e,new Set)}be.get(e).add(r)}else if(i==="hint"){if(!we.has(e)){we.set(e,new Set)}we.get(e).add(r)}}Ce.delete(r);var u=e.activeElement;r.classList.add(":popover-open");xe.set(r,"showing");if(!ge.has(e)){ge.set(e,new Set)}ge.get(e).add(r);Ke(ye.get(r),true);De(r);if(t&&u&&r.popover==="auto"){Ce.set(r,u)}le(r,"closed","open")}function We(r,e,t){var n,i;if(e===void 0){e=false}if(t===void 0){t=false}if(!Se(r,true)){return}var o=r.ownerDocument;if(["auto","hint"].includes(r.popover)){qe(r,e,t);if(!Se(r,true)){return}}var a=be.get(o)||new Set;var s=a.has(r)&&_e(a)===r;Ke(ye.get(r),false);ye.delete(r);if(t){r.dispatchEvent(new ce("beforetoggle",{oldState:"open",newState:"closed"}));if(s&&_e(a)!==r){qe(r,e,t)}if(!Se(r,true)){return}}(n=ge.get(o))===null||n===void 0?void 0:n.delete(r);a.delete(r);(i=we.get(o))===null||i===void 0?void 0:i.delete(r);r.classList.remove(":popover-open");xe.set(r,"hidden");if(t){le(r,"open","closed")}var u=Ce.get(r);if(u){Ce.delete(r);if(e){u.focus()}}}function Be(r,e,t){if(e===void 0){e=false}if(t===void 0){t=false}var n=Ee(r);while(n){We(n,e,t);n=Ee(r)}}function Pe(r,e,t){if(e===void 0){e=false}if(t===void 0){t=false}var n=Oe(r);while(n){We(n,e,t);n=Oe(r)}}function Ie(r,e,t,n){var i=false;var o=false;while(i||!o){o=true;var a=null;var s=false;for(var u=0,f=e;u<f.length;u++){var p=f[u];if(p===r){s=true}else if(s){a=p;break}}if(!a)return;while(me(a)==="showing"&&e.size){We(_e(e),t,n)}if(e.has(r)&&_e(e)!==r){i=true}if(i){n=false}}}function qe(r,e,t){var n,i;var o=r.ownerDocument||r;if(r instanceof Document){return Be(o,e,t)}if((n=we.get(o))===null||n===void 0?void 0:n.has(r)){Ie(r,we.get(o),e,t);return}Pe(we.get(o)||new Set,e,t);if(!((i=be.get(o))===null||i===void 0?void 0:i.has(r))){return}Ie(r,be.get(o),e,t)}var Ne=new WeakMap;function $e(r){if(!r.isTrusted)return;var e=r.composedPath()[0];if(!e)return;var t=e.ownerDocument;var n=Ee(t);if(!n)return;var i=Te(e);if(i&&r.type==="pointerdown"){Ne.set(t,i)}else if(r.type==="pointerup"){var o=Ne.get(t)===i;Ne.delete(t);if(o){qe(i||t,false,true)}}}var Ge=new WeakMap;function Ke(r,e){if(e===void 0){e=false}if(!r)return;if(!Ge.has(r)){Ge.set(r,r.getAttribute("aria-expanded"))}var t=r.popoverTargetElement;if(t instanceof HTMLElement&&t.popover==="auto"){r.setAttribute("aria-expanded",String(e))}else{var n=Ge.get(r);if(!n){r.removeAttribute("aria-expanded")}else{r.setAttribute("aria-expanded",n)}}}var Ve=globalThis.ShadowRoot||function(){};function Qe(){return typeof HTMLElement!=="undefined"&&typeof HTMLElement.prototype==="object"&&"popover"in HTMLElement.prototype}function Ye(r,e,t){var n=r[e];Object.defineProperty(r,e,{value:function(r){return n.call(this,t(r))}})}var Ze=/(^|[^\\]):popover-open\b/g;function Je(){return typeof globalThis.CSSLayerBlockRule==="function"}function Ue(){var r=Je();return"\n".concat(r?"@layer popover-polyfill {":"","\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n").concat(r?"}":"","\n")}var Xe=null;function rt(r){var e=Ue();if(Xe===null){try{Xe=new CSSStyleSheet;Xe.replaceSync(e)}catch(r){Xe=false}}if(Xe===false){var t=document.createElement("style");t.textContent=e;if(r instanceof Document){r.head.prepend(t)}else{r.prepend(t)}}else{r.adoptedStyleSheets=__spreadArray([Xe],r.adoptedStyleSheets,true)}}function et(){if(typeof window==="undefined")return;window.ToggleEvent=window.ToggleEvent||ce;function r(r){if(r===null||r===void 0?void 0:r.includes(":popover-open")){r=r.replace(Ze,"$1.\\:popover-open")}return r}Ye(Document.prototype,"querySelector",r);Ye(Document.prototype,"querySelectorAll",r);Ye(Element.prototype,"querySelector",r);Ye(Element.prototype,"querySelectorAll",r);Ye(Element.prototype,"matches",r);Ye(Element.prototype,"closest",r);Ye(DocumentFragment.prototype,"querySelectorAll",r);Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:true,configurable:true,get:function(){if(!this.hasAttribute("popover"))return null;var r=(this.getAttribute("popover")||"").toLowerCase();if(r===""||r=="auto")return"auto";if(r=="hint")return"hint";return"manual"},set:function(r){if(r===null){this.removeAttribute("popover")}else{this.setAttribute("popover",r)}}},showPopover:{enumerable:true,configurable:true,value:function(r){if(r===void 0){r={}}Fe(this)}},hidePopover:{enumerable:true,configurable:true,value:function(){We(this,true,true)}},togglePopover:{enumerable:true,configurable:true,value:function(r){if(r===void 0){r={}}if(typeof r==="boolean"){r={force:r}}if(xe.get(this)==="showing"&&r.force===void 0||r.force===false){We(this,true,true)}else if(r.force===void 0||r.force===true){Fe(this)}return xe.get(this)==="showing"}}});var e=Element.prototype.attachShadow;if(e){Object.defineProperties(Element.prototype,{attachShadow:{enumerable:true,configurable:true,writable:true,value:function(r){var t=e.call(this,r);rt(t);return t}}})}var t=HTMLElement.prototype.attachInternals;if(t){Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:true,configurable:true,writable:true,value:function(){var r=t.call(this);if(r.shadowRoot){rt(r.shadowRoot)}return r}}})}var n=new WeakMap;function i(r){Object.defineProperties(r.prototype,{popoverTargetElement:{enumerable:true,configurable:true,set:function(r){if(r===null){this.removeAttribute("popovertarget");n.delete(this)}else if(!(r instanceof Element)){throw new TypeError("popoverTargetElement must be an element or null")}else{this.setAttribute("popovertarget","");n.set(this,r)}},get:function(){if(this.localName!=="button"&&this.localName!=="input"){return null}if(this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"){return null}if(this.disabled){return null}if(this.form&&this.type==="submit"){return null}var r=n.get(this);if(r&&r.isConnected){return r}else if(r&&!r.isConnected){n.delete(this);return null}var e=Me(this);var t=this.getAttribute("popovertarget");if((e instanceof Document||e instanceof Ve)&&t){return e.getElementById(t)||null}return null}},popoverTargetAction:{enumerable:true,configurable:true,get:function(){var r=(this.getAttribute("popovertargetaction")||"").toLowerCase();if(r==="show"||r==="hide")return r;return"toggle"},set:function(r){this.setAttribute("popovertargetaction",r)}}})}i(HTMLButtonElement);i(HTMLInputElement);var o=function(r){var e=r.composedPath();var t=e[0];if(!(t instanceof Element)||(t===null||t===void 0?void 0:t.shadowRoot)){return}var n=Me(t);if(!(n instanceof Ve||n instanceof Document)){return}var i=e.find((function(r){var e;return(e=r.matches)===null||e===void 0?void 0:e.call(r,"[popovertargetaction],[popovertarget]")}));if(i){ke(i);r.preventDefault();return}};var a=function(r){var e=r.key;var t=r.target;if(!r.defaultPrevented&&t&&(e==="Escape"||e==="Esc")){qe(t.ownerDocument,true,true)}};var s=function(r){r.addEventListener("click",o);r.addEventListener("keydown",a);r.addEventListener("pointerdown",$e);r.addEventListener("pointerup",$e)};s(document);rt(document)}var tt=function(){return'@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}'};var nt=undefined&&undefined.__decorate||function(r,e,t,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)if(a=r[s])o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o;return i>3&&o&&Object.defineProperty(e,t,o),o};var it={"pop-in":pe};var ot=r("post_popovercontainer",function(){function r(r){e(this,r);this.postBeforeShow=t(this,"postBeforeShow");this.postShow=t(this,"postShow");this.postHide=t(this,"postHide");this.postBeforeToggle=t(this,"postBeforeToggle");this.postToggle=t(this,"postToggle");this.toggleTimeoutId=null;this.hasOpenedOnce=true;this.placement="top";this.edgeGap=8;this.arrow=false;this.animation="pop-in";this.currentAnimation=null;this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}r.prototype.mouseTrackingHandler=function(r){this.host.style.setProperty("--post-safe-space-cursor-x","".concat(r.clientX,"px"));this.host.style.setProperty("--post-safe-space-cursor-y","".concat(r.clientY,"px"))};r.prototype.connectedCallback=function(){if(!Qe()){et()}};r.prototype.componentDidLoad=function(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))};r.prototype.disconnectedCallback=function(){if(typeof this.clearAutoUpdate==="function"){this.clearAutoUpdate()}this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))};r.prototype.show=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.toggleTimeoutId||!r)return[2];this.eventTarget=r;this.calculatePosition();this.host.showPopover();return[2]}))}))};r.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(!this.toggleTimeoutId){this.eventTarget=null;this.host.hidePopover();this.postHide.emit()}return[2]}))}))};r.prototype.toggle=function(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){t=this.host.matches(":where(:popover-open, .popover-open)");n=e===true||e===undefined&&!t;if(n&&!r)return[2,t];this.eventTarget=r;if(!this.toggleTimeoutId){this.calculatePosition();this.host.togglePopover(e);this.toggleTimeoutId=null}return[2,this.host.matches(":where(:popover-open, .popover-open)")]}))}))};r.prototype.open=function(){var r;var e=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".popover-content");this.startAutoupdates();if(e){var t=it[this.animation];if(typeof t==="function"){this.runOpenAnimation(t,e)}else{this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:this.hasOpenedOnce});this.postToggle.emit({isOpen:true});this.postShow.emit({first:this.hasOpenedOnce});if(this.hasOpenedOnce)this.hasOpenedOnce=false}}if(this.safeSpace){globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}};r.prototype.close=function(){if(typeof this.clearAutoUpdate==="function"){this.clearAutoUpdate()}if(this.safeSpace){globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler)}if(this.currentAnimation){this.currentAnimation.cancel();this.currentAnimation=null}this.postBeforeToggle.emit({willOpen:false});this.postToggle.emit({isOpen:false});this.postHide.emit()};r.prototype.runOpenAnimation=function(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,3,4]);t=r(e);if(!t){this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:this.hasOpenedOnce});this.postToggle.emit({isOpen:true});this.postShow.emit({first:this.hasOpenedOnce});return[2]}this.currentAnimation=t;if(t.playState==="running"){this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:this.hasOpenedOnce})}return[4,t.finished];case 1:i.sent();this.postToggle.emit({isOpen:true});this.postShow.emit({first:this.hasOpenedOnce});this.hasOpenedOnce=true;return[3,4];case 2:n=i.sent();console.warn("Animation failed or was interrupted:",n);this.postBeforeToggle.emit({willOpen:false});this.postBeforeShow.emit({first:this.hasOpenedOnce});this.postToggle.emit({isOpen:false});return[3,4];case 3:if(this.currentAnimation===t){this.currentAnimation=null}return[7];case 4:return[2]}}))}))};r.prototype.handleToggle=function(r){var e=this;this.toggleTimeoutId=globalThis.setTimeout((function(){return e.toggleTimeoutId=null}),10);var t=r.newState==="open";if(t){this.open()}else{this.close()}};r.prototype.startAutoupdates=function(){if(!this.eventTarget||!this.host)return;this.clearAutoUpdate=Xr(this.eventTarget,this.host,this.calculatePosition.bind(this))};r.prototype.getHeaderHeight=function(){var r=document.querySelector("post-header");return r?Number.parseFloat(getComputedStyle(r).height):0};r.prototype.calculatePosition=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t,n,i,o,a,s,u,f,p,c;var v;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.computeMainPosition()];case 1:r=l.sent(),e=r.x,t=r.y,n=r.middlewareData,i=r.placement;o=i.split("-")[0];this.dynamicPlacement=o;this.host.style.left="".concat(e,"px");this.host.style.top="".concat(t,"px");if(this.arrow&&n.arrow){a=n.arrow,s=a.x,u=a.y;f=ot.STATIC_SIDES[o];p=this.arrowRef.offsetWidth;c=-.5*p;if(f){Object.assign(this.arrowRef.style,(v={left:s?"".concat(s,"px"):"",top:u?"".concat(u,"px"):""},v[f]="".concat(c,"px"),v))}}if(!(this.safeSpace&&this.eventTarget))return[3,3];return[4,this.updateSafeSpaceBoundaries(o)];case 2:l.sent();l.label=3;case 3:return[2]}}))}))};r.prototype.computeMainPosition=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t,n,i;var o;return __generator(this,(function(a){r=this.edgeGap;e=(this.placement||"top").includes("-");t=te({padding:this.getHeaderHeight(),crossAxis:false});n=ee({padding:r,limiter:ae({offset:32})});i=__spreadArray(__spreadArray([re((o=this.offset)!==null&&o!==void 0?o:this.arrow?r+4:r),oe()],e?[t,n]:[n,t],true),[ne({apply:function(e){var t=e.availableWidth,n=e.elements;Object.assign(n.floating.style,{maxWidth:"".concat(t-r*2,"px")})}})],false);if(this.arrow){i.push(ie({element:this.arrowRef,padding:r}))}return[2,se(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:i})]}))}))};r.prototype.updateSafeSpaceBoundaries=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,o;var a=this;return __generator(this,(function(s){e=this.eventTarget.getBoundingClientRect();t=this.host.getBoundingClientRect();n=r==="top"||r==="bottom";i=function(r,e,t){if(r==="top"||r==="bottom"){return{popover:{y:r==="top"?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:r==="top"?t.top:t.bottom,xStart:t.left,xEnd:t.right}}}else{return{popover:{x:r==="left"?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:r==="left"?t.left:t.right,yStart:t.top,yEnd:t.bottom}}}};o=i(r,t,e);ot.PROPERTIES_TO_CLEAR.forEach((function(r){a.host.style.removeProperty(r)}));if(n){this.host.style.setProperty("--post-safe-space-popover-y","".concat(o.popover.y,"px"));this.host.style.setProperty("--post-safe-space-popover-x-start","".concat(o.popover.xStart,"px"));this.host.style.setProperty("--post-safe-space-popover-x-end","".concat(o.popover.xEnd,"px"));this.host.style.setProperty("--post-safe-space-trigger-y","".concat(o.trigger.y,"px"));this.host.style.setProperty("--post-safe-space-trigger-x-start","".concat(o.trigger.xStart,"px"));this.host.style.setProperty("--post-safe-space-trigger-x-end","".concat(o.trigger.xEnd,"px"))}else{this.host.style.setProperty("--post-safe-space-popover-x","".concat(o.popover.x,"px"));this.host.style.setProperty("--post-safe-space-popover-y-start","".concat(o.popover.yStart,"px"));this.host.style.setProperty("--post-safe-space-popover-y-end","".concat(o.popover.yEnd,"px"));this.host.style.setProperty("--post-safe-space-trigger-x","".concat(o.trigger.x,"px"));this.host.style.setProperty("--post-safe-space-trigger-y-start","".concat(o.trigger.yStart,"px"));this.host.style.setProperty("--post-safe-space-trigger-y-end","".concat(o.trigger.yEnd,"px"))}return[2]}))}))};r.prototype.render=function(){var r=this;return n(i,{key:"be9f32a35f247f5b2cb54599b96e715ce1a5a1f1","data-version":a,popover:"auto"},n("div",{key:"ad2616c15dfec83e1e53ad14cb145aee2d625c9a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&n("span",{key:"293ba9d1ba2a7b57297cd4aa716ba1369b2f8988","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:function(e){r.arrowRef=e}}),n("span",{key:"7b9d47b53a4d4a672490eccdc88a7eb0552b5574",part:"post-popovercontainer-border-mask"}),n("slot",{key:"4b4249d6ebe1c247634bbb76b08ec01e73dc7d4b"})))};Object.defineProperty(r.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return r}());ot.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"};ot.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"];nt([s(u)],ot.prototype,"placement",void 0);nt([f("number")],ot.prototype,"edgeGap",void 0);nt([s(["triangle","trapezoid"])],ot.prototype,"safeSpace",void 0);ot.style=tt()}}}));
|
package/dist/swisspost-internet-header/{p-73d21f06.system.entry.js → p-dfcbf2ae.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var s,i,r,e,a,n,o,l;return{setters:[function(t){s=t.r;i=t.c;r=t.h;e=t.H;a=t.g},function(t){n=t.v},function(t){o=t.R},function(t){l=t.T},null],execute:function(){var f=function(){return":host{display:inline-block}.rating{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;-webkit-transition:all ease 100ms;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}"};var h=undefined&&undefined.__decorate||function(t,s,i,r){var e=arguments.length,a=e<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,i):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(t,s,i,r);else for(var o=t.length-1;o>=0;o--)if(n=t[o])a=(e<3?n(a):e>3?n(s,i,a):n(s,i))||a;return e>3&&a&&Object.defineProperty(s,i,a),a};var c=t("post_rating",function(){function t(t){s(this,t);this.postInput=i(this,"postInput");this.postChange=i(this,"postChange");this.hasChanged=false;this.stars=5;this.currentRating=0;this.readonly=false;this.keydownHandler=this.keydownHandler.bind(this);this.blurHandler=this.blurHandler.bind(this);this.hoverHandler=this.hoverHandler.bind(this)}t.prototype.update=function(t){if(this.readonly||t<0||t>this.stars)return;this.currentRating=this.currentRating!==t?t:0;this.postInput.emit({value:this.currentRating});this.hasChanged=true};t.prototype.keydownHandler=function(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault();this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault();this.update(this.currentRating+1);break;case"Home":t.preventDefault();this.update(0);break;case"End":t.preventDefault();this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}};t.prototype.blurHandler=function(){if(this.hasChanged){this.postChange.emit({value:this.currentRating});this.hasChanged=false}};t.prototype.hoverHandler=function(t,s){if(this.readonly)return;if(s.type==="mouseenter"){this.hoveredIndex=t}else if(s.type==="mouseleave"){this.hoveredIndex=undefined}};t.prototype.render=function(){var t=this;return r(e,{key:"c793abbf5e0d01bb19dc4464ebd75249959a1717","data-version":n},r("div",{key:"357946df40a3d3a85ece2d0ac6ecc761951d9471",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":"".concat(this.currentRating," / ").concat(this.stars),"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map((function(s,i){return r("div",{key:"star-".concat(s),"aria-hidden":"true",class:{star:true,"before-hover":i<t.hoveredIndex,active:i<Math.round(t.currentRating),hover:i===t.hoveredIndex,"after-active":i>t.hoveredIndex&&i<t.currentRating},onClick:function(){return t.update(i+1)},onMouseEnter:function(s){return t.hoverHandler(i,s)},onMouseLeave:function(s){return t.hoverHandler(i,s)}},r("post-icon",{name:"favoritestar",class:"stroke"}),r("post-icon",{name:"favoritestar-solid",class:"fill"}))}))))};Object.defineProperty(t.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());h([o(),l("string")],c.prototype,"label",void 0);h([o(),l("number")],c.prototype,"stars",void 0);h([o(),l("number")],c.prototype,"currentRating",void 0);c.style=f()}}}));
|
package/dist/swisspost-internet-header/{p-1b9a5275.system.entry.js → p-e0cebd00.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t,i){"use strict";var e,n,s,o,r,u,c;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){u=t.R},function(t){c=t.T},null],execute:function(){var h=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var f=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var a=["pointerenter","pointerleave","focusin","focusout"];var l;var v=t("post_tooltip_trigger",function(){function t(t){e(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{i.import("./p-DoVr7uzg.system.js").then((function(t){return t.f})).then((function(t){l!==null&&l!==void 0?l:l=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(l===null||l===void 0?void 0:l(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;a.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;a.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return n(s,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":r},n("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u(),c("string")],v.prototype,"for",void 0);v.style=h()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{a(n.next(t))}catch(t){o(t)}}function c(t){try{a(n["throw"](t))}catch(t){o(t)}}function a(t){t.done?i(t.value):s(t.value).then(r,c)}a((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=c(0),r["throw"]=c(1),r["return"]=c(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(t){return function(e){return a([t,e])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,c[0]&&(i=0)),i)try{if(n=1,s&&(o=c[0]&2?s["return"]:c[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;if(s=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:i.label++;return{value:c[1],done:false};case 5:i.label++;s=c[1];c=[0];continue;case 7:c=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1];o=c;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(c);break}if(o[2])i.ops.pop();i.trys.pop();continue}c=e.call(t,i)}catch(t){c=[6,t];s=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-DIiKaF8J.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,s,o,r,c,a,u;return{setters:[function(t){e=t.r;i=t.c;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){c=t.d},function(t){a=t.R},function(t){u=t.T},null],execute:function(){var f=function(){return":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"};var h=undefined&&undefined.__decorate||function(t,e,i,n){var s=arguments.length,o=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,n);else for(var c=t.length-1;c>=0;c--)if(r=t[c])o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o;return s>3&&o&&Object.defineProperty(e,i,o),o};var l=t("post_autocomplete",function(){function t(t){var n=this;e(this,t);this.postFilteringEvent=i(this,"postFilteringEvent");this.debouncedHandleInput=c((function(t){void n.handleInput(t)}),250);this.filterThreshold=0;this.clearable=false;this.inputValue="";this.handleFocus=function(){if(n.filterThreshold!==0)return;if(n.inputElement&&n.inputElement.value.trim()!=="")return;n.postFilteringEvent.emit("")};this.handleOnBlur=function(){n.inputElement.value=n.inputValue;n.listBoxElement.filter("");n.hideListBox()};this.handleInput=function(t){return __awaiter(n,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(s){switch(s.label){case 0:if(!this.listBoxElement)return[2];e=t.target.value.trim();i=e.length>=this.filterThreshold?e:"";n=this.postFilteringEvent.emit(i&&i.length>=this.filterThreshold?i:"").defaultPrevented;if(n)return[2];return[4,this.listBoxElement.filter(i)];case 1:s.sent();if(i){this.showListBox();this.announceCount()}else{this.inputValue="";this.clearAnnouncement()}return[2]}}))}))};this.handleKeyDown=function(t){var e=t.key,i=t.altKey;switch(e){case"ArrowDown":t.preventDefault();n.showListBox();if(!i){n.listBoxElement.navigate("down")}break;case"ArrowUp":t.preventDefault();n.listBoxElement.navigate("up");break;case"Enter":if(n.listBoxElement.hidden)return;t.preventDefault();n.listBoxElement.selectActive();n.hideListBox();break;case"Escape":n.hideListBox();break;case"Tab":n.listBoxElement.selectActive();n.hideListBox();break;case"Home":t.preventDefault();n.listBoxElement.navigate("first");break;case"End":t.preventDefault();n.listBoxElement.navigate("last");break}};this.handleOptionSelected=function(t){var e=t.detail;n.inputElement.value=e;n.inputValue=e;n.hideListBox()};this.handleOptionActive=function(t){var e=t.detail;if(e){n.inputElement.setAttribute("aria-activedescendant",e)}else{n.inputElement.removeAttribute("aria-activedescendant")}};this.hideListBox=function(){n.clearAnnouncement();n.listBoxElement.hide();n.inputElement.ariaExpanded="false";n.host.removeAttribute("open");n.inputElement.removeAttribute("aria-activedescendant")};this.showListBox=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.listBoxElement.show()];case 1:t.sent();this.inputElement.ariaExpanded="true";this.host.setAttribute("open","");this.announceCount();return[2]}}))}))};this.clearInput=function(){if(n.inputElement){n.inputElement.value="";n.inputValue="";n.listBoxElement.clearSelection();n.hideListBox()}}}Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.host.querySelector("input")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"listBoxElement",{get:function(){if(this.listbox){return document.getElementById(this.listbox)}else{return this.host.querySelector("post-listbox")}},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){var t;if(!this.inputElement)return;this.inputElement.role="combobox";this.inputElement.ariaAutoComplete="list";if(!this.listBoxElement)return;if(!this.listBoxElement.id)this.listBoxElement.id=crypto.randomUUID();this.inputElement.setAttribute("aria-controls",this.listBoxElement.id);this.inputElement.setAttribute("aria-expanded","false");var e=(t=this.inputElement.labels)===null||t===void 0?void 0:t[0];if(e){if(!e.id)e.id=crypto.randomUUID();this.listBoxElement.setAttribute("aria-labelledby",e.id)}this.inputElement.autocomplete="off";this.attachInputListeners();this.attachListboxListeners()};t.prototype.disconnectedCallback=function(){this.detachInputListeners();this.detachListboxListeners()};t.prototype.attachInputListeners=function(){if(this.inputElement){this.inputElement.addEventListener("input",this.debouncedHandleInput);this.inputElement.addEventListener("keydown",this.handleKeyDown);this.inputElement.addEventListener("blur",this.handleOnBlur);this.inputElement.addEventListener("click",this.showListBox);this.inputElement.addEventListener("focus",this.handleFocus)}};t.prototype.detachInputListeners=function(){if(this.inputElement){this.inputElement.removeEventListener("input",this.debouncedHandleInput);this.inputElement.removeEventListener("keydown",this.handleKeyDown);this.inputElement.removeEventListener("blur",this.handleOnBlur);this.inputElement.removeEventListener("click",this.showListBox);this.inputElement.removeEventListener("focus",this.handleFocus)}};t.prototype.attachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.detachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.clearAnnouncement=function(){if(this.outputElement)this.outputElement.textContent=""};t.prototype.announceCount=function(){if(!this.outputElement||!this.listBoxElement)return;var t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))};t.prototype.render=function(){var t=this;return n(s,{key:"ef5b821b235c6e6a19e9da612a7c3fbc33408e44","data-version":r},n("slot",{key:"a7855fd0e992be6c4fd737e9b7f29c77c1ec8e7f"}),this.clearable&&this.inputValue&&n("button",{key:"16a690d24deb1ac1cd50c85cea857ad3e5736fac",type:"button",class:"autocomplete-clear",onClick:this.clearInput},n("post-icon",{key:"f254bd331fb15ca6cb5a32ac2a5f5a25cb8e81ea","aria-hidden":"true",name:"closex"})),n("post-icon",{key:"87faa8280bb58683262ec40dbec383478c5999f5","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),n("output",{key:"9f8ad0d40d1e12f611f4f2e9e14058dbcca3892e",class:"visually-hidden",ref:function(e){return t.outputElement=e}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());h([a(),u("string")],l.prototype,"textAvailableSuggestions",void 0);l.style=f()}}}));
|
package/dist/swisspost-internet-header/{p-b94bcb65.system.entry.js → p-e83fb5f9.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-CDL0cxX6.system.js","./p-CDvD7acy.system.js","./p-Bwi1IyPf.system.js","./p-C6zfwDtv.system.js","./p-D4wq7hIE.system.js","./p-qZj3hjL-.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,o,s,r,n,a,c,d,u,l;return{setters:[function(t){i=t.r;e=t.h;o=t.H;s=t.g},function(t){r=t.v},function(t){n=t.t},function(t){a=t.n},function(t){c=t.c},function(t){d=t.R},function(t){u=t.U},function(t){l=t.T},null],execute:function(){var b=function(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap:nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:calc((16px + 2 * var(--post-device-spacing-padding-35) - var(--post-core-dimension-24))/2)}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var m=undefined&&undefined.__decorate||function(t,i,e,o){var s=arguments.length,r=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,e):o,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)if(n=t[a])r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r;return s>3&&r&&Object.defineProperty(i,e,r),r};var g=t("post_breadcrumbs",function(){function t(t){i(this,t);this.shouldRenderMenu=false}t.prototype.componentWillLoad=function(){this.id=this.host.id||"b".concat(a(6))};t.prototype.componentDidLoad=function(){this.createMutationObserver();this.createResizeObserver()};t.prototype.disconnectedCallback=function(){var t,i;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(i=this.resizeObserver)===null||i===void 0?void 0:i.disconnect()};t.prototype.createMutationObserver=function(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this));this.mutationObserver.observe(this.host,{childList:true,characterData:true,subtree:true});this.duplicateNavElement()};t.prototype.createResizeObserver=function(){this.resizeObserver=new ResizeObserver(n(50,this.checkOverflow.bind(this)));this.resizeObserver.observe(document.body)};t.prototype.duplicateNavElement=function(){var t=this;var i;var e=this.host.shadowRoot;var o=e===null||e===void 0?void 0:e.querySelector("nav");if(!e||!o)return;this.prepareBreadcrumbItemsForClone();var s=o.cloneNode(true);s.classList.add("invisible");(i=e.querySelector("nav.invisible"))===null||i===void 0?void 0:i.remove();e.append(s);requestAnimationFrame((function(){t.duplicateSlottedElements(s,"slot:not([name])");t.duplicateSlottedElements(s,'slot[name="selected"]');t.checkOverflow()}))};t.prototype.duplicateSlottedElements=function(t,i){var e;var o=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(i);var s=t.querySelector(i);if(!o||!s)return;o.assignedElements().forEach((function(t){s.insertAdjacentElement("beforebegin",t.cloneNode(true))}));s.remove()};t.prototype.checkOverflow=function(){var t=this;var i;var e=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("nav.invisible");if(!e)return;var o=Array.from(e.querySelectorAll("post-breadcrumb-item"));Promise.all(o.map((function(t){return c(t)}))).then((function(){t.shouldRenderMenu=e.scrollWidth>e.clientWidth;t.updateBreadcrumbItemProps()}))};t.prototype.prepareBreadcrumbItemsForClone=function(){this.shouldRenderMenu=false;this.updateBreadcrumbItemProps()};t.prototype.updateBreadcrumbItemProps=function(){var t=this;var i=this.host.querySelectorAll("post-breadcrumb-item");i.forEach((function(e,o){e.setAttribute("variant",t.shouldRenderMenu?"menuitem":"listitem");e.setAttribute("selected",String(o===i.length-1))}))};t.prototype.renderMenu=function(){var t="".concat(this.id,"-menu");return e("div",{role:"listitem"},e("div",{class:"breadcrumb-item"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"...")))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},e("slot",null)))};t.prototype.render=function(){return e(o,{key:"b6ac788d29127c030f4b1955c41a7d6e2ac8a346","data-version":r},e("nav",{key:"a7c081b3b4d991cdab30b2ca424c47b7231484cd","aria-label":this.textBreadcrumbs},e("div",{key:"c51606af26b874e66376afa2b7855b400368af85",role:"list"},e("div",{key:"88a33d5554b807252b1d89ef6ce3a611dd7e5014",class:"breadcrumb-item home",role:"listitem"},e("a",{key:"f0fdbff28d44944d18497bf1be12bd22a1281778",href:this.homeUrl},e("span",{key:"4d16bbe0565dfdd1764027db43cf4c61849f9159",class:"visually-hidden"},this.textHome),e("post-icon",{key:"86611c819469da07c965c29db3510843e685e449","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():e("slot",null),e("slot",{key:"cb4a22117596bc8f3f9df72e62564b48c1d88975",name:"selected"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());m([d(),u()],g.prototype,"homeUrl",void 0);m([d(),l("string")],g.prototype,"textHome",void 0);m([d(),l("string")],g.prototype,"textBreadcrumbs",void 0);m([d(),l("string")],g.prototype,"textMoreItems",void 0);g.style=b()}}}));
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-CDvD7acy.system.js","./p-Bwi1IyPf.system.js","./p-C6zfwDtv.system.js","./p-D4wq7hIE.system.js","./p-qZj3hjL-.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,o,s,r,n,a,c,d,u,l;return{setters:[function(t){i=t.r;e=t.h;o=t.H;s=t.g},function(t){r=t.v},function(t){n=t.t},function(t){a=t.n},function(t){c=t.c},function(t){d=t.R},function(t){u=t.U},function(t){l=t.T},null],execute:function(){var b=function(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap:nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:calc((16px + 2 * var(--post-device-spacing-padding-35) - var(--post-core-dimension-24))/2)}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var m=undefined&&undefined.__decorate||function(t,i,e,o){var s=arguments.length,r=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,e):o,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)if(n=t[a])r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r;return s>3&&r&&Object.defineProperty(i,e,r),r};var g=t("post_breadcrumbs",function(){function t(t){i(this,t);this.shouldRenderMenu=false}t.prototype.componentWillLoad=function(){this.id=this.host.id||"b".concat(a(6))};t.prototype.componentDidLoad=function(){this.createMutationObserver();this.createResizeObserver()};t.prototype.disconnectedCallback=function(){var t,i;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(i=this.resizeObserver)===null||i===void 0?void 0:i.disconnect()};t.prototype.createMutationObserver=function(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this));this.mutationObserver.observe(this.host,{childList:true,characterData:true,subtree:true});this.duplicateNavElement()};t.prototype.createResizeObserver=function(){this.resizeObserver=new ResizeObserver(n(50,this.checkOverflow.bind(this)));this.resizeObserver.observe(document.body)};t.prototype.duplicateNavElement=function(){var t=this;var i;var e=this.host.shadowRoot;var o=e===null||e===void 0?void 0:e.querySelector("nav");if(!e||!o)return;this.prepareBreadcrumbItemsForClone();var s=o.cloneNode(true);s.classList.add("invisible");(i=e.querySelector("nav.invisible"))===null||i===void 0?void 0:i.remove();e.append(s);requestAnimationFrame((function(){t.duplicateSlottedElements(s,"slot:not([name])");t.duplicateSlottedElements(s,'slot[name="selected"]');t.checkOverflow()}))};t.prototype.duplicateSlottedElements=function(t,i){var e;var o=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(i);var s=t.querySelector(i);if(!o||!s)return;o.assignedElements().forEach((function(t){s.insertAdjacentElement("beforebegin",t.cloneNode(true))}));s.remove()};t.prototype.checkOverflow=function(){var t=this;var i;var e=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("nav.invisible");if(!e)return;var o=Array.from(e.querySelectorAll("post-breadcrumb-item"));Promise.all(o.map((function(t){return c(t)}))).then((function(){t.shouldRenderMenu=e.scrollWidth>e.clientWidth;t.updateBreadcrumbItemProps()}))};t.prototype.prepareBreadcrumbItemsForClone=function(){this.shouldRenderMenu=false;this.updateBreadcrumbItemProps()};t.prototype.updateBreadcrumbItemProps=function(){var t=this;var i=this.host.querySelectorAll("post-breadcrumb-item");i.forEach((function(e,o){e.setAttribute("variant",t.shouldRenderMenu?"menuitem":"listitem");e.setAttribute("selected",String(o===i.length-1))}))};t.prototype.renderMenu=function(){var t="".concat(this.id,"-menu");return e("div",{role:"listitem"},e("div",{class:"breadcrumb-item"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"...")))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},e("slot",null)))};t.prototype.render=function(){return e(o,{key:"b6ac788d29127c030f4b1955c41a7d6e2ac8a346","data-version":r},e("nav",{key:"a7c081b3b4d991cdab30b2ca424c47b7231484cd","aria-label":this.textBreadcrumbs},e("div",{key:"c51606af26b874e66376afa2b7855b400368af85",role:"list"},e("div",{key:"88a33d5554b807252b1d89ef6ce3a611dd7e5014",class:"breadcrumb-item home",role:"listitem"},e("a",{key:"f0fdbff28d44944d18497bf1be12bd22a1281778",href:this.homeUrl},e("span",{key:"4d16bbe0565dfdd1764027db43cf4c61849f9159",class:"visually-hidden"},this.textHome),e("post-icon",{key:"86611c819469da07c965c29db3510843e685e449","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():e("slot",null),e("slot",{key:"cb4a22117596bc8f3f9df72e62564b48c1d88975",name:"selected"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());m([d(),u()],g.prototype,"homeUrl",void 0);m([d(),l("string")],g.prototype,"textHome",void 0);m([d(),l("string")],g.prototype,"textBreadcrumbs",void 0);m([d(),l("string")],g.prototype,"textMoreItems",void 0);g.style=b()}}}));
|