@nanoporetech-digital/components 7.6.0 → 7.7.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/{algolia-data-0447757c.js → algolia-data-ca9cd58e.js} +2 -2
- package/dist/cjs/{algolia-data-0447757c.js.map → algolia-data-ca9cd58e.js.map} +1 -1
- package/dist/cjs/app-globals-3e14cb71.js +41 -0
- package/dist/cjs/app-globals-3e14cb71.js.map +1 -0
- package/dist/cjs/{component-store-6a330cd1.js → component-store-b8d4bd91.js} +2 -2
- package/dist/cjs/{component-store-6a330cd1.js.map → component-store-b8d4bd91.js.map} +1 -1
- package/dist/cjs/{dom-756fcdac.js → dom-b99a1aec.js} +2 -2
- package/dist/cjs/{dom-756fcdac.js.map → dom-b99a1aec.js.map} +1 -1
- package/dist/cjs/{fade-2dd9dd8b.js → fade-6a5004f4.js} +4 -3
- package/dist/cjs/fade-6a5004f4.js.map +1 -0
- package/dist/cjs/form-control-5bb39cc2.js +82 -0
- package/dist/cjs/form-control-5bb39cc2.js.map +1 -0
- package/dist/cjs/{fullscreen-5d0422de.js → fullscreen-f5db9bbe.js} +4 -3
- package/dist/cjs/fullscreen-f5db9bbe.js.map +1 -0
- package/dist/cjs/{index-b6fa04fa.js → index-615cdb64.js} +4 -2
- package/dist/cjs/index-615cdb64.js.map +1 -0
- package/dist/cjs/{index-7795a8f6.js → index-a92a0379.js} +2 -2
- package/dist/cjs/{index-7795a8f6.js.map → index-a92a0379.js.map} +1 -1
- package/dist/cjs/index.cjs.js +19 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{lazyload-f181cb37.js → lazyload-13d72e60.js} +4 -3
- package/dist/cjs/lazyload-13d72e60.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/nano-accordion.cjs.entry.js +8 -6
- package/dist/cjs/nano-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-alert.cjs.entry.js +12 -11
- package/dist/cjs/nano-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +7 -5
- package/dist/cjs/nano-algolia-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-algolia-pagination.cjs.entry.js +4 -4
- package/dist/cjs/nano-algolia-results.cjs.entry.js +6 -4
- package/dist/cjs/nano-algolia-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-algolia.cjs.entry.js +14 -11
- package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-animation.cjs.entry.js +3 -2
- package/dist/cjs/nano-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-checkbox-group.cjs.entry.js +6 -4
- package/dist/cjs/nano-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-checkbox.cjs.entry.js +6 -5
- package/dist/cjs/nano-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-components.cjs.js +6 -3
- package/dist/cjs/nano-components.cjs.js.map +1 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js +30 -28
- package/dist/cjs/nano-datalist_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-date-input.cjs.entry.js +7 -6
- package/dist/cjs/nano-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-date-picker.cjs.entry.js +16 -15
- package/dist/cjs/nano-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-details.cjs.entry.js +7 -6
- package/dist/cjs/nano-details.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-dialog.cjs.entry.js +7 -6
- package/dist/cjs/nano-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-drawer.cjs.entry.js +9 -8
- package/dist/cjs/nano-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-dropdown.cjs.entry.js +9 -7
- package/dist/cjs/nano-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-field-validator.cjs.entry.js +17 -15
- package/dist/cjs/nano-field-validator.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-file-upload.cjs.entry.js +12 -11
- package/dist/cjs/nano-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +30 -27
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +68 -66
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +10 -6
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/nano-grid_2.cjs.entry.js +6 -5
- package/dist/cjs/nano-grid_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-hero.cjs.entry.js +11 -10
- package/dist/cjs/nano-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +6 -5
- package/dist/cjs/nano-icon-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon.cjs.entry.js +5 -3
- package/dist/cjs/nano-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-input.cjs.entry.js +9 -7
- package/dist/cjs/nano-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +3 -2
- package/dist/cjs/nano-intersection-observe.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +10 -8
- package/dist/cjs/nano-menu-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-more-less.cjs.entry.js +5 -4
- package/dist/cjs/nano-more-less.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-overflow-nav.cjs.entry.js +7 -6
- package/dist/cjs/nano-overflow-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-progress-bar.cjs.entry.js +7 -4
- package/dist/cjs/nano-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-range.cjs.entry.js +9 -7
- package/dist/cjs/nano-range.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-rating.cjs.entry.js +10 -9
- package/dist/cjs/nano-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js +7 -6
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-slide.cjs.entry.js +3 -2
- package/dist/cjs/nano-slide.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-slides-612634dc.js → nano-slides-0a60315d.js} +15 -13
- package/dist/cjs/nano-slides-0a60315d.js.map +1 -0
- package/dist/cjs/nano-slides.cjs.entry.js +3 -2
- package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +3 -2
- package/dist/cjs/nano-sortable.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-spinner.cjs.entry.js +3 -2
- package/dist/cjs/nano-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-split-pane.cjs.entry.js +3 -2
- package/dist/cjs/nano-split-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sticker.cjs.entry.js +6 -5
- package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-content.cjs.entry.js +5 -3
- package/dist/cjs/nano-tab-content.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +16 -14
- package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js +4 -3
- package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-99d6a3cc.js → nano-table-806fa39d.js} +42 -40
- package/dist/cjs/nano-table-806fa39d.js.map +1 -0
- package/dist/cjs/nano-table.cjs.entry.js +4 -3
- package/dist/cjs/nano-table.cjs.entry.js.map +1 -1
- package/dist/cjs/{page-dots-99dd88f6.js → page-dots-ecdd64d1.js} +4 -3
- package/dist/cjs/page-dots-ecdd64d1.js.map +1 -0
- package/dist/cjs/renderer-cd8b6098.js +63 -0
- package/dist/cjs/renderer-cd8b6098.js.map +1 -0
- package/dist/cjs/{scroll-772f7d0d.js → scroll-a3e5c6c6.js} +2 -2
- package/dist/cjs/{scroll-772f7d0d.js.map → scroll-a3e5c6c6.js.map} +1 -1
- package/dist/cjs/{table.worker-263468df.js → table.worker-fb31c8b7.js} +5 -4
- package/dist/cjs/table.worker-fb31c8b7.js.map +1 -0
- package/dist/collection/components/accordion/accordion.js +7 -5
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/alert/alert.helpers.js +3 -2
- package/dist/collection/components/alert/alert.helpers.js.map +1 -1
- package/dist/collection/components/alert/alert.js +8 -7
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/algolia/algolia-filter.js +5 -3
- package/dist/collection/components/algolia/algolia-filter.js.map +1 -1
- package/dist/collection/components/algolia/algolia-pagination.js +2 -2
- package/dist/collection/components/algolia/algolia-results.js +5 -3
- package/dist/collection/components/algolia/algolia-results.js.map +1 -1
- package/dist/collection/components/algolia/algolia.js +11 -8
- package/dist/collection/components/algolia/algolia.js.map +1 -1
- package/dist/collection/components/animation/animation.js +3 -2
- package/dist/collection/components/animation/animation.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox-group.js +6 -4
- package/dist/collection/components/checkbox/checkbox-group.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.js +6 -5
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/datalist/datalist.css +1 -1
- package/dist/collection/components/datalist/datalist.js +14 -13
- package/dist/collection/components/datalist/datalist.js.map +1 -1
- package/dist/collection/components/date-input/date-input.css +3 -3
- package/dist/collection/components/date-input/date-input.js +6 -5
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.css +3 -3
- package/dist/collection/components/date-picker/date-picker.js +5 -4
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/duet-date-picker/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker/duet-date-picker/date-picker-day.js.map +1 -1
- package/dist/collection/components/date-picker/duet-date-picker/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker/duet-date-picker/date-picker-month.js.map +1 -1
- package/dist/collection/components/details/details.css +1 -1
- package/dist/collection/components/details/details.js +6 -5
- package/dist/collection/components/details/details.js.map +1 -1
- package/dist/collection/components/dialog/dialog.helpers.js +2 -1
- package/dist/collection/components/dialog/dialog.helpers.js.map +1 -1
- package/dist/collection/components/dialog/dialog.js +4 -3
- package/dist/collection/components/dialog/dialog.js.map +1 -1
- package/dist/collection/components/drawer/drawer.css +1 -1
- package/dist/collection/components/drawer/drawer.js +5 -4
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +8 -6
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/field-validator/field-validator.js +16 -14
- package/dist/collection/components/field-validator/field-validator.js.map +1 -1
- package/dist/collection/components/file-upload/file-upload.css +1 -1
- package/dist/collection/components/file-upload/file-upload.js +3 -2
- package/dist/collection/components/file-upload/file-upload.js.map +1 -1
- package/dist/collection/components/form-control/form-control.js +1 -1
- package/dist/collection/components/form-control/form-control.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav-user-profile.js +3 -2
- package/dist/collection/components/global-nav/global-nav-user-profile.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav.js +50 -48
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/global-nav/style/global-nav.css +33 -33
- package/dist/collection/components/global-search-results/global-search-results.css +11 -11
- package/dist/collection/components/global-search-results/global-search-results.js +9 -5
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/grid/grid-item.js +1 -1
- package/dist/collection/components/grid/grid.js +3 -2
- package/dist/collection/components/grid/grid.js.map +1 -1
- package/dist/collection/components/hero/hero.css +2 -2
- package/dist/collection/components/hero/hero.js +6 -5
- package/dist/collection/components/hero/hero.js.map +1 -1
- package/dist/collection/components/icon/icon.js +4 -2
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.js +2 -2
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/img/img.js +5 -4
- package/dist/collection/components/img/img.js.map +1 -1
- package/dist/collection/components/input/input.js +7 -5
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/intersection-observe/intersection-observe.js +3 -2
- package/dist/collection/components/intersection-observe/intersection-observe.js.map +1 -1
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +12 -10
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu-drawer/menu-drawer.css +3 -3
- package/dist/collection/components/menu-drawer/menu-drawer.js +8 -6
- package/dist/collection/components/menu-drawer/menu-drawer.js.map +1 -1
- package/dist/collection/components/more-less/more-less.js +4 -3
- package/dist/collection/components/more-less/more-less.js.map +1 -1
- package/dist/collection/components/nav-item/nav-item.css +12 -12
- package/dist/collection/components/nav-item/nav-item.js +11 -9
- package/dist/collection/components/nav-item/nav-item.js.map +1 -1
- package/dist/collection/components/option/option.css +2 -2
- package/dist/collection/components/option/option.js +4 -3
- package/dist/collection/components/option/option.js.map +1 -1
- package/dist/collection/components/overflow-nav/overflow-nav.css +4 -4
- package/dist/collection/components/overflow-nav/overflow-nav.js +5 -4
- package/dist/collection/components/overflow-nav/overflow-nav.js.map +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +7 -4
- package/dist/collection/components/progress-bar/progress-bar.js.map +1 -1
- package/dist/collection/components/range/range.js +3 -1
- package/dist/collection/components/range/range.js.map +1 -1
- package/dist/collection/components/rating/rating.css +1 -1
- package/dist/collection/components/rating/rating.js +6 -5
- package/dist/collection/components/rating/rating.js.map +1 -1
- package/dist/collection/components/resize-observe/resize-observe.js +3 -2
- package/dist/collection/components/resize-observe/resize-observe.js.map +1 -1
- package/dist/collection/components/select/select.css +1 -5
- package/dist/collection/components/select/select.js +9 -7
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/skeleton/skeleton.js +4 -3
- package/dist/collection/components/skeleton/skeleton.js.map +1 -1
- package/dist/collection/components/slides/slide.js +3 -2
- package/dist/collection/components/slides/slide.js.map +1 -1
- package/dist/collection/components/slides/slides.js +10 -8
- package/dist/collection/components/slides/slides.js.map +1 -1
- package/dist/collection/components/sortable/sortable.js +3 -2
- package/dist/collection/components/sortable/sortable.js.map +1 -1
- package/dist/collection/components/spinner/spinner.js +3 -2
- package/dist/collection/components/spinner/spinner.js.map +1 -1
- package/dist/collection/components/split-pane/split-pane.js +3 -2
- package/dist/collection/components/split-pane/split-pane.js.map +1 -1
- package/dist/collection/components/sticker/sticker.js +5 -4
- package/dist/collection/components/sticker/sticker.js.map +1 -1
- package/dist/collection/components/table/table.cell.js +3 -1
- package/dist/collection/components/table/table.cell.js.map +1 -1
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.header.js +2 -1
- package/dist/collection/components/table/table.header.js.map +1 -1
- package/dist/collection/components/table/table.js +9 -8
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/table.row.js +1 -1
- package/dist/collection/components/table/table.row.js.map +1 -1
- package/dist/collection/components/tabs/tab-content.js +5 -3
- package/dist/collection/components/tabs/tab-content.js.map +1 -1
- package/dist/collection/components/tabs/tab-group.css +3 -3
- package/dist/collection/components/tabs/tab-group.js +12 -10
- package/dist/collection/components/tabs/tab-group.js.map +1 -1
- package/dist/collection/components/tabs/tab.js +4 -3
- package/dist/collection/components/tabs/tab.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -3
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/global/script/global.js +28 -23
- package/dist/collection/global/script/global.js.map +1 -1
- package/dist/collection/index.js +17 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/renderer.js +54 -0
- package/dist/collection/utils/renderer.js.map +1 -0
- package/dist/components/algolia.js +11 -8
- package/dist/components/algolia.js.map +1 -1
- package/dist/components/datalist.js +19 -30
- package/dist/components/datalist.js.map +1 -1
- package/dist/components/date-picker.js +6 -5
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dropdown.js +9 -7
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/form-control.js +1 -1
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/global-nav-user-profile.js +3 -2
- package/dist/components/global-nav-user-profile.js.map +1 -1
- package/dist/components/grid.js +2 -1
- package/dist/components/grid.js.map +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/icon.js +4 -2
- package/dist/components/icon.js.map +1 -1
- package/dist/components/img.js +5 -4
- package/dist/components/img.js.map +1 -1
- package/dist/components/index.js +48 -31
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.js +7 -5
- package/dist/components/input.js.map +1 -1
- package/dist/components/menu.js +13 -11
- package/dist/components/menu.js.map +1 -1
- package/dist/components/nano-accordion.js +7 -5
- package/dist/components/nano-accordion.js.map +1 -1
- package/dist/components/nano-alert.js +8 -7
- package/dist/components/nano-alert.js.map +1 -1
- package/dist/components/nano-algolia-filter.js +5 -3
- package/dist/components/nano-algolia-filter.js.map +1 -1
- package/dist/components/nano-algolia-pagination.js +2 -2
- package/dist/components/nano-algolia-results.js +5 -3
- package/dist/components/nano-algolia-results.js.map +1 -1
- package/dist/components/nano-animation.js +3 -2
- package/dist/components/nano-animation.js.map +1 -1
- package/dist/components/nano-checkbox-group.js +6 -4
- package/dist/components/nano-checkbox-group.js.map +1 -1
- package/dist/components/nano-checkbox.js +6 -5
- package/dist/components/nano-checkbox.js.map +1 -1
- package/dist/components/nano-date-input.js +7 -6
- package/dist/components/nano-date-input.js.map +1 -1
- package/dist/components/nano-details.js +7 -6
- package/dist/components/nano-details.js.map +1 -1
- package/dist/components/nano-dialog.js +4 -3
- package/dist/components/nano-dialog.js.map +1 -1
- package/dist/components/nano-drawer.js +6 -5
- package/dist/components/nano-drawer.js.map +1 -1
- package/dist/components/nano-field-validator.js +16 -14
- package/dist/components/nano-field-validator.js.map +1 -1
- package/dist/components/nano-file-upload.js +4 -3
- package/dist/components/nano-file-upload.js.map +1 -1
- package/dist/components/nano-global-nav.js +51 -49
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-global-search-results.js +10 -6
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/components/nano-grid-item.js +1 -1
- package/dist/components/nano-hero.js +7 -6
- package/dist/components/nano-hero.js.map +1 -1
- package/dist/components/nano-intersection-observe.js +3 -2
- package/dist/components/nano-intersection-observe.js.map +1 -1
- package/dist/components/nano-menu-drawer.js +9 -7
- package/dist/components/nano-menu-drawer.js.map +1 -1
- package/dist/components/nano-more-less.js +4 -3
- package/dist/components/nano-more-less.js.map +1 -1
- package/dist/components/nano-overflow-nav.js +6 -5
- package/dist/components/nano-overflow-nav.js.map +1 -1
- package/dist/components/nano-range.js +3 -1
- package/dist/components/nano-range.js.map +1 -1
- package/dist/components/nano-rating.js +7 -6
- package/dist/components/nano-rating.js.map +1 -1
- package/dist/components/nano-slide.js +3 -2
- package/dist/components/nano-slide.js.map +1 -1
- package/dist/components/nano-slides.js +10 -8
- package/dist/components/nano-slides.js.map +1 -1
- package/dist/components/nano-sortable.js +3 -2
- package/dist/components/nano-sortable.js.map +1 -1
- package/dist/components/nano-split-pane.js +3 -2
- package/dist/components/nano-split-pane.js.map +1 -1
- package/dist/components/nano-tab-content.js +5 -3
- package/dist/components/nano-tab-content.js.map +1 -1
- package/dist/components/nano-tab-group.js +13 -11
- package/dist/components/nano-tab-group.js.map +1 -1
- package/dist/components/nano-tab.js +4 -3
- package/dist/components/nano-tab.js.map +1 -1
- package/dist/components/nano-table.js +38 -36
- package/dist/components/nano-table.js.map +1 -1
- package/dist/components/nav-item.js +12 -10
- package/dist/components/nav-item.js.map +1 -1
- package/dist/components/option.js +5 -4
- package/dist/components/option.js.map +1 -1
- package/dist/components/progress-bar.js +7 -4
- package/dist/components/progress-bar.js.map +1 -1
- package/dist/components/renderer.js +58 -0
- package/dist/components/renderer.js.map +1 -0
- package/dist/components/resize-observe.js +3 -2
- package/dist/components/resize-observe.js.map +1 -1
- package/dist/components/select.js +10 -8
- package/dist/components/select.js.map +1 -1
- package/dist/components/skeleton.js +4 -3
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/spinner.js +3 -2
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/sticker.js +5 -4
- package/dist/components/sticker.js.map +1 -1
- package/dist/components/tooltip.js +4 -3
- package/dist/components/tooltip.js.map +1 -1
- package/dist/esm/{algolia-data-8fc24341.js → algolia-data-f0f72f1d.js} +2 -2
- package/dist/esm/{algolia-data-8fc24341.js.map → algolia-data-f0f72f1d.js.map} +1 -1
- package/dist/esm/app-globals-f0120bbe.js +39 -0
- package/dist/esm/app-globals-f0120bbe.js.map +1 -0
- package/dist/esm/{component-store-b798181b.js → component-store-199a9fd8.js} +2 -2
- package/dist/esm/{component-store-b798181b.js.map → component-store-199a9fd8.js.map} +1 -1
- package/dist/esm/{dom-d7f9f24c.js → dom-fafdec9a.js} +2 -2
- package/dist/esm/{dom-d7f9f24c.js.map → dom-fafdec9a.js.map} +1 -1
- package/dist/esm/{fade-4ff5d9de.js → fade-ce1a4958.js} +4 -3
- package/dist/esm/fade-ce1a4958.js.map +1 -0
- package/dist/esm/{form-control-812999d0.js → form-control-f48fa873.js} +2 -2
- package/dist/esm/form-control-f48fa873.js.map +1 -0
- package/dist/esm/{fullscreen-382d7890.js → fullscreen-52d62028.js} +4 -3
- package/dist/esm/fullscreen-52d62028.js.map +1 -0
- package/dist/esm/{index-3118109b.js → index-6cc72cd9.js} +3 -3
- package/dist/esm/index-6cc72cd9.js.map +1 -0
- package/dist/esm/{index-d7a4a150.js → index-f5f7b950.js} +2 -2
- package/dist/esm/{index-d7a4a150.js.map → index-f5f7b950.js.map} +1 -1
- package/dist/esm/index.js +19 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{lazyload-49b745e4.js → lazyload-8ff69ba4.js} +4 -3
- package/dist/esm/lazyload-8ff69ba4.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/nano-accordion.entry.js +8 -6
- package/dist/esm/nano-accordion.entry.js.map +1 -1
- package/dist/esm/nano-alert.entry.js +10 -9
- package/dist/esm/nano-alert.entry.js.map +1 -1
- package/dist/esm/nano-algolia-filter.entry.js +7 -5
- package/dist/esm/nano-algolia-filter.entry.js.map +1 -1
- package/dist/esm/nano-algolia-pagination.entry.js +4 -4
- package/dist/esm/nano-algolia-results.entry.js +6 -4
- package/dist/esm/nano-algolia-results.entry.js.map +1 -1
- package/dist/esm/nano-algolia.entry.js +14 -11
- package/dist/esm/nano-algolia.entry.js.map +1 -1
- package/dist/esm/nano-animation.entry.js +3 -2
- package/dist/esm/nano-animation.entry.js.map +1 -1
- package/dist/esm/nano-checkbox-group.entry.js +6 -4
- package/dist/esm/nano-checkbox-group.entry.js.map +1 -1
- package/dist/esm/nano-checkbox.entry.js +6 -5
- package/dist/esm/nano-checkbox.entry.js.map +1 -1
- package/dist/esm/nano-components.js +7 -4
- package/dist/esm/nano-components.js.map +1 -1
- package/dist/esm/nano-datalist_3.entry.js +30 -28
- package/dist/esm/nano-datalist_3.entry.js.map +1 -1
- package/dist/esm/nano-date-input.entry.js +7 -6
- package/dist/esm/nano-date-input.entry.js.map +1 -1
- package/dist/esm/nano-date-picker.entry.js +6 -5
- package/dist/esm/nano-date-picker.entry.js.map +1 -1
- package/dist/esm/nano-details.entry.js +7 -6
- package/dist/esm/nano-details.entry.js.map +1 -1
- package/dist/esm/nano-dialog.entry.js +7 -6
- package/dist/esm/nano-dialog.entry.js.map +1 -1
- package/dist/esm/nano-drawer.entry.js +9 -8
- package/dist/esm/nano-drawer.entry.js.map +1 -1
- package/dist/esm/nano-dropdown.entry.js +9 -7
- package/dist/esm/nano-dropdown.entry.js.map +1 -1
- package/dist/esm/nano-field-validator.entry.js +17 -15
- package/dist/esm/nano-field-validator.entry.js.map +1 -1
- package/dist/esm/nano-file-upload.entry.js +4 -3
- package/dist/esm/nano-file-upload.entry.js.map +1 -1
- package/dist/esm/nano-global-nav-user-profile_3.entry.js +23 -20
- package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js +52 -50
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +10 -6
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm/nano-grid-item.entry.js +2 -2
- package/dist/esm/nano-grid_2.entry.js +6 -5
- package/dist/esm/nano-grid_2.entry.js.map +1 -1
- package/dist/esm/nano-hero.entry.js +7 -6
- package/dist/esm/nano-hero.entry.js.map +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +6 -5
- package/dist/esm/nano-icon-button_2.entry.js.map +1 -1
- package/dist/esm/nano-icon.entry.js +4 -2
- package/dist/esm/nano-icon.entry.js.map +1 -1
- package/dist/esm/nano-input.entry.js +9 -7
- package/dist/esm/nano-input.entry.js.map +1 -1
- package/dist/esm/nano-intersection-observe.entry.js +3 -2
- package/dist/esm/nano-intersection-observe.entry.js.map +1 -1
- package/dist/esm/nano-menu-drawer.entry.js +10 -8
- package/dist/esm/nano-menu-drawer.entry.js.map +1 -1
- package/dist/esm/nano-more-less.entry.js +4 -3
- package/dist/esm/nano-more-less.entry.js.map +1 -1
- package/dist/esm/nano-overflow-nav.entry.js +7 -6
- package/dist/esm/nano-overflow-nav.entry.js.map +1 -1
- package/dist/esm/nano-progress-bar.entry.js +7 -4
- package/dist/esm/nano-progress-bar.entry.js.map +1 -1
- package/dist/esm/nano-range.entry.js +3 -1
- package/dist/esm/nano-range.entry.js.map +1 -1
- package/dist/esm/nano-rating.entry.js +7 -6
- package/dist/esm/nano-rating.entry.js.map +1 -1
- package/dist/esm/nano-resize-observe_2.entry.js +5 -4
- package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
- package/dist/esm/nano-slide.entry.js +3 -2
- package/dist/esm/nano-slide.entry.js.map +1 -1
- package/dist/esm/{nano-slides-c3eb1afe.js → nano-slides-2715825b.js} +15 -13
- package/dist/esm/nano-slides-2715825b.js.map +1 -0
- package/dist/esm/nano-slides.entry.js +3 -2
- package/dist/esm/nano-slides.entry.js.map +1 -1
- package/dist/esm/nano-sortable.entry.js +3 -2
- package/dist/esm/nano-sortable.entry.js.map +1 -1
- package/dist/esm/nano-spinner.entry.js +3 -2
- package/dist/esm/nano-spinner.entry.js.map +1 -1
- package/dist/esm/nano-split-pane.entry.js +3 -2
- package/dist/esm/nano-split-pane.entry.js.map +1 -1
- package/dist/esm/nano-sticker.entry.js +6 -5
- package/dist/esm/nano-sticker.entry.js.map +1 -1
- package/dist/esm/nano-tab-content.entry.js +5 -3
- package/dist/esm/nano-tab-content.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +16 -14
- package/dist/esm/nano-tab-group.entry.js.map +1 -1
- package/dist/esm/nano-tab.entry.js +4 -3
- package/dist/esm/nano-tab.entry.js.map +1 -1
- package/dist/esm/{nano-table-d15f6782.js → nano-table-67d7190b.js} +42 -40
- package/dist/esm/nano-table-67d7190b.js.map +1 -0
- package/dist/esm/nano-table.entry.js +4 -3
- package/dist/esm/nano-table.entry.js.map +1 -1
- package/dist/esm/{page-dots-986d3b32.js → page-dots-5b23db8c.js} +4 -3
- package/dist/esm/page-dots-5b23db8c.js.map +1 -0
- package/dist/esm/renderer-4bc3e2dc.js +58 -0
- package/dist/esm/renderer-4bc3e2dc.js.map +1 -0
- package/dist/esm/{scroll-f373a189.js → scroll-1afc6a4e.js} +2 -2
- package/dist/esm/{scroll-f373a189.js.map → scroll-1afc6a4e.js.map} +1 -1
- package/dist/esm/{table.worker-b7ee4edc.js → table.worker-d636a71f.js} +5 -4
- package/dist/esm/table.worker-d636a71f.js.map +1 -0
- package/dist/nano-components/{algolia-data-8fc24341.js → algolia-data-f0f72f1d.js} +2 -2
- package/dist/nano-components/app-globals-f0120bbe.js +5 -0
- package/dist/nano-components/app-globals-f0120bbe.js.map +1 -0
- package/dist/nano-components/{component-store-b798181b.js → component-store-199a9fd8.js} +2 -2
- package/dist/nano-components/{dom-d7f9f24c.js → dom-fafdec9a.js} +2 -2
- package/dist/nano-components/fade-ce1a4958.js +5 -0
- package/dist/nano-components/{fade-4ff5d9de.js.map → fade-ce1a4958.js.map} +1 -1
- package/dist/nano-components/form-control-f48fa873.js +5 -0
- package/dist/nano-components/form-control-f48fa873.js.map +1 -0
- package/dist/nano-components/fullscreen-52d62028.js +5 -0
- package/dist/nano-components/{fullscreen-382d7890.js.map → fullscreen-52d62028.js.map} +1 -1
- package/dist/nano-components/{index-3118109b.js → index-6cc72cd9.js} +3 -3
- package/dist/nano-components/index-6cc72cd9.js.map +1 -0
- package/dist/nano-components/{index-d7a4a150.js → index-f5f7b950.js} +2 -2
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/index.esm.js.map +1 -1
- package/dist/nano-components/lazyload-8ff69ba4.js +5 -0
- package/dist/nano-components/{lazyload-49b745e4.js.map → lazyload-8ff69ba4.js.map} +1 -1
- package/dist/nano-components/nano-accordion.entry.js +1 -1
- package/dist/nano-components/nano-accordion.entry.js.map +1 -1
- package/dist/nano-components/nano-alert.entry.js +1 -1
- package/dist/nano-components/nano-alert.entry.js.map +1 -1
- package/dist/nano-components/nano-algolia-filter.entry.js +1 -1
- package/dist/nano-components/nano-algolia-filter.entry.js.map +1 -1
- package/dist/nano-components/nano-algolia-pagination.entry.js +1 -1
- package/dist/nano-components/nano-algolia-results.entry.js +1 -1
- package/dist/nano-components/nano-algolia-results.entry.js.map +1 -1
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js.map +1 -1
- package/dist/nano-components/nano-animation.entry.js +1 -1
- package/dist/nano-components/nano-animation.entry.js.map +1 -1
- package/dist/nano-components/nano-checkbox-group.entry.js +1 -1
- package/dist/nano-components/nano-checkbox-group.entry.js.map +1 -1
- package/dist/nano-components/nano-checkbox.entry.js +1 -1
- package/dist/nano-components/nano-checkbox.entry.js.map +1 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-components.esm.js.map +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js.map +1 -1
- package/dist/nano-components/nano-date-input.entry.js +1 -1
- package/dist/nano-components/nano-date-input.entry.js.map +1 -1
- package/dist/nano-components/nano-date-picker.entry.js +1 -1
- package/dist/nano-components/nano-date-picker.entry.js.map +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js.map +1 -1
- package/dist/nano-components/nano-dialog.entry.js +1 -1
- package/dist/nano-components/nano-dialog.entry.js.map +1 -1
- package/dist/nano-components/nano-drawer.entry.js +1 -1
- package/dist/nano-components/nano-drawer.entry.js.map +1 -1
- package/dist/nano-components/nano-dropdown.entry.js +1 -1
- package/dist/nano-components/nano-dropdown.entry.js.map +1 -1
- package/dist/nano-components/nano-field-validator.entry.js +1 -1
- package/dist/nano-components/nano-field-validator.entry.js.map +1 -1
- package/dist/nano-components/nano-file-upload.entry.js +1 -1
- package/dist/nano-components/nano-file-upload.entry.js.map +1 -1
- package/dist/nano-components/nano-global-nav-user-profile_3.entry.js +1 -1
- package/dist/nano-components/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js.map +1 -1
- package/dist/nano-components/nano-global-search-results.entry.js +1 -1
- package/dist/nano-components/nano-global-search-results.entry.js.map +1 -1
- package/dist/nano-components/nano-grid-item.entry.js +1 -1
- package/dist/nano-components/nano-grid-item.entry.js.map +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js.map +1 -1
- package/dist/nano-components/nano-hero.entry.js +1 -1
- package/dist/nano-components/nano-hero.entry.js.map +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js.map +1 -1
- package/dist/nano-components/nano-icon.entry.js +1 -1
- package/dist/nano-components/nano-icon.entry.js.map +1 -1
- package/dist/nano-components/nano-input.entry.js +1 -1
- package/dist/nano-components/nano-input.entry.js.map +1 -1
- package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
- package/dist/nano-components/nano-intersection-observe.entry.js.map +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js.map +1 -1
- package/dist/nano-components/nano-more-less.entry.js +1 -1
- package/dist/nano-components/nano-more-less.entry.js.map +1 -1
- package/dist/nano-components/nano-overflow-nav.entry.js +1 -1
- package/dist/nano-components/nano-overflow-nav.entry.js.map +1 -1
- package/dist/nano-components/nano-progress-bar.entry.js +1 -1
- package/dist/nano-components/nano-progress-bar.entry.js.map +1 -1
- package/dist/nano-components/nano-range.entry.js +1 -1
- package/dist/nano-components/nano-range.entry.js.map +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js.map +1 -1
- package/dist/nano-components/nano-resize-observe_2.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe_2.entry.js.map +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js.map +1 -1
- package/dist/nano-components/{nano-slides-c3eb1afe.js → nano-slides-2715825b.js} +5 -5
- package/dist/nano-components/nano-slides-2715825b.js.map +1 -0
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js.map +1 -1
- package/dist/nano-components/nano-spinner.entry.js +1 -1
- package/dist/nano-components/nano-spinner.entry.js.map +1 -1
- package/dist/nano-components/nano-split-pane.entry.js +1 -1
- package/dist/nano-components/nano-split-pane.entry.js.map +1 -1
- package/dist/nano-components/nano-sticker.entry.js +1 -1
- package/dist/nano-components/nano-sticker.entry.js.map +1 -1
- package/dist/nano-components/nano-tab-content.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.entry.js.map +1 -1
- package/dist/nano-components/nano-tab-group.entry.js +1 -1
- package/dist/nano-components/nano-tab-group.entry.js.map +1 -1
- package/dist/nano-components/nano-tab.entry.js +1 -1
- package/dist/nano-components/nano-tab.entry.js.map +1 -1
- package/dist/nano-components/nano-table-67d7190b.js +5 -0
- package/dist/nano-components/nano-table-67d7190b.js.map +1 -0
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/page-dots-5b23db8c.js +5 -0
- package/dist/nano-components/{page-dots-986d3b32.js.map → page-dots-5b23db8c.js.map} +1 -1
- package/dist/nano-components/renderer-4bc3e2dc.js +5 -0
- package/dist/nano-components/renderer-4bc3e2dc.js.map +1 -0
- package/dist/nano-components/{scroll-f373a189.js → scroll-1afc6a4e.js} +2 -2
- package/dist/nano-components/table.worker-d636a71f.js +5 -0
- package/dist/stencil.config.js +1 -0
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/global/script/global.d.ts +2 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/utils/renderer.d.ts +27 -0
- package/docs-json.json +1 -12
- package/hydrate/index.js +453 -393
- package/hydrate/index.mjs +453 -393
- package/package.json +1 -1
- package/dist/cjs/app-globals-93d8b419.js +0 -39
- package/dist/cjs/app-globals-93d8b419.js.map +0 -1
- package/dist/cjs/fade-2dd9dd8b.js.map +0 -1
- package/dist/cjs/form-control-2d88adb2.js +0 -82
- package/dist/cjs/form-control-2d88adb2.js.map +0 -1
- package/dist/cjs/fullscreen-5d0422de.js.map +0 -1
- package/dist/cjs/index-b6fa04fa.js.map +0 -1
- package/dist/cjs/lazyload-f181cb37.js.map +0 -1
- package/dist/cjs/nano-slides-612634dc.js.map +0 -1
- package/dist/cjs/nano-table-99d6a3cc.js.map +0 -1
- package/dist/cjs/page-dots-99dd88f6.js.map +0 -1
- package/dist/cjs/table.worker-263468df.js.map +0 -1
- package/dist/esm/app-globals-d4ab01f2.js +0 -37
- package/dist/esm/app-globals-d4ab01f2.js.map +0 -1
- package/dist/esm/fade-4ff5d9de.js.map +0 -1
- package/dist/esm/form-control-812999d0.js.map +0 -1
- package/dist/esm/fullscreen-382d7890.js.map +0 -1
- package/dist/esm/index-3118109b.js.map +0 -1
- package/dist/esm/lazyload-49b745e4.js.map +0 -1
- package/dist/esm/nano-slides-c3eb1afe.js.map +0 -1
- package/dist/esm/nano-table-d15f6782.js.map +0 -1
- package/dist/esm/page-dots-986d3b32.js.map +0 -1
- package/dist/esm/table.worker-b7ee4edc.js.map +0 -1
- package/dist/nano-components/app-globals-d4ab01f2.js +0 -5
- package/dist/nano-components/app-globals-d4ab01f2.js.map +0 -1
- package/dist/nano-components/fade-4ff5d9de.js +0 -5
- package/dist/nano-components/form-control-812999d0.js +0 -5
- package/dist/nano-components/form-control-812999d0.js.map +0 -1
- package/dist/nano-components/fullscreen-382d7890.js +0 -5
- package/dist/nano-components/index-3118109b.js.map +0 -1
- package/dist/nano-components/lazyload-49b745e4.js +0 -5
- package/dist/nano-components/nano-slides-c3eb1afe.js.map +0 -1
- package/dist/nano-components/nano-table-d15f6782.js +0 -5
- package/dist/nano-components/nano-table-d15f6782.js.map +0 -1
- package/dist/nano-components/page-dots-986d3b32.js +0 -5
- package/dist/nano-components/table.worker-b7ee4edc.js +0 -5
- /package/dist/nano-components/{algolia-data-8fc24341.js.map → algolia-data-f0f72f1d.js.map} +0 -0
- /package/dist/nano-components/{component-store-b798181b.js.map → component-store-199a9fd8.js.map} +0 -0
- /package/dist/nano-components/{dom-d7f9f24c.js.map → dom-fafdec9a.js.map} +0 -0
- /package/dist/nano-components/{index-d7a4a150.js.map → index-f5f7b950.js.map} +0 -0
- /package/dist/nano-components/{scroll-f373a189.js.map → scroll-1afc6a4e.js.map} +0 -0
- /package/dist/nano-components/{table.worker-b7ee4edc.js.map → table.worker-d636a71f.js.map} +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/custom-element-doc-generator.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/vue/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/vue/index.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/vue/output-vue.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/vue/plugin.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/vue/types.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/generators/vue/utils.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{6SyqsxUA → RXAuYz49}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -0,0 +1,5 @@
|
|
1
|
+
/*!
|
2
|
+
* Web Components for Nanopore digital Web Apps
|
3
|
+
*/
|
4
|
+
const t=async()=>{if(globalThis.window&&"MutationObserver"in globalThis.window&&globalThis["document"]){const t=document.documentElement;window.addEventListener("appload",(()=>{t.classList.add("hydrated")}));const e=()=>{if(!t.classList.contains("hydrated"))return false;t.dispatchEvent(new CustomEvent("nanoComponentsReady"));return true};if(!e()){let n=new MutationObserver((t=>{if(!e())return;n.disconnect();n=null}));n.observe(t,{childList:false,subtree:false,attributes:true})}}};const e=t;export{e as g};
|
5
|
+
//# sourceMappingURL=app-globals-f0120bbe.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["appGlobalScript","async","globalThis","window","docEle","document","documentElement","addEventListener","classList","add","docIsReady","contains","dispatchEvent","CustomEvent","mutationO","MutationObserver","_","disconnect","observe","childList","subtree","attributes","globalScripts"],"sources":["src/global/script/global.ts","@stencil/core/internal/app-globals"],"sourcesContent":["export default async () => {\n if (\n globalThis.window &&\n 'MutationObserver' in globalThis.window &&\n globalThis['document']\n ) {\n // fire global 'ready' event when everything is hydrated\n\n const docEle = document.documentElement;\n\n window.addEventListener('appload', () => {\n docEle.classList.add('hydrated');\n });\n\n const docIsReady = () => {\n if (!docEle.classList.contains('hydrated')) return false;\n docEle.dispatchEvent(new CustomEvent('nanoComponentsReady'));\n return true;\n };\n\n if (!docIsReady()) {\n let mutationO = new MutationObserver((_) => {\n if (!docIsReady()) return;\n\n mutationO.disconnect();\n mutationO = null;\n });\n\n mutationO.observe(docEle, {\n childList: false,\n subtree: false,\n attributes: true,\n });\n }\n }\n};\n","import appGlobalScript from '/builds/RXAuYz49/0/Digital/nano-components/packages/components/src/global/script/global.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":";;;AAAA,MAAAA,EAAeC,UACb,GACEC,WAAWC,QACX,qBAAsBD,WAAWC,QACjCD,WAAW,YACX,CAGA,MAAME,EAASC,SAASC,gBAExBH,OAAOI,iBAAiB,WAAW,KACjCH,EAAOI,UAAUC,IAAI,WAAW,IAGlC,MAAMC,EAAa,KACjB,IAAKN,EAAOI,UAAUG,SAAS,YAAa,OAAO,MACnDP,EAAOQ,cAAc,IAAIC,YAAY,wBACrC,OAAO,IAAI,EAGb,IAAKH,IAAc,CACjB,IAAII,EAAY,IAAIC,kBAAkBC,IACpC,IAAKN,IAAc,OAEnBI,EAAUG,aACVH,EAAY,IAAI,IAGlBA,EAAUI,QAAQd,EAAQ,CACxBe,UAAW,MACXC,QAAS,MACTC,WAAY,M,IC9BR,MAACC,EAAgBtB,S","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
2
|
* Web Components for Nanopore digital Web Apps
|
3
3
|
*/
|
4
|
-
import{g as t}from"./index-
|
5
|
-
//# sourceMappingURL=component-store-
|
4
|
+
import{g as t}from"./index-6cc72cd9.js";import{d as e}from"./throttle-df960210.js";function n(t,e){const n=new URLSearchParams([...new URLSearchParams(t)].map((([t,e])=>[t.replace(/([[\]])/g,((t,e)=>e==="["?".":"")),e])));const s={};new Set(n.keys()).forEach((t=>{const r=n.getAll(t).join(",").split(",").map((t=>decodeURIComponent(t.replace(/\+/g," "))));const i=r.length===1?r[0]:r;let o=t;let u=e?e({firstRawValue:n.get(t).split(","),key:o,rawValue:r,value:i}):i;if(o.includes(".")){const[t,...e]=o.split(".");const n=s[t]||{};const r=e.pop();e.reduce(((t,e)=>t[e]??={}),n)[r]=u;o=t;u=n}s[o]=u}));return s}function s(t,e){if(!t)return"";const n=[["",t]];const s=new URLSearchParams;while(n.length){const[t,r]=n.pop();Object.entries(r).forEach((([r,i])=>{if(i==null&&e==null)return;const o=typeof i;const u=t?`${t}.${r}`:r;if(i!==null&&o==="object"&&!Array.isArray(i)){n.push([u,i])}else{let t=o==="string"?i:"";if(Array.isArray(i))t=i.join(",");else if(i?.toJSON)t=i.toJSON();else if(i?.toString)t=i.toString();else t=String(i);const n=e?e({flattenedKey:u,key:r,rawValue:i,value:t}):t;n!=null&&s.append(u,n)}}))}s.sort();return s.toString()}const r="nano-component-store:";const i=(t="hash",e=window)=>{if(!e||!e.location)return{};if(t==="hash"&&e.location.hash&&e.location.hash.match(/&|=/))return n(e.location.hash.replace(/^#/,""));else if(t==="query"&&e.location.search&&e.location.search.match(/&|=/))return n(e.location.search.replace(/^\?/,""));return{}};const o=(t,e="hash",n=window,r="replace")=>{if(!n||!n.history)return;const i=e==="query"?n.location.search:n.location.hash;const o=e==="query"?n.location.pathname:n.location.pathname+n.location.search;let u=s(t);if(!u||!u.length){if(!i||!i.length)return;if(r==="replace")n.history.replaceState(null,null,o);else n.history.pushState(null,null,o);return}if(e==="hash"&&n.location.hash==="#"+u){try{document.querySelector("#"+u)?.focus()}catch(t){}return}u=(e==="hash"?"#":"?")+u;if(u===i)return;if(r==="replace")n.history.replaceState(null,null,o+u);else n.history.pushState(null,null,o+u)};const u=(t,e,s="hash",r=window,u="replace")=>{t=Object.keys(n(t))[0];const h={};for(const t in e){if(!e[t]||Array.isArray(e[t])&&!e[t].length){delete e[t]}}h[t]=e;let c=i(s,r);if(!c[t]&&!h[t])return;c={...c,...h};o(c,s,r,u)};const h=(t,e="hash",s=window)=>{t=Object.keys(n(t))[0];const r=i(e,s);return r[t]||null};const c=(t,e,n=window)=>{if(!e){n.sessionStorage.removeItem(r+t);return}n.sessionStorage.setItem(r+t,JSON.stringify(e))};const l=(t,e=window)=>{const n=e.sessionStorage.getItem(r+t);return n!==null?JSON.parse(n):null};const a=(t,e,n=window)=>{if(!e){n.localStorage.removeItem(r+t);return}n.localStorage.setItem(r+t,JSON.stringify(e))};const f=(t,e=window)=>{const n=e.localStorage.getItem(r+t);return n!==null?JSON.parse(n):null};const w=new Map;const d={init(e,n,s,r){const i=r||e.storeId||t(e).id;if(!i){console.error("No id set. You can only instantiate a new component store with an id. ");return}if(w.get(i)){console.error("Duplicate store id usage. A store ID must be unique!",i);return}const o=n.reduce(((t,n)=>{if(e[n]!==undefined)t[n]=e[n];return t}),{});w.set(i,new p(i,e,n,o,s));const u=w.get(i);u.dispatchToProps();const h=e.connectedCallback;e.connectedCallback=function(){w.set(i,new p(i,e,n,o,s));const t=w.get(i);if(h){h.call(e)}if(t)t.dispatchToProps()};const c=e.componentDidRender;e.componentDidRender=function(){const t=w.get(i);if(c){c.call(e)}if(t)t.savePropsToStore()};const l=e.disconnectedCallback;e.disconnectedCallback=function(){const t=w.get(i);if(t)t.delete();w.delete(i);if(l){l.call(e)}}}};class p{method="session";keys;id;component;initialState={};updateStore=true;constructor(t,n,s,r,i){if(!t)throw new Error("No id set. You can only instantiate a new component store with an id");this.id=t;this.keys=s;this.component=n;if(r)this.initialState=r;if(i)this.method=i;this.savePropsToStore=e(this.savePropsToStore,500);if(this.method==="url-hash-push"||this.method==="url-query-push"){window.addEventListener("popstate",this.onUrlChange)}}onUrlChange=()=>{this.dispatchToProps(false)};equality(t,e){if(typeof t!==typeof e)return false;if(typeof t!=="object")return t===e;return JSON.stringify(t)===JSON.stringify(e)}get getData(){const t=this.keys.reduce(((t,e)=>{const n=this.equality(this.component[e],this.initialState[e]);if(typeof this.component[e]!=="undefined"&&!n){t[e]=this.component[e]}else if(n)delete t[e];return t}),{});return Object.keys(t).length?t:undefined}retrieve(){switch(this.method){case"url-hash":case"url-hash-push":return h(this.id,"hash");case"url-query":case"url-query-push":return h(this.id,"query");case"local":return f(this.id);default:return l(this.id)}}save(t){switch(this.method){case"url-hash":return u(this.id,t,"hash");case"url-query":return u(this.id,t,"query");case"url-hash-push":return u(this.id,t,"hash",window,"push");case"url-query-push":return u(this.id,t,"query",window,"push");case"local":return a(this.id,t);default:return c(this.id,t)}}savePropsToStore=()=>{if(this.updateStore){this.save(this.getData)}else if(!this.updateStore)this.updateStore=true};dispatchToProps=(t=true)=>{const e=this.retrieve();if(!e&&t)return;this.updateStore=t;this.keys.forEach((t=>{this.component[t]=e?e[t]:undefined}))};delete=()=>{if(this.method==="url-hash-push"||this.method==="url-query-push"){window.removeEventListener("popstate",this.onUrlChange)}}}export{d as C};
|
5
|
+
//# sourceMappingURL=component-store-199a9fd8.js.map
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
2
|
* Web Components for Nanopore digital Web Apps
|
3
3
|
*/
|
4
|
-
import"./index-
|
5
|
-
//# sourceMappingURL=dom-
|
4
|
+
import"./index-6cc72cd9.js";var e;(function(e){e[e["ElementNode"]=1]="ElementNode";e[e["TextNode"]=3]="TextNode";e[e["CommentNode"]=8]="CommentNode";e[e["DocumentNode"]=9]="DocumentNode";e[e["DocumentTypeNode"]=10]="DocumentTypeNode";e[e["DocumentFragment"]=11]="DocumentFragment"})(e||(e={}));function t(e,t=this){function n(t){if(!t||t===document||t===window)return null;if(t.assignedSlot)t=t.assignedSlot;const r=t.closest(e);return r?r:n(t.getRootNode().host)}return n(t)}function n(t,n,r=true){if(r===true){try{n=":scope > "+n.split(",").join(", :scope >");return Array.from(t.querySelectorAll(n))}catch(e){console.error(e,"an error sad")}}const o=[];Array.from(t.childNodes).forEach((t=>{if(!!t.matches&&t.matches(n))o.push(t);else if(t.nodeName.toLowerCase()==="slot"){Array.from(t.assignedNodes()).forEach((t=>{if(t.nodeType===e.ElementNode&&t.matches(n))o.push(t);else if(t.nodeType!==e.ElementNode&&!r)o.push(t)}))}else if(!r)o.push(t)}));return o}const r=(e,t)=>{const n=[];let r=e.parentNode.firstElementChild;do{if(!t||r!==e&&r.matches(t))n.push(r)}while(r=r.nextElementSibling);return n};function o(e,t){if(!t||!e)return{top:0,left:0};return{top:e.getBoundingClientRect().top-t.getBoundingClientRect().top,left:e.getBoundingClientRect().left-t.getBoundingClientRect().left}}export{o as a,r as b,t as c,n as g};
|
5
|
+
//# sourceMappingURL=dom-fafdec9a.js.map
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/*!
|
2
|
+
* Web Components for Nanopore digital Web Apps
|
3
|
+
*/
|
4
|
+
import{F as t,u as i}from"./nano-slides-2715825b.js";import"./index-6cc72cd9.js";import"./renderer-4bc3e2dc.js";const s=t.Slide;const n=s.prototype.updateTarget;s.prototype.updateTarget=function(...t){n.apply(this,t);if(!this.parent.options.fade){return}const i=this.target-this.x;const s=this.cells[0].x;this.cells.forEach((function(t){const n=t.x-s-i;t.renderPosition(n)}))};s.prototype.setOpacity=function(t){this.cells.forEach((function(i){i.element.style.opacity=t}))};const h=t.prototype;t.createMethods.push("_createFade");h._createFade=function(){this.fadeIndex=this.selectedIndex;this.prevSelectedIndex=this.selectedIndex;this.on("select",this.onSelectFade);this.on("dragEnd",this.onDragEndFade);this.on("settle",this.onSettleFade);this.on("activate",this.onActivateFade);this.on("deactivate",this.onDeactivateFade)};const c=h.updateSlides;h.updateSlides=function(...t){c.apply(this,t);if(!this.options.fade){return}this.slides.forEach((function(t,i){const s=i==this.selectedIndex?1:0;t.setOpacity(s)}),this)};h.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1);this.prevSelectedIndex=this.selectedIndex};h.onSettleFade=function(){delete this.didDragEnd;if(!this.options.fade){return}this.selectedSlide.setOpacity(1);const t=this.slides[this.fadeIndex];if(t&&this.fadeIndex!=this.selectedIndex){this.slides[this.fadeIndex].setOpacity(0)}};h.onDragEndFade=function(){this.didDragEnd=true};h.onActivateFade=function(){if(this.options.fade){this.element.classList.add("is-fade")}};h.onDeactivateFade=function(){if(!this.options.fade){return}this.element.classList.remove("is-fade");this.slides.forEach((function(t){t.setOpacity("")}))};const o=h.positionSlider;h.positionSlider=function(...t){if(!this.options.fade){o.apply(this,t);return}this.fadeSlides();this.dispatchScrollEvent()};const e=h.positionSliderAtSelected;h.positionSliderAtSelected=function(...t){if(this.options.fade){this.setTranslateX(0)}e.apply(this,t)};h.fadeSlides=function(){if(this.slides.length<2){return}const t=this.getFadeIndexes();const i=this.slides[t.a];const s=this.slides[t.b];const n=this.wrapDifference(i.target,s.target);let h=this.wrapDifference(i.target,-this.x);h=h/n;i.setOpacity(1-h);s.setOpacity(h);let c=t.a;if(this.isDragging){c=h>.5?t.a:t.b}const o=this.fadeHideIndex!=undefined&&this.fadeHideIndex!=c&&this.fadeHideIndex!=t.a&&this.fadeHideIndex!=t.b;if(o){this.slides[this.fadeHideIndex].setOpacity(0)}this.fadeHideIndex=c};h.getFadeIndexes=function(){if(!this.isDragging&&!this.didDragEnd&&typeof this.fadeIndex!=="undefined"){return{a:this.fadeIndex,b:this.selectedIndex}}if(this.options.wrapAround){return this.getFadeDragWrapIndexes()}else{return this.getFadeDragLimitIndexes()}};h.getFadeDragWrapIndexes=function(){const t=this.slides.map((function(t,i){return this.getSlideDistance(-this.x,i)}),this);const s=t.map((function(t){return Math.abs(t)}));const n=Math.min(...s);const h=s.indexOf(n);const c=t[h];const o=this.slides.length;const e=c>=0?1:-1;return{a:h,b:i.modulo(h+e,o)}};h.getFadeDragLimitIndexes=function(){let t=0;for(let i=0;i<this.slides.length-1;i++){const s=this.slides[i];if(-this.x<s.target){break}t=i}return{a:t,b:t+1}};h.wrapDifference=function(t,i){let s=i-t;if(!this.options.wrapAround){return s}const n=s+this.slideableWidth;const h=s-this.slideableWidth;if(Math.abs(n)<Math.abs(s)){s=n}if(Math.abs(h)<Math.abs(s)){s=h}return s};const f=h._getWrapShiftCells;h._getWrapShiftCells=function(...t){if(!this.options.fade){f.apply(this,t)}};const u=h.shiftWrapCells;h.shiftWrapCells=function(...t){if(!this.options.fade){u.apply(this,t)}};
|
5
|
+
//# sourceMappingURL=fade-ce1a4958.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Slide","Flickity","slideUpdateTarget","prototype","updateTarget","args","apply","this","parent","options","fade","slideTargetX","target","x","firstCellX","cells","forEach","cell","targetX","renderPosition","setOpacity","alpha","element","style","opacity","proto","createMethods","push","_createFade","fadeIndex","selectedIndex","prevSelectedIndex","on","onSelectFade","onDragEndFade","onSettleFade","onActivateFade","onDeactivateFade","updateSlides","slides","slide","i","Math","min","length","didDragEnd","selectedSlide","fadedSlide","classList","add","remove","positionSlider","fadeSlides","dispatchScrollEvent","positionSliderAtSelected","setTranslateX","indexes","getFadeIndexes","fadeSlideA","a","fadeSlideB","b","distance","wrapDifference","progress","fadeHideIndex","isDragging","isNewHideIndex","undefined","wrapAround","getFadeDragWrapIndexes","getFadeDragLimitIndexes","distances","map","_slide","getSlideDistance","absDistances","abs","minDistance","closestIndex","indexOf","len","delta","utils","modulo","dragIndex","diff","diffPlus","slideableWidth","diffMinus","_getWrapShiftCells","shiftWrapCells"],"sources":["src/components/slides/lib/js/fade.ts"],"sourcesContent":["import Flickity from './flickity';\nimport { utils } from './utils/utils';\n\nconst Slide = Flickity.Slide;\n\nconst slideUpdateTarget = Slide.prototype.updateTarget;\nSlide.prototype.updateTarget = function (...args) {\n slideUpdateTarget.apply(this, args);\n if (!this.parent.options.fade) {\n return;\n }\n // position cells at selected target\n const slideTargetX = this.target - this.x;\n const firstCellX = this.cells[0].x;\n this.cells.forEach(function (cell) {\n const targetX = cell.x - firstCellX - slideTargetX;\n cell.renderPosition(targetX);\n });\n};\n\nSlide.prototype.setOpacity = function (alpha) {\n this.cells.forEach(function (cell) {\n cell.element.style.opacity = alpha;\n });\n};\n\n// ---- Flickity ---- //\n\nconst proto = Flickity.prototype;\n\nFlickity.createMethods.push('_createFade');\n\nproto._createFade = function () {\n this.fadeIndex = this.selectedIndex;\n this.prevSelectedIndex = this.selectedIndex;\n this.on('select', this.onSelectFade);\n this.on('dragEnd', this.onDragEndFade);\n this.on('settle', this.onSettleFade);\n this.on('activate', this.onActivateFade);\n this.on('deactivate', this.onDeactivateFade);\n};\n\nconst updateSlides = proto.updateSlides;\nproto.updateSlides = function (...args) {\n updateSlides.apply(this, args);\n if (!this.options.fade) {\n return;\n }\n // set initial opacity\n this.slides.forEach(function (slide, i) {\n const alpha = i == this.selectedIndex ? 1 : 0;\n slide.setOpacity(alpha);\n }, this);\n};\n\n/* ---- events ---- */\n\nproto.onSelectFade = function () {\n // in case of resize, keep fadeIndex within current count\n this.fadeIndex = Math.min(this.prevSelectedIndex, this.slides.length - 1);\n this.prevSelectedIndex = this.selectedIndex;\n};\n\nproto.onSettleFade = function () {\n delete this.didDragEnd;\n if (!this.options.fade) {\n return;\n }\n // set full and 0 opacity on selected & faded slides\n this.selectedSlide.setOpacity(1);\n const fadedSlide = this.slides[this.fadeIndex];\n if (fadedSlide && this.fadeIndex != this.selectedIndex) {\n this.slides[this.fadeIndex].setOpacity(0);\n }\n};\n\nproto.onDragEndFade = function () {\n // set flag\n this.didDragEnd = true;\n};\n\nproto.onActivateFade = function () {\n if (this.options.fade) {\n this.element.classList.add('is-fade');\n }\n};\n\nproto.onDeactivateFade = function () {\n if (!this.options.fade) {\n return;\n }\n this.element.classList.remove('is-fade');\n // reset opacity\n this.slides.forEach(function (slide) {\n slide.setOpacity('');\n });\n};\n\n/* ---- position & fading ---- */\n\nconst positionSlider = proto.positionSlider;\nproto.positionSlider = function (...args) {\n if (!this.options.fade) {\n positionSlider.apply(this, args);\n return;\n }\n\n this.fadeSlides();\n this.dispatchScrollEvent();\n};\n\nconst positionSliderAtSelected = proto.positionSliderAtSelected;\nproto.positionSliderAtSelected = function (...args) {\n if (this.options.fade) {\n // position fade slider at origin\n this.setTranslateX(0);\n }\n positionSliderAtSelected.apply(this, args);\n};\n\nproto.fadeSlides = function () {\n if (this.slides.length < 2) {\n return;\n }\n // get slides to fade-in & fade-out\n const indexes = this.getFadeIndexes();\n const fadeSlideA = this.slides[indexes.a];\n const fadeSlideB = this.slides[indexes.b];\n const distance = this.wrapDifference(fadeSlideA.target, fadeSlideB.target);\n let progress = this.wrapDifference(fadeSlideA.target, -this.x);\n progress = progress / distance;\n\n fadeSlideA.setOpacity(1 - progress);\n fadeSlideB.setOpacity(progress);\n\n // hide previous slide\n let fadeHideIndex = indexes.a;\n if (this.isDragging) {\n fadeHideIndex = progress > 0.5 ? indexes.a : indexes.b;\n }\n const isNewHideIndex =\n this.fadeHideIndex != undefined &&\n this.fadeHideIndex != fadeHideIndex &&\n this.fadeHideIndex != indexes.a &&\n this.fadeHideIndex != indexes.b;\n if (isNewHideIndex) {\n // new fadeHideSlide set, hide previous\n this.slides[this.fadeHideIndex].setOpacity(0);\n }\n this.fadeHideIndex = fadeHideIndex;\n};\n\nproto.getFadeIndexes = function () {\n if (\n !this.isDragging &&\n !this.didDragEnd &&\n typeof this.fadeIndex !== 'undefined'\n ) {\n return {\n a: this.fadeIndex,\n b: this.selectedIndex,\n };\n }\n if (this.options.wrapAround) {\n return this.getFadeDragWrapIndexes();\n } else {\n return this.getFadeDragLimitIndexes();\n }\n};\n\nproto.getFadeDragWrapIndexes = function () {\n const distances = this.slides.map(function (_slide, i) {\n return this.getSlideDistance(-this.x, i);\n }, this);\n const absDistances = distances.map(function (distance) {\n return Math.abs(distance);\n });\n const minDistance = Math.min(...absDistances);\n const closestIndex = absDistances.indexOf(minDistance);\n const distance = distances[closestIndex];\n const len = this.slides.length;\n\n const delta = distance >= 0 ? 1 : -1;\n return {\n a: closestIndex,\n b: utils.modulo(closestIndex + delta, len),\n };\n};\n\nproto.getFadeDragLimitIndexes = function () {\n // calculate closest previous slide\n let dragIndex = 0;\n for (let i = 0; i < this.slides.length - 1; i++) {\n const slide = this.slides[i];\n if (-this.x < slide.target) {\n break;\n }\n dragIndex = i;\n }\n return {\n a: dragIndex,\n b: dragIndex + 1,\n };\n};\n\nproto.wrapDifference = function (a, b) {\n let diff = b - a;\n\n if (!this.options.wrapAround) {\n return diff;\n }\n\n const diffPlus = diff + this.slideableWidth;\n const diffMinus = diff - this.slideableWidth;\n if (Math.abs(diffPlus) < Math.abs(diff)) {\n diff = diffPlus;\n }\n if (Math.abs(diffMinus) < Math.abs(diff)) {\n diff = diffMinus;\n }\n return diff;\n};\n\n// ---- wrapAround ---- //\n\nconst _getWrapShiftCells = proto._getWrapShiftCells;\nproto._getWrapShiftCells = function (...args) {\n if (!this.options.fade) {\n _getWrapShiftCells.apply(this, args);\n }\n};\n\nconst shiftWrapCells = proto.shiftWrapCells;\nproto.shiftWrapCells = function (...args) {\n if (!this.options.fade) {\n shiftWrapCells.apply(this, args);\n }\n};\n"],"mappings":"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","ignoreList":[]}
|
1
|
+
{"version":3,"names":["Slide","Flickity","slideUpdateTarget","prototype","updateTarget","args","apply","this","parent","options","fade","slideTargetX","target","x","firstCellX","cells","forEach","cell","targetX","renderPosition","setOpacity","alpha","element","style","opacity","proto","createMethods","push","_createFade","fadeIndex","selectedIndex","prevSelectedIndex","on","onSelectFade","onDragEndFade","onSettleFade","onActivateFade","onDeactivateFade","updateSlides","slides","slide","i","Math","min","length","didDragEnd","selectedSlide","fadedSlide","classList","add","remove","positionSlider","fadeSlides","dispatchScrollEvent","positionSliderAtSelected","setTranslateX","indexes","getFadeIndexes","fadeSlideA","a","fadeSlideB","b","distance","wrapDifference","progress","fadeHideIndex","isDragging","isNewHideIndex","undefined","wrapAround","getFadeDragWrapIndexes","getFadeDragLimitIndexes","distances","map","_slide","getSlideDistance","absDistances","abs","minDistance","closestIndex","indexOf","len","delta","utils","modulo","dragIndex","diff","diffPlus","slideableWidth","diffMinus","_getWrapShiftCells","shiftWrapCells"],"sources":["src/components/slides/lib/js/fade.ts"],"sourcesContent":["import Flickity from './flickity';\nimport { utils } from './utils/utils';\n\nconst Slide = Flickity.Slide;\n\nconst slideUpdateTarget = Slide.prototype.updateTarget;\nSlide.prototype.updateTarget = function (...args) {\n slideUpdateTarget.apply(this, args);\n if (!this.parent.options.fade) {\n return;\n }\n // position cells at selected target\n const slideTargetX = this.target - this.x;\n const firstCellX = this.cells[0].x;\n this.cells.forEach(function (cell) {\n const targetX = cell.x - firstCellX - slideTargetX;\n cell.renderPosition(targetX);\n });\n};\n\nSlide.prototype.setOpacity = function (alpha) {\n this.cells.forEach(function (cell) {\n cell.element.style.opacity = alpha;\n });\n};\n\n// ---- Flickity ---- //\n\nconst proto = Flickity.prototype;\n\nFlickity.createMethods.push('_createFade');\n\nproto._createFade = function () {\n this.fadeIndex = this.selectedIndex;\n this.prevSelectedIndex = this.selectedIndex;\n this.on('select', this.onSelectFade);\n this.on('dragEnd', this.onDragEndFade);\n this.on('settle', this.onSettleFade);\n this.on('activate', this.onActivateFade);\n this.on('deactivate', this.onDeactivateFade);\n};\n\nconst updateSlides = proto.updateSlides;\nproto.updateSlides = function (...args) {\n updateSlides.apply(this, args);\n if (!this.options.fade) {\n return;\n }\n // set initial opacity\n this.slides.forEach(function (slide, i) {\n const alpha = i == this.selectedIndex ? 1 : 0;\n slide.setOpacity(alpha);\n }, this);\n};\n\n/* ---- events ---- */\n\nproto.onSelectFade = function () {\n // in case of resize, keep fadeIndex within current count\n this.fadeIndex = Math.min(this.prevSelectedIndex, this.slides.length - 1);\n this.prevSelectedIndex = this.selectedIndex;\n};\n\nproto.onSettleFade = function () {\n delete this.didDragEnd;\n if (!this.options.fade) {\n return;\n }\n // set full and 0 opacity on selected & faded slides\n this.selectedSlide.setOpacity(1);\n const fadedSlide = this.slides[this.fadeIndex];\n if (fadedSlide && this.fadeIndex != this.selectedIndex) {\n this.slides[this.fadeIndex].setOpacity(0);\n }\n};\n\nproto.onDragEndFade = function () {\n // set flag\n this.didDragEnd = true;\n};\n\nproto.onActivateFade = function () {\n if (this.options.fade) {\n this.element.classList.add('is-fade');\n }\n};\n\nproto.onDeactivateFade = function () {\n if (!this.options.fade) {\n return;\n }\n this.element.classList.remove('is-fade');\n // reset opacity\n this.slides.forEach(function (slide) {\n slide.setOpacity('');\n });\n};\n\n/* ---- position & fading ---- */\n\nconst positionSlider = proto.positionSlider;\nproto.positionSlider = function (...args) {\n if (!this.options.fade) {\n positionSlider.apply(this, args);\n return;\n }\n\n this.fadeSlides();\n this.dispatchScrollEvent();\n};\n\nconst positionSliderAtSelected = proto.positionSliderAtSelected;\nproto.positionSliderAtSelected = function (...args) {\n if (this.options.fade) {\n // position fade slider at origin\n this.setTranslateX(0);\n }\n positionSliderAtSelected.apply(this, args);\n};\n\nproto.fadeSlides = function () {\n if (this.slides.length < 2) {\n return;\n }\n // get slides to fade-in & fade-out\n const indexes = this.getFadeIndexes();\n const fadeSlideA = this.slides[indexes.a];\n const fadeSlideB = this.slides[indexes.b];\n const distance = this.wrapDifference(fadeSlideA.target, fadeSlideB.target);\n let progress = this.wrapDifference(fadeSlideA.target, -this.x);\n progress = progress / distance;\n\n fadeSlideA.setOpacity(1 - progress);\n fadeSlideB.setOpacity(progress);\n\n // hide previous slide\n let fadeHideIndex = indexes.a;\n if (this.isDragging) {\n fadeHideIndex = progress > 0.5 ? indexes.a : indexes.b;\n }\n const isNewHideIndex =\n this.fadeHideIndex != undefined &&\n this.fadeHideIndex != fadeHideIndex &&\n this.fadeHideIndex != indexes.a &&\n this.fadeHideIndex != indexes.b;\n if (isNewHideIndex) {\n // new fadeHideSlide set, hide previous\n this.slides[this.fadeHideIndex].setOpacity(0);\n }\n this.fadeHideIndex = fadeHideIndex;\n};\n\nproto.getFadeIndexes = function () {\n if (\n !this.isDragging &&\n !this.didDragEnd &&\n typeof this.fadeIndex !== 'undefined'\n ) {\n return {\n a: this.fadeIndex,\n b: this.selectedIndex,\n };\n }\n if (this.options.wrapAround) {\n return this.getFadeDragWrapIndexes();\n } else {\n return this.getFadeDragLimitIndexes();\n }\n};\n\nproto.getFadeDragWrapIndexes = function () {\n const distances = this.slides.map(function (_slide, i) {\n return this.getSlideDistance(-this.x, i);\n }, this);\n const absDistances = distances.map(function (distance) {\n return Math.abs(distance);\n });\n const minDistance = Math.min(...absDistances);\n const closestIndex = absDistances.indexOf(minDistance);\n const distance = distances[closestIndex];\n const len = this.slides.length;\n\n const delta = distance >= 0 ? 1 : -1;\n return {\n a: closestIndex,\n b: utils.modulo(closestIndex + delta, len),\n };\n};\n\nproto.getFadeDragLimitIndexes = function () {\n // calculate closest previous slide\n let dragIndex = 0;\n for (let i = 0; i < this.slides.length - 1; i++) {\n const slide = this.slides[i];\n if (-this.x < slide.target) {\n break;\n }\n dragIndex = i;\n }\n return {\n a: dragIndex,\n b: dragIndex + 1,\n };\n};\n\nproto.wrapDifference = function (a, b) {\n let diff = b - a;\n\n if (!this.options.wrapAround) {\n return diff;\n }\n\n const diffPlus = diff + this.slideableWidth;\n const diffMinus = diff - this.slideableWidth;\n if (Math.abs(diffPlus) < Math.abs(diff)) {\n diff = diffPlus;\n }\n if (Math.abs(diffMinus) < Math.abs(diff)) {\n diff = diffMinus;\n }\n return diff;\n};\n\n// ---- wrapAround ---- //\n\nconst _getWrapShiftCells = proto._getWrapShiftCells;\nproto._getWrapShiftCells = function (...args) {\n if (!this.options.fade) {\n _getWrapShiftCells.apply(this, args);\n }\n};\n\nconst shiftWrapCells = proto.shiftWrapCells;\nproto.shiftWrapCells = function (...args) {\n if (!this.options.fade) {\n shiftWrapCells.apply(this, args);\n }\n};\n"],"mappings":"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","ignoreList":[]}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/*!
|
2
|
+
* Web Components for Nanopore digital Web Apps
|
3
|
+
*/
|
4
|
+
import{h as l}from"./renderer-4bc3e2dc.js";const r=({label:r,hasLabelSlot:e,controlId:a,labelId:t,floatLabel:o,placeholder:s,hideLabel:n,hasValue:c,rtl:_,showCharCount:d,maxlength:m,charCount:i})=>{if(!r&&!e)return;if(o){return l("label",{class:"form-ctrl__float-label",htmlFor:a,id:t},l("slot",{name:"label"},r),d&&l("span",{class:"form-ctrl__label-charcount"},m?` ${i}/${m}`:` ${i}`))}else{return l("label",{class:{"form-ctrl__label":true,"visually-hide":n},htmlFor:a,id:t},l("div",{class:"form-ctrl__label-wrap"},s&&c&&_&&l("span",{class:"form-ctrl__label-placeholder"},s," / "),l("span",{class:"form-ctrl__labeltext"},l("slot",{name:"label"},r)),s&&c&&!_&&l("span",{class:"form-ctrl__label-placeholder"}," / ",s)),d&&l("span",{class:"form-ctrl__label-charcount"},m?m-i+" left":i+" characters"))}};const e=(e,a)=>{const{rtl:t,floatLabel:o,label:s,moreId:n,helperEndId:c,type:_,hasHelperSlot:d,showInlineError:m,errorMessage:i,hasHelperEndSlot:f}=e;return l("div",{class:{"has-label":s!==null&&!o,"has-float-label":s!==null&&o,"has-helper-end":f,rtl:t,"form-ctrl":true}},l("div",{class:"form-ctrl__wrapper"},!o?r({...e}):"",l("div",{class:{"form-ctrl__input":true,"form-ctrl__textarea":_==="textarea"}},o&&r({...e,rtl:t}),a),(m||d)&&l("div",{class:"form-ctrl__more",id:n},!!m&&l("div",{class:"form-ctrl__error","aria-live":"polite"},i),l("div",{class:"form-ctrl__helper"},l("slot",{name:"helper"})))),f&&l("div",{class:"form-ctrl__helper-end",id:c},l("slot",{name:"helper-end"})))};const a=(r,e)=>{const{clearControl:a,onClearText:t,readonly:o,disabled:s,control:n,ref:c,endSlot:_,endValueSlot:d,startSlot:m}=r;const i=()=>{n.setFocus()};return l("div",{class:"form-ctrl__input-wrap",ref:l=>{if(c)c(l)}},l("span",{class:"form-ctrl__slot-start"},l("slot",{name:"start"}),m),e,a&&!o&&!s&&l("button",{type:"button",class:"icon form-ctrl__clear-btn",tabindex:"-1",onTouchStart:t,onMouseDown:t},l("nano-icon",{name:"light/xmark",role:"img",ariaLabel:"Clear content"})),l("span",{class:"form-ctrl__slot-value-end",onClick:i},l("slot",{name:"value-end"}),d),l("span",{class:"form-ctrl__slot-end"},l("slot",{name:"end"}),_))};export{e as F,a};
|
5
|
+
//# sourceMappingURL=form-control-f48fa873.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["renderLabel","label","hasLabelSlot","controlId","labelId","floatLabel","placeholder","hideLabel","hasValue","rtl","showCharCount","maxlength","charCount","h","class","htmlFor","id","name","FormControlWrap","props","children","moreId","helperEndId","type","hasHelperSlot","showInlineError","errorMessage","hasHelperEndSlot","FormControl","clearControl","onClearText","readonly","disabled","control","ref","endSlot","endValueSlot","startSlot","clickThrough","setFocus","el","tabindex","onTouchStart","onMouseDown","role","ariaLabel","onClick"],"sources":["src/components/form-control/form-control.tsx"],"sourcesContent":["import { FunctionalComponent, VNode } from '@stencil/core';\nimport { h } from '../../utils/renderer';\nimport type { TextFieldTypes } from '../../types/shared';\n\ninterface FormControlWrapProps {\n rtl: boolean;\n floatLabel: boolean;\n labelId: string;\n label: string;\n moreId: string;\n helperEndId: string;\n type?: TextFieldTypes;\n showInlineError: boolean;\n hasHelperSlot: boolean;\n errorMessage: string;\n controlId: string;\n hasLabelSlot: boolean;\n hideLabel: boolean;\n placeholder: string;\n hasValue: boolean;\n showCharCount?: boolean;\n maxlength?: number;\n charCount?: number;\n hasHelperEndSlot?: boolean;\n}\n\ninterface FormControlProps {\n clearControl: boolean;\n onClearText?: () => void;\n readonly: boolean;\n disabled: boolean;\n control: HTMLNanoInputElement | HTMLNanoSelectElement;\n ref?: (elm?: HTMLElement) => void;\n endSlot?: VNode;\n endValueSlot?: VNode;\n startSlot?: VNode;\n}\n\ninterface LabelProps extends FormControlWrapProps {\n rtl: boolean;\n}\n\nconst renderLabel = ({\n label,\n hasLabelSlot,\n controlId,\n labelId,\n floatLabel,\n placeholder,\n hideLabel,\n hasValue,\n rtl,\n showCharCount,\n maxlength,\n charCount,\n}: LabelProps) => {\n if (!label && !hasLabelSlot) return;\n if (floatLabel) {\n return (\n <label class=\"form-ctrl__float-label\" htmlFor={controlId} id={labelId}>\n <slot name=\"label\">{label}</slot>\n {showCharCount && (\n <span class=\"form-ctrl__label-charcount\">\n {maxlength ? ` ${charCount}/${maxlength}` : ` ${charCount}`}\n </span>\n )}\n </label>\n );\n } else {\n return (\n <label\n class={{ 'form-ctrl__label': true, 'visually-hide': hideLabel }}\n htmlFor={controlId}\n id={labelId}\n >\n <div class=\"form-ctrl__label-wrap\">\n {placeholder && hasValue && rtl && (\n <span class=\"form-ctrl__label-placeholder\">{placeholder} / </span>\n )}\n <span class=\"form-ctrl__labeltext\">\n <slot name=\"label\">{label}</slot>\n </span>\n {placeholder && hasValue && !rtl && (\n <span class=\"form-ctrl__label-placeholder\"> / {placeholder}</span>\n )}\n </div>\n {showCharCount && (\n <span class=\"form-ctrl__label-charcount\">\n {maxlength\n ? maxlength - charCount + ' left'\n : charCount + ' characters'}\n </span>\n )}\n </label>\n );\n }\n};\n\nexport const FormControlWrap: FunctionalComponent<FormControlWrapProps> = (\n props: FormControlWrapProps,\n children\n) => {\n const {\n rtl,\n floatLabel,\n label,\n moreId,\n helperEndId,\n type,\n hasHelperSlot,\n showInlineError,\n errorMessage,\n hasHelperEndSlot,\n } = props;\n\n return (\n <div\n class={{\n 'has-label': label !== null && !floatLabel,\n 'has-float-label': label !== null && floatLabel,\n 'has-helper-end': hasHelperEndSlot,\n rtl,\n 'form-ctrl': true,\n }}\n >\n <div class=\"form-ctrl__wrapper\">\n {!floatLabel ? renderLabel({ ...props }) : ''}\n <div\n class={{\n 'form-ctrl__input': true,\n 'form-ctrl__textarea': type === 'textarea',\n }}\n >\n {floatLabel && renderLabel({ ...props, rtl })}\n {children}\n </div>\n {(showInlineError || hasHelperSlot) && (\n <div class=\"form-ctrl__more\" id={moreId}>\n {!!showInlineError && (\n <div class=\"form-ctrl__error\" aria-live=\"polite\">\n {errorMessage}\n </div>\n )}\n <div class=\"form-ctrl__helper\">\n <slot name=\"helper\" />\n </div>\n </div>\n )}\n </div>\n {hasHelperEndSlot && (\n <div class=\"form-ctrl__helper-end\" id={helperEndId}>\n <slot name=\"helper-end\" />\n </div>\n )}\n </div>\n );\n};\n\nexport const FormControl: FunctionalComponent<FormControlProps> = (\n props: FormControlProps,\n children\n) => {\n const {\n clearControl,\n onClearText,\n readonly,\n disabled,\n control,\n ref,\n endSlot,\n endValueSlot,\n startSlot,\n } = props;\n const clickThrough = () => {\n control.setFocus();\n };\n\n return (\n <div\n class=\"form-ctrl__input-wrap\"\n ref={(el) => {\n if (ref) ref(el);\n }}\n >\n <span class=\"form-ctrl__slot-start\">\n <slot name=\"start\" />\n {startSlot}\n </span>\n {children}\n {clearControl && !readonly && !disabled && (\n <button\n type=\"button\"\n class=\"icon form-ctrl__clear-btn\"\n tabindex=\"-1\"\n onTouchStart={onClearText}\n onMouseDown={onClearText}\n >\n <nano-icon\n name=\"light/xmark\"\n role=\"img\"\n ariaLabel=\"Clear content\"\n ></nano-icon>\n </button>\n )}\n <span class=\"form-ctrl__slot-value-end\" onClick={clickThrough}>\n <slot name=\"value-end\" />\n {endValueSlot}\n </span>\n <span class=\"form-ctrl__slot-end\">\n <slot name=\"end\" />\n {endSlot}\n </span>\n </div>\n );\n};\n"],"mappings":";;;2CA0CA,MAAMA,EAAc,EAClBC,QACAC,eACAC,YACAC,UACAC,aACAC,cACAC,YACAC,WACAC,MACAC,gBACAC,YACAC,gBAEA,IAAKX,IAAUC,EAAc,OAC7B,GAAIG,EAAY,CACd,OACEQ,EAAA,SAAOC,MAAM,yBAAyBC,QAASZ,EAAWa,GAAIZ,GAC5DS,EAAA,QAAMI,KAAK,SAAShB,GACnBS,GACCG,EAAA,QAAMC,MAAM,8BACTH,EAAY,IAAIC,KAAaD,IAAc,IAAIC,K,KAKnD,CACL,OACEC,EAAA,SACEC,MAAO,CAAE,mBAAoB,KAAM,gBAAiBP,GACpDQ,QAASZ,EACTa,GAAIZ,GAEJS,EAAA,OAAKC,MAAM,yBACRR,GAAeE,GAAYC,GAC1BI,EAAA,QAAMC,MAAM,gCAAgCR,E,OAE9CO,EAAA,QAAMC,MAAM,wBACVD,EAAA,QAAMI,KAAK,SAAShB,IAErBK,GAAeE,IAAaC,GAC3BI,EAAA,QAAMC,MAAM,gC,MAAmCR,IAGlDI,GACCG,EAAA,QAAMC,MAAM,8BACTH,EACGA,EAAYC,EAAY,QACxBA,EAAY,e,SAQfM,EAA6D,CACxEC,EACAC,KAEA,MAAMX,IACJA,EAAGJ,WACHA,EAAUJ,MACVA,EAAKoB,OACLA,EAAMC,YACNA,EAAWC,KACXA,EAAIC,cACJA,EAAaC,gBACbA,EAAeC,aACfA,EAAYC,iBACZA,GACER,EAEJ,OACEN,EAAA,OACEC,MAAO,CACL,YAAab,IAAU,OAASI,EAChC,kBAAmBJ,IAAU,MAAQI,EACrC,iBAAkBsB,EAClBlB,MACA,YAAa,OAGfI,EAAA,OAAKC,MAAM,uBACPT,EAAaL,EAAY,IAAKmB,IAAW,GAC3CN,EAAA,OACEC,MAAO,CACL,mBAAoB,KACpB,sBAAuBS,IAAS,aAGjClB,GAAcL,EAAY,IAAKmB,EAAOV,QACtCW,IAEDK,GAAmBD,IACnBX,EAAA,OAAKC,MAAM,kBAAkBE,GAAIK,KAC5BI,GACDZ,EAAA,OAAKC,MAAM,mBAAkB,YAAW,UACrCY,GAGLb,EAAA,OAAKC,MAAM,qBACTD,EAAA,QAAMI,KAAK,cAKlBU,GACCd,EAAA,OAAKC,MAAM,wBAAwBE,GAAIM,GACrCT,EAAA,QAAMI,KAAK,gBAGX,E,MAIGW,EAAqD,CAChET,EACAC,KAEA,MAAMS,aACJA,EAAYC,YACZA,EAAWC,SACXA,EAAQC,SACRA,EAAQC,QACRA,EAAOC,IACPA,EAAGC,QACHA,EAAOC,aACPA,EAAYC,UACZA,GACElB,EACJ,MAAMmB,EAAe,KACnBL,EAAQM,UAAU,EAGpB,OACE1B,EAAA,OACEC,MAAM,wBACNoB,IAAMM,IACJ,GAAIN,EAAKA,EAAIM,EAAG,GAGlB3B,EAAA,QAAMC,MAAM,yBACVD,EAAA,QAAMI,KAAK,UACVoB,GAEFjB,EACAS,IAAiBE,IAAaC,GAC7BnB,EAAA,UACEU,KAAK,SACLT,MAAM,4BACN2B,SAAS,KACTC,aAAcZ,EACda,YAAab,GAEbjB,EAAA,aACEI,KAAK,cACL2B,KAAK,MACLC,UAAU,mBAIhBhC,EAAA,QAAMC,MAAM,4BAA4BgC,QAASR,GAC/CzB,EAAA,QAAMI,KAAK,cACVmB,GAEHvB,EAAA,QAAMC,MAAM,uBACVD,EAAA,QAAMI,KAAK,QACVkB,GAEC,S","ignoreList":[]}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/*!
|
2
|
+
* Web Components for Nanopore digital Web Apps
|
3
|
+
*/
|
4
|
+
import{F as t}from"./nano-slides-2715825b.js";import"./index-6cc72cd9.js";import"./renderer-4bc3e2dc.js";t.createMethods.push("_createFullscreen");const i=t.prototype;i._createFullscreen=function(){this.isFullscreen=false;if(!this.options.fullscreen){return}this.viewFullscreenButton=new n("view",this);this.exitFullscreenButton=new n("exit",this);this.on("activate",this._changeFullscreenActive);this.on("deactivate",this._changeFullscreenActive)};i._changeFullscreenActive=function(){const t=this.isActive?"appendChild":"removeChild";this.element[t](this.viewFullscreenButton.element);this.element[t](this.exitFullscreenButton.element);const i=this.isActive?"activate":"deactivate";this.viewFullscreenButton[i]();this.exitFullscreenButton[i]()};i.viewFullscreen=function(){this._changeFullscreen(true);this.focus()};i.exitFullscreen=function(){this._changeFullscreen(false)};i._changeFullscreen=function(t){if(this.isFullscreen==t){return}this.isFullscreen=t;const i=t?"add":"remove";document.documentElement.classList[i]("is-flickity-fullscreen");this.element.classList[i]("is-fullscreen");this.resize();if(this.isFullscreen){this.reposition()}this.dispatchEvent("fullscreenChange",null,[t])};i.toggleFullscreen=function(){this._changeFullscreen(!this.isFullscreen)};const s=i.setGallerySize;i.setGallerySize=function(){if(!this.options.setGallerySize){return}if(this.isFullscreen){this.viewport.style.height=""}else{s.call(this)}};t.keyboardHandlers[27]=function(){this.exitFullscreen()};function n(t,i){this.name=t;this.createButton();this.createIcon();this.onClick=function(){i[t+"Fullscreen"]()};this.clickHandler=this.onClick.bind(this)}n.prototype.createButton=function(){const t=this.element=document.createElement("button");t.className="flickity-button flickity-fullscreen-button "+"flickity-fullscreen-button-"+this.name;t.setAttribute("type","button");const i=h(this.name+" full-screen");t.setAttribute("aria-label",i);t.title=i};function h(t){return t[0].toUpperCase()+t.slice(1)}const c="http://www.w3.org/2000/svg";const e={view:"M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z",exit:"M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z"};n.prototype.createIcon=function(){const t=document.createElementNS(c,"svg");t.setAttribute("class","flickity-button-icon");t.setAttribute("viewBox","0 0 32 32");const i=document.createElementNS(c,"path");const s=e[this.name];i.setAttribute("d",s);t.appendChild(i);this.element.appendChild(t)};n.prototype.activate=function(){this.element.addEventListener("click",this.clickHandler)};n.prototype.deactivate=function(){this.element.removeEventListener("click",this.clickHandler)};t.FullscreenButton=n;
|
5
|
+
//# sourceMappingURL=fullscreen-52d62028.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Flickity","createMethods","push","proto","prototype","_createFullscreen","this","isFullscreen","options","fullscreen","viewFullscreenButton","FullscreenButton","exitFullscreenButton","on","_changeFullscreenActive","childMethod","isActive","element","activeMethod","viewFullscreen","_changeFullscreen","focus","exitFullscreen","isView","classMethod","document","documentElement","classList","resize","reposition","dispatchEvent","toggleFullscreen","setGallerySize","viewport","style","height","call","keyboardHandlers","name","flickity","createButton","createIcon","onClick","clickHandler","bind","createElement","className","setAttribute","label","capitalize","title","text","toUpperCase","slice","svgURI","pathDirections","view","exit","svg","createElementNS","path","direction","appendChild","activate","addEventListener","deactivate","removeEventListener"],"sources":["src/components/slides/lib/js/fullscreen.ts"],"sourcesContent":["import Flickity from './flickity';\n\nFlickity.createMethods.push('_createFullscreen');\nconst proto = Flickity.prototype;\n\nproto._createFullscreen = function () {\n this.isFullscreen = false;\n\n if (!this.options.fullscreen) {\n return;\n }\n // buttons\n this.viewFullscreenButton = new FullscreenButton('view', this);\n this.exitFullscreenButton = new FullscreenButton('exit', this);\n\n this.on('activate', this._changeFullscreenActive);\n this.on('deactivate', this._changeFullscreenActive);\n};\n\n// ----- activation ----- //\n\nproto._changeFullscreenActive = function () {\n const childMethod = this.isActive ? 'appendChild' : 'removeChild';\n this.element[childMethod](this.viewFullscreenButton.element);\n this.element[childMethod](this.exitFullscreenButton.element);\n // activate or deactivate buttons\n const activeMethod = this.isActive ? 'activate' : 'deactivate';\n this.viewFullscreenButton[activeMethod]();\n this.exitFullscreenButton[activeMethod]();\n};\n\n// ----- view, exit, toggle ----- //\n\nproto.viewFullscreen = function () {\n this._changeFullscreen(true);\n this.focus();\n};\n\nproto.exitFullscreen = function () {\n this._changeFullscreen(false);\n};\n\nproto._changeFullscreen = function (isView) {\n if (this.isFullscreen == isView) {\n return;\n }\n this.isFullscreen = isView;\n const classMethod = isView ? 'add' : 'remove';\n document.documentElement.classList[classMethod]('is-flickity-fullscreen');\n this.element.classList[classMethod]('is-fullscreen');\n this.resize();\n // HACK extra reposition on fullscreen for images\n if (this.isFullscreen) {\n this.reposition();\n }\n this.dispatchEvent('fullscreenChange', null, [isView]);\n};\n\nproto.toggleFullscreen = function () {\n this._changeFullscreen(!this.isFullscreen);\n};\n\n// ----- setGallerySize ----- //\n\n// overwrite so fullscreen cells are full height\nconst setGallerySize = proto.setGallerySize;\nproto.setGallerySize = function () {\n if (!this.options.setGallerySize) {\n return;\n }\n if (this.isFullscreen) {\n // remove height style on fullscreen\n this.viewport.style.height = '';\n } else {\n // otherwise, do normal\n setGallerySize.call(this);\n }\n};\n\n// ----- keyboard ----- //\n\n// ESC key closes full screen\nFlickity.keyboardHandlers[27] = function () {\n this.exitFullscreen();\n};\n\n// ----- FullscreenButton ----- //\n\nfunction FullscreenButton(name, flickity) {\n this.name = name;\n this.createButton();\n this.createIcon();\n // events\n // trigger viewFullscreen or exitFullscreen on click\n this.onClick = function () {\n flickity[name + 'Fullscreen']();\n };\n this.clickHandler = this.onClick.bind(this);\n}\n\nFullscreenButton.prototype.createButton = function () {\n const element = (this.element = document.createElement('button'));\n element.className =\n 'flickity-button flickity-fullscreen-button ' +\n 'flickity-fullscreen-button-' +\n this.name;\n // prevent button from submitting form\n element.setAttribute('type', 'button');\n // set label\n const label = capitalize(this.name + ' full-screen');\n element.setAttribute('aria-label', label);\n element.title = label;\n};\n\nfunction capitalize(text) {\n return text[0].toUpperCase() + text.slice(1);\n}\n\nconst svgURI = 'http://www.w3.org/2000/svg';\n\nconst pathDirections = {\n view: 'M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z',\n exit: 'M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z',\n};\n\nFullscreenButton.prototype.createIcon = function () {\n const svg = document.createElementNS(svgURI, 'svg');\n svg.setAttribute('class', 'flickity-button-icon');\n svg.setAttribute('viewBox', '0 0 32 32');\n // path & direction\n const path = document.createElementNS(svgURI, 'path');\n const direction = pathDirections[this.name];\n path.setAttribute('d', direction);\n // put it together\n svg.appendChild(path);\n this.element.appendChild(svg);\n};\n\nFullscreenButton.prototype.activate = function () {\n this.element.addEventListener('click', this.clickHandler);\n};\n\nFullscreenButton.prototype.deactivate = function () {\n this.element.removeEventListener('click', this.clickHandler);\n};\n\n// @ts-ignore\nFlickity.FullscreenButton = FullscreenButton;\n"],"mappings":";;;
|
1
|
+
{"version":3,"names":["Flickity","createMethods","push","proto","prototype","_createFullscreen","this","isFullscreen","options","fullscreen","viewFullscreenButton","FullscreenButton","exitFullscreenButton","on","_changeFullscreenActive","childMethod","isActive","element","activeMethod","viewFullscreen","_changeFullscreen","focus","exitFullscreen","isView","classMethod","document","documentElement","classList","resize","reposition","dispatchEvent","toggleFullscreen","setGallerySize","viewport","style","height","call","keyboardHandlers","name","flickity","createButton","createIcon","onClick","clickHandler","bind","createElement","className","setAttribute","label","capitalize","title","text","toUpperCase","slice","svgURI","pathDirections","view","exit","svg","createElementNS","path","direction","appendChild","activate","addEventListener","deactivate","removeEventListener"],"sources":["src/components/slides/lib/js/fullscreen.ts"],"sourcesContent":["import Flickity from './flickity';\n\nFlickity.createMethods.push('_createFullscreen');\nconst proto = Flickity.prototype;\n\nproto._createFullscreen = function () {\n this.isFullscreen = false;\n\n if (!this.options.fullscreen) {\n return;\n }\n // buttons\n this.viewFullscreenButton = new FullscreenButton('view', this);\n this.exitFullscreenButton = new FullscreenButton('exit', this);\n\n this.on('activate', this._changeFullscreenActive);\n this.on('deactivate', this._changeFullscreenActive);\n};\n\n// ----- activation ----- //\n\nproto._changeFullscreenActive = function () {\n const childMethod = this.isActive ? 'appendChild' : 'removeChild';\n this.element[childMethod](this.viewFullscreenButton.element);\n this.element[childMethod](this.exitFullscreenButton.element);\n // activate or deactivate buttons\n const activeMethod = this.isActive ? 'activate' : 'deactivate';\n this.viewFullscreenButton[activeMethod]();\n this.exitFullscreenButton[activeMethod]();\n};\n\n// ----- view, exit, toggle ----- //\n\nproto.viewFullscreen = function () {\n this._changeFullscreen(true);\n this.focus();\n};\n\nproto.exitFullscreen = function () {\n this._changeFullscreen(false);\n};\n\nproto._changeFullscreen = function (isView) {\n if (this.isFullscreen == isView) {\n return;\n }\n this.isFullscreen = isView;\n const classMethod = isView ? 'add' : 'remove';\n document.documentElement.classList[classMethod]('is-flickity-fullscreen');\n this.element.classList[classMethod]('is-fullscreen');\n this.resize();\n // HACK extra reposition on fullscreen for images\n if (this.isFullscreen) {\n this.reposition();\n }\n this.dispatchEvent('fullscreenChange', null, [isView]);\n};\n\nproto.toggleFullscreen = function () {\n this._changeFullscreen(!this.isFullscreen);\n};\n\n// ----- setGallerySize ----- //\n\n// overwrite so fullscreen cells are full height\nconst setGallerySize = proto.setGallerySize;\nproto.setGallerySize = function () {\n if (!this.options.setGallerySize) {\n return;\n }\n if (this.isFullscreen) {\n // remove height style on fullscreen\n this.viewport.style.height = '';\n } else {\n // otherwise, do normal\n setGallerySize.call(this);\n }\n};\n\n// ----- keyboard ----- //\n\n// ESC key closes full screen\nFlickity.keyboardHandlers[27] = function () {\n this.exitFullscreen();\n};\n\n// ----- FullscreenButton ----- //\n\nfunction FullscreenButton(name, flickity) {\n this.name = name;\n this.createButton();\n this.createIcon();\n // events\n // trigger viewFullscreen or exitFullscreen on click\n this.onClick = function () {\n flickity[name + 'Fullscreen']();\n };\n this.clickHandler = this.onClick.bind(this);\n}\n\nFullscreenButton.prototype.createButton = function () {\n const element = (this.element = document.createElement('button'));\n element.className =\n 'flickity-button flickity-fullscreen-button ' +\n 'flickity-fullscreen-button-' +\n this.name;\n // prevent button from submitting form\n element.setAttribute('type', 'button');\n // set label\n const label = capitalize(this.name + ' full-screen');\n element.setAttribute('aria-label', label);\n element.title = label;\n};\n\nfunction capitalize(text) {\n return text[0].toUpperCase() + text.slice(1);\n}\n\nconst svgURI = 'http://www.w3.org/2000/svg';\n\nconst pathDirections = {\n view: 'M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z',\n exit: 'M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z',\n};\n\nFullscreenButton.prototype.createIcon = function () {\n const svg = document.createElementNS(svgURI, 'svg');\n svg.setAttribute('class', 'flickity-button-icon');\n svg.setAttribute('viewBox', '0 0 32 32');\n // path & direction\n const path = document.createElementNS(svgURI, 'path');\n const direction = pathDirections[this.name];\n path.setAttribute('d', direction);\n // put it together\n svg.appendChild(path);\n this.element.appendChild(svg);\n};\n\nFullscreenButton.prototype.activate = function () {\n this.element.addEventListener('click', this.clickHandler);\n};\n\nFullscreenButton.prototype.deactivate = function () {\n this.element.removeEventListener('click', this.clickHandler);\n};\n\n// @ts-ignore\nFlickity.FullscreenButton = FullscreenButton;\n"],"mappings":"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","ignoreList":[]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* Web Components for Nanopore digital Web Apps
|
3
3
|
*/
|
4
|
-
const e="nano-components";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:true,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,modernPropertyDecls:true,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:true,scriptDataOpts:
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{u.set(r,e)}return e[i]}),(e=>{c(e,t.$hostElement$)}))};var d=new Map;var h="r";var p="o";var m="s";var b="t";var $="c";var y="s-id";var g="sty-id";var w="c-id";var S="{visibility:hidden}.hydrated{visibility:inherit}";var j="slot-fb{display:contents}slot-fb[hidden]{display:none}";var O="http://www.w3.org/1999/xlink";var N=typeof window!=="undefined"?window:{};var x=N.HTMLElement||class{};var C={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)};var k=t.shadowDom;var E=(()=>{var e;let t=false;try{(e=N.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var T=e=>Promise.resolve(e);var F=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var L=false;var A=[];var R=[];var D=(e,t)=>n=>{e.push(n);if(!L){L=true;if(t&&C.u&4){I(P)}else{C.raf(P)}}};var M=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){c(e)}}e.length=0};var P=()=>{M(A);{M(R);if(L=A.length>0){C.raf(P)}}};var I=e=>T().then(e);var B=D(A,false);var U=D(R,true);var _=e=>{const t=new URL(e,C.j);return t.origin!==N.location.origin?t.href:t.pathname};var W=e=>e!=null&&e!==void 0;var z=e=>{e=typeof e;return e==="object"||e==="function"};function H(e){var t,n,i;return(i=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?i:void 0}var Q={};i(Q,{err:()=>Y,map:()=>q,ok:()=>V,unwrap:()=>G,unwrapErr:()=>K});var V=e=>({isOk:true,isErr:false,value:e});var Y=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>V(e)))}else{return V(n)}}if(e.isErr){const t=e.value;return Y(t)}throw"should never get here"}var G=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};var X=e=>{const t=ke(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){Z(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(ee(e,ie(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&ke(e,"childNodes").length){X(e)}}};var J=e=>{const t=[];for(let n=0;n<e.length;n++){const i=e[n]["s-nr"]||void 0;if(i&&i.isConnected){t.push(i)}}return t};function Z(e,t,n){let i=0;let r=[];let s;for(;i<e.length;i++){s=e[i];if(s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||ie(s)===n)){r.push(s);if(typeof n!=="undefined")return r}r=[...r,...Z(s.childNodes,t,n)]}return r}var ee=(e,t,n=true)=>{const i=[];if(n&&e["s-sr"]||!e["s-sr"])i.push(e);let r=e;while(r=r.nextSibling){if(ie(r)===t&&(n||!r["s-sr"]))i.push(r)}return i};var te=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var ne=(e,t,n,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const r=document.createTextNode("");r["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const s=t["s-cr"].parentNode;const l=n?ke(s,"prepend"):ke(s,"appendChild");if(typeof i!=="undefined"){r["s-oo"]=i;const e=ke(s,"childNodes");const t=[r];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>l.call(s,e)))}else{l.call(s,r)}e["s-ol"]=r;e["s-sh"]=t["s-hn"]};var ie=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const i=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const r=this["s-cr"].parentElement;const s=r.__childNodes?r.childNodes:J(r.childNodes);s.forEach((e=>{if(i===ie(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function se(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function le(e,t){var n;t=t||((n=e["s-ol"])==null?void 0:n.parentElement);if(!t)return{slotNode:null,slotName:""};const i=e["s-sn"]=ie(e)||"";const r=ke(t,"childNodes");const s=Z(r,t.tagName,i)[0];return{slotNode:s,slotName:i}}var oe=e=>{fe(e);ae(e);ve(e);ue(e);me(e);de(e);he(e);pe(e);be(e);$e(e);ce(e)};var fe=e=>{const t=e.cloneNode;e.cloneNode=function(e){const n=this;const i=n.shadowRoot&&k;const r=t.call(n,i?e:false);if(!i&&e){let e=0;let t,n;const i=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];const s=this.__childNodes||this.childNodes;for(;e<s.length;e++){t=s[e]["s-nr"];n=i.every((t=>!s[e][t]));if(t){if(r.__appendChild){r.__appendChild(t.cloneNode(true))}else{r.appendChild(t.cloneNode(true))}}if(n){r.appendChild(s[e].cloneNode(true))}}}return r}};var ae=e=>{e.__appendChild=e.appendChild;e.appendChild=function(e){const{slotName:t,slotNode:n}=le(e,this);if(n){ne(e,n);const i=ee(n,t);const r=i[i.length-1];const s=ke(r,"parentNode");const l=ke(s,"insertBefore")(e,r.nextSibling);se(n);X(this);return l}return this.__appendChild(e)}};var ce=e=>{e.__removeChild=e.removeChild;e.removeChild=function(e){if(e&&typeof e["s-sn"]!=="undefined"){const t=this.__childNodes||this.childNodes;const n=Z(t,this.tagName,e["s-sn"]);if(n&&e.isConnected){e.remove();X(this);return}}return this.__removeChild(e)}};var ue=e=>{e.__prepend=e.prepend;e.prepend=function(...t){t.forEach((t=>{if(typeof t==="string"){t=this.ownerDocument.createTextNode(t)}const n=(t["s-sn"]=ie(t))||"";const i=ke(this,"childNodes");const r=Z(i,this.tagName,n)[0];if(r){ne(t,r,true);const e=ee(r,n);const i=e[0];const s=ke(i,"parentNode");const l=ke(s,"insertBefore")(t,ke(i,"nextSibling"));se(r);return l}if(t.nodeType===1&&!!t.getAttribute("slot")){t.hidden=true}return e.__prepend(t)}))}};var ve=e=>{e.__append=e.append;e.append=function(...e){e.forEach((e=>{if(typeof e==="string"){e=this.ownerDocument.createTextNode(e)}this.appendChild(e)}))}};var de=e=>{const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,n){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,n)}const i=this.ownerDocument.createElement("_");let r;i.innerHTML=n;if(e==="afterbegin"){while(r=i.firstChild){this.prepend(r)}}else if(e==="beforeend"){while(r=i.firstChild){this.append(r)}}}};var he=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}};var pe=e=>{const t=e;if(t.__insertBefore)return;t.__insertBefore=e.insertBefore;e.insertBefore=function(e,t){const{slotName:n,slotNode:i}=le(e,this);const r=this.__childNodes?this.childNodes:J(this.childNodes);if(i){let s=false;r.forEach((r=>{if(r===t||t===null){s=true;if(t===null||n!==t["s-sn"]){this.appendChild(e);return}if(n===t["s-sn"]){ne(e,i);const n=ke(t,"parentNode");ke(n,"insertBefore")(e,t);se(i)}return}}));if(s)return e}const s=t==null?void 0:t.__parentNode;if(s&&!this.isSameNode(s)){return this.appendChild(e)}return this.__insertBefore(e,t)}};var me=e=>{const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,n){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,n)}if(e==="afterbegin"){this.prepend(n);return n}else if(e==="beforeend"){this.append(n);return n}return n}};var be=e=>{Ce("textContent",e);Object.defineProperty(e,"textContent",{get:function(){let e="";const t=this.__childNodes?this.childNodes:J(this.childNodes);t.forEach((t=>e+=t.textContent||""));return e},set:function(e){const t=this.__childNodes?this.childNodes:J(this.childNodes);t.forEach((e=>{if(e["s-ol"])e["s-ol"].remove();e.remove()}));this.insertAdjacentHTML("beforeend",e)}})};var $e=e=>{class t extends Array{item(e){return this[e]}}Ce("children",e);Object.defineProperty(e,"children",{get(){return this.childNodes.filter((e=>e.nodeType===1))}});Object.defineProperty(e,"childElementCount",{get(){return this.children.length}});Ce("firstChild",e);Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}});Ce("lastChild",e);Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}});Ce("childNodes",e);Object.defineProperty(e,"childNodes",{get(){const e=new t;e.push(...J(this.__childNodes));return e}})};var ye=e=>{if(!e||e.__nextSibling!==void 0||!globalThis.Node)return;ge(e);Se(e);Oe(e);if(e.nodeType===Node.ELEMENT_NODE){we(e);je(e)}};var ge=e=>{if(!e||e.__nextSibling)return;Ce("nextSibling",e);Object.defineProperty(e,"nextSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.childNodes;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n+1]}return this.__nextSibling}})};var we=e=>{if(!e||e.__nextElementSibling)return;Ce("nextElementSibling",e);Object.defineProperty(e,"nextElementSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.children;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n+1]}return this.__nextElementSibling}})};var Se=e=>{if(!e||e.__previousSibling)return;Ce("previousSibling",e);Object.defineProperty(e,"previousSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.childNodes;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n-1]}return this.__previousSibling}})};var je=e=>{if(!e||e.__previousElementSibling)return;Ce("previousElementSibling",e);Object.defineProperty(e,"previousElementSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.children;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n-1]}return this.__previousElementSibling}})};var Oe=e=>{if(!e||e.__parentNode)return;Ce("parentNode",e);Object.defineProperty(e,"parentNode",{get:function(){var e;return((e=this["s-ol"])==null?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}})};var Ne=["children","nextElementSibling","previousElementSibling"];var xe=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Ce(e,t){let n;if(Ne.includes(e)){n=Object.getOwnPropertyDescriptor(Element.prototype,e)}else if(xe.includes(e)){n=Object.getOwnPropertyDescriptor(Node.prototype,e)}if(!n){n=Object.getOwnPropertyDescriptor(t,e)}if(n)Object.defineProperty(t,"__"+e,n)}function ke(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var Ee=(e,t="")=>{{return()=>{}}};var Te=(e,t)=>{{return()=>{}}};var Fe=(e,t,...n)=>{let i=null;let r=null;let s=null;let l=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){i=t[n];if(Array.isArray(i)){a(i)}else if(i!=null&&typeof i!=="boolean"){if(l=typeof e!=="function"&&!z(i)){i=String(i)}if(l&&o){f[f.length-1].O+=i}else{f.push(l?Le(null,i):i)}o=l}}};a(n);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,De)}const c=Le(e,null);c.N=t;if(f.length>0){c.C=f}{c.k=r}{c.T=s}return c};var Le=(e,t)=>{const n={u:0,F:e,O:t,L:null,C:null};{n.N=null}{n.k=null}{n.T=null}return n};var Ae={};var Re=e=>e&&e.F===Ae;var De={forEach:(e,t)=>e.map(Me).forEach(t),map:(e,t)=>e.map(Me).map(t).map(Pe)};var Me=e=>({vattrs:e.N,vchildren:e.C,vkey:e.k,vname:e.T,vtag:e.F,vtext:e.O});var Pe=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return Fe(e.vtag,t,...e.vchildren||[])}const t=Le(e.vtag,e.vtext);t.N=e.vattrs;t.C=e.vchildren;t.k=e.vkey;t.T=e.vname;return t};var Ie=(e,t,n,i)=>{const r=Ee("hydrateClient",t);const s=e.shadowRoot;const l=[];const o=[];const f=[];const a=s?[]:null;const c=Le(t,null);c.L=e;let u;{const t=i.t;if(t&&t.u&10&&e["s-sc"]){u=e["s-sc"];e.classList.add(u+"-h")}else if(e["s-sc"]){delete e["s-sc"]}}if(N.document&&(!C.A||!C.A.size)){Ue(N.document.body,C.A=new Map)}e[y]=n;e.removeAttribute(y);i.R=Be(c,l,o,a,e,e,n,f);let v=0;const d=l.length;let h;for(v;v<d;v++){h=l[v];const n=h.D+"."+h.M;const i=C.A.get(n);const r=h.L;if(!s){r["s-hn"]=t.toUpperCase();if(h.F==="slot"){r["s-cr"]=e["s-cr"]}}if(h.F==="slot"){h.T=h.L["s-sn"]||h.L["name"]||null;if(h.C){h.u|=2;if(!h.L.childNodes.length){h.C.forEach((e=>{h.L.appendChild(e.L)}))}}else{h.u|=1}}if(i&&i.isConnected){if(s&&i["s-en"]===""){i.parentNode.insertBefore(r,i.nextSibling)}i.parentNode.removeChild(i);if(!s){r["s-oo"]=parseInt(h.M)}}C.A.delete(n)}const p=[];const m=f.length;let b=0;let $;let g;let w;let S;for(b;b<m;b++){$=f[b];if(!$||!$.length)continue;w=$.length;g=0;for(g;g<w;g++){S=$[g];if(!p[S.hostId]){p[S.hostId]=C.A.get(S.hostId)}if(!p[S.hostId])continue;const e=p[S.hostId];if(!e.shadowRoot||!s){S.slot["s-cr"]=e["s-cr"];if(!S.slot["s-cr"]&&e.shadowRoot){S.slot["s-cr"]=e}else{S.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}ne(S.node,S.slot,false,S.node["s-oo"]);{ye(S.node)}}if(e.shadowRoot&&S.node.parentElement!==e){e.appendChild(S.node)}}}if(u&&o.length){o.forEach((e=>{e.L.parentElement.classList.add(u+"-s")}))}if(s&&!s.childNodes.length){let t=0;const n=a.length;if(n){for(t;t<n;t++){s.appendChild(a[t])}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8||e.nodeType===3&&!e.wholeText.trim()){e.parentNode.removeChild(e)}}}))}}C.A.delete(e["s-id"]);i.$hostElement$=e;r()};var Be=(e,t,n,i,r,s,l,o=[])=>{let f;let a;let c;let u;const v=r["s-sc"];if(s.nodeType===1){f=s.getAttribute(w);if(f){a=f.split(".");if(a[0]===l||a[0]==="0"){c=_e({u:0,D:a[0],M:a[1],P:a[2],I:a[3],F:s.tagName.toLowerCase(),L:s,N:{class:s.className||""}});t.push(c);s.removeAttribute(w);if(!e.C){e.C=[]}if(v){s["s-si"]=v;c.N.class+=" "+v}const r=c.L.getAttribute("s-sn");if(typeof r==="string"){if(c.F==="slot-fb"){We(r,a[2],c,s,e,t,n,i,o);if(v){s.classList.add(v)}}c.L["s-sn"]=r;c.L.removeAttribute("s-sn")}if(c.I!==void 0){e.C[c.I]=c}e=c;if(i&&c.P==="0"){i[c.I]=c.L}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){Be(e,t,n,i,r,s.shadowRoot.childNodes[u],l,o)}}const d=s.__childNodes||s.childNodes;for(u=d.length-1;u>=0;u--){Be(e,t,n,i,r,d[u],l,o)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===l||a[1]==="0"){f=a[0];c=_e({D:a[1],M:a[2],P:a[3],I:a[4]||"0",L:s,N:null,C:null,k:null,T:null,F:null,O:null});if(f===b){c.L=He(s,3);if(c.L&&c.L.nodeType===3){c.O=c.L.textContent;t.push(c);s.remove();if(l===c.D){if(!e.C){e.C=[]}e.C[c.I]=c}if(i&&c.P==="0"){i[c.I]=c.L}}}else if(f===$){c.L=He(s,8);if(c.L&&c.L.nodeType===8){t.push(c);s.remove()}}else if(c.D===l){if(f===m){const r=s["s-sn"]=a[5]||"";We(r,a[2],c,s,e,t,n,i,o)}else if(f===h){if(i){s.remove()}else{r["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.F==="style"){const t=Le(null,s.textContent);t.L=s;t.I="0";e.C=[t]}else{if(s.nodeType===3&&!s.wholeText.trim()){s.remove()}}return e};var Ue=(e,t)=>{if(e.nodeType===1){const n=e[y]||e.getAttribute(y);if(n){t.set(n,e)}let i=0;if(e.shadowRoot){for(;i<e.shadowRoot.childNodes.length;i++){Ue(e.shadowRoot.childNodes[i],t)}}const r=e.__childNodes||e.childNodes;for(i=0;i<r.length;i++){Ue(r[i],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===p){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var _e=e=>{const t={u:0,D:null,M:null,P:null,I:"0",L:null,N:null,C:null,k:null,T:null,F:null,O:null};return{...t,...e}};function We(e,t,n,i,r,s,l,o,f){i["s-sr"]=true;n.T=e||null;n.F="slot";const a=(r==null?void 0:r.L)?r.L["s-id"]||r.L.getAttribute("s-id"):"";if(o&&N.document){const s=n.L=N.document.createElement(n.F);if(n.T){n.L.setAttribute("name",e)}if(a&&a!==n.D){r.L.insertBefore(s,r.L.children[0])}else{i.parentNode.insertBefore(n.L,i)}ze(f,t,e,i,n.D);i.remove();if(n.P==="0"){o[n.I]=n.L}}else{const l=n.L;const o=a&&a!==n.D&&r.L.shadowRoot;ze(f,t,e,i,o?a:n.D);re(i);if(o){r.L.insertBefore(l,r.L.children[0])}s.push(n)}l.push(n);if(!r.C){r.C=[]}r.C[n.I]=n}var ze=(e,t,n,i,r)=>{let s=i.nextSibling;e[t]=e[t]||[];while(s&&((s["getAttribute"]&&s.getAttribute("slot")||s["s-sn"])===n||n===""&&!s["s-sn"]&&(s.nodeType===8&&s.nodeValue.indexOf(".")!==1||s.nodeType===3))){s["s-sn"]=n;e[t].push({slot:i,node:s,hostId:r});s=s.nextSibling}};var He=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Qe=(e,t)=>{if(e!=null&&!z(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var Ve=e=>l(e).$hostElement$;var Ye=(e,t,n)=>{const i=Ve(e);return{emit:e=>qe(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var qe=(e,t,n)=>{const i=C.ce(t,n);e.dispatchEvent(i);return i};var Ge=new WeakMap;var Ke=(e,t,n)=>{let i=d.get(e);if(F&&n){i=i||new CSSStyleSheet;if(typeof i==="string"){i=t}else{i.replaceSync(t)}}else{i=t}d.set(e,i)};var Xe=(e,t,n)=>{var i;const r=Ze(t);const s=d.get(r);if(!N.document){return r}e=e.nodeType===11?e:N.document;if(s){if(typeof s==="string"){e=e.head||e;let n=Ge.get(e);let l;if(!n){Ge.set(e,n=new Set)}if(!n.has(r)){if(e.host&&(l=e.querySelector(`[${g}="${r}"]`))){l.innerHTML=s}else{l=document.querySelector(`[${g}="${r}"]`)||N.document.createElement("style");l.innerHTML=s;const n=(i=C.B)!=null?i:H(N.document);if(n!=null){l.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(F){const t=new CSSStyleSheet;t.replaceSync(s);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}}if(t.u&4){l.innerHTML+=j}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var Je=e=>{const t=e.t;const n=e.$hostElement$;const i=t.u;const r=Ee("attachStyles",t.$);const s=Xe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(i&10&&i&2||i&128){n["s-sc"]=s;n.classList.add(s+"-h")}r()};var Ze=(e,t)=>"sc-"+e.$;var et=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var tt=()=>{if(!N.document){return}const e=N.document.querySelectorAll(`[${g}]`);let t=0;for(;t<e.length;t++){Ke(e[t].getAttribute(g),et(e[t].innerHTML),true)}};var nt=(e,t,n,i,r,s,l)=>{if(n===i){return}let o=a(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const r=rt(n);let s=rt(i);if(e["s-si"]&&l){s.push(e["s-si"]);r.forEach((t=>{if(t.startsWith(e["s-si"]))s.push(t)}));s=[...new Set(s)];t.add(...s)}else{t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}}else if(t==="style"){{for(const t in n){if(!i||i[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in i){if(!n||i[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,i[t])}else{e.style[t]=i[t]}}}}else if(t==="key");else if(t==="ref"){if(i){i(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(N,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||i){const r=t.endsWith(st);t=t.replace(lt,"");if(n){C.rel(e,t,n,r)}if(i){C.ael(e,t,i,r)}}}else{const l=z(i);if((o||l&&i!==null)&&!r){try{if(!e.tagName.includes("-")){const r=i==null?"":i;if(t==="list"){o=false}else if(n==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else if(e[t]!==i){e[t]=i}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(i==null||i===false){if(i!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(O,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||r)&&!l&&e.nodeType===1){i=i===true?"":i;if(a){e.setAttributeNS(O,t,i)}else{e.setAttribute(t,i)}}}};var it=/\s/;var rt=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(it)};var st="Capture";var lt=new RegExp(st+"$");var ot=(e,t,n,i)=>{const r=t.L.nodeType===11&&t.L.host?t.L.host:t.L;const s=e&&e.N||{};const l=t.N||{};{for(const e of ft(Object.keys(s))){if(!(e in l)){nt(r,e,s[e],void 0,n,t.u,i)}}}for(const e of ft(Object.keys(l))){nt(r,e,s[e],l[e],n,t.u,i)}};function ft(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var at;var ct;var ut;var vt=false;var dt=false;var ht=false;var pt=false;var mt=(e,n,i)=>{var r;const s=n.C[i];let l=0;let o;let f;let a;if(!vt){ht=true;if(s.F==="slot"){s.u|=s.C?2:1}}if(s.O!==null){o=s.L=N.document.createTextNode(s.O)}else if(s.u&1){o=s.L=N.document.createTextNode("");{ot(null,s,pt)}}else{if(!N.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=s.L=N.document.createElement(!vt&&t.slotRelocation&&s.u&2?"slot-fb":s.F);{ot(null,s,pt)}if(W(at)&&o["s-si"]!==at){o.classList.add(o["s-si"]=at)}if(s.C){for(l=0;l<s.C.length;++l){f=mt(e,s,l);if(f){o.appendChild(f)}}}}o["s-hn"]=ut;{if(s.u&(2|1)){o["s-sr"]=true;o["s-cr"]=ct;o["s-sn"]=s.T||"";o["s-rf"]=(r=s.N)==null?void 0:r.ref;re(o);a=e&&e.C&&e.C[i];if(a&&a.F===s.F&&e.L){{bt(e.L)}}{Et(ct,o,n.L,e==null?void 0:e.L)}}}return o};var bt=e=>{C.u|=1;const t=e.closest(ut.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const i=Array.from(e.__childNodes||e.childNodes);for(const e of n?i.reverse():i){if(e["s-sh"]!=null){kt(t,e,n!=null?n:null);e["s-sh"]=void 0;ht=true}}}C.u&=~1};var $t=(e,n)=>{C.u|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===ut){i.push(t)}}}for(let e=i.length-1;e>=0;e--){const t=i[e];if(t["s-hn"]!==ut&&t["s-ol"]){kt(jt(t).parentNode,t,jt(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;ht=true}if(n){$t(t,n)}}C.u&=~1};var yt=(e,t,n,i,r,s)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(l.shadowRoot&&l.tagName===ut){l=l.shadowRoot}for(;r<=s;++r){if(i[r]){o=mt(null,n,r);if(o){i[r].L=o;kt(l,o,jt(t))}}}};var gt=(e,t,n)=>{for(let i=t;i<=n;++i){const t=e[i];if(t){const e=t.L;Ct(t);if(e){{dt=true;if(e["s-ol"]){e["s-ol"].remove()}else{$t(e,true)}}e.remove()}}}};var wt=(e,t,n,i,r=false)=>{let s=0;let l=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=i.length-1;let d=i[0];let h=i[v];let p;let m;while(s<=a&&l<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=i[++l]}else if(h==null){h=i[--v]}else if(St(c,d,r)){Ot(c,d,r);c=t[++s];d=i[++l]}else if(St(u,h,r)){Ot(u,h,r);u=t[--a];h=i[--v]}else if(St(c,h,r)){if(c.F==="slot"||h.F==="slot"){$t(c.L.parentNode,false)}Ot(c,h,r);kt(e,c.L,u.L.nextSibling);c=t[++s];h=i[--v]}else if(St(u,d,r)){if(c.F==="slot"||h.F==="slot"){$t(u.L.parentNode,false)}Ot(u,d,r);kt(e,u.L,c.L);u=t[--a];d=i[++l]}else{o=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){o=f;break}}}if(o>=0){m=t[o];if(m.F!==d.F){p=mt(t&&t[l],n,o)}else{Ot(m,d,r);t[o]=void 0;p=m.L}d=i[++l]}else{p=mt(t&&t[l],n,l);d=i[++l]}if(p){{kt(jt(c.L).parentNode,p,jt(c.L))}}}}if(s>a){yt(e,i[v+1]==null?null:i[v+1].L,n,i,l,v)}else if(l>v){gt(t,s,a)}};var St=(e,t,n=false)=>{if(e.F===t.F){if(e.F==="slot"){return e.T===t.T}if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var jt=e=>e&&e["s-ol"]||e;var Ot=(e,n,i=false)=>{const r=n.L=e.L;const s=e.C;const l=n.C;const o=n.F;const f=n.O;let a;if(f===null){{if(o==="slot"&&!vt){if(e.T!==n.T){n.L["s-sn"]=n.T||"";bt(n.L.parentElement)}}ot(e,n,pt,i)}if(s!==null&&l!==null){wt(r,s,n,l,i)}else if(l!==null){if(e.O!==null){r.textContent=""}yt(r,null,n,l,0,l.length-1)}else if(!i&&t.updatable&&s!==null){gt(s,0,s.length-1)}}else if(a=r["s-cr"]){a.parentNode.textContent=f}else if(e.O!==f){r.data=f}};var Nt=[];var xt=e=>{let t;let n;let i;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=e["s-sn"];for(i=n.length-1;i>=0;i--){t=n[i];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==e["s-hn"])){if(te(t,r)){let n=Nt.find((e=>e.U===t));dt=true;t["s-sn"]=t["s-sn"]||r;if(n){n.U["s-sh"]=e["s-hn"];n._=e}else{t["s-sh"]=e["s-hn"];Nt.push({_:e,U:t})}if(t["s-sr"]){Nt.map((e=>{if(te(e.U,t["s-sn"])){n=Nt.find((e=>e.U===t));if(n&&!e._){e._=n._}}}))}}else if(!Nt.some((e=>e.U===t))){Nt.push({U:t})}}}}if(e.nodeType===1){xt(e)}}};var Ct=e=>{{e.N&&e.N.ref&&e.N.ref(null);e.C&&e.C.map(Ct)}};var kt=(e,t,n)=>{if(typeof t["s-sn"]==="string"&&!!t["s-sr"]&&!!t["s-cr"]){Et(t["s-cr"],t,e,t.parentElement)}else if(typeof t["s-sn"]==="string"){if(e.getRootNode().nodeType!==11){Oe(t)}e.insertBefore(t,n);const{slotNode:i}=le(t);if(i)se(i);return t}if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};function Et(e,t,n,i){var r,s;let l;if(e&&typeof t["s-sn"]==="string"&&!!t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(l=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"];const o=t["s-hn"];(r=n.classList)==null?void 0:r.add(l+"-s");if(i&&((s=i.classList)==null?void 0:s.contains(l+"-s"))){let t=(i.__childNodes||i.childNodes)[0];let n=false;while(t){if(t["s-sn"]!==e&&t["s-hn"]===o&&!!t["s-sr"]){n=true;break}t=t.nextSibling}if(!n)i.classList.remove(l+"-s")}}}var Tt=(e,t,n=false)=>{var i,r,s,l,o;const f=e.$hostElement$;const a=e.t;const c=e.R||Le(null,null);const u=Re(t)?t:Fe(null,null,t);ut=f.tagName;if(a.W){u.N=u.N||{};a.W.map((([e,t])=>u.N[t]=f[e]))}if(n&&u.N){for(const e of Object.keys(u.N)){if(f.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.N[e]=f[e]}}}u.F=null;u.u|=4;e.R=u;u.L=c.L=f.shadowRoot||f;{at=f["s-sc"]}vt=!!(a.u&1)&&!(a.u&128);{ct=f["s-cr"];dt=false}Ot(c,u,n);{C.u|=1;if(ht){xt(u.L);for(const e of Nt){const t=e.U;if(!t["s-ol"]&&N.document){const e=N.document.createTextNode("");e["s-nr"]=t;kt(t.parentNode,t["s-ol"]=e,t)}}for(const e of Nt){const t=e.U;const o=e._;if(o){const e=o.parentNode;let n=o.nextSibling;if(n&&n.nodeType===1){let s=(i=t["s-ol"])==null?void 0:i.previousSibling;while(s){let i=(r=s["s-nr"])!=null?r:null;if(i&&i["s-sn"]===t["s-sn"]&&e===(i.__parentNode||i.parentNode)){i=i.nextSibling;while(i===t||(i==null?void 0:i["s-sr"])){i=i==null?void 0:i.nextSibling}if(!i||!i["s-nr"]){n=i;break}}s=s.previousSibling}}const l=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==l||f!==n){if(t!==n){kt(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](o)}else{if(t.nodeType===1){if(n){t["s-ih"]=(l=t.hidden)!=null?l:false}t.hidden=true}}}}if(dt){X(u.L)}C.u&=~1;Nt.length=0}if(a.u&2){const e=u.L.__childNodes||u.L.childNodes;for(const t of e){if(t["s-hn"]!==ut&&!t["s-sh"]){if(n&&t["s-ih"]==null){t["s-ih"]=(o=t.hidden)!=null?o:false}t.hidden=true}}}ct=void 0};var Ft=(e,t)=>{if(t&&!e.H&&t["s-p"]){const n=t["s-p"].push(new Promise((i=>e.H=()=>{t["s-p"].splice(n-1,1);i()})))}};var Lt=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}Ft(e,e.V);const n=()=>At(e,t);return U(n)};var At=(e,t)=>{const n=e.$hostElement$;const i=Ee("scheduleUpdate",e.t.$);const r=e.o;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{e.u|=256;if(e.Y){e.Y.map((([e,t])=>zt(r,e,t,n)));e.Y=void 0}}s=zt(r,"componentWillLoad",void 0,n)}else{s=zt(r,"componentWillUpdate",void 0,n)}s=Rt(s,(()=>zt(r,"componentWillRender",void 0,n)));i();return Rt(s,(()=>Mt(e,r,t)))};var Rt=(e,t)=>Dt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Dt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Mt=async(e,t,n)=>{var i;const r=e.$hostElement$;const s=Ee("update",e.t.$);const l=r["s-rc"];if(n){Je(e)}const o=Ee("render",e.t.$);{It(e,t,r,n)}if(l){l.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(i=r["s-p"])!=null?i:[];const n=()=>Ut(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var Pt=null;var It=(e,t,n,i)=>{try{Pt=t;t=t.render();{e.u&=~16}{e.u|=2}{{{Tt(e,t,i)}}}}catch(t){c(t,e.$hostElement$)}Pt=null;return null};var Bt=()=>Pt;var Ut=e=>{const t=e.t.$;const n=e.$hostElement$;const i=Ee("postUpdate",t);const r=e.o;const s=e.V;zt(r,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{Ht(n)}zt(r,"componentDidLoad",void 0,n);i();{e.m(n);if(!s){Wt()}}}else{zt(r,"componentDidUpdate",void 0,n);i()}{e.h(n)}{if(e.H){e.H();e.H=void 0}if(e.u&512){I((()=>Lt(e,false)))}e.u&=~(4|512)}};var _t=e=>{{const t=l(e);const n=t.$hostElement$.isConnected;if(n&&(t.u&(2|16))===2){Lt(t,false)}return n}};var Wt=t=>{I((()=>qe(N,"appload",{detail:{namespace:e}})))};var zt=(e,t,n,i)=>{if(e&&e[t]){try{return e[t](n)}catch(e){c(e,i)}}return void 0};var Ht=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Qt=(e,t)=>l(e).l.get(t);var Vt=(e,t,n,i)=>{const r=l(e);if(!r){throw new Error(`Couldn't find host element for "${i.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const s=r.$hostElement$;const o=r.l.get(t);const f=r.u;const a=r.o;n=Qe(n,i.i[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(f&8)||o===void 0)&&v){r.l.set(t,n);if(a){if(i.q&&f&128){const e=i.q[t];if(e){e.map((e=>{try{a[e](n,o,t)}catch(e){c(e,s)}}))}}if((f&(2|16))===2){if(a.componentShouldUpdate){if(a.componentShouldUpdate(n,o,t)===false){return}}Lt(r,false)}}}};var Yt=(e,n,i)=>{var r,s;const o=e.prototype;if(n.i||(n.q||e.watchers)){if(e.watchers&&!n.q){n.q=e.watchers}const f=Object.entries((r=n.i)!=null?r:{});f.map((([e,[t]])=>{if(t&31||i&2&&t&32){const{get:r,set:s}=Object.getOwnPropertyDescriptor(o,e)||{};if(r)n.i[e][0]|=2048;if(s)n.i[e][0]|=4096;if(i&1||!r){Object.defineProperty(o,e,{get(){{if((n.i[e][0]&2048)===0){return Qt(this,e)}const t=l(this);const i=t?t.o:o;if(!i)return;return i[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(r){const o=l(this);if(s){const i=t&32?this[e]:o.$hostElement$[e];if(typeof i==="undefined"&&o.l.get(e)){r=o.l.get(e)}else if(!o.l.get(e)&&i){o.l.set(e,i)}s.apply(this,[Qe(r,t)]);r=t&32?this[e]:o.$hostElement$[e];Vt(this,e,r,n);return}{if((i&1)===0||(n.i[e][0]&4096)===0){Vt(this,e,r,n);if(i&1&&!o.o){o.p.then((()=>{if(n.i[e][0]&4096&&o.o[e]!==o.l.get(e)){o.o[e]=r}}))}return}const s=()=>{const i=o.o[e];if(!o.l.get(e)&&i){o.l.set(e,i)}o.o[e]=Qe(r,t);Vt(this,e,o.o[e],n)};if(o.o){s()}else{o.p.then((()=>s()))}}}})}else if(i&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const i=l(this);return(n=i==null?void 0:i.v)==null?void 0:n.then((()=>{var n;return(n=i.o)==null?void 0:n[e](...t)}))}})}}));if(i&1){const i=new Map;o.attributeChangedCallback=function(e,r,s){C.jmp((()=>{var f;const a=i.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){s=this[a];delete this[a]}else if(o.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==s){return}else if(a==null){const t=l(this);const i=t==null?void 0:t.u;if(i&&!(i&8)&&i&128&&s!==r){const i=t.o;const l=(f=n.q)==null?void 0:f[e];l==null?void 0:l.forEach((t=>{if(i[t]!=null){i[t].call(i,s,r,e)}}))}return}const c=Object.getOwnPropertyDescriptor(o,a);s=s===null&&typeof this[a]==="boolean"?false:s;if(s!==this[a]&&(!c.get||!!c.set)){this[a]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.q)!=null?s:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var r;const s=t[1]||e;i.set(s,e);if(t[0]&512){(r=n.W)==null?void 0:r.push([e,s])}return s}))]))}}return e};var qt=async(e,t,n,i)=>{let r;if((t.u&32)===0){t.u|=32;const i=n.S;if(i){const i=v(n,t);if(i&&"then"in i){const e=Te();r=await i;e()}else{r=i}if(!r){throw new Error(`Constructor for "${n.$}#${t.G}" was not found`)}if(!r.isProxied){{n.q=r.watchers}Yt(r,n,2);r.isProxied=true}const s=Ee("createInstance",n.$);{t.u|=8}try{new r(t)}catch(t){c(t,e)}{t.u&=~8}{t.u|=128}s();Gt(t.o,e)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=Ze(n);if(!d.has(t)){const i=Ee("registerStyles",n.$);Ke(t,e,!!(n.u&1));i()}}}const s=t.V;const l=()=>Lt(t,true);if(s&&s["s-rc"]){s["s-rc"].push(l)}else{l()}};var Gt=(e,t)=>{{zt(e,"connectedCallback",void 0,t)}};var Kt=e=>{if((C.u&1)===0){const t=l(e);const n=t.t;const i=Ee("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;let i;{i=e.getAttribute(y);if(i){if(n.u&1){const t=Xe(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}else if(n.u&2){const t=Ze(n);e["s-sc"]=t}Ie(e,n.$,i,t)}}if(!i){if(n.u&(4|8)){Xt(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ft(t,t.V=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{qt(e,t,n)}}else{nn(e,t,n.K);if(t==null?void 0:t.o){Gt(t.o,e)}else if(t==null?void 0:t.p){t.p.then((()=>Gt(t.o,e)))}}i()}};var Xt=e=>{if(!N.document){return}const t=e["s-cr"]=N.document.createComment("");t["s-cn"]=true;kt(e,t,e.firstChild)};var Jt=(e,t)=>{{zt(e,"disconnectedCallback",void 0,t||e)}};var Zt=async e=>{if((C.u&1)===0){const t=l(e);{if(t.X){t.X.map((e=>e()));t.X=void 0}}if(t==null?void 0:t.o){Jt(t.o,e)}else if(t==null?void 0:t.p){t.p.then((()=>Jt(t.o,e)))}}if(Ge.has(e)){Ge.delete(e)}if(e.shadowRoot&&Ge.has(e.shadowRoot)){Ge.delete(e.shadowRoot)}};var en=(e,t={})=>{var n;if(!N.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=Ee();const r=[];const s=t.exclude||[];const o=N.customElements;const a=N.document.head;const c=a.querySelector("meta[charset]");const u=N.document.createElement("style");const v=[];let d;let h=true;Object.assign(C,t);C.j=new URL(t.resourcesUrl||"./",N.document.baseURI).href;{C.u|=2}{tt()}let p=false;e.map((e=>{e[1].map((n=>{var i;const a={u:n[0],$:n[1],i:n[2],K:n[3]};if(a.u&4){p=true}{a.i=n[2]}{a.K=n[3]}{a.W=[]}{a.q=(i=n[4])!=null?i:{}}const c=t.transformTagName?t.transformTagName(a.$):a.$;const u=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;f(e,a);if(a.u&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${a.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=l(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;nn(this,e,a.K)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{C.jmp((()=>Kt(this)))}}disconnectedCallback(){C.jmp((()=>Zt(this)));C.raf((()=>{var e;const t=l(this);const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.R)==null?void 0:e.L)instanceof Node&&!t.R.L.isConnected){delete t.R.L}}))}componentOnReady(){return l(this).p}};{if(a.u&2){oe(u.prototype)}}a.S=e[0];if(!s.includes(c)&&!o.get(c)){r.push(c);o.define(c,Yt(u,a,1))}}))}));if(r.length>0){if(p){u.textContent+=j}{u.textContent+=r.sort()+S}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=C.B)!=null?n:H(N.document);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{C.jmp((()=>d=setTimeout(Wt,30)))}}i()};var tn=(e,t)=>t;var nn=(e,t,n,i)=>{if(n&&N.document){n.map((([n,i,r])=>{const s=sn(N.document,e,n);const l=rn(t,r);const o=ln(n);C.ael(s,i,l,o);(t.X=t.X||[]).push((()=>C.rel(s,i,l,o)))}))}};var rn=(e,t)=>n=>{var i;try{{if(e.u&256){(i=e.o)==null?void 0:i[t](n)}else{(e.Y=e.Y||[]).push([t,n])}}}catch(t){c(t,e.$hostElement$)}};var sn=(e,t,n)=>{if(n&8){return N}if(n&16){return e.body}return t};var ln=e=>E?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var on=e=>C.B=e;export{r as B,tn as F,x as H,Ae as a,en as b,Ye as c,B as d,Bt as e,_t as f,Ve as g,Fe as h,_ as i,c as j,T as p,o as r,on as s,U as w};
|
6
|
-
//# sourceMappingURL=index-
|
4
|
+
const e="nano-components";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:true,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,modernPropertyDecls:true,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:true,scriptDataOpts:true,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:true,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var n=Object.defineProperty;var i=(e,t)=>{for(var i in t)n(e,i,{get:t[i],enumerable:true})};var r={isDev:false,isBrowser:true,isServer:false,isTesting:false};var s=(e,t)=>{var n;const i=t.t;const r=Object.entries((n=i.i)!=null?n:{});r.map((([n,[i]])=>{if(i&31||i&32){const i=e[n];const r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),n);Object.defineProperty(e,n,{get(){return r.get.call(this)},set(e){r.set.call(this,e)},configurable:true,enumerable:true});e[n]=t.l.has(n)?t.l.get(n):i}}))};var l=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var o=(e,t)=>{e.__stencil__getHostRef=()=>t;t.o=e;{s(e,t)}};var f=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map};{n.v=new Promise((e=>n.h=e))}{n.p=new Promise((e=>n.m=e));e["s-p"]=[];e["s-rc"]=[]}const i=n;e.__stencil__getHostRef=()=>i;return i};var a=(e,t)=>t in e;var c=(e,t)=>(0,console.error)(e,t);var u=new Map;var v=(e,t,n)=>{const i=e.$.replace(/-/g,"_");const r=e.S;if(!r){return void 0}const s=u.get(r);if(s){return s[i]}
|
5
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{u.set(r,e)}return e[i]}),(e=>{c(e,t.$hostElement$)}))};var d=new Map;var h="r";var p="o";var m="s";var b="t";var $="c";var y="s-id";var g="sty-id";var w="c-id";var S="{visibility:hidden}.hydrated{visibility:inherit}";var j="slot-fb{display:contents}slot-fb[hidden]{display:none}";var O="http://www.w3.org/1999/xlink";var N=typeof window!=="undefined"?window:{};var x=N.HTMLElement||class{};var C={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)};var k=t.shadowDom;var E=(()=>{var e;let t=false;try{(e=N.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var T=e=>Promise.resolve(e);var F=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var L=false;var A=[];var R=[];var D=(e,t)=>n=>{e.push(n);if(!L){L=true;if(t&&C.u&4){I(P)}else{C.raf(P)}}};var M=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){c(e)}}e.length=0};var P=()=>{M(A);{M(R);if(L=A.length>0){C.raf(P)}}};var I=e=>T().then(e);var B=D(A,false);var U=D(R,true);var _=e=>{const t=new URL(e,C.j);return t.origin!==N.location.origin?t.href:t.pathname};var W=e=>e!=null&&e!==void 0;var z=e=>{e=typeof e;return e==="object"||e==="function"};function H(e){var t,n,i;return(i=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?i:void 0}var Q={};i(Q,{err:()=>Y,map:()=>q,ok:()=>V,unwrap:()=>G,unwrapErr:()=>K});var V=e=>({isOk:true,isErr:false,value:e});var Y=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>V(e)))}else{return V(n)}}if(e.isErr){const t=e.value;return Y(t)}throw"should never get here"}var G=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};var X=e=>{const t=ke(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){Z(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(ee(e,ie(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&ke(e,"childNodes").length){X(e)}}};var J=e=>{const t=[];for(let n=0;n<e.length;n++){const i=e[n]["s-nr"]||void 0;if(i&&i.isConnected){t.push(i)}}return t};function Z(e,t,n){let i=0;let r=[];let s;for(;i<e.length;i++){s=e[i];if(s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||ie(s)===n)){r.push(s);if(typeof n!=="undefined")return r}r=[...r,...Z(s.childNodes,t,n)]}return r}var ee=(e,t,n=true)=>{const i=[];if(n&&e["s-sr"]||!e["s-sr"])i.push(e);let r=e;while(r=r.nextSibling){if(ie(r)===t&&(n||!r["s-sr"]))i.push(r)}return i};var te=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var ne=(e,t,n,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const r=document.createTextNode("");r["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const s=t["s-cr"].parentNode;const l=n?ke(s,"prepend"):ke(s,"appendChild");if(typeof i!=="undefined"){r["s-oo"]=i;const e=ke(s,"childNodes");const t=[r];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>l.call(s,e)))}else{l.call(s,r)}e["s-ol"]=r;e["s-sh"]=t["s-hn"]};var ie=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const i=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const r=this["s-cr"].parentElement;const s=r.__childNodes?r.childNodes:J(r.childNodes);s.forEach((e=>{if(i===ie(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function se(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function le(e,t){var n;t=t||((n=e["s-ol"])==null?void 0:n.parentElement);if(!t)return{slotNode:null,slotName:""};const i=e["s-sn"]=ie(e)||"";const r=ke(t,"childNodes");const s=Z(r,t.tagName,i)[0];return{slotNode:s,slotName:i}}var oe=e=>{fe(e);ae(e);ve(e);ue(e);me(e);de(e);he(e);pe(e);be(e);$e(e);ce(e)};var fe=e=>{const t=e.cloneNode;e.cloneNode=function(e){const n=this;const i=n.shadowRoot&&k;const r=t.call(n,i?e:false);if(!i&&e){let e=0;let t,n;const i=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];const s=this.__childNodes||this.childNodes;for(;e<s.length;e++){t=s[e]["s-nr"];n=i.every((t=>!s[e][t]));if(t){if(r.__appendChild){r.__appendChild(t.cloneNode(true))}else{r.appendChild(t.cloneNode(true))}}if(n){r.appendChild(s[e].cloneNode(true))}}}return r}};var ae=e=>{e.__appendChild=e.appendChild;e.appendChild=function(e){const{slotName:t,slotNode:n}=le(e,this);if(n){ne(e,n);const i=ee(n,t);const r=i[i.length-1];const s=ke(r,"parentNode");const l=ke(s,"insertBefore")(e,r.nextSibling);se(n);X(this);return l}return this.__appendChild(e)}};var ce=e=>{e.__removeChild=e.removeChild;e.removeChild=function(e){if(e&&typeof e["s-sn"]!=="undefined"){const t=this.__childNodes||this.childNodes;const n=Z(t,this.tagName,e["s-sn"]);if(n&&e.isConnected){e.remove();X(this);return}}return this.__removeChild(e)}};var ue=e=>{e.__prepend=e.prepend;e.prepend=function(...t){t.forEach((t=>{if(typeof t==="string"){t=this.ownerDocument.createTextNode(t)}const n=(t["s-sn"]=ie(t))||"";const i=ke(this,"childNodes");const r=Z(i,this.tagName,n)[0];if(r){ne(t,r,true);const e=ee(r,n);const i=e[0];const s=ke(i,"parentNode");const l=ke(s,"insertBefore")(t,ke(i,"nextSibling"));se(r);return l}if(t.nodeType===1&&!!t.getAttribute("slot")){t.hidden=true}return e.__prepend(t)}))}};var ve=e=>{e.__append=e.append;e.append=function(...e){e.forEach((e=>{if(typeof e==="string"){e=this.ownerDocument.createTextNode(e)}this.appendChild(e)}))}};var de=e=>{const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,n){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,n)}const i=this.ownerDocument.createElement("_");let r;i.innerHTML=n;if(e==="afterbegin"){while(r=i.firstChild){this.prepend(r)}}else if(e==="beforeend"){while(r=i.firstChild){this.append(r)}}}};var he=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}};var pe=e=>{const t=e;if(t.__insertBefore)return;t.__insertBefore=e.insertBefore;e.insertBefore=function(e,t){const{slotName:n,slotNode:i}=le(e,this);const r=this.__childNodes?this.childNodes:J(this.childNodes);if(i){let s=false;r.forEach((r=>{if(r===t||t===null){s=true;if(t===null||n!==t["s-sn"]){this.appendChild(e);return}if(n===t["s-sn"]){ne(e,i);const n=ke(t,"parentNode");ke(n,"insertBefore")(e,t);se(i)}return}}));if(s)return e}const s=t==null?void 0:t.__parentNode;if(s&&!this.isSameNode(s)){return this.appendChild(e)}return this.__insertBefore(e,t)}};var me=e=>{const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,n){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,n)}if(e==="afterbegin"){this.prepend(n);return n}else if(e==="beforeend"){this.append(n);return n}return n}};var be=e=>{Ce("textContent",e);Object.defineProperty(e,"textContent",{get:function(){let e="";const t=this.__childNodes?this.childNodes:J(this.childNodes);t.forEach((t=>e+=t.textContent||""));return e},set:function(e){const t=this.__childNodes?this.childNodes:J(this.childNodes);t.forEach((e=>{if(e["s-ol"])e["s-ol"].remove();e.remove()}));this.insertAdjacentHTML("beforeend",e)}})};var $e=e=>{class t extends Array{item(e){return this[e]}}Ce("children",e);Object.defineProperty(e,"children",{get(){return this.childNodes.filter((e=>e.nodeType===1))}});Object.defineProperty(e,"childElementCount",{get(){return this.children.length}});Ce("firstChild",e);Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}});Ce("lastChild",e);Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}});Ce("childNodes",e);Object.defineProperty(e,"childNodes",{get(){const e=new t;e.push(...J(this.__childNodes));return e}})};var ye=e=>{if(!e||e.__nextSibling!==void 0||!globalThis.Node)return;ge(e);Se(e);Oe(e);if(e.nodeType===Node.ELEMENT_NODE){we(e);je(e)}};var ge=e=>{if(!e||e.__nextSibling)return;Ce("nextSibling",e);Object.defineProperty(e,"nextSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.childNodes;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n+1]}return this.__nextSibling}})};var we=e=>{if(!e||e.__nextElementSibling)return;Ce("nextElementSibling",e);Object.defineProperty(e,"nextElementSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.children;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n+1]}return this.__nextElementSibling}})};var Se=e=>{if(!e||e.__previousSibling)return;Ce("previousSibling",e);Object.defineProperty(e,"previousSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.childNodes;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n-1]}return this.__previousSibling}})};var je=e=>{if(!e||e.__previousElementSibling)return;Ce("previousElementSibling",e);Object.defineProperty(e,"previousElementSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.children;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n-1]}return this.__previousElementSibling}})};var Oe=e=>{if(!e||e.__parentNode)return;Ce("parentNode",e);Object.defineProperty(e,"parentNode",{get:function(){var e;return((e=this["s-ol"])==null?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}})};var Ne=["children","nextElementSibling","previousElementSibling"];var xe=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Ce(e,t){let n;if(Ne.includes(e)){n=Object.getOwnPropertyDescriptor(Element.prototype,e)}else if(xe.includes(e)){n=Object.getOwnPropertyDescriptor(Node.prototype,e)}if(!n){n=Object.getOwnPropertyDescriptor(t,e)}if(n)Object.defineProperty(t,"__"+e,n)}function ke(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var Ee=(e,t="")=>{{return()=>{}}};var Te=(e,t)=>{{return()=>{}}};var Fe=(e,t,...n)=>{let i=null;let r=null;let s=null;let l=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){i=t[n];if(Array.isArray(i)){a(i)}else if(i!=null&&typeof i!=="boolean"){if(l=typeof e!=="function"&&!z(i)){i=String(i)}if(l&&o){f[f.length-1].O+=i}else{f.push(l?Le(null,i):i)}o=l}}};a(n);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,De)}const c=Le(e,null);c.N=t;if(f.length>0){c.C=f}{c.k=r}{c.T=s}return c};var Le=(e,t)=>{const n={u:0,F:e,O:t,L:null,C:null};{n.N=null}{n.k=null}{n.T=null}return n};var Ae={};var Re=e=>e&&e.F===Ae;var De={forEach:(e,t)=>e.map(Me).forEach(t),map:(e,t)=>e.map(Me).map(t).map(Pe)};var Me=e=>({vattrs:e.N,vchildren:e.C,vkey:e.k,vname:e.T,vtag:e.F,vtext:e.O});var Pe=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return Fe(e.vtag,t,...e.vchildren||[])}const t=Le(e.vtag,e.vtext);t.N=e.vattrs;t.C=e.vchildren;t.k=e.vkey;t.T=e.vname;return t};var Ie=(e,t,n,i)=>{const r=Ee("hydrateClient",t);const s=e.shadowRoot;const l=[];const o=[];const f=[];const a=s?[]:null;const c=Le(t,null);c.L=e;let u;{const t=i.t;if(t&&t.u&10&&e["s-sc"]){u=e["s-sc"];e.classList.add(u+"-h")}else if(e["s-sc"]){delete e["s-sc"]}}if(N.document&&(!C.A||!C.A.size)){Ue(N.document.body,C.A=new Map)}e[y]=n;e.removeAttribute(y);i.R=Be(c,l,o,a,e,e,n,f);let v=0;const d=l.length;let h;for(v;v<d;v++){h=l[v];const n=h.D+"."+h.M;const i=C.A.get(n);const r=h.L;if(!s){r["s-hn"]=t.toUpperCase();if(h.F==="slot"){r["s-cr"]=e["s-cr"]}}if(h.F==="slot"){h.T=h.L["s-sn"]||h.L["name"]||null;if(h.C){h.u|=2;if(!h.L.childNodes.length){h.C.forEach((e=>{h.L.appendChild(e.L)}))}}else{h.u|=1}}if(i&&i.isConnected){if(s&&i["s-en"]===""){i.parentNode.insertBefore(r,i.nextSibling)}i.parentNode.removeChild(i);if(!s){r["s-oo"]=parseInt(h.M)}}C.A.delete(n)}const p=[];const m=f.length;let b=0;let $;let g;let w;let S;for(b;b<m;b++){$=f[b];if(!$||!$.length)continue;w=$.length;g=0;for(g;g<w;g++){S=$[g];if(!p[S.hostId]){p[S.hostId]=C.A.get(S.hostId)}if(!p[S.hostId])continue;const e=p[S.hostId];if(!e.shadowRoot||!s){S.slot["s-cr"]=e["s-cr"];if(!S.slot["s-cr"]&&e.shadowRoot){S.slot["s-cr"]=e}else{S.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}ne(S.node,S.slot,false,S.node["s-oo"]);{ye(S.node)}}if(e.shadowRoot&&S.node.parentElement!==e){e.appendChild(S.node)}}}if(u&&o.length){o.forEach((e=>{e.L.parentElement.classList.add(u+"-s")}))}if(s&&!s.childNodes.length){let t=0;const n=a.length;if(n){for(t;t<n;t++){s.appendChild(a[t])}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8||e.nodeType===3&&!e.wholeText.trim()){e.parentNode.removeChild(e)}}}))}}C.A.delete(e["s-id"]);i.$hostElement$=e;r()};var Be=(e,t,n,i,r,s,l,o=[])=>{let f;let a;let c;let u;const v=r["s-sc"];if(s.nodeType===1){f=s.getAttribute(w);if(f){a=f.split(".");if(a[0]===l||a[0]==="0"){c=_e({u:0,D:a[0],M:a[1],P:a[2],I:a[3],F:s.tagName.toLowerCase(),L:s,N:{class:s.className||""}});t.push(c);s.removeAttribute(w);if(!e.C){e.C=[]}if(v){s["s-si"]=v;c.N.class+=" "+v}const r=c.L.getAttribute("s-sn");if(typeof r==="string"){if(c.F==="slot-fb"){We(r,a[2],c,s,e,t,n,i,o);if(v){s.classList.add(v)}}c.L["s-sn"]=r;c.L.removeAttribute("s-sn")}if(c.I!==void 0){e.C[c.I]=c}e=c;if(i&&c.P==="0"){i[c.I]=c.L}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){Be(e,t,n,i,r,s.shadowRoot.childNodes[u],l,o)}}const d=s.__childNodes||s.childNodes;for(u=d.length-1;u>=0;u--){Be(e,t,n,i,r,d[u],l,o)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===l||a[1]==="0"){f=a[0];c=_e({D:a[1],M:a[2],P:a[3],I:a[4]||"0",L:s,N:null,C:null,k:null,T:null,F:null,O:null});if(f===b){c.L=He(s,3);if(c.L&&c.L.nodeType===3){c.O=c.L.textContent;t.push(c);s.remove();if(l===c.D){if(!e.C){e.C=[]}e.C[c.I]=c}if(i&&c.P==="0"){i[c.I]=c.L}}}else if(f===$){c.L=He(s,8);if(c.L&&c.L.nodeType===8){t.push(c);s.remove()}}else if(c.D===l){if(f===m){const r=s["s-sn"]=a[5]||"";We(r,a[2],c,s,e,t,n,i,o)}else if(f===h){if(i){s.remove()}else{r["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.F==="style"){const t=Le(null,s.textContent);t.L=s;t.I="0";e.C=[t]}else{if(s.nodeType===3&&!s.wholeText.trim()){s.remove()}}return e};var Ue=(e,t)=>{if(e.nodeType===1){const n=e[y]||e.getAttribute(y);if(n){t.set(n,e)}let i=0;if(e.shadowRoot){for(;i<e.shadowRoot.childNodes.length;i++){Ue(e.shadowRoot.childNodes[i],t)}}const r=e.__childNodes||e.childNodes;for(i=0;i<r.length;i++){Ue(r[i],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===p){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var _e=e=>{const t={u:0,D:null,M:null,P:null,I:"0",L:null,N:null,C:null,k:null,T:null,F:null,O:null};return{...t,...e}};function We(e,t,n,i,r,s,l,o,f){i["s-sr"]=true;n.T=e||null;n.F="slot";const a=(r==null?void 0:r.L)?r.L["s-id"]||r.L.getAttribute("s-id"):"";if(o&&N.document){const s=n.L=N.document.createElement(n.F);if(n.T){n.L.setAttribute("name",e)}if(a&&a!==n.D){r.L.insertBefore(s,r.L.children[0])}else{i.parentNode.insertBefore(n.L,i)}ze(f,t,e,i,n.D);i.remove();if(n.P==="0"){o[n.I]=n.L}}else{const l=n.L;const o=a&&a!==n.D&&r.L.shadowRoot;ze(f,t,e,i,o?a:n.D);re(i);if(o){r.L.insertBefore(l,r.L.children[0])}s.push(n)}l.push(n);if(!r.C){r.C=[]}r.C[n.I]=n}var ze=(e,t,n,i,r)=>{let s=i.nextSibling;e[t]=e[t]||[];while(s&&((s["getAttribute"]&&s.getAttribute("slot")||s["s-sn"])===n||n===""&&!s["s-sn"]&&(s.nodeType===8&&s.nodeValue.indexOf(".")!==1||s.nodeType===3))){s["s-sn"]=n;e[t].push({slot:i,node:s,hostId:r});s=s.nextSibling}};var He=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Qe=(e,t)=>{if(e!=null&&!z(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var Ve=e=>l(e).$hostElement$;var Ye=(e,t,n)=>{const i=Ve(e);return{emit:e=>qe(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var qe=(e,t,n)=>{const i=C.ce(t,n);e.dispatchEvent(i);return i};var Ge=new WeakMap;var Ke=(e,t,n)=>{let i=d.get(e);if(F&&n){i=i||new CSSStyleSheet;if(typeof i==="string"){i=t}else{i.replaceSync(t)}}else{i=t}d.set(e,i)};var Xe=(e,t,n)=>{var i;const r=Ze(t);const s=d.get(r);if(!N.document){return r}e=e.nodeType===11?e:N.document;if(s){if(typeof s==="string"){e=e.head||e;let n=Ge.get(e);let l;if(!n){Ge.set(e,n=new Set)}if(!n.has(r)){if(e.host&&(l=e.querySelector(`[${g}="${r}"]`))){l.innerHTML=s}else{l=document.querySelector(`[${g}="${r}"]`)||N.document.createElement("style");l.innerHTML=s;const n=(i=C.B)!=null?i:H(N.document);if(n!=null){l.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(F){const t=new CSSStyleSheet;t.replaceSync(s);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}}if(t.u&4){l.innerHTML+=j}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var Je=e=>{const t=e.t;const n=e.$hostElement$;const i=t.u;const r=Ee("attachStyles",t.$);const s=Xe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(i&10&&i&2||i&128){n["s-sc"]=s;n.classList.add(s+"-h")}r()};var Ze=(e,t)=>"sc-"+e.$;var et=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var tt=()=>{if(!N.document){return}const e=N.document.querySelectorAll(`[${g}]`);let t=0;for(;t<e.length;t++){Ke(e[t].getAttribute(g),et(e[t].innerHTML),true)}};var nt=(e,t,n,i,r,s,l)=>{if(n===i){return}let o=a(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const r=rt(n);let s=rt(i);if(e["s-si"]&&l){s.push(e["s-si"]);r.forEach((t=>{if(t.startsWith(e["s-si"]))s.push(t)}));s=[...new Set(s)];t.add(...s)}else{t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}}else if(t==="style"){{for(const t in n){if(!i||i[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in i){if(!n||i[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,i[t])}else{e.style[t]=i[t]}}}}else if(t==="key");else if(t==="ref"){if(i){i(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(N,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||i){const r=t.endsWith(st);t=t.replace(lt,"");if(n){C.rel(e,t,n,r)}if(i){C.ael(e,t,i,r)}}}else{const l=z(i);if((o||l&&i!==null)&&!r){try{if(!e.tagName.includes("-")){const r=i==null?"":i;if(t==="list"){o=false}else if(n==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else if(e[t]!==i){e[t]=i}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(i==null||i===false){if(i!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(O,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||r)&&!l&&e.nodeType===1){i=i===true?"":i;if(a){e.setAttributeNS(O,t,i)}else{e.setAttribute(t,i)}}}};var it=/\s/;var rt=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(it)};var st="Capture";var lt=new RegExp(st+"$");var ot=(e,t,n,i)=>{const r=t.L.nodeType===11&&t.L.host?t.L.host:t.L;const s=e&&e.N||{};const l=t.N||{};{for(const e of ft(Object.keys(s))){if(!(e in l)){nt(r,e,s[e],void 0,n,t.u,i)}}}for(const e of ft(Object.keys(l))){nt(r,e,s[e],l[e],n,t.u,i)}};function ft(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var at;var ct;var ut;var vt=false;var dt=false;var ht=false;var pt=false;var mt=(e,n,i)=>{var r;const s=n.C[i];let l=0;let o;let f;let a;if(!vt){ht=true;if(s.F==="slot"){s.u|=s.C?2:1}}if(s.O!==null){o=s.L=N.document.createTextNode(s.O)}else if(s.u&1){o=s.L=N.document.createTextNode("");{ot(null,s,pt)}}else{if(!N.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=s.L=N.document.createElement(!vt&&t.slotRelocation&&s.u&2?"slot-fb":s.F);{ot(null,s,pt)}if(W(at)&&o["s-si"]!==at){o.classList.add(o["s-si"]=at)}if(s.C){for(l=0;l<s.C.length;++l){f=mt(e,s,l);if(f){o.appendChild(f)}}}}o["s-hn"]=ut;{if(s.u&(2|1)){o["s-sr"]=true;o["s-cr"]=ct;o["s-sn"]=s.T||"";o["s-rf"]=(r=s.N)==null?void 0:r.ref;re(o);a=e&&e.C&&e.C[i];if(a&&a.F===s.F&&e.L){{bt(e.L)}}{Et(ct,o,n.L,e==null?void 0:e.L)}}}return o};var bt=e=>{C.u|=1;const t=e.closest(ut.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const i=Array.from(e.__childNodes||e.childNodes);for(const e of n?i.reverse():i){if(e["s-sh"]!=null){kt(t,e,n!=null?n:null);e["s-sh"]=void 0;ht=true}}}C.u&=~1};var $t=(e,n)=>{C.u|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===ut){i.push(t)}}}for(let e=i.length-1;e>=0;e--){const t=i[e];if(t["s-hn"]!==ut&&t["s-ol"]){kt(jt(t).parentNode,t,jt(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;ht=true}if(n){$t(t,n)}}C.u&=~1};var yt=(e,t,n,i,r,s)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(l.shadowRoot&&l.tagName===ut){l=l.shadowRoot}for(;r<=s;++r){if(i[r]){o=mt(null,n,r);if(o){i[r].L=o;kt(l,o,jt(t))}}}};var gt=(e,t,n)=>{for(let i=t;i<=n;++i){const t=e[i];if(t){const e=t.L;Ct(t);if(e){{dt=true;if(e["s-ol"]){e["s-ol"].remove()}else{$t(e,true)}}e.remove()}}}};var wt=(e,t,n,i,r=false)=>{let s=0;let l=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=i.length-1;let d=i[0];let h=i[v];let p;let m;while(s<=a&&l<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=i[++l]}else if(h==null){h=i[--v]}else if(St(c,d,r)){Ot(c,d,r);c=t[++s];d=i[++l]}else if(St(u,h,r)){Ot(u,h,r);u=t[--a];h=i[--v]}else if(St(c,h,r)){if(c.F==="slot"||h.F==="slot"){$t(c.L.parentNode,false)}Ot(c,h,r);kt(e,c.L,u.L.nextSibling);c=t[++s];h=i[--v]}else if(St(u,d,r)){if(c.F==="slot"||h.F==="slot"){$t(u.L.parentNode,false)}Ot(u,d,r);kt(e,u.L,c.L);u=t[--a];d=i[++l]}else{o=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){o=f;break}}}if(o>=0){m=t[o];if(m.F!==d.F){p=mt(t&&t[l],n,o)}else{Ot(m,d,r);t[o]=void 0;p=m.L}d=i[++l]}else{p=mt(t&&t[l],n,l);d=i[++l]}if(p){{kt(jt(c.L).parentNode,p,jt(c.L))}}}}if(s>a){yt(e,i[v+1]==null?null:i[v+1].L,n,i,l,v)}else if(l>v){gt(t,s,a)}};var St=(e,t,n=false)=>{if(e.F===t.F){if(e.F==="slot"){return e.T===t.T}if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var jt=e=>e&&e["s-ol"]||e;var Ot=(e,n,i=false)=>{const r=n.L=e.L;const s=e.C;const l=n.C;const o=n.F;const f=n.O;let a;if(f===null){{if(o==="slot"&&!vt){if(e.T!==n.T){n.L["s-sn"]=n.T||"";bt(n.L.parentElement)}}ot(e,n,pt,i)}if(s!==null&&l!==null){wt(r,s,n,l,i)}else if(l!==null){if(e.O!==null){r.textContent=""}yt(r,null,n,l,0,l.length-1)}else if(!i&&t.updatable&&s!==null){gt(s,0,s.length-1)}}else if(a=r["s-cr"]){a.parentNode.textContent=f}else if(e.O!==f){r.data=f}};var Nt=[];var xt=e=>{let t;let n;let i;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=e["s-sn"];for(i=n.length-1;i>=0;i--){t=n[i];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==e["s-hn"])){if(te(t,r)){let n=Nt.find((e=>e.U===t));dt=true;t["s-sn"]=t["s-sn"]||r;if(n){n.U["s-sh"]=e["s-hn"];n._=e}else{t["s-sh"]=e["s-hn"];Nt.push({_:e,U:t})}if(t["s-sr"]){Nt.map((e=>{if(te(e.U,t["s-sn"])){n=Nt.find((e=>e.U===t));if(n&&!e._){e._=n._}}}))}}else if(!Nt.some((e=>e.U===t))){Nt.push({U:t})}}}}if(e.nodeType===1){xt(e)}}};var Ct=e=>{{e.N&&e.N.ref&&e.N.ref(null);e.C&&e.C.map(Ct)}};var kt=(e,t,n)=>{if(typeof t["s-sn"]==="string"&&!!t["s-sr"]&&!!t["s-cr"]){Et(t["s-cr"],t,e,t.parentElement)}else if(typeof t["s-sn"]==="string"){if(e.getRootNode().nodeType!==11){Oe(t)}e.insertBefore(t,n);const{slotNode:i}=le(t);if(i)se(i);return t}if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};function Et(e,t,n,i){var r,s;let l;if(e&&typeof t["s-sn"]==="string"&&!!t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(l=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"];const o=t["s-hn"];(r=n.classList)==null?void 0:r.add(l+"-s");if(i&&((s=i.classList)==null?void 0:s.contains(l+"-s"))){let t=(i.__childNodes||i.childNodes)[0];let n=false;while(t){if(t["s-sn"]!==e&&t["s-hn"]===o&&!!t["s-sr"]){n=true;break}t=t.nextSibling}if(!n)i.classList.remove(l+"-s")}}}var Tt=(e,t,n=false)=>{var i,r,s,l,o;const f=e.$hostElement$;const a=e.t;const c=e.R||Le(null,null);const u=Re(t)?t:Fe(null,null,t);ut=f.tagName;if(a.W){u.N=u.N||{};a.W.map((([e,t])=>u.N[t]=f[e]))}if(n&&u.N){for(const e of Object.keys(u.N)){if(f.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.N[e]=f[e]}}}u.F=null;u.u|=4;e.R=u;u.L=c.L=f.shadowRoot||f;{at=f["s-sc"]}vt=!!(a.u&1)&&!(a.u&128);{ct=f["s-cr"];dt=false}Ot(c,u,n);{C.u|=1;if(ht){xt(u.L);for(const e of Nt){const t=e.U;if(!t["s-ol"]&&N.document){const e=N.document.createTextNode("");e["s-nr"]=t;kt(t.parentNode,t["s-ol"]=e,t)}}for(const e of Nt){const t=e.U;const o=e._;if(o){const e=o.parentNode;let n=o.nextSibling;if(n&&n.nodeType===1){let s=(i=t["s-ol"])==null?void 0:i.previousSibling;while(s){let i=(r=s["s-nr"])!=null?r:null;if(i&&i["s-sn"]===t["s-sn"]&&e===(i.__parentNode||i.parentNode)){i=i.nextSibling;while(i===t||(i==null?void 0:i["s-sr"])){i=i==null?void 0:i.nextSibling}if(!i||!i["s-nr"]){n=i;break}}s=s.previousSibling}}const l=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==l||f!==n){if(t!==n){kt(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](o)}else{if(t.nodeType===1){if(n){t["s-ih"]=(l=t.hidden)!=null?l:false}t.hidden=true}}}}if(dt){X(u.L)}C.u&=~1;Nt.length=0}if(a.u&2){const e=u.L.__childNodes||u.L.childNodes;for(const t of e){if(t["s-hn"]!==ut&&!t["s-sh"]){if(n&&t["s-ih"]==null){t["s-ih"]=(o=t.hidden)!=null?o:false}t.hidden=true}}}ct=void 0};var Ft=(e,t)=>{if(t&&!e.H&&t["s-p"]){const n=t["s-p"].push(new Promise((i=>e.H=()=>{t["s-p"].splice(n-1,1);i()})))}};var Lt=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}Ft(e,e.V);const n=()=>At(e,t);return U(n)};var At=(e,t)=>{const n=e.$hostElement$;const i=Ee("scheduleUpdate",e.t.$);const r=e.o;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{e.u|=256;if(e.Y){e.Y.map((([e,t])=>zt(r,e,t,n)));e.Y=void 0}}s=zt(r,"componentWillLoad",void 0,n)}else{s=zt(r,"componentWillUpdate",void 0,n)}s=Rt(s,(()=>zt(r,"componentWillRender",void 0,n)));i();return Rt(s,(()=>Mt(e,r,t)))};var Rt=(e,t)=>Dt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Dt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Mt=async(e,t,n)=>{var i;const r=e.$hostElement$;const s=Ee("update",e.t.$);const l=r["s-rc"];if(n){Je(e)}const o=Ee("render",e.t.$);{It(e,t,r,n)}if(l){l.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(i=r["s-p"])!=null?i:[];const n=()=>Ut(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var Pt=null;var It=(e,t,n,i)=>{try{Pt=t;t=t.render();{e.u&=~16}{e.u|=2}{{{Tt(e,t,i)}}}}catch(t){c(t,e.$hostElement$)}Pt=null;return null};var Bt=()=>Pt;var Ut=e=>{const t=e.t.$;const n=e.$hostElement$;const i=Ee("postUpdate",t);const r=e.o;const s=e.V;zt(r,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{Ht(n)}zt(r,"componentDidLoad",void 0,n);i();{e.m(n);if(!s){Wt()}}}else{zt(r,"componentDidUpdate",void 0,n);i()}{e.h(n)}{if(e.H){e.H();e.H=void 0}if(e.u&512){I((()=>Lt(e,false)))}e.u&=~(4|512)}};var _t=e=>{{const t=l(e);const n=t.$hostElement$.isConnected;if(n&&(t.u&(2|16))===2){Lt(t,false)}return n}};var Wt=t=>{I((()=>qe(N,"appload",{detail:{namespace:e}})))};var zt=(e,t,n,i)=>{if(e&&e[t]){try{return e[t](n)}catch(e){c(e,i)}}return void 0};var Ht=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Qt=(e,t)=>l(e).l.get(t);var Vt=(e,t,n,i)=>{const r=l(e);if(!r){throw new Error(`Couldn't find host element for "${i.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const s=r.$hostElement$;const o=r.l.get(t);const f=r.u;const a=r.o;n=Qe(n,i.i[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(f&8)||o===void 0)&&v){r.l.set(t,n);if(a){if(i.q&&f&128){const e=i.q[t];if(e){e.map((e=>{try{a[e](n,o,t)}catch(e){c(e,s)}}))}}if((f&(2|16))===2){if(a.componentShouldUpdate){if(a.componentShouldUpdate(n,o,t)===false){return}}Lt(r,false)}}}};var Yt=(e,n,i)=>{var r,s;const o=e.prototype;if(n.i||(n.q||e.watchers)){if(e.watchers&&!n.q){n.q=e.watchers}const f=Object.entries((r=n.i)!=null?r:{});f.map((([e,[t]])=>{if(t&31||i&2&&t&32){const{get:r,set:s}=Object.getOwnPropertyDescriptor(o,e)||{};if(r)n.i[e][0]|=2048;if(s)n.i[e][0]|=4096;if(i&1||!r){Object.defineProperty(o,e,{get(){{if((n.i[e][0]&2048)===0){return Qt(this,e)}const t=l(this);const i=t?t.o:o;if(!i)return;return i[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(r){const o=l(this);if(s){const i=t&32?this[e]:o.$hostElement$[e];if(typeof i==="undefined"&&o.l.get(e)){r=o.l.get(e)}else if(!o.l.get(e)&&i){o.l.set(e,i)}s.apply(this,[Qe(r,t)]);r=t&32?this[e]:o.$hostElement$[e];Vt(this,e,r,n);return}{if((i&1)===0||(n.i[e][0]&4096)===0){Vt(this,e,r,n);if(i&1&&!o.o){o.p.then((()=>{if(n.i[e][0]&4096&&o.o[e]!==o.l.get(e)){o.o[e]=r}}))}return}const s=()=>{const i=o.o[e];if(!o.l.get(e)&&i){o.l.set(e,i)}o.o[e]=Qe(r,t);Vt(this,e,o.o[e],n)};if(o.o){s()}else{o.p.then((()=>s()))}}}})}else if(i&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const i=l(this);return(n=i==null?void 0:i.v)==null?void 0:n.then((()=>{var n;return(n=i.o)==null?void 0:n[e](...t)}))}})}}));if(i&1){const i=new Map;o.attributeChangedCallback=function(e,r,s){C.jmp((()=>{var f;const a=i.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){s=this[a];delete this[a]}else if(o.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==s){return}else if(a==null){const t=l(this);const i=t==null?void 0:t.u;if(i&&!(i&8)&&i&128&&s!==r){const i=t.o;const l=(f=n.q)==null?void 0:f[e];l==null?void 0:l.forEach((t=>{if(i[t]!=null){i[t].call(i,s,r,e)}}))}return}const c=Object.getOwnPropertyDescriptor(o,a);s=s===null&&typeof this[a]==="boolean"?false:s;if(s!==this[a]&&(!c.get||!!c.set)){this[a]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.q)!=null?s:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var r;const s=t[1]||e;i.set(s,e);if(t[0]&512){(r=n.W)==null?void 0:r.push([e,s])}return s}))]))}}return e};var qt=async(e,t,n,i)=>{let r;if((t.u&32)===0){t.u|=32;const i=n.S;if(i){const i=v(n,t);if(i&&"then"in i){const e=Te();r=await i;e()}else{r=i}if(!r){throw new Error(`Constructor for "${n.$}#${t.G}" was not found`)}if(!r.isProxied){{n.q=r.watchers}Yt(r,n,2);r.isProxied=true}const s=Ee("createInstance",n.$);{t.u|=8}try{new r(t)}catch(t){c(t,e)}{t.u&=~8}{t.u|=128}s();Gt(t.o,e)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=Ze(n);if(!d.has(t)){const i=Ee("registerStyles",n.$);Ke(t,e,!!(n.u&1));i()}}}const s=t.V;const l=()=>Lt(t,true);if(s&&s["s-rc"]){s["s-rc"].push(l)}else{l()}};var Gt=(e,t)=>{{zt(e,"connectedCallback",void 0,t)}};var Kt=e=>{if((C.u&1)===0){const t=l(e);const n=t.t;const i=Ee("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;let i;{i=e.getAttribute(y);if(i){if(n.u&1){const t=Xe(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}else if(n.u&2){const t=Ze(n);e["s-sc"]=t}Ie(e,n.$,i,t)}}if(!i){if(n.u&(4|8)){Xt(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ft(t,t.V=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{qt(e,t,n)}}else{nn(e,t,n.K);if(t==null?void 0:t.o){Gt(t.o,e)}else if(t==null?void 0:t.p){t.p.then((()=>Gt(t.o,e)))}}i()}};var Xt=e=>{if(!N.document){return}const t=e["s-cr"]=N.document.createComment("");t["s-cn"]=true;kt(e,t,e.firstChild)};var Jt=(e,t)=>{{zt(e,"disconnectedCallback",void 0,t||e)}};var Zt=async e=>{if((C.u&1)===0){const t=l(e);{if(t.X){t.X.map((e=>e()));t.X=void 0}}if(t==null?void 0:t.o){Jt(t.o,e)}else if(t==null?void 0:t.p){t.p.then((()=>Jt(t.o,e)))}}if(Ge.has(e)){Ge.delete(e)}if(e.shadowRoot&&Ge.has(e.shadowRoot)){Ge.delete(e.shadowRoot)}};var en=(e,t={})=>{var n;if(!N.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=Ee();const r=[];const s=t.exclude||[];const o=N.customElements;const a=N.document.head;const c=a.querySelector("meta[charset]");const u=N.document.createElement("style");const v=[];let d;let h=true;Object.assign(C,t);C.j=new URL(t.resourcesUrl||"./",N.document.baseURI).href;{C.u|=2}{tt()}let p=false;e.map((e=>{e[1].map((n=>{var i;const a={u:n[0],$:n[1],i:n[2],K:n[3]};if(a.u&4){p=true}{a.i=n[2]}{a.K=n[3]}{a.W=[]}{a.q=(i=n[4])!=null?i:{}}const c=t.transformTagName?t.transformTagName(a.$):a.$;const u=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;f(e,a);if(a.u&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${a.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=l(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;nn(this,e,a.K)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{C.jmp((()=>Kt(this)))}}disconnectedCallback(){C.jmp((()=>Zt(this)));C.raf((()=>{var e;const t=l(this);const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.R)==null?void 0:e.L)instanceof Node&&!t.R.L.isConnected){delete t.R.L}}))}componentOnReady(){return l(this).p}};{if(a.u&2){oe(u.prototype)}}a.S=e[0];if(!s.includes(c)&&!o.get(c)){r.push(c);o.define(c,Yt(u,a,1))}}))}));if(r.length>0){if(p){u.textContent+=j}{u.textContent+=r.sort()+S}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=C.B)!=null?n:H(N.document);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{C.jmp((()=>d=setTimeout(Wt,30)))}}i()};var tn=(e,t)=>t;var nn=(e,t,n,i)=>{if(n&&N.document){n.map((([n,i,r])=>{const s=sn(N.document,e,n);const l=rn(t,r);const o=ln(n);C.ael(s,i,l,o);(t.X=t.X||[]).push((()=>C.rel(s,i,l,o)))}))}};var rn=(e,t)=>n=>{var i;try{{if(e.u&256){(i=e.o)==null?void 0:i[t](n)}else{(e.Y=e.Y||[]).push([t,n])}}}catch(t){c(t,e.$hostElement$)}};var sn=(e,t,n)=>{if(n&8){return N}if(n&16){return e.body}return t};var ln=e=>E?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var on=e=>C.B=e;export{r as B,tn as F,x as H,e as N,Ae as a,en as b,Ye as c,U as d,B as e,Bt as f,Ve as g,Fe as h,_t as i,_ as j,c as k,T as p,o as r,on as s,N as w};
|
6
|
+
//# sourceMappingURL=index-6cc72cd9.js.map
|