@geotrekce/geotrek-rando-widget 0.4.4 → 0.4.5
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/geotrek-rando-widget.cjs.js +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +77 -53
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter.cjs.entry.js +21 -14
- package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-filters_12.cjs.entry.js → grw-filters_16.cjs.entry.js} +867 -376
- package/dist/cjs/grw-filters_16.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_16.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_16.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js +66 -47
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-a5ad3083.js → i18n-25e8e038.js} +13 -3
- package/dist/cjs/i18n-25e8e038.js.br +0 -0
- package/dist/cjs/i18n-25e8e038.js.gz +0 -0
- package/dist/cjs/i18n-25e8e038.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/utils-aafb9447.js +505 -0
- package/dist/cjs/utils-aafb9447.js.br +0 -0
- package/dist/cjs/utils-aafb9447.js.gz +0 -0
- package/dist/cjs/utils-aafb9447.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/grw-app/grw-app.css +8 -1
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +29 -4
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-filter/grw-filter.js +9 -1
- package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
- package/dist/collection/components/grw-filters/grw-filters.css +2 -1
- package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js +17 -2
- package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.css +61 -16
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +297 -18
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-search/grw-search.js +4 -1
- package/dist/collection/components/grw-search/grw-search.js.br +0 -0
- package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
- package/dist/collection/components/grw-search/grw-search.js.map +1 -1
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css +48 -5
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js +122 -23
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css +8 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css +43 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +220 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.map +1 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +7 -7
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +8 -3
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +2 -2
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/i18n/i18n.js +12 -2
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/store/grw-touristic-contents-provider.js +0 -18
- package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +2 -2
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-events-provider.js +211 -0
- package/dist/collection/store/grw-touristic-events-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-events-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-events-provider.js.map +1 -0
- package/dist/collection/store/grw-trek-provider.js +8 -2
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/store.js +4 -0
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/collection/types/types.js.map +1 -1
- package/dist/collection/utils/utils.js +74 -0
- package/dist/collection/utils/utils.js.br +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +31 -7
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-filter.entry.js +9 -2
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-filter.entry.js.map +1 -1
- package/dist/esm/{grw-filters_12.entry.js → grw-filters_16.entry.js} +522 -35
- package/dist/esm/grw-filters_16.entry.js.br +0 -0
- package/dist/esm/grw-filters_16.entry.js.gz +0 -0
- package/dist/esm/grw-filters_16.entry.js.map +1 -0
- package/dist/esm/grw-information-desk_6.entry.js +50 -31
- package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm/{i18n-e6325e81.js → i18n-c18b35f3.js} +13 -3
- package/dist/esm/i18n-c18b35f3.js.br +0 -0
- package/dist/esm/i18n-c18b35f3.js.gz +0 -0
- package/dist/esm/i18n-c18b35f3.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/utils-6441a08a.js +492 -0
- package/dist/esm/utils-6441a08a.js.br +0 -0
- package/dist/esm/utils-6441a08a.js.gz +0 -0
- package/dist/esm/utils-6441a08a.js.map +1 -0
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter.entry.js +2 -2
- package/dist/esm-es5/grw-filter.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter.entry.js.map +1 -1
- package/dist/esm-es5/{grw-filters_12.entry.js → grw-filters_16.entry.js} +4 -4
- package/dist/esm-es5/grw-filters_16.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_16.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_16.entry.js.map +1 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm-es5/i18n-c18b35f3.js +2 -0
- package/dist/esm-es5/i18n-c18b35f3.js.br +0 -0
- package/dist/esm-es5/i18n-c18b35f3.js.gz +0 -0
- package/dist/esm-es5/i18n-c18b35f3.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/utils-6441a08a.js +2 -0
- package/dist/esm-es5/utils-6441a08a.js.br +0 -0
- package/dist/esm-es5/utils-6441a08a.js.gz +0 -0
- package/dist/esm-es5/utils-6441a08a.js.map +1 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js → p-06412985.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-06412985.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-06412985.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-06412985.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js +2 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-2a67434e.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-2a67434e.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2a67434e.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2a67434e.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js +2 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js → p-73278096.system.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-73278096.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js.gz → p-73278096.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js.map → p-73278096.system.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-8e1be176.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-8e1be176.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-8e1be176.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-8e1be176.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js +2 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.map +1 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-e16d970b.js +2 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.map +1 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.map +1 -0
- package/dist/types/components/grw-filters/grw-filters.d.ts +2 -0
- package/dist/types/components/grw-map/grw-map.d.ts +13 -0
- package/dist/types/components/grw-touristic-event/grw-touristic-event-card.d.ts +6 -0
- package/dist/types/components/grw-touristic-events-list/grw-touristic-events-list.d.ts +20 -0
- package/dist/types/components.d.ts +82 -21
- package/dist/types/i18n/i18n.d.ts +5 -0
- package/dist/types/store/grw-touristic-contents-provider.d.ts +0 -1
- package/dist/types/store/grw-touristic-events-provider.d.ts +17 -0
- package/dist/types/store/store.d.ts +9 -1
- package/dist/types/types/types.d.ts +18 -1
- package/dist/types/utils/utils.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.map +0 -1
- package/dist/cjs/grw-select-language.cjs.entry.js +0 -28
- package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.map +0 -1
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +0 -63
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-a5ad3083.js.br +0 -0
- package/dist/cjs/i18n-a5ad3083.js.gz +0 -0
- package/dist/cjs/i18n-a5ad3083.js.map +0 -1
- package/dist/cjs/store-d20ae78f.js +0 -250
- package/dist/cjs/store-d20ae78f.js.br +0 -0
- package/dist/cjs/store-d20ae78f.js.gz +0 -0
- package/dist/cjs/store-d20ae78f.js.map +0 -1
- package/dist/cjs/utils-332e41b3.js +0 -181
- package/dist/cjs/utils-332e41b3.js.br +0 -0
- package/dist/cjs/utils-332e41b3.js.gz +0 -0
- package/dist/cjs/utils-332e41b3.js.map +0 -1
- package/dist/esm/grw-filters_12.entry.js.br +0 -0
- package/dist/esm/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm/grw-filters_12.entry.js.map +0 -1
- package/dist/esm/grw-select-language.entry.js +0 -24
- package/dist/esm/grw-select-language.entry.js.br +0 -0
- package/dist/esm/grw-select-language.entry.js.gz +0 -0
- package/dist/esm/grw-select-language.entry.js.map +0 -1
- package/dist/esm/grw-touristic-event-card-provider.entry.js +0 -59
- package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.map +0 -1
- package/dist/esm/i18n-e6325e81.js.br +0 -0
- package/dist/esm/i18n-e6325e81.js.gz +0 -0
- package/dist/esm/i18n-e6325e81.js.map +0 -1
- package/dist/esm/store-032ab1f5.js +0 -246
- package/dist/esm/store-032ab1f5.js.br +0 -0
- package/dist/esm/store-032ab1f5.js.gz +0 -0
- package/dist/esm/store-032ab1f5.js.map +0 -1
- package/dist/esm/utils-b09ac7c9.js +0 -173
- package/dist/esm/utils-b09ac7c9.js.br +0 -0
- package/dist/esm/utils-b09ac7c9.js.gz +0 -0
- package/dist/esm/utils-b09ac7c9.js.map +0 -1
- package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.map +0 -1
- package/dist/esm-es5/grw-select-language.entry.js +0 -2
- package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.map +0 -1
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +0 -2
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +0 -1
- package/dist/esm-es5/i18n-e6325e81.js +0 -2
- package/dist/esm-es5/i18n-e6325e81.js.br +0 -0
- package/dist/esm-es5/i18n-e6325e81.js.gz +0 -0
- package/dist/esm-es5/i18n-e6325e81.js.map +0 -1
- package/dist/esm-es5/store-032ab1f5.js +0 -2
- package/dist/esm-es5/store-032ab1f5.js.br +0 -0
- package/dist/esm-es5/store-032ab1f5.js.gz +0 -0
- package/dist/esm-es5/store-032ab1f5.js.map +0 -1
- package/dist/esm-es5/utils-b09ac7c9.js +0 -2
- package/dist/esm-es5/utils-b09ac7c9.js.br +0 -0
- package/dist/esm-es5/utils-b09ac7c9.js.gz +0 -0
- package/dist/esm-es5/utils-b09ac7c9.js.map +0 -1
- package/dist/geotrek-rando-widget/p-048b3a1e.js +0 -2
- package/dist/geotrek-rando-widget/p-048b3a1e.js.br +0 -0
- package/dist/geotrek-rando-widget/p-048b3a1e.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-048b3a1e.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0f47847d.system.js +0 -2
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js +0 -2
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1f8e7e57.js +0 -2
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +0 -1
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-5e7ed046.js +0 -2
- package/dist/geotrek-rando-widget/p-5e7ed046.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5e7ed046.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5e7ed046.js.map +0 -1
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-689557e0.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c63228e8.system.js +0 -2
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.gz +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as t,f as i,h as e,H as n,g as s}from"./p-0c07a3f0.js";import{s as o
|
|
2
|
-
/*! For license information please see choices.min.js.LICENSE.txt */!function(){var t={282:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.clearChoices=i.activateChoices=i.filterChoices=i.addChoice=void 0;var n=e(883);i.addChoice=function(t){var i=t.value,e=t.label,s=t.id,o=t.groupId,r=t.disabled,c=t.elementId,h=t.customProperties,a=t.placeholder,u=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:i,label:e,id:s,groupId:o,disabled:r,elementId:c,customProperties:h,placeholder:a,keyCode:u}},i.filterChoices=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}},i.activateChoices=function(t){return void 0===t&&(t=!0),{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},i.clearChoices=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.addGroup=void 0;var n=e(883);i.addGroup=function(t){var i=t.value,e=t.id,s=t.active,o=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:i,id:e,active:s,disabled:o}}},464:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.highlightItem=i.removeItem=i.addItem=void 0;var n=e(883);i.addItem=function(t){var i=t.value,e=t.label,s=t.id,o=t.choiceId,r=t.groupId,c=t.customProperties,h=t.placeholder,a=t.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:i,label:e,id:s,choiceId:o,groupId:r,customProperties:c,placeholder:h,keyCode:a}},i.removeItem=function(t,i){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:i}},i.highlightItem=function(t,i){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:i}}},137:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.setIsLoading=i.resetTo=i.clearAll=void 0;var n=e(883);i.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},i.resetTo=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}},i.setIsLoading=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=s(e(996)),r=s(e(221)),c=e(282),h=e(783),a=e(464),u=e(137),l=e(520),d=e(883),f=e(789),p=e(799),v=e(655),b=s(e(744)),m=s(e(686)),g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,_={},x=function(){function t(i,e){void 0===i&&(i="[data-choice]"),void 0===e&&(e={});var s=this;void 0===e.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=o.default.all([f.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,i){return n([],i,!0)}});var r=(0,p.diff)(this.config,f.DEFAULT_CONFIG);r.length&&console.warn("Unknown config option(s) passed",r.join(", "));var c="string"==typeof i?document.querySelector(i):i;if(!(c instanceof HTMLInputElement||c instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=c.type===d.TEXT_TYPE,this._isSelectOneElement=c.type===d.SELECT_ONE_TYPE,this._isSelectMultipleElement=c.type===d.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),e.addItemFilter&&"function"!=typeof e.addItemFilter){var h=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.addItemFilter);this.config.addItemFilter=h.test.bind(h)}if(this._isTextElement?this.passedElement=new l.WrappedInput({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new l.WrappedSelect({element:c,classNames:this.config.classNames,template:function(t){return s._templates.option(t)}}),this.initialised=!1,this._store=new b.default,this._initialState=v.defaultState,this._currentState=v.defaultState,this._prevState=v.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,p.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var a=window.getComputedStyle(this.passedElement.element).direction;a!==window.getComputedStyle(document.documentElement).direction&&(this._direction=a)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var u=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(u)}if(this.passedElement.options&&this.passedElement.options.forEach((function(t){s._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:(0,p.parseCustomProperties)(t.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:i}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return _},get templates(){return m.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=m.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,i){if(void 0===i&&(i=!0),!t||!t.id)return this;var e=t.id,n=t.groupId,s=void 0===n?-1:n,o=t.value,r=void 0===o?"":o,c=t.label,h=void 0===c?"":c,u=s>=0?this._store.getGroupById(s):null;return this._store.dispatch((0,a.highlightItem)(e,!0)),i&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:e,value:r,label:h,groupValue:u&&u.value?u.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var i=t.id,e=t.groupId,n=void 0===e?-1:e,s=t.value,o=void 0===s?"":s,r=t.label,c=void 0===r?"":r,h=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,a.highlightItem)(i,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:h&&h.value?h.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.highlightItem(i)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.unhighlightItem(i)})),this},t.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.id!==t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e),t&&i._triggerChange(e.value)})),this},t.prototype.showDropdown=function(t){var i=this;return this.dropdown.isActive||requestAnimationFrame((function(){i.dropdown.show(),i.containerOuter.open(i.dropdown.distanceFromTopWindow),!t&&i._canSearch&&i.input.focus(),i.passedElement.triggerEvent(d.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame((function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var i=this._store.activeItems.reduce((function(i,e){var n=t?e.value:e;return i.push(n),i}),[]);return this._isSelectOneElement?i[0]:i},t.prototype.setValue=function(t){var i=this;return this.initialised?(t.forEach((function(t){return i._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var i=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return i._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,i,e,n){var s=this;if(void 0===t&&(t=[]),void 0===i&&(i="value"),void 0===e&&(e="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof i||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof t){var o=t(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return o})).then((function(t){return s.setChoices(t,i,e,n)})).catch((function(t){s.config.silent||console.error(t)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,i,e,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)s._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:i,labelKey:e});else{var n=t;s._addChoice({value:n[i],label:n[e],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,c.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,u.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,i=this._isSelectElement,e=this._currentState.items!==this._prevState.items;t&&(i&&this._renderChoices(),e&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,i=this._store,e=i.activeGroups,n=i.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),e.length>=1&&!this._isSearching){var o=n.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));o.length>=1&&(s=this._createChoicesFragment(o,s)),s=this._createGroupsFragment(e,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var r=this._store.activeItems,c=this._canAddItem(r,this.input.value);if(c.response)this.choiceList.append(s),this._highlightChoice();else{var h=this._getTemplate("notice",c.notice);this.choiceList.append(h)}}else{var a=void 0;h=void 0,this._isSearching?(h="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,a=this._getTemplate("notice",h,"no-results")):(h="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,a=this._getTemplate("notice",h,"no-choices")),this.choiceList.append(a)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);i.childNodes&&this.itemList.append(i)},t.prototype._createGroupsFragment=function(t,i,e){var n=this;return void 0===e&&(e=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var s=function(t){return i.filter((function(i){return n._isSelectOneElement?i.groupId===t.id:i.groupId===t.id&&("always"===n.config.renderSelectedChoices||!i.selected)}))}(t);if(s.length>=1){var o=n._getTemplate("choiceGroup",t);e.appendChild(o),n._createChoicesFragment(s,e,!0)}})),e},t.prototype._createChoicesFragment=function(t,i,e){var s=this;void 0===i&&(i=document.createDocumentFragment()),void 0===e&&(e=!1);var o=this.config,r=o.renderSelectedChoices,c=o.searchResultLimit,h=o.renderChoiceLimit,a=this._isSearching?p.sortByScore:this.config.sorter,u=function(t){if("auto"!==r||s._isSelectOneElement||!t.selected){var e=s._getTemplate("choice",t,s.config.itemSelectText);i.appendChild(e)}},l=t;"auto"!==r||this._isSelectOneElement||(l=t.filter((function(t){return!t.selected})));var d=l.reduce((function(t,i){return i.placeholder?t.placeholderChoices.push(i):t.normalChoices.push(i),t}),{placeholderChoices:[],normalChoices:[]}),f=d.placeholderChoices,v=d.normalChoices;(this.config.shouldSort||this._isSearching)&&v.sort(a);var b=l.length,m=this._isSelectOneElement?n(n([],f,!0),v,!0):v;this._isSearching?b=c:h&&h>0&&!e&&(b=h);for(var g=0;g<b;g+=1)m[g]&&u(m[g]);return i},t.prototype._createItemsFragment=function(t,i){var e=this;void 0===i&&(i=document.createDocumentFragment());var n=this.config,s=n.shouldSortItems,o=n.sorter,r=n.removeItemButton;return s&&!this._isSelectOneElement&&t.sort(o),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var n=e._getTemplate("item",t,r);i.appendChild(n)})),i},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(d.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,i){if(t&&i&&this.config.removeItems&&this.config.removeItemButton){var e=i.parentNode&&i.parentNode.dataset.id,n=e&&t.find((function(t){return t.id===parseInt(e,10)}));n&&(this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,i,e){var n=this;if(void 0===e&&(e=!1),t&&i&&this.config.removeItems&&!this._isSelectOneElement){var s=i.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(s),10)||t.highlighted?!e&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,i){if(t&&i){var e=i.dataset.id,n=e&&this._store.getChoiceById(e);if(n){var s=t[0]&&t[0].keyCode?t[0].keyCode:void 0,o=this.dropdown.isActive;n.keyCode=s,this.passedElement.triggerEvent(d.EVENTS.choice,{choice:n}),n.selected||n.disabled||this._canAddItem(t,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var i=t[t.length-1],e=t.some((function(t){return t.highlighted}));this.config.editItems&&!e&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(e||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,u.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,u.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var i=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i?i.innerHTML=this.config.loadingText:(i=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(i):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?i&&(i.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed){var i=this._store.choices,e=this.config,n=e.searchFloor,s=e.searchChoices,o=i.some((function(t){return!t.active}));if(null!=t&&t.length>=n){var r=s?this._searchChoices(t):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:t,resultCount:r})}else o&&(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,i){var e=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var s=(0,p.existsInArray)(t,i);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(e=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&e&&(e=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(i):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&e&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(i)&&(e=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(i):this.config.customAddItemText)}return{response:e,notice:n}},t.prototype._searchChoices=function(t){var i="string"==typeof t?t.trim():t,e="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(i.length<1&&i==="".concat(e," "))return 0;var s=this._store.searchableChoices,o=i,h=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,!0),includeMatches:!0}),a=new r.default(s,h).search(o);return this._currentValue=i,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,c.filterChoices)(a)),a.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var i=t.keyCode,e=this._store.activeItems,n=this.input.isFocussed,s=this.dropdown.isActive,o=this.itemList.hasChildren(),r=String.fromCharCode(i),c=/[^\x00-\x1F]/.test(r),h=d.KEY_CODES.BACK_KEY,a=d.KEY_CODES.DELETE_KEY,u=d.KEY_CODES.ENTER_KEY,l=d.KEY_CODES.A_KEY,f=d.KEY_CODES.ESC_KEY,p=d.KEY_CODES.UP_KEY,v=d.KEY_CODES.DOWN_KEY,b=d.KEY_CODES.PAGE_UP_KEY,m=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||s||!c||(this.showDropdown(),this.input.isFocussed||(this.input.value+=t.key.toLowerCase())),i){case l:return this._onSelectKey(t,o);case u:return this._onEnterKey(t,e,s);case f:return this._onEscapeKey(s);case p:case b:case v:case m:return this._onDirectionKey(t,s);case a:case h:return this._onDeleteKey(t,e,n)}},t.prototype._onKeyUp=function(t){var i=t.target,e=t.keyCode,n=this.input.value,s=this._store.activeItems,o=this._canAddItem(s,n),r=d.KEY_CODES.BACK_KEY,h=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&n){var a=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=a.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var u=(e===r||e===h)&&i&&!i.value,l=!this._isTextElement&&this._isSearching,f=this._canSearch&&o.response;u&&l?(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0))):f&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,i){var e=t.ctrlKey,n=t.metaKey;(e||n)&&i&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,i,e){var n=t.target,s=d.KEY_CODES.ENTER_KEY,o=n&&n.hasAttribute("data-button");if(this._isTextElement&&n&&n.value){var r=this.input.value;this._canAddItem(i,r).response&&(this.hideDropdown(!0),this._addItem({value:r}),this._triggerChange(r),this.clearInput())}if(o&&(this._handleButtonAction(i,n),t.preventDefault()),e){var c=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));c&&(i[0]&&(i[0].keyCode=s),this._handleChoiceAction(i,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,i){var e=t.keyCode,n=t.metaKey,s=d.KEY_CODES.DOWN_KEY,o=d.KEY_CODES.PAGE_UP_KEY,r=d.KEY_CODES.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var c=e===s||e===r?1:-1,h="[data-choice-selectable]",a=void 0;if(n||e===r||e===o)a=c>0?this.dropdown.element.querySelector("".concat(h,":last-of-type")):this.dropdown.element.querySelector(h);else{var u=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));a=u?(0,p.getAdjacentEl)(u,h,c):this.dropdown.element.querySelector(h)}a&&((0,p.isScrolledIntoView)(a,this.choiceList.element,c)||this.choiceList.scrollToChildElement(a,c),this._highlightChoice(a)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,i,e){var n=t.target;this._isSelectOneElement||n.value||!e||(this._handleBackspace(i),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(i)&&((i===this.containerOuter.element||i===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(g&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild,n="ltr"===this._direction?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft;this._isScrollingOnIe=n}if(i!==this.input.element){var s=i.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var o=t.shiftKey,r=this._store.activeItems,c=s.dataset;"button"in c?this._handleButtonAction(r,s):"item"in c?this._handleItemAction(r,s,o):"choice"in c&&this._handleChoiceAction(r,s)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},t.prototype._onClick=function(t){var i=t.target;this.containerOuter.element.contains(i)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var i,e=this,n=t.target;n&&this.containerOuter.element.contains(n)&&((i={})[d.TEXT_TYPE]=function(){n===e.input.element&&e.containerOuter.addFocusState()},i[d.SELECT_ONE_TYPE]=function(){e.containerOuter.addFocusState(),n===e.input.element&&e.showDropdown(!0)},i[d.SELECT_MULTIPLE_TYPE]=function(){n===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())},i)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var i,e=this,n=t.target;if(n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe){var s=this._store.activeItems.some((function(t){return t.highlighted}));((i={})[d.TEXT_TYPE]=function(){n===e.input.element&&(e.containerOuter.removeFocusState(),s&&e.unhighlightAll(),e.hideDropdown(!0))},i[d.SELECT_ONE_TYPE]=function(){e.containerOuter.removeFocusState(),(n===e.input.element||n===e.containerOuter.element&&!e._canSearch)&&e.hideDropdown(!0)},i[d.SELECT_MULTIPLE_TYPE]=function(){n===e.input.element&&(e.containerOuter.removeFocusState(),e.hideDropdown(!0),s&&e.unhighlightAll())},i)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,u.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var i=this;void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var n=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(i.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),n?this._highlightPosition=e.indexOf(n):(n=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(n=e[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},t.prototype._addItem=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,s=t.choiceId,o=void 0===s?-1:s,r=t.groupId,c=void 0===r?-1:r,h=t.customProperties,u=void 0===h?{}:h,l=t.placeholder,f=void 0!==l&&l,p=t.keyCode,v=void 0===p?-1:p,b="string"==typeof i?i.trim():i,m=this._store.items,g=n||b,_=o||-1,x=c>=0?this._store.getGroupById(c):null,y=m?m.length+1:1;this.config.prependValue&&(b=this.config.prependValue+b.toString()),this.config.appendValue&&(b+=this.config.appendValue.toString()),this._store.dispatch((0,a.addItem)({value:b,label:g,id:y,choiceId:_,groupId:c,customProperties:u,placeholder:f,keyCode:v})),this._isSelectOneElement&&this.removeActiveItems(y),this.passedElement.triggerEvent(d.EVENTS.addItem,{id:y,value:b,label:g,customProperties:u,groupValue:x&&x.value?x.value:null,keyCode:v})},t.prototype._removeItem=function(t){var i=t.id,e=t.value,n=t.label,s=t.customProperties,o=t.choiceId,r=t.groupId,c=r&&r>=0?this._store.getGroupById(r):null;i&&o&&(this._store.dispatch((0,a.removeItem)(i,o)),this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:i,value:e,label:n,customProperties:s,groupValue:c&&c.value?c.value:null}))},t.prototype._addChoice=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,s=t.isSelected,o=void 0!==s&&s,r=t.isDisabled,h=void 0!==r&&r,a=t.groupId,u=void 0===a?-1:a,l=t.customProperties,d=void 0===l?{}:l,f=t.placeholder,p=void 0!==f&&f,v=t.keyCode,b=void 0===v?-1:v;if(null!=i){var m=this._store.choices,g=n||i,_=m?m.length+1:1,x="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(_);this._store.dispatch((0,c.addChoice)({id:_,groupId:u,elementId:x,value:i,label:g,disabled:h,customProperties:d,placeholder:p,keyCode:b})),o&&this._addItem({value:i,label:g,choiceId:_,customProperties:d,placeholder:p,keyCode:b})}},t.prototype._addGroup=function(t){var i=this,e=t.group,n=t.id,s=t.valueKey,o=void 0===s?"value":s,r=t.labelKey,c=void 0===r?"label":r,a=(0,p.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),u=n||Math.floor((new Date).valueOf()*Math.random()),l=!!e.disabled&&e.disabled;a?(this._store.dispatch((0,h.addGroup)({value:e.label,id:u,active:!0,disabled:l})),a.forEach((function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[o],label:(0,p.isType)("Object",t)?t[c]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:u,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,h.addGroup)({value:e.label,id:e.id,active:!1,disabled:e.disabled}))},t.prototype._getTemplate=function(t){for(var i,e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];return(i=this._templates[t]).call.apply(i,n([this,this.config],e,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,i={};t&&"function"==typeof t&&(i=t.call(this,p.strToEl)),this._templates=(0,o.default)(m.default,i)},t.prototype._createElements=function(){this.containerOuter=new l.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new l.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new l.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new l.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new l.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new l.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var i=this,e=this.passedElement.placeholderOption;e&&e.parentNode&&"SELECT"===e.parentNode.tagName&&this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:!0}),t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var i=this;this.config.shouldSort&&t.sort(this.config.sorter);var e=t.some((function(t){return t.selected})),n=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,s){var o=t.value,r=void 0===o?"":o,c=t.label,h=t.customProperties,a=t.placeholder;if(i._isSelectElement)if(t.choices)i._addGroup({group:t,id:t.id||null});else{var u=!(!i._isSelectOneElement||e||s!==n)||t.selected,l=t.disabled;i._addChoice({value:r,label:c,isSelected:!!u,isDisabled:!!l,placeholder:!!a,customProperties:h})}else i._addChoice({value:r,label:c,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:h})}))},t.prototype._addPredefinedItems=function(t){var i=this;t.forEach((function(t){"object"==typeof t&&t.value&&i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&i._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var i=this;({object:function(){t.value&&(i._isTextElement?i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):i._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){i._isTextElement?i._addItem({value:t}):i._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,p.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find((function(e){return i.config.valueComparer(e.value,t)}));e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var i=this.config,e=i.placeholder,n=i.placeholderValue,s=this.passedElement.element.dataset;if(e){if(n)return n;if(s.placeholder)return s.placeholder}return null},t}();i.default=x},613:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),s=e(883),o=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,s=t.position;this.element=i,this.classNames=n,this.type=e,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var i=!1;return"auto"===this.position?i=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(i=!0),i},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){(0,n.wrap)(t,this.element)},t.prototype.unwrap=function(t){this.element.parentNode&&(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=o},217:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){var i=t.element,e=t.type,n=t.classNames;this.element=i,this.classNames=n,this.type=e,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();i.default=e},520:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.WrappedSelect=i.WrappedInput=i.List=i.Input=i.Container=i.Dropdown=void 0;var s=n(e(217));i.Dropdown=s.default;var o=n(e(613));i.Container=o.default;var r=n(e(11));i.Input=r.default;var c=n(e(624));i.List=c.default;var h=n(e(541));i.WrappedInput=h.default;var a=n(e(982));i.WrappedSelect=a.default},11:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),s=e(883),o=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,s=t.preventPaste;this.element=i,this.type=e,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,i=t.style,e=t.value,n=t.placeholder;i.minWidth="".concat(n.length+1,"ch"),i.width="".concat(e.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==s.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=o},624:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(883),s=function(){function t(t){var i=t.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,i){var e=this;if(t){var n=this.element.offsetHeight,s=this.element.scrollTop+n,o=t.offsetHeight,r=t.offsetTop+o,c=i>0?this.element.scrollTop+r-s:t.offsetTop;requestAnimationFrame((function(){e._animateScroll(c,i)}))}},t.prototype._scrollDown=function(t,i,e){var n=(e-t)/i,s=n>1?n:1;this.element.scrollTop=t+s},t.prototype._scrollUp=function(t,i,e){var n=(t-e)/i,s=n>1?n:1;this.element.scrollTop=t-s},t.prototype._animateScroll=function(t,i){var e=this,s=n.SCROLLING_SPEED,o=this.element.scrollTop,r=!1;i>0?(this._scrollDown(o,s,t),o<t&&(r=!0)):(this._scrollUp(o,s,t),o>t&&(r=!0)),r&&requestAnimationFrame((function(){e._animateScroll(t,i)}))},t}();i.default=s},730:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),s=function(){function t(t){var i=t.element,e=t.classNames;if(this.element=i,this.classNames=e,!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,i){(0,n.dispatchEvent)(this.element,t,i)},t}();i.default=s},541:function(t,i,e){var n,s=this&&this.__extends||(n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},n(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var r=function(t){function i(i){var e=i.element,n=i.classNames,s=i.delimiter,o=t.call(this,{element:e,classNames:n})||this;return o.delimiter=s,o}return s(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),i}(o(e(730)).default);i.default=r},982:function(t,i,e){var n,s=this&&this.__extends||(n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},n(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var r=function(t){function i(i){var e=i.element,n=i.classNames,s=i.template,o=t.call(this,{element:e,classNames:n})||this;return o.template=s,o}return s(i,t),Object.defineProperty(i.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var i=this,e=document.createDocumentFragment();t.forEach((function(t){return n=t,s=i.template(n),void e.appendChild(s);var n,s})),this.appendDocFragment(e)},enumerable:!1,configurable:!0}),i.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},i}(o(e(730)).default);i.default=r},883:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.SCROLLING_SPEED=i.SELECT_MULTIPLE_TYPE=i.SELECT_ONE_TYPE=i.TEXT_TYPE=i.KEY_CODES=i.ACTION_TYPES=i.EVENTS=void 0,i.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},i.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},i.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},i.TEXT_TYPE="text",i.SELECT_ONE_TYPE="select-one",i.SELECT_MULTIPLE_TYPE="select-multiple",i.SCROLLING_SPEED=4},789:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_CONFIG=i.DEFAULT_CLASSNAMES=void 0;var n=e(799);i.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},i.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,n.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:i.DEFAULT_CLASSNAMES}},18:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},978:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},948:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},359:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},285:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},533:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},187:function(t,i,e){var n=this&&this.__createBinding||(Object.create?function(t,i,e,n){void 0===n&&(n=e);var s=Object.getOwnPropertyDescriptor(i,e);s&&!("get"in s?!i.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return i[e]}}),Object.defineProperty(t,n,s)}:function(t,i,e,n){void 0===n&&(n=e),t[n]=i[e]}),s=this&&this.__exportStar||function(t,i){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(i,e)||n(i,t,e)};Object.defineProperty(i,"__esModule",{value:!0}),s(e(18),i),s(e(978),i),s(e(948),i),s(e(359),i),s(e(285),i),s(e(533),i),s(e(287),i),s(e(132),i),s(e(837),i),s(e(598),i),s(e(369),i),s(e(37),i),s(e(47),i),s(e(923),i),s(e(876),i)},287:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},132:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},837:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},598:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},37:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},369:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},47:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},923:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},876:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},799:function(t,i){var e;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(t,i){return Math.floor(Math.random()*(i-t)+t)},i.generateChars=function(t){return Array.from({length:t},(function(){return(0,i.getRandomNumber)(0,36).toString(36)})).join("")},i.generateId=function(t,e){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),"".concat(e,"-").concat(n)},i.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},i.isType=function(t,e){return null!=e&&(0,i.getType)(e)===t},i.wrap=function(t,i){return void 0===i&&(i=document.createElement("div")),t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i)),i.appendChild(t)},i.getAdjacentEl=function(t,i,e){void 0===e&&(e=1);for(var n="".concat(e>0?"next":"previous","ElementSibling"),s=t[n];s;){if(s.matches(i))return s;s=s[n]}return s},i.isScrolledIntoView=function(t,i,e){return void 0===e&&(e=1),!!t&&(e>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)},i.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""")},i.strToEl=(e=document.createElement("div"),function(t){var i=t.trim();e.innerHTML=i;for(var n=e.children[0];e.firstChild;)e.removeChild(e.firstChild);return n}),i.sortByAlpha=function(t,i){var e=t.value,n=t.label,s=void 0===n?e:n,o=i.value,r=i.label,c=void 0===r?o:r;return s.localeCompare(c,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(t,i){var e=t.score,n=void 0===e?0:e,s=i.score;return n-(void 0===s?0:s)},i.dispatchEvent=function(t,i,e){void 0===e&&(e=null);var n=new CustomEvent(i,{detail:e,bubbles:!0,cancelable:!0});return t.dispatchEvent(n)},i.existsInArray=function(t,i,e){return void 0===e&&(e="value"),t.some((function(t){return"string"==typeof i?t[e]===i.trim():t[e]===i}))},i.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},i.diff=function(t,i){var e=Object.keys(t).sort(),n=Object.keys(i).sort();return e.filter((function(t){return n.indexOf(t)<0}))},i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(i){return t}return{}}},273:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_CHOICE":var s=n,o={id:s.id,elementId:s.elementId,groupId:s.groupId,value:s.value,label:s.label||s.value,disabled:s.disabled||!1,selected:!1,active:!0,score:9999,customProperties:s.customProperties,placeholder:s.placeholder||!1};return e(e([],t,!0),[o],!1);case"ADD_ITEM":var r=n;return r.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(r.choiceId),10)&&(i.selected=!0),i})):t;case"REMOVE_ITEM":var c=n;return c.choiceId&&c.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(c.choiceId),10)&&(i.selected=!1),i})):t;case"FILTER_CHOICES":var h=n;return t.map((function(t){var i=t;return i.active=h.results.some((function(t){var e=t.item,n=t.score;return e.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":var a=n;return t.map((function(t){var i=t;return i.active=a.active,i}));case"CLEAR_CHOICES":return i.defaultState;default:return t}}},871:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_GROUP":var s=n;return e(e([],t,!0),[{id:s.id,value:s.value,active:s.active,disabled:s.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0;var s=e(791),o=n(e(52)),r=n(e(871)),c=n(e(273)),h=n(e(502)),a=e(799);i.defaultState={groups:[],items:[],choices:[],loading:!1};var u=(0,s.combineReducers)({items:o.default,groups:r.default,choices:c.default,loading:h.default});i.default=function(t,e){var n=t;if("CLEAR_ALL"===e.type)n=i.defaultState;else if("RESET_TO"===e.type)return(0,a.cloneObject)(e.state);return u(n,e)}},52:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_ITEM":var s=n;return e(e([],t,!0),[{id:s.id,choiceId:s.choiceId,groupId:s.groupId,value:s.value,label:s.label,active:!0,highlighted:!1,customProperties:s.customProperties,placeholder:s.placeholder||!1,keyCode:null}],!1).map((function(t){var i=t;return i.highlighted=!1,i}));case"REMOVE_ITEM":return t.map((function(t){var i=t;return i.id===n.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":var o=n;return t.map((function(t){var i=t;return i.id===o.id&&(i.highlighted=o.highlighted),i}));default:return t}}},502:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(t,e){return void 0===t&&(t=i.defaultState),void 0===e&&(e={}),"SET_IS_LOADING"===e.type?e.isLoading:t}},744:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=e(791),r=s(e(655)),c=function(){function t(){this._store=(0,o.createStore)(r.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return n([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,i=this.choices;return t.filter((function(t){var e=!0===t.active&&!1===t.disabled,n=i.some((function(t){return!0===t.active&&!1===t.disabled}));return e&&n}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))},t}();i.default=c},686:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e={containerOuter:function(t,i,e,n,s,o,r){var c=t.classNames.containerOuter,h=Object.assign(document.createElement("div"),{className:c});return h.dataset.type=o,i&&(h.dir=i),n&&(h.tabIndex=0),e&&(h.setAttribute("role",s?"combobox":"listbox"),s&&h.setAttribute("aria-autocomplete","list")),h.setAttribute("aria-haspopup","true"),h.setAttribute("aria-expanded","false"),r&&h.setAttribute("aria-labelledby",r),h},containerInner:function(t){var i=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.classNames,n=e.list,s=e.listSingle,o=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(i?s:o)})},placeholder:function(t,i){var e,n=t.allowHTML,s=t.classNames.placeholder;return Object.assign(document.createElement("div"),((e={className:s})[n?"innerHTML":"innerText"]=i,e))},item:function(t,i,e){var n,s,o=t.allowHTML,r=t.classNames,c=r.item,h=r.button,a=r.highlightedState,u=r.itemSelectable,l=r.placeholder,d=i.id,f=i.value,p=i.label,v=i.customProperties,b=i.active,m=i.disabled,g=i.highlighted,_=i.placeholder,x=Object.assign(document.createElement("div"),((n={className:c})[o?"innerHTML":"innerText"]=p,n));if(Object.assign(x.dataset,{item:"",id:d,value:f,customProperties:v}),b&&x.setAttribute("aria-selected","true"),m&&x.setAttribute("aria-disabled","true"),_&&x.classList.add(l),x.classList.add(g?a:u),e){m&&x.classList.remove(u),x.dataset.deletable="";var y="Remove item",w=Object.assign(document.createElement("button"),((s={type:"button",className:h})[o?"innerHTML":"innerText"]=y,s));w.setAttribute("aria-label","".concat(y,": '").concat(f,"'")),w.dataset.button="",x.appendChild(w)}return x},choiceList:function(t,i){var e=t.classNames.list,n=Object.assign(document.createElement("div"),{className:e});return i||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(t,i){var e,n=t.allowHTML,s=t.classNames,o=s.group,r=s.groupHeading,c=s.itemDisabled,h=i.id,a=i.value,u=i.disabled,l=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(u?c:"")});return l.setAttribute("role","group"),Object.assign(l.dataset,{group:"",id:h,value:a}),u&&l.setAttribute("aria-disabled","true"),l.appendChild(Object.assign(document.createElement("div"),((e={className:r})[n?"innerHTML":"innerText"]=a,e))),l},choice:function(t,i,e){var n,s=t.allowHTML,o=t.classNames,r=o.item,c=o.itemChoice,h=o.itemSelectable,a=o.selectedState,u=o.itemDisabled,l=o.placeholder,d=i.id,f=i.value,p=i.label,v=i.groupId,b=i.elementId,m=i.disabled,g=i.selected,_=i.placeholder,x=Object.assign(document.createElement("div"),((n={id:b})[s?"innerHTML":"innerText"]=p,n.className="".concat(r," ").concat(c),n));return g&&x.classList.add(a),_&&x.classList.add(l),x.setAttribute("role",v&&v>0?"treeitem":"option"),Object.assign(x.dataset,{choice:"",id:d,value:f,selectText:e}),m?(x.classList.add(u),x.dataset.choiceDisabled="",x.setAttribute("aria-disabled","true")):(x.classList.add(h),x.dataset.choiceSelectable=""),x},input:function(t,i){var e=t.classNames,n=e.input,s=e.inputCloned,o=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(n," ").concat(s),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",i),o},dropdown:function(t){var i=t.classNames,e=i.list,n=i.listDropdown,s=document.createElement("div");return s.classList.add(e,n),s.setAttribute("aria-expanded","false"),s},notice:function(t,i,e){var n,s=t.allowHTML,o=t.classNames,r=o.item,c=o.itemChoice,h=o.noResults,a=o.noChoices;void 0===e&&(e="");var u=[r,c];return"no-choices"===e?u.push(a):"no-results"===e&&u.push(h),Object.assign(document.createElement("div"),((n={})[s?"innerHTML":"innerText"]=i,n.className=u.join(" "),n))},option:function(t){var i=t.label,e=t.value,n=t.customProperties,s=t.active,o=t.disabled,r=new Option(i,e,!1,s);return n&&(r.dataset.customProperties="".concat(n)),r.disabled=!!o,r}};i.default=e},996:function(t){var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var i=Object.prototype.toString.call(t);return"[object RegExp]"===i||"[object Date]"===i||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,i){return!1!==i.clone&&i.isMergeableObject(t)?c((e=t,Array.isArray(e)?[]:{}),t,i):t;var e}function s(t,i,e){return t.concat(i).map((function(t){return n(t,e)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}(t))}function r(t,i){try{return i in t}catch(t){return!1}}function c(t,e,h){(h=h||{}).arrayMerge=h.arrayMerge||s,h.isMergeableObject=h.isMergeableObject||i,h.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(e);return a===Array.isArray(t)?a?h.arrayMerge(t,e,h):function(t,i,e){var s={};return e.isMergeableObject(t)&&o(t).forEach((function(i){s[i]=n(t[i],e)})),o(i).forEach((function(o){(function(t,i){return r(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))})(t,o)||(r(t,o)&&e.isMergeableObject(i[o])?s[o]=function(t,i){if(!i.customMerge)return c;var e=i.customMerge(t);return"function"==typeof e?e:c}(o,e)(t[o],i[o],e):s[o]=n(i[o],e))})),s}(t,e,h):n(e,h)}c.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,e){return c(t,e,i)}),{})};var h=c;t.exports=h},221:function(t,i,e){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===a(t)}function s(t){return"string"==typeof t}function o(t){return"number"==typeof t}function r(t){return"object"==typeof t}function c(t){return null!=t}function h(t){return!t.trim().length}function a(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}e.r(i),e.d(i,{default:function(){return H}});const u=Object.prototype.hasOwnProperty;class l{constructor(t){this._keys=[],this._keyMap={};let i=0;t.forEach((t=>{let e=d(t);i+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,i+=e.weight})),this._keys.forEach((t=>{t.weight/=i}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function d(t){let i=null,e=null,o=null,r=1,c=null;if(s(t)||n(t))o=t,i=f(t),e=p(t);else{if(!u.call(t,"name"))throw new Error("Missing name property in key");const n=t.name;if(o=n,u.call(t,"weight")&&(r=t.weight,r<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(n));i=f(n),e=p(n),c=t.getFn}return{path:i,id:e,weight:r,src:o,getFn:c}}function f(t){return n(t)?t:t.split(".")}function p(t){return n(t)?t.join("."):t}var v={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,i)=>t.score===i.score?t.idx<i.idx?-1:1:t.score<i.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,i){let e=[],h=!1;const u=(t,i,l)=>{if(c(t))if(i[l]){const d=t[i[l]];if(!c(d))return;if(l===i.length-1&&(s(d)||o(d)||function(t){return!0===t||!1===t||function(t){return r(t)&&null!==t}(t)&&"[object Boolean]"==a(t)}(d)))e.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let i=t+"";return"0"==i&&1/t==-1/0?"-0":i}(t)}(d));else if(n(d)){h=!0;for(let t=0,e=d.length;t<e;t+=1)u(d[t],i,l+1)}else i.length&&u(d,i,l+1)}else e.push(t)};return u(t,s(i)?i.split("."):i,0),h?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const b=/[^ ]+/g;class m{constructor({getFn:t=v.getFn,fieldNormWeight:i=v.fieldNormWeight}={}){this.norm=function(t=1,i=3){const e=new Map,n=Math.pow(10,i);return{get(i){const s=i.match(b).length;if(e.has(s))return e.get(s);const o=1/Math.pow(s,.5*t),r=parseFloat(Math.round(o*n)/n);return e.set(s,r),r},clear(){e.clear()}}}(i,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,i)=>{this._keysMap[t.id]=i}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,s(this.docs[0])?this.docs.forEach(((t,i)=>{this._addString(t,i)})):this.docs.forEach(((t,i)=>{this._addObject(t,i)})),this.norm.clear())}add(t){const i=this.size();s(t)?this._addString(t,i):this._addObject(t,i)}removeAt(t){this.records.splice(t,1);for(let i=t,e=this.size();i<e;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(t,i){return t[this._keysMap[i]]}size(){return this.records.length}_addString(t,i){if(!c(t)||h(t))return;let e={v:t,i,n:this.norm.get(t)};this.records.push(e)}_addObject(t,i){let e={i,$:{}};this.keys.forEach(((i,o)=>{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(c(r))if(n(r)){let t=[];const i=[{nestedArrIndex:-1,value:r}];for(;i.length;){const{nestedArrIndex:e,value:o}=i.pop();if(c(o))if(s(o)&&!h(o)){let i={v:o,i:e,n:this.norm.get(o)};t.push(i)}else n(o)&&o.forEach(((t,e)=>{i.push({nestedArrIndex:e,value:t})}))}e.$[o]=t}else if(s(r)&&!h(r)){let t={v:r,n:this.norm.get(r)};e.$[o]=t}})),this.records.push(e)}toJSON(){return{keys:this.keys,records:this.records}}}function g(t,i,{getFn:e=v.getFn,fieldNormWeight:n=v.fieldNormWeight}={}){const s=new m({getFn:e,fieldNormWeight:n});return s.setKeys(t.map(d)),s.setSources(i),s.create(),s}function _(t,{errors:i=0,currentLocation:e=0,expectedLocation:n=0,distance:s=v.distance,ignoreLocation:o=v.ignoreLocation}={}){const r=i/t.length;if(o)return r;const c=Math.abs(n-e);return s?r+c/s:c?1:r}const x=32;function y(t){let i={};for(let e=0,n=t.length;e<n;e+=1){const s=t.charAt(e);i[s]=(i[s]||0)|1<<n-e-1}return i}class w{constructor(t,{location:i=v.location,threshold:e=v.threshold,distance:n=v.distance,includeMatches:s=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:r=v.minMatchCharLength,isCaseSensitive:c=v.isCaseSensitive,ignoreLocation:h=v.ignoreLocation}={}){if(this.options={location:i,threshold:e,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:c,ignoreLocation:h},this.pattern=c?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const a=(t,i)=>{this.chunks.push({pattern:t,alphabet:y(t),startIndex:i})},u=this.pattern.length;if(u>x){let t=0;const i=u%x,e=u-i;for(;t<e;)a(this.pattern.substr(t,x),t),t+=x;if(i){const t=u-x;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:i,includeMatches:e}=this.options;if(i||(t=t.toLowerCase()),this.pattern===t){let i={isMatch:!0,score:0};return e&&(i.indices=[[0,t.length-1]]),i}const{location:n,distance:s,threshold:o,findAllMatches:r,minMatchCharLength:c,ignoreLocation:h}=this.options;let a=[],u=0,l=!1;this.chunks.forEach((({pattern:i,alphabet:d,startIndex:f})=>{const{isMatch:p,score:b,indices:m}=function(t,i,e,{location:n=v.location,distance:s=v.distance,threshold:o=v.threshold,findAllMatches:r=v.findAllMatches,minMatchCharLength:c=v.minMatchCharLength,includeMatches:h=v.includeMatches,ignoreLocation:a=v.ignoreLocation}={}){if(i.length>x)throw new Error("Pattern length exceeds max of 32.");const u=i.length,l=t.length,d=Math.max(0,Math.min(n,l));let f=o,p=d;const b=c>1||h,m=b?Array(l):[];let g;for(;(g=t.indexOf(i,p))>-1;){let t=_(i,{currentLocation:g,expectedLocation:d,distance:s,ignoreLocation:a});if(f=Math.min(t,f),p=g+u,b){let t=0;for(;t<u;)m[g+t]=1,t+=1}}p=-1;let y=[],w=1,O=u+l;const j=1<<u-1;for(let v=0;v<u;v+=1){let n=0,o=O;for(;n<o;)_(i,{errors:v,currentLocation:d+o,expectedLocation:d,distance:s,ignoreLocation:a})<=f?n=o:O=o,o=Math.floor((O-n)/2+n);O=o;let c=Math.max(1,d-o+1),h=r?l:Math.min(d+o,l)+u,g=Array(h+2);g[h+1]=(1<<v)-1;for(let r=h;r>=c;r-=1){let n=r-1,o=e[t.charAt(n)];if(b&&(m[n]=+!!o),g[r]=(g[r+1]<<1|1)&o,v&&(g[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),g[r]&j&&(w=_(i,{errors:v,currentLocation:n,expectedLocation:d,distance:s,ignoreLocation:a}),w<=f)){if(f=w,p=n,p<=d)break;c=Math.max(1,2*d-p)}}if(_(i,{errors:v+1,currentLocation:d,expectedLocation:d,distance:s,ignoreLocation:a})>f)break;y=g}const M={isMatch:p>=0,score:Math.max(.001,w)};if(b){const t=function(t=[],i=v.minMatchCharLength){let e=[],n=-1,s=-1,o=0;for(let r=t.length;o<r;o+=1){let r=t[o];r&&-1===n?n=o:r||-1===n||(s=o-1,s-n+1>=i&&e.push([n,s]),n=-1)}return t[o-1]&&o-n>=i&&e.push([n,o-1]),e}(m,c);t.length?h&&(M.indices=t):M.isMatch=!1}return M}(t,i,d,{location:n+f,distance:s,threshold:o,findAllMatches:r,minMatchCharLength:c,includeMatches:e,ignoreLocation:h});p&&(l=!0),u+=b,p&&m&&(a=[...a,...m])}));let d={isMatch:l,score:l?u/this.chunks.length:1};return l&&e&&(d.indices=a),d}}class O{constructor(t){this.pattern=t}static isMultiMatch(t){return j(t,this.multiRegex)}static isSingleMatch(t){return j(t,this.singleRegex)}search(){}}function j(t,i){const e=t.match(i);return e?e[1]:null}class M extends O{constructor(t,{location:i=v.location,threshold:e=v.threshold,distance:n=v.distance,includeMatches:s=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:r=v.minMatchCharLength,isCaseSensitive:c=v.isCaseSensitive,ignoreLocation:h=v.ignoreLocation}={}){super(t),this._bitapSearch=new w(t,{location:i,threshold:e,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:c,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class I extends O{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let i,e=0;const n=[],s=this.pattern.length;for(;(i=t.indexOf(this.pattern,e))>-1;)e=i+s,n.push([i,e-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const E=[class extends O{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},I,class extends O{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=-1===t.indexOf(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},M],C=E.length,k=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,A=new Set([M.type,I.type]);const L=[];function S(t,i){for(let e=0,n=L.length;e<n;e+=1){let n=L[e];if(n.condition(t,i))return new n(t,i)}return new w(t,i)}const T="$and",N=t=>!(!t.$and&&!t.$or),R=t=>({[T]:Object.keys(t).map((i=>({[i]:t[i]})))});function P(t,i,{auto:e=!0}={}){const o=t=>{let c=Object.keys(t);const h=(t=>!!t.$path)(t);if(!h&&c.length>1&&!N(t))return o(R(t));if((t=>!n(t)&&r(t)&&!N(t))(t)){const n=h?t.$path:c[0],o=h?t.$val:t[n];if(!s(o))throw new Error((t=>`Invalid value for key ${t}`)(n));const r={keyId:p(n),pattern:o};return e&&(r.searcher=S(o,i)),r}let a={children:[],operator:c[0]};return c.forEach((i=>{const e=t[i];n(e)&&e.forEach((t=>{a.children.push(o(t))}))})),a};return N(t)||(t=R(t)),o(t)}function D(t,i){const e=t.matches;i.matches=[],c(e)&&e.forEach((t=>{if(!c(t.indices)||!t.indices.length)return;const{indices:e,value:n}=t;let s={indices:e,value:n};t.key&&(s.key=t.key.src),t.idx>-1&&(s.refIndex=t.idx),i.matches.push(s)}))}function z(t,i){i.score=t.score}class H{constructor(t,i={},e){this.options={...v,...i},this._keyStore=new l(this.options.keys),this.setCollection(t,e)}setCollection(t,i){if(this._docs=t,i&&!(i instanceof m))throw new Error("Incorrect 'index' type");this._myIndex=i||g(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const i=[];for(let e=0,n=this._docs.length;e<n;e+=1){const s=this._docs[e];t(s,e)&&(this.removeAt(e),e-=1,n-=1,i.push(s))}return i}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:i=-1}={}){const{includeMatches:e,includeScore:n,shouldSort:r,sortFn:c,ignoreFieldNorm:h}=this.options;let a=s(t)?s(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:i=v.ignoreFieldNorm}){t.forEach((t=>{let e=1;t.matches.forEach((({key:t,norm:n,score:s})=>{const o=t?t.weight:null;e*=Math.pow(0===s&&o?Number.EPSILON:s,(o||1)*(i?1:n))})),t.score=e}))}(a,{ignoreFieldNorm:h}),r&&a.sort(c),o(i)&&i>-1&&(a=a.slice(0,i)),function(t,i,{includeMatches:e=v.includeMatches,includeScore:n=v.includeScore}={}){const s=[];return e&&s.push(D),n&&s.push(z),t.map((t=>{const{idx:e}=t,n={item:i[e],refIndex:e};return s.length&&s.forEach((i=>{i(t,n)})),n}))}(a,this._docs,{includeMatches:e,includeScore:n})}_searchStringList(t){const i=S(t,this.options),{records:e}=this._myIndex,n=[];return e.forEach((({v:t,i:e,n:s})=>{if(!c(t))return;const{isMatch:o,score:r,indices:h}=i.searchIn(t);o&&n.push({item:t,idx:e,matches:[{score:r,value:t,norm:s,indices:h}]})})),n}_searchLogical(t){const i=P(t,this.options),e=(t,i,n)=>{if(!t.children){const{keyId:e,searcher:s}=t,o=this._findMatches({key:this._keyStore.get(e),value:this._myIndex.getValueForItemAtKeyId(i,e),searcher:s});return o&&o.length?[{idx:n,item:i,matches:o}]:[]}const s=[];for(let o=0,r=t.children.length;o<r;o+=1){const r=t.children[o],c=e(r,i,n);if(c.length)s.push(...c);else if(t.operator===T)return[]}return s},n=this._myIndex.records,s={},o=[];return n.forEach((({$:t,i:n})=>{if(c(t)){let r=e(i,t,n);r.length&&(s[n]||(s[n]={idx:n,item:t,matches:[]},o.push(s[n])),r.forEach((({matches:t})=>{s[n].matches.push(...t)})))}})),o}_searchObjectList(t){const i=S(t,this.options),{keys:e,records:n}=this._myIndex,s=[];return n.forEach((({$:t,i:n})=>{if(!c(t))return;let o=[];e.forEach(((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:i}))})),o.length&&s.push({idx:n,item:t,matches:o})})),s}_findMatches({key:t,value:i,searcher:e}){if(!c(i))return[];let s=[];if(n(i))i.forEach((({v:i,i:n,n:o})=>{if(!c(i))return;const{isMatch:r,score:h,indices:a}=e.searchIn(i);r&&s.push({score:h,key:t,value:i,idx:n,norm:o,indices:a})}));else{const{v:n,n:o}=i,{isMatch:r,score:c,indices:h}=e.searchIn(n);r&&s.push({score:c,key:t,value:n,norm:o,indices:h})}return s}}H.version="6.6.2",H.createIndex=g,H.parseIndex=function(t,{getFn:i=v.getFn,fieldNormWeight:e=v.fieldNormWeight}={}){const{keys:n,records:s}=t,o=new m({getFn:i,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(s),o},H.config=v,H.parseQuery=P,function(...t){L.push(...t)}(class{constructor(t,{isCaseSensitive:i=v.isCaseSensitive,includeMatches:e=v.includeMatches,minMatchCharLength:n=v.minMatchCharLength,ignoreLocation:s=v.ignoreLocation,findAllMatches:o=v.findAllMatches,location:r=v.location,threshold:c=v.threshold,distance:h=v.distance}={}){this.query=null,this.options={isCaseSensitive:i,includeMatches:e,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:r,threshold:c,distance:h},this.pattern=i?t:t.toLowerCase(),this.query=function(t,i={}){return t.split("|").map((t=>{let e=t.trim().split(k).filter((t=>t&&!!t.trim())),n=[];for(let s=0,o=e.length;s<o;s+=1){const t=e[s];let o=!1,r=-1;for(;!o&&++r<C;){const e=E[r];let s=e.isMultiMatch(t);s&&(n.push(new e(s,i)),o=!0)}if(!o)for(r=-1;++r<C;){const e=E[r];let s=e.isSingleMatch(t);if(s){n.push(new e(s,i));break}}}return n}))}(this.pattern,this.options)}static condition(t,i){return i.useExtendedSearch}searchIn(t){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:e,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let s=0,o=[],r=0;for(let c=0,h=i.length;c<h;c+=1){const n=i[c];o.length=0,s=0;for(let i=0,c=n.length;i<c;i+=1){const c=n[i],{isMatch:h,indices:a,score:u}=c.search(t);if(!h){r=0,s=0,o.length=0;break}if(s+=1,r+=u,e){const t=c.constructor.type;A.has(t)?o=[...o,...a]:o.push(a)}}if(s){let t={isMatch:!0,score:r/s};return e&&(t.indices=o),t}}return{isMatch:!1,score:1}}})},791:function(t,i,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function s(t,i,e){return(i=function(t){var i=function(t,i){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,i);if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===n(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function o(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function r(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?o(Object(e),!0).forEach((function(i){s(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function c(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}e.r(i),e.d(i,{__DO_NOT_USE__ActionTypes:function(){return u},applyMiddleware:function(){return g},bindActionCreators:function(){return b},combineReducers:function(){return p},compose:function(){return m},createStore:function(){return d},legacy_createStore:function(){return f}});var h="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function d(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(c(1));return e(d)(t,i)}if("function"!=typeof t)throw new Error(c(2));var s=t,o=i,r=[],a=r,f=!1;function p(){a===r&&(a=r.slice())}function v(){if(f)throw new Error(c(3));return o}function b(t){if("function"!=typeof t)throw new Error(c(4));if(f)throw new Error(c(5));var i=!0;return p(),a.push(t),function(){if(i){if(f)throw new Error(c(6));i=!1,p();var e=a.indexOf(t);a.splice(e,1),r=null}}}function m(t){if(!l(t))throw new Error(c(7));if(void 0===t.type)throw new Error(c(8));if(f)throw new Error(c(9));try{f=!0,o=s(o,t)}finally{f=!1}for(var i=r=a,e=0;e<i.length;e++)(0,i[e])();return t}function g(t){if("function"!=typeof t)throw new Error(c(10));s=t,m({type:u.REPLACE})}function _(){var t,i=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(c(11));function e(){t.next&&t.next(v())}return e(),{unsubscribe:i(e)}}})[h]=function(){return this},t}return m({type:u.INIT}),(n={dispatch:m,subscribe:b,getState:v,replaceReducer:g})[h]=_,n}var f=d;function p(t){for(var i=Object.keys(t),e={},n=0;n<i.length;n++){var s=i[n];"function"==typeof t[s]&&(e[s]=t[s])}var o,r=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(i){var e=t[i];if(void 0===e(void 0,{type:u.INIT}))throw new Error(c(12));if(void 0===e(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(c(13))}))}(e)}catch(t){o=t}return function(t,i){if(void 0===t&&(t={}),o)throw o;for(var n=!1,s={},h=0;h<r.length;h++){var a=r[h],u=e[a],l=t[a],d=u(l,i);if(void 0===d)throw new Error(c(14));s[a]=d,n=n||d!==l}return(n=n||r.length!==Object.keys(t).length)?s:t}}function v(t,i){return function(){return i(t.apply(this,arguments))}}function b(t,i){if("function"==typeof t)return v(t,i);if("object"!=typeof t||null===t)throw new Error(c(16));var e={};for(var n in t){var s=t[n];"function"==typeof s&&(e[n]=v(s,i))}return e}function m(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return 0===i.length?function(t){return t}:1===i.length?i[0]:i.reduce((function(t,i){return function(){return t(i.apply(void 0,arguments))}}))}function g(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),n=function(){throw new Error(c(15))},s={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=i.map((function(t){return t(s)}));return n=m.apply(void 0,o)(e.dispatch),r(r({},e),{},{dispatch:n})}}}}},i={};function e(n){var s=i[n];if(void 0!==s)return s.exports;var o=i[n]={exports:{}};return t[n].call(o.exports,o,o.exports,e),o.exports}e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,{a:i}),i},e.d=function(t,i){for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n,s,o={};n=e(373),s=e.n(n),e(187),e(883),e(789),e(686),o.default=s(),window.Choices=o.default}();const u='*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}hr,label{display:block}label,p{margin-bottom:8px}label{font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0}hr{margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}label+p{margin-top:-4px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width:620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:focus,.section a:visited{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo-img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.push-bottom{margin-bottom:24px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}[data-test-hook]{margin-bottom:24px}.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.25}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{-webkit-box-shadow:0 0 0 2px #00bcd4;box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one]::after{content:"";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0-4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;-webkit-box-sizing:border-box;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible}.is-open .choices__list--dropdown,.is-open .choices__list[aria-expanded]{border-color:#b7b7b7}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable,.choices__list[aria-expanded] .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto"}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-webkit-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-moz-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input:-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::placeholder{opacity:0}.filter-button-container .choices{width:100%;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 0px}.filter-button-container .choices .choices__inner{border:1px solid var(--color-outline);border-radius:8px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__inner,.filter-button-container .choices .choices__input,.filter-button-container .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,.filter-button-container .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .choices .choices__list--multiple .choices__item{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container);font-size:14px;margin-right:8px;border:1px solid var(--color-outline);border-radius:8px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__button{background-image:url(\'data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M2.592.044l18.364 18.364-2.548 2.548L.044 2.592z"/><path d="M0 18.364L18.364 0l2.548 2.548L2.548 20.912z"/></g></svg>\');color:var(--color-on-secondary-container);border-left:1px solid var(--color-outline)}.filter-button-container .choices .choices__list--dropdown,.filter-button-container .choices .choices__list[aria-expanded]{width:100%;color:var(--color-on-secondary-container);background-color:var(--color-secondary-container);border:1px solid var(--color-outline)}.filter-button-container .choices .choices__input{width:100%}.filter-button-container .filter-button,.filter-button-container .selected-filter-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:8px;-webkit-tap-highlight-color:transparent;line-height:20px;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;min-width:100px;white-space:nowrap}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}.select-container{display:-ms-inline-flexbox;display:inline-flex;width:100%;z-index:4000}.select-container .choicesjs-stencil{position:relative;width:100%;height:auto;z-index:22;z-index:4000}.select-container .choicesjs-stencil .choices__inner{padding:0px}.select-container .choicesjs-stencil .choices__input{padding:0px;margin:0px;width:100% !important;min-height:44px}';const l=class{constructor(i){t(this,i);this.filterType=undefined;this.filterName=undefined;this.filterPlaceholder="";this.filterNameProperty=undefined;this.segment=undefined}onResetFilter(){this.resetFilter()}handleFilter(t,i){const e=[...o[this.filterType]];e.find((t=>t.id===i.id)).selected=!e.find((t=>t.id===i.id)).selected;o[this.filterType]=e;o[this.segment]=0;if(o.mode==="treks"){r.filter((t=>t.segment===this.segment)).forEach((t=>{o[this.segment]+=o[t.property].filter((t=>t.selected)).length}));o.currentTreks=c()}else if(o.mode==="touristicContents"){h.filter((t=>t.segment===this.segment)).forEach((t=>{o[this.segment]+=o[t.property].filter((t=>t.selected)).length}));o.currentTouristicContents=a()}}resetFilter(){if(this.choices){this.choices.removeActiveItems()}i(this.filterRef)}componentDidLoad(){if(this.choicesRef){this.choices=new Choices(this.choicesRef,{removeItemButton:true,choices:o[this.filterType].map((t=>({value:t.id,label:t[this.filterNameProperty],selected:t.selected}))),placeholder:true,placeholderValue:this.filterPlaceholder,noResultsText:"",noChoicesText:"",itemSelectText:""});const t=this.el.shadowRoot.querySelector(".choices");t.addEventListener("click",(t=>{t.stopPropagation();const i=this.el.shadowRoot.querySelector(".choices__list.choices__list--dropdown");if(!i.classList.contains("is-active")){const t=this.el.shadowRoot.querySelector(".choices");t.classList.add("is-focused");t.classList.add("is-open");i.classList.add("is-active");i.setAttribute("aria-expanded","true")}}),false);t.addEventListener("change",(t=>{this.handleFilter(null,o[this.filterType].find((i=>i.id===t.detail.value)))}),false)}}render(){return e(n,{ref:t=>this.filterRef=t},e("div",{class:"filter-name display-large"},this.filterName),e("div",{class:"filter-button-container"},o[this.filterType].length>9?e("select",{multiple:true,ref:t=>this.choicesRef=t}):o[this.filterType].map((t=>e("button",{onClick:i=>this.handleFilter(i,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}get el(){return s(this)}};l.style=u;export{l as grw_filter};
|
|
3
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,f as i,h as e,H as n,g as s}from"./p-0c07a3f0.js";import{s as o,t as r,h as c,a as h,b as a,c as u,d as l}from"./p-bcac98e0.js";
|
|
2
|
+
/*! For license information please see choices.min.js.LICENSE.txt */!function(){var t={282:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.clearChoices=i.activateChoices=i.filterChoices=i.addChoice=void 0;var n=e(883);i.addChoice=function(t){var i=t.value,e=t.label,s=t.id,o=t.groupId,r=t.disabled,c=t.elementId,h=t.customProperties,a=t.placeholder,u=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:i,label:e,id:s,groupId:o,disabled:r,elementId:c,customProperties:h,placeholder:a,keyCode:u}},i.filterChoices=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}},i.activateChoices=function(t){return void 0===t&&(t=!0),{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},i.clearChoices=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.addGroup=void 0;var n=e(883);i.addGroup=function(t){var i=t.value,e=t.id,s=t.active,o=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:i,id:e,active:s,disabled:o}}},464:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.highlightItem=i.removeItem=i.addItem=void 0;var n=e(883);i.addItem=function(t){var i=t.value,e=t.label,s=t.id,o=t.choiceId,r=t.groupId,c=t.customProperties,h=t.placeholder,a=t.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:i,label:e,id:s,choiceId:o,groupId:r,customProperties:c,placeholder:h,keyCode:a}},i.removeItem=function(t,i){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:i}},i.highlightItem=function(t,i){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:i}}},137:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.setIsLoading=i.resetTo=i.clearAll=void 0;var n=e(883);i.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},i.resetTo=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}},i.setIsLoading=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=s(e(996)),r=s(e(221)),c=e(282),h=e(783),a=e(464),u=e(137),l=e(520),d=e(883),f=e(789),p=e(799),v=e(655),b=s(e(744)),m=s(e(686)),g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,_={},x=function(){function t(i,e){void 0===i&&(i="[data-choice]"),void 0===e&&(e={});var s=this;void 0===e.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=o.default.all([f.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,i){return n([],i,!0)}});var r=(0,p.diff)(this.config,f.DEFAULT_CONFIG);r.length&&console.warn("Unknown config option(s) passed",r.join(", "));var c="string"==typeof i?document.querySelector(i):i;if(!(c instanceof HTMLInputElement||c instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=c.type===d.TEXT_TYPE,this._isSelectOneElement=c.type===d.SELECT_ONE_TYPE,this._isSelectMultipleElement=c.type===d.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),e.addItemFilter&&"function"!=typeof e.addItemFilter){var h=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.addItemFilter);this.config.addItemFilter=h.test.bind(h)}if(this._isTextElement?this.passedElement=new l.WrappedInput({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new l.WrappedSelect({element:c,classNames:this.config.classNames,template:function(t){return s._templates.option(t)}}),this.initialised=!1,this._store=new b.default,this._initialState=v.defaultState,this._currentState=v.defaultState,this._prevState=v.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,p.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var a=window.getComputedStyle(this.passedElement.element).direction;a!==window.getComputedStyle(document.documentElement).direction&&(this._direction=a)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var u=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(u)}if(this.passedElement.options&&this.passedElement.options.forEach((function(t){s._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:(0,p.parseCustomProperties)(t.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:i}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return _},get templates(){return m.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=m.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,i){if(void 0===i&&(i=!0),!t||!t.id)return this;var e=t.id,n=t.groupId,s=void 0===n?-1:n,o=t.value,r=void 0===o?"":o,c=t.label,h=void 0===c?"":c,u=s>=0?this._store.getGroupById(s):null;return this._store.dispatch((0,a.highlightItem)(e,!0)),i&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:e,value:r,label:h,groupValue:u&&u.value?u.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var i=t.id,e=t.groupId,n=void 0===e?-1:e,s=t.value,o=void 0===s?"":s,r=t.label,c=void 0===r?"":r,h=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,a.highlightItem)(i,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:h&&h.value?h.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.highlightItem(i)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.unhighlightItem(i)})),this},t.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.id!==t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e),t&&i._triggerChange(e.value)})),this},t.prototype.showDropdown=function(t){var i=this;return this.dropdown.isActive||requestAnimationFrame((function(){i.dropdown.show(),i.containerOuter.open(i.dropdown.distanceFromTopWindow),!t&&i._canSearch&&i.input.focus(),i.passedElement.triggerEvent(d.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame((function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var i=this._store.activeItems.reduce((function(i,e){var n=t?e.value:e;return i.push(n),i}),[]);return this._isSelectOneElement?i[0]:i},t.prototype.setValue=function(t){var i=this;return this.initialised?(t.forEach((function(t){return i._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var i=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return i._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,i,e,n){var s=this;if(void 0===t&&(t=[]),void 0===i&&(i="value"),void 0===e&&(e="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof i||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof t){var o=t(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return o})).then((function(t){return s.setChoices(t,i,e,n)})).catch((function(t){s.config.silent||console.error(t)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,i,e,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)s._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:i,labelKey:e});else{var n=t;s._addChoice({value:n[i],label:n[e],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,c.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,u.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,i=this._isSelectElement,e=this._currentState.items!==this._prevState.items;t&&(i&&this._renderChoices(),e&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,i=this._store,e=i.activeGroups,n=i.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),e.length>=1&&!this._isSearching){var o=n.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));o.length>=1&&(s=this._createChoicesFragment(o,s)),s=this._createGroupsFragment(e,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var r=this._store.activeItems,c=this._canAddItem(r,this.input.value);if(c.response)this.choiceList.append(s),this._highlightChoice();else{var h=this._getTemplate("notice",c.notice);this.choiceList.append(h)}}else{var a=void 0;h=void 0,this._isSearching?(h="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,a=this._getTemplate("notice",h,"no-results")):(h="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,a=this._getTemplate("notice",h,"no-choices")),this.choiceList.append(a)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);i.childNodes&&this.itemList.append(i)},t.prototype._createGroupsFragment=function(t,i,e){var n=this;return void 0===e&&(e=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var s=function(t){return i.filter((function(i){return n._isSelectOneElement?i.groupId===t.id:i.groupId===t.id&&("always"===n.config.renderSelectedChoices||!i.selected)}))}(t);if(s.length>=1){var o=n._getTemplate("choiceGroup",t);e.appendChild(o),n._createChoicesFragment(s,e,!0)}})),e},t.prototype._createChoicesFragment=function(t,i,e){var s=this;void 0===i&&(i=document.createDocumentFragment()),void 0===e&&(e=!1);var o=this.config,r=o.renderSelectedChoices,c=o.searchResultLimit,h=o.renderChoiceLimit,a=this._isSearching?p.sortByScore:this.config.sorter,u=function(t){if("auto"!==r||s._isSelectOneElement||!t.selected){var e=s._getTemplate("choice",t,s.config.itemSelectText);i.appendChild(e)}},l=t;"auto"!==r||this._isSelectOneElement||(l=t.filter((function(t){return!t.selected})));var d=l.reduce((function(t,i){return i.placeholder?t.placeholderChoices.push(i):t.normalChoices.push(i),t}),{placeholderChoices:[],normalChoices:[]}),f=d.placeholderChoices,v=d.normalChoices;(this.config.shouldSort||this._isSearching)&&v.sort(a);var b=l.length,m=this._isSelectOneElement?n(n([],f,!0),v,!0):v;this._isSearching?b=c:h&&h>0&&!e&&(b=h);for(var g=0;g<b;g+=1)m[g]&&u(m[g]);return i},t.prototype._createItemsFragment=function(t,i){var e=this;void 0===i&&(i=document.createDocumentFragment());var n=this.config,s=n.shouldSortItems,o=n.sorter,r=n.removeItemButton;return s&&!this._isSelectOneElement&&t.sort(o),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var n=e._getTemplate("item",t,r);i.appendChild(n)})),i},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(d.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,i){if(t&&i&&this.config.removeItems&&this.config.removeItemButton){var e=i.parentNode&&i.parentNode.dataset.id,n=e&&t.find((function(t){return t.id===parseInt(e,10)}));n&&(this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,i,e){var n=this;if(void 0===e&&(e=!1),t&&i&&this.config.removeItems&&!this._isSelectOneElement){var s=i.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(s),10)||t.highlighted?!e&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,i){if(t&&i){var e=i.dataset.id,n=e&&this._store.getChoiceById(e);if(n){var s=t[0]&&t[0].keyCode?t[0].keyCode:void 0,o=this.dropdown.isActive;n.keyCode=s,this.passedElement.triggerEvent(d.EVENTS.choice,{choice:n}),n.selected||n.disabled||this._canAddItem(t,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var i=t[t.length-1],e=t.some((function(t){return t.highlighted}));this.config.editItems&&!e&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(e||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,u.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,u.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var i=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i?i.innerHTML=this.config.loadingText:(i=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(i):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?i&&(i.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed){var i=this._store.choices,e=this.config,n=e.searchFloor,s=e.searchChoices,o=i.some((function(t){return!t.active}));if(null!=t&&t.length>=n){var r=s?this._searchChoices(t):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:t,resultCount:r})}else o&&(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,i){var e=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var s=(0,p.existsInArray)(t,i);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(e=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&e&&(e=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(i):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&e&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(i)&&(e=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(i):this.config.customAddItemText)}return{response:e,notice:n}},t.prototype._searchChoices=function(t){var i="string"==typeof t?t.trim():t,e="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(i.length<1&&i==="".concat(e," "))return 0;var s=this._store.searchableChoices,o=i,h=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,!0),includeMatches:!0}),a=new r.default(s,h).search(o);return this._currentValue=i,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,c.filterChoices)(a)),a.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var i=t.keyCode,e=this._store.activeItems,n=this.input.isFocussed,s=this.dropdown.isActive,o=this.itemList.hasChildren(),r=String.fromCharCode(i),c=/[^\x00-\x1F]/.test(r),h=d.KEY_CODES.BACK_KEY,a=d.KEY_CODES.DELETE_KEY,u=d.KEY_CODES.ENTER_KEY,l=d.KEY_CODES.A_KEY,f=d.KEY_CODES.ESC_KEY,p=d.KEY_CODES.UP_KEY,v=d.KEY_CODES.DOWN_KEY,b=d.KEY_CODES.PAGE_UP_KEY,m=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||s||!c||(this.showDropdown(),this.input.isFocussed||(this.input.value+=t.key.toLowerCase())),i){case l:return this._onSelectKey(t,o);case u:return this._onEnterKey(t,e,s);case f:return this._onEscapeKey(s);case p:case b:case v:case m:return this._onDirectionKey(t,s);case a:case h:return this._onDeleteKey(t,e,n)}},t.prototype._onKeyUp=function(t){var i=t.target,e=t.keyCode,n=this.input.value,s=this._store.activeItems,o=this._canAddItem(s,n),r=d.KEY_CODES.BACK_KEY,h=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&n){var a=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=a.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var u=(e===r||e===h)&&i&&!i.value,l=!this._isTextElement&&this._isSearching,f=this._canSearch&&o.response;u&&l?(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0))):f&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,i){var e=t.ctrlKey,n=t.metaKey;(e||n)&&i&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,i,e){var n=t.target,s=d.KEY_CODES.ENTER_KEY,o=n&&n.hasAttribute("data-button");if(this._isTextElement&&n&&n.value){var r=this.input.value;this._canAddItem(i,r).response&&(this.hideDropdown(!0),this._addItem({value:r}),this._triggerChange(r),this.clearInput())}if(o&&(this._handleButtonAction(i,n),t.preventDefault()),e){var c=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));c&&(i[0]&&(i[0].keyCode=s),this._handleChoiceAction(i,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,i){var e=t.keyCode,n=t.metaKey,s=d.KEY_CODES.DOWN_KEY,o=d.KEY_CODES.PAGE_UP_KEY,r=d.KEY_CODES.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var c=e===s||e===r?1:-1,h="[data-choice-selectable]",a=void 0;if(n||e===r||e===o)a=c>0?this.dropdown.element.querySelector("".concat(h,":last-of-type")):this.dropdown.element.querySelector(h);else{var u=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));a=u?(0,p.getAdjacentEl)(u,h,c):this.dropdown.element.querySelector(h)}a&&((0,p.isScrolledIntoView)(a,this.choiceList.element,c)||this.choiceList.scrollToChildElement(a,c),this._highlightChoice(a)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,i,e){var n=t.target;this._isSelectOneElement||n.value||!e||(this._handleBackspace(i),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(i)&&((i===this.containerOuter.element||i===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(g&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild,n="ltr"===this._direction?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft;this._isScrollingOnIe=n}if(i!==this.input.element){var s=i.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var o=t.shiftKey,r=this._store.activeItems,c=s.dataset;"button"in c?this._handleButtonAction(r,s):"item"in c?this._handleItemAction(r,s,o):"choice"in c&&this._handleChoiceAction(r,s)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},t.prototype._onClick=function(t){var i=t.target;this.containerOuter.element.contains(i)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var i,e=this,n=t.target;n&&this.containerOuter.element.contains(n)&&((i={})[d.TEXT_TYPE]=function(){n===e.input.element&&e.containerOuter.addFocusState()},i[d.SELECT_ONE_TYPE]=function(){e.containerOuter.addFocusState(),n===e.input.element&&e.showDropdown(!0)},i[d.SELECT_MULTIPLE_TYPE]=function(){n===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())},i)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var i,e=this,n=t.target;if(n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe){var s=this._store.activeItems.some((function(t){return t.highlighted}));((i={})[d.TEXT_TYPE]=function(){n===e.input.element&&(e.containerOuter.removeFocusState(),s&&e.unhighlightAll(),e.hideDropdown(!0))},i[d.SELECT_ONE_TYPE]=function(){e.containerOuter.removeFocusState(),(n===e.input.element||n===e.containerOuter.element&&!e._canSearch)&&e.hideDropdown(!0)},i[d.SELECT_MULTIPLE_TYPE]=function(){n===e.input.element&&(e.containerOuter.removeFocusState(),e.hideDropdown(!0),s&&e.unhighlightAll())},i)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,u.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var i=this;void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var n=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(i.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),n?this._highlightPosition=e.indexOf(n):(n=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(n=e[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},t.prototype._addItem=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,s=t.choiceId,o=void 0===s?-1:s,r=t.groupId,c=void 0===r?-1:r,h=t.customProperties,u=void 0===h?{}:h,l=t.placeholder,f=void 0!==l&&l,p=t.keyCode,v=void 0===p?-1:p,b="string"==typeof i?i.trim():i,m=this._store.items,g=n||b,_=o||-1,x=c>=0?this._store.getGroupById(c):null,y=m?m.length+1:1;this.config.prependValue&&(b=this.config.prependValue+b.toString()),this.config.appendValue&&(b+=this.config.appendValue.toString()),this._store.dispatch((0,a.addItem)({value:b,label:g,id:y,choiceId:_,groupId:c,customProperties:u,placeholder:f,keyCode:v})),this._isSelectOneElement&&this.removeActiveItems(y),this.passedElement.triggerEvent(d.EVENTS.addItem,{id:y,value:b,label:g,customProperties:u,groupValue:x&&x.value?x.value:null,keyCode:v})},t.prototype._removeItem=function(t){var i=t.id,e=t.value,n=t.label,s=t.customProperties,o=t.choiceId,r=t.groupId,c=r&&r>=0?this._store.getGroupById(r):null;i&&o&&(this._store.dispatch((0,a.removeItem)(i,o)),this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:i,value:e,label:n,customProperties:s,groupValue:c&&c.value?c.value:null}))},t.prototype._addChoice=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,s=t.isSelected,o=void 0!==s&&s,r=t.isDisabled,h=void 0!==r&&r,a=t.groupId,u=void 0===a?-1:a,l=t.customProperties,d=void 0===l?{}:l,f=t.placeholder,p=void 0!==f&&f,v=t.keyCode,b=void 0===v?-1:v;if(null!=i){var m=this._store.choices,g=n||i,_=m?m.length+1:1,x="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(_);this._store.dispatch((0,c.addChoice)({id:_,groupId:u,elementId:x,value:i,label:g,disabled:h,customProperties:d,placeholder:p,keyCode:b})),o&&this._addItem({value:i,label:g,choiceId:_,customProperties:d,placeholder:p,keyCode:b})}},t.prototype._addGroup=function(t){var i=this,e=t.group,n=t.id,s=t.valueKey,o=void 0===s?"value":s,r=t.labelKey,c=void 0===r?"label":r,a=(0,p.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),u=n||Math.floor((new Date).valueOf()*Math.random()),l=!!e.disabled&&e.disabled;a?(this._store.dispatch((0,h.addGroup)({value:e.label,id:u,active:!0,disabled:l})),a.forEach((function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[o],label:(0,p.isType)("Object",t)?t[c]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:u,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,h.addGroup)({value:e.label,id:e.id,active:!1,disabled:e.disabled}))},t.prototype._getTemplate=function(t){for(var i,e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];return(i=this._templates[t]).call.apply(i,n([this,this.config],e,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,i={};t&&"function"==typeof t&&(i=t.call(this,p.strToEl)),this._templates=(0,o.default)(m.default,i)},t.prototype._createElements=function(){this.containerOuter=new l.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new l.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new l.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new l.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new l.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new l.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var i=this,e=this.passedElement.placeholderOption;e&&e.parentNode&&"SELECT"===e.parentNode.tagName&&this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:!0}),t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var i=this;this.config.shouldSort&&t.sort(this.config.sorter);var e=t.some((function(t){return t.selected})),n=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,s){var o=t.value,r=void 0===o?"":o,c=t.label,h=t.customProperties,a=t.placeholder;if(i._isSelectElement)if(t.choices)i._addGroup({group:t,id:t.id||null});else{var u=!(!i._isSelectOneElement||e||s!==n)||t.selected,l=t.disabled;i._addChoice({value:r,label:c,isSelected:!!u,isDisabled:!!l,placeholder:!!a,customProperties:h})}else i._addChoice({value:r,label:c,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:h})}))},t.prototype._addPredefinedItems=function(t){var i=this;t.forEach((function(t){"object"==typeof t&&t.value&&i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&i._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var i=this;({object:function(){t.value&&(i._isTextElement?i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):i._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){i._isTextElement?i._addItem({value:t}):i._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,p.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find((function(e){return i.config.valueComparer(e.value,t)}));e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var i=this.config,e=i.placeholder,n=i.placeholderValue,s=this.passedElement.element.dataset;if(e){if(n)return n;if(s.placeholder)return s.placeholder}return null},t}();i.default=x},613:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),s=e(883),o=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,s=t.position;this.element=i,this.classNames=n,this.type=e,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var i=!1;return"auto"===this.position?i=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(i=!0),i},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){(0,n.wrap)(t,this.element)},t.prototype.unwrap=function(t){this.element.parentNode&&(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=o},217:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){var i=t.element,e=t.type,n=t.classNames;this.element=i,this.classNames=n,this.type=e,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();i.default=e},520:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.WrappedSelect=i.WrappedInput=i.List=i.Input=i.Container=i.Dropdown=void 0;var s=n(e(217));i.Dropdown=s.default;var o=n(e(613));i.Container=o.default;var r=n(e(11));i.Input=r.default;var c=n(e(624));i.List=c.default;var h=n(e(541));i.WrappedInput=h.default;var a=n(e(982));i.WrappedSelect=a.default},11:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),s=e(883),o=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,s=t.preventPaste;this.element=i,this.type=e,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,i=t.style,e=t.value,n=t.placeholder;i.minWidth="".concat(n.length+1,"ch"),i.width="".concat(e.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==s.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=o},624:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(883),s=function(){function t(t){var i=t.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,i){var e=this;if(t){var n=this.element.offsetHeight,s=this.element.scrollTop+n,o=t.offsetHeight,r=t.offsetTop+o,c=i>0?this.element.scrollTop+r-s:t.offsetTop;requestAnimationFrame((function(){e._animateScroll(c,i)}))}},t.prototype._scrollDown=function(t,i,e){var n=(e-t)/i,s=n>1?n:1;this.element.scrollTop=t+s},t.prototype._scrollUp=function(t,i,e){var n=(t-e)/i,s=n>1?n:1;this.element.scrollTop=t-s},t.prototype._animateScroll=function(t,i){var e=this,s=n.SCROLLING_SPEED,o=this.element.scrollTop,r=!1;i>0?(this._scrollDown(o,s,t),o<t&&(r=!0)):(this._scrollUp(o,s,t),o>t&&(r=!0)),r&&requestAnimationFrame((function(){e._animateScroll(t,i)}))},t}();i.default=s},730:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),s=function(){function t(t){var i=t.element,e=t.classNames;if(this.element=i,this.classNames=e,!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,i){(0,n.dispatchEvent)(this.element,t,i)},t}();i.default=s},541:function(t,i,e){var n,s=this&&this.__extends||(n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},n(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var r=function(t){function i(i){var e=i.element,n=i.classNames,s=i.delimiter,o=t.call(this,{element:e,classNames:n})||this;return o.delimiter=s,o}return s(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),i}(o(e(730)).default);i.default=r},982:function(t,i,e){var n,s=this&&this.__extends||(n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},n(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var r=function(t){function i(i){var e=i.element,n=i.classNames,s=i.template,o=t.call(this,{element:e,classNames:n})||this;return o.template=s,o}return s(i,t),Object.defineProperty(i.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var i=this,e=document.createDocumentFragment();t.forEach((function(t){return n=t,s=i.template(n),void e.appendChild(s);var n,s})),this.appendDocFragment(e)},enumerable:!1,configurable:!0}),i.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},i}(o(e(730)).default);i.default=r},883:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.SCROLLING_SPEED=i.SELECT_MULTIPLE_TYPE=i.SELECT_ONE_TYPE=i.TEXT_TYPE=i.KEY_CODES=i.ACTION_TYPES=i.EVENTS=void 0,i.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},i.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},i.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},i.TEXT_TYPE="text",i.SELECT_ONE_TYPE="select-one",i.SELECT_MULTIPLE_TYPE="select-multiple",i.SCROLLING_SPEED=4},789:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_CONFIG=i.DEFAULT_CLASSNAMES=void 0;var n=e(799);i.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},i.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,n.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:i.DEFAULT_CLASSNAMES}},18:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},978:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},948:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},359:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},285:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},533:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},187:function(t,i,e){var n=this&&this.__createBinding||(Object.create?function(t,i,e,n){void 0===n&&(n=e);var s=Object.getOwnPropertyDescriptor(i,e);s&&!("get"in s?!i.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return i[e]}}),Object.defineProperty(t,n,s)}:function(t,i,e,n){void 0===n&&(n=e),t[n]=i[e]}),s=this&&this.__exportStar||function(t,i){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(i,e)||n(i,t,e)};Object.defineProperty(i,"__esModule",{value:!0}),s(e(18),i),s(e(978),i),s(e(948),i),s(e(359),i),s(e(285),i),s(e(533),i),s(e(287),i),s(e(132),i),s(e(837),i),s(e(598),i),s(e(369),i),s(e(37),i),s(e(47),i),s(e(923),i),s(e(876),i)},287:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},132:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},837:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},598:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},37:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},369:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},47:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},923:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},876:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},799:function(t,i){var e;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(t,i){return Math.floor(Math.random()*(i-t)+t)},i.generateChars=function(t){return Array.from({length:t},(function(){return(0,i.getRandomNumber)(0,36).toString(36)})).join("")},i.generateId=function(t,e){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),"".concat(e,"-").concat(n)},i.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},i.isType=function(t,e){return null!=e&&(0,i.getType)(e)===t},i.wrap=function(t,i){return void 0===i&&(i=document.createElement("div")),t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i)),i.appendChild(t)},i.getAdjacentEl=function(t,i,e){void 0===e&&(e=1);for(var n="".concat(e>0?"next":"previous","ElementSibling"),s=t[n];s;){if(s.matches(i))return s;s=s[n]}return s},i.isScrolledIntoView=function(t,i,e){return void 0===e&&(e=1),!!t&&(e>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)},i.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""")},i.strToEl=(e=document.createElement("div"),function(t){var i=t.trim();e.innerHTML=i;for(var n=e.children[0];e.firstChild;)e.removeChild(e.firstChild);return n}),i.sortByAlpha=function(t,i){var e=t.value,n=t.label,s=void 0===n?e:n,o=i.value,r=i.label,c=void 0===r?o:r;return s.localeCompare(c,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(t,i){var e=t.score,n=void 0===e?0:e,s=i.score;return n-(void 0===s?0:s)},i.dispatchEvent=function(t,i,e){void 0===e&&(e=null);var n=new CustomEvent(i,{detail:e,bubbles:!0,cancelable:!0});return t.dispatchEvent(n)},i.existsInArray=function(t,i,e){return void 0===e&&(e="value"),t.some((function(t){return"string"==typeof i?t[e]===i.trim():t[e]===i}))},i.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},i.diff=function(t,i){var e=Object.keys(t).sort(),n=Object.keys(i).sort();return e.filter((function(t){return n.indexOf(t)<0}))},i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(i){return t}return{}}},273:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_CHOICE":var s=n,o={id:s.id,elementId:s.elementId,groupId:s.groupId,value:s.value,label:s.label||s.value,disabled:s.disabled||!1,selected:!1,active:!0,score:9999,customProperties:s.customProperties,placeholder:s.placeholder||!1};return e(e([],t,!0),[o],!1);case"ADD_ITEM":var r=n;return r.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(r.choiceId),10)&&(i.selected=!0),i})):t;case"REMOVE_ITEM":var c=n;return c.choiceId&&c.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(c.choiceId),10)&&(i.selected=!1),i})):t;case"FILTER_CHOICES":var h=n;return t.map((function(t){var i=t;return i.active=h.results.some((function(t){var e=t.item,n=t.score;return e.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":var a=n;return t.map((function(t){var i=t;return i.active=a.active,i}));case"CLEAR_CHOICES":return i.defaultState;default:return t}}},871:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_GROUP":var s=n;return e(e([],t,!0),[{id:s.id,value:s.value,active:s.active,disabled:s.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0;var s=e(791),o=n(e(52)),r=n(e(871)),c=n(e(273)),h=n(e(502)),a=e(799);i.defaultState={groups:[],items:[],choices:[],loading:!1};var u=(0,s.combineReducers)({items:o.default,groups:r.default,choices:c.default,loading:h.default});i.default=function(t,e){var n=t;if("CLEAR_ALL"===e.type)n=i.defaultState;else if("RESET_TO"===e.type)return(0,a.cloneObject)(e.state);return u(n,e)}},52:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_ITEM":var s=n;return e(e([],t,!0),[{id:s.id,choiceId:s.choiceId,groupId:s.groupId,value:s.value,label:s.label,active:!0,highlighted:!1,customProperties:s.customProperties,placeholder:s.placeholder||!1,keyCode:null}],!1).map((function(t){var i=t;return i.highlighted=!1,i}));case"REMOVE_ITEM":return t.map((function(t){var i=t;return i.id===n.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":var o=n;return t.map((function(t){var i=t;return i.id===o.id&&(i.highlighted=o.highlighted),i}));default:return t}}},502:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(t,e){return void 0===t&&(t=i.defaultState),void 0===e&&(e={}),"SET_IS_LOADING"===e.type?e.isLoading:t}},744:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,s=0,o=i.length;s<o;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=e(791),r=s(e(655)),c=function(){function t(){this._store=(0,o.createStore)(r.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return n([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,i=this.choices;return t.filter((function(t){var e=!0===t.active&&!1===t.disabled,n=i.some((function(t){return!0===t.active&&!1===t.disabled}));return e&&n}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))},t}();i.default=c},686:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e={containerOuter:function(t,i,e,n,s,o,r){var c=t.classNames.containerOuter,h=Object.assign(document.createElement("div"),{className:c});return h.dataset.type=o,i&&(h.dir=i),n&&(h.tabIndex=0),e&&(h.setAttribute("role",s?"combobox":"listbox"),s&&h.setAttribute("aria-autocomplete","list")),h.setAttribute("aria-haspopup","true"),h.setAttribute("aria-expanded","false"),r&&h.setAttribute("aria-labelledby",r),h},containerInner:function(t){var i=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.classNames,n=e.list,s=e.listSingle,o=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(i?s:o)})},placeholder:function(t,i){var e,n=t.allowHTML,s=t.classNames.placeholder;return Object.assign(document.createElement("div"),((e={className:s})[n?"innerHTML":"innerText"]=i,e))},item:function(t,i,e){var n,s,o=t.allowHTML,r=t.classNames,c=r.item,h=r.button,a=r.highlightedState,u=r.itemSelectable,l=r.placeholder,d=i.id,f=i.value,p=i.label,v=i.customProperties,b=i.active,m=i.disabled,g=i.highlighted,_=i.placeholder,x=Object.assign(document.createElement("div"),((n={className:c})[o?"innerHTML":"innerText"]=p,n));if(Object.assign(x.dataset,{item:"",id:d,value:f,customProperties:v}),b&&x.setAttribute("aria-selected","true"),m&&x.setAttribute("aria-disabled","true"),_&&x.classList.add(l),x.classList.add(g?a:u),e){m&&x.classList.remove(u),x.dataset.deletable="";var y="Remove item",w=Object.assign(document.createElement("button"),((s={type:"button",className:h})[o?"innerHTML":"innerText"]=y,s));w.setAttribute("aria-label","".concat(y,": '").concat(f,"'")),w.dataset.button="",x.appendChild(w)}return x},choiceList:function(t,i){var e=t.classNames.list,n=Object.assign(document.createElement("div"),{className:e});return i||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(t,i){var e,n=t.allowHTML,s=t.classNames,o=s.group,r=s.groupHeading,c=s.itemDisabled,h=i.id,a=i.value,u=i.disabled,l=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(u?c:"")});return l.setAttribute("role","group"),Object.assign(l.dataset,{group:"",id:h,value:a}),u&&l.setAttribute("aria-disabled","true"),l.appendChild(Object.assign(document.createElement("div"),((e={className:r})[n?"innerHTML":"innerText"]=a,e))),l},choice:function(t,i,e){var n,s=t.allowHTML,o=t.classNames,r=o.item,c=o.itemChoice,h=o.itemSelectable,a=o.selectedState,u=o.itemDisabled,l=o.placeholder,d=i.id,f=i.value,p=i.label,v=i.groupId,b=i.elementId,m=i.disabled,g=i.selected,_=i.placeholder,x=Object.assign(document.createElement("div"),((n={id:b})[s?"innerHTML":"innerText"]=p,n.className="".concat(r," ").concat(c),n));return g&&x.classList.add(a),_&&x.classList.add(l),x.setAttribute("role",v&&v>0?"treeitem":"option"),Object.assign(x.dataset,{choice:"",id:d,value:f,selectText:e}),m?(x.classList.add(u),x.dataset.choiceDisabled="",x.setAttribute("aria-disabled","true")):(x.classList.add(h),x.dataset.choiceSelectable=""),x},input:function(t,i){var e=t.classNames,n=e.input,s=e.inputCloned,o=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(n," ").concat(s),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",i),o},dropdown:function(t){var i=t.classNames,e=i.list,n=i.listDropdown,s=document.createElement("div");return s.classList.add(e,n),s.setAttribute("aria-expanded","false"),s},notice:function(t,i,e){var n,s=t.allowHTML,o=t.classNames,r=o.item,c=o.itemChoice,h=o.noResults,a=o.noChoices;void 0===e&&(e="");var u=[r,c];return"no-choices"===e?u.push(a):"no-results"===e&&u.push(h),Object.assign(document.createElement("div"),((n={})[s?"innerHTML":"innerText"]=i,n.className=u.join(" "),n))},option:function(t){var i=t.label,e=t.value,n=t.customProperties,s=t.active,o=t.disabled,r=new Option(i,e,!1,s);return n&&(r.dataset.customProperties="".concat(n)),r.disabled=!!o,r}};i.default=e},996:function(t){var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var i=Object.prototype.toString.call(t);return"[object RegExp]"===i||"[object Date]"===i||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,i){return!1!==i.clone&&i.isMergeableObject(t)?c((e=t,Array.isArray(e)?[]:{}),t,i):t;var e}function s(t,i,e){return t.concat(i).map((function(t){return n(t,e)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}(t))}function r(t,i){try{return i in t}catch(t){return!1}}function c(t,e,h){(h=h||{}).arrayMerge=h.arrayMerge||s,h.isMergeableObject=h.isMergeableObject||i,h.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(e);return a===Array.isArray(t)?a?h.arrayMerge(t,e,h):function(t,i,e){var s={};return e.isMergeableObject(t)&&o(t).forEach((function(i){s[i]=n(t[i],e)})),o(i).forEach((function(o){(function(t,i){return r(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))})(t,o)||(r(t,o)&&e.isMergeableObject(i[o])?s[o]=function(t,i){if(!i.customMerge)return c;var e=i.customMerge(t);return"function"==typeof e?e:c}(o,e)(t[o],i[o],e):s[o]=n(i[o],e))})),s}(t,e,h):n(e,h)}c.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,e){return c(t,e,i)}),{})};var h=c;t.exports=h},221:function(t,i,e){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===a(t)}function s(t){return"string"==typeof t}function o(t){return"number"==typeof t}function r(t){return"object"==typeof t}function c(t){return null!=t}function h(t){return!t.trim().length}function a(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}e.r(i),e.d(i,{default:function(){return H}});const u=Object.prototype.hasOwnProperty;class l{constructor(t){this._keys=[],this._keyMap={};let i=0;t.forEach((t=>{let e=d(t);i+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,i+=e.weight})),this._keys.forEach((t=>{t.weight/=i}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function d(t){let i=null,e=null,o=null,r=1,c=null;if(s(t)||n(t))o=t,i=f(t),e=p(t);else{if(!u.call(t,"name"))throw new Error("Missing name property in key");const n=t.name;if(o=n,u.call(t,"weight")&&(r=t.weight,r<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(n));i=f(n),e=p(n),c=t.getFn}return{path:i,id:e,weight:r,src:o,getFn:c}}function f(t){return n(t)?t:t.split(".")}function p(t){return n(t)?t.join("."):t}var v={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,i)=>t.score===i.score?t.idx<i.idx?-1:1:t.score<i.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,i){let e=[],h=!1;const u=(t,i,l)=>{if(c(t))if(i[l]){const d=t[i[l]];if(!c(d))return;if(l===i.length-1&&(s(d)||o(d)||function(t){return!0===t||!1===t||function(t){return r(t)&&null!==t}(t)&&"[object Boolean]"==a(t)}(d)))e.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let i=t+"";return"0"==i&&1/t==-1/0?"-0":i}(t)}(d));else if(n(d)){h=!0;for(let t=0,e=d.length;t<e;t+=1)u(d[t],i,l+1)}else i.length&&u(d,i,l+1)}else e.push(t)};return u(t,s(i)?i.split("."):i,0),h?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const b=/[^ ]+/g;class m{constructor({getFn:t=v.getFn,fieldNormWeight:i=v.fieldNormWeight}={}){this.norm=function(t=1,i=3){const e=new Map,n=Math.pow(10,i);return{get(i){const s=i.match(b).length;if(e.has(s))return e.get(s);const o=1/Math.pow(s,.5*t),r=parseFloat(Math.round(o*n)/n);return e.set(s,r),r},clear(){e.clear()}}}(i,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,i)=>{this._keysMap[t.id]=i}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,s(this.docs[0])?this.docs.forEach(((t,i)=>{this._addString(t,i)})):this.docs.forEach(((t,i)=>{this._addObject(t,i)})),this.norm.clear())}add(t){const i=this.size();s(t)?this._addString(t,i):this._addObject(t,i)}removeAt(t){this.records.splice(t,1);for(let i=t,e=this.size();i<e;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(t,i){return t[this._keysMap[i]]}size(){return this.records.length}_addString(t,i){if(!c(t)||h(t))return;let e={v:t,i,n:this.norm.get(t)};this.records.push(e)}_addObject(t,i){let e={i,$:{}};this.keys.forEach(((i,o)=>{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(c(r))if(n(r)){let t=[];const i=[{nestedArrIndex:-1,value:r}];for(;i.length;){const{nestedArrIndex:e,value:o}=i.pop();if(c(o))if(s(o)&&!h(o)){let i={v:o,i:e,n:this.norm.get(o)};t.push(i)}else n(o)&&o.forEach(((t,e)=>{i.push({nestedArrIndex:e,value:t})}))}e.$[o]=t}else if(s(r)&&!h(r)){let t={v:r,n:this.norm.get(r)};e.$[o]=t}})),this.records.push(e)}toJSON(){return{keys:this.keys,records:this.records}}}function g(t,i,{getFn:e=v.getFn,fieldNormWeight:n=v.fieldNormWeight}={}){const s=new m({getFn:e,fieldNormWeight:n});return s.setKeys(t.map(d)),s.setSources(i),s.create(),s}function _(t,{errors:i=0,currentLocation:e=0,expectedLocation:n=0,distance:s=v.distance,ignoreLocation:o=v.ignoreLocation}={}){const r=i/t.length;if(o)return r;const c=Math.abs(n-e);return s?r+c/s:c?1:r}const x=32;function y(t){let i={};for(let e=0,n=t.length;e<n;e+=1){const s=t.charAt(e);i[s]=(i[s]||0)|1<<n-e-1}return i}class w{constructor(t,{location:i=v.location,threshold:e=v.threshold,distance:n=v.distance,includeMatches:s=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:r=v.minMatchCharLength,isCaseSensitive:c=v.isCaseSensitive,ignoreLocation:h=v.ignoreLocation}={}){if(this.options={location:i,threshold:e,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:c,ignoreLocation:h},this.pattern=c?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const a=(t,i)=>{this.chunks.push({pattern:t,alphabet:y(t),startIndex:i})},u=this.pattern.length;if(u>x){let t=0;const i=u%x,e=u-i;for(;t<e;)a(this.pattern.substr(t,x),t),t+=x;if(i){const t=u-x;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:i,includeMatches:e}=this.options;if(i||(t=t.toLowerCase()),this.pattern===t){let i={isMatch:!0,score:0};return e&&(i.indices=[[0,t.length-1]]),i}const{location:n,distance:s,threshold:o,findAllMatches:r,minMatchCharLength:c,ignoreLocation:h}=this.options;let a=[],u=0,l=!1;this.chunks.forEach((({pattern:i,alphabet:d,startIndex:f})=>{const{isMatch:p,score:b,indices:m}=function(t,i,e,{location:n=v.location,distance:s=v.distance,threshold:o=v.threshold,findAllMatches:r=v.findAllMatches,minMatchCharLength:c=v.minMatchCharLength,includeMatches:h=v.includeMatches,ignoreLocation:a=v.ignoreLocation}={}){if(i.length>x)throw new Error("Pattern length exceeds max of 32.");const u=i.length,l=t.length,d=Math.max(0,Math.min(n,l));let f=o,p=d;const b=c>1||h,m=b?Array(l):[];let g;for(;(g=t.indexOf(i,p))>-1;){let t=_(i,{currentLocation:g,expectedLocation:d,distance:s,ignoreLocation:a});if(f=Math.min(t,f),p=g+u,b){let t=0;for(;t<u;)m[g+t]=1,t+=1}}p=-1;let y=[],w=1,O=u+l;const j=1<<u-1;for(let v=0;v<u;v+=1){let n=0,o=O;for(;n<o;)_(i,{errors:v,currentLocation:d+o,expectedLocation:d,distance:s,ignoreLocation:a})<=f?n=o:O=o,o=Math.floor((O-n)/2+n);O=o;let c=Math.max(1,d-o+1),h=r?l:Math.min(d+o,l)+u,g=Array(h+2);g[h+1]=(1<<v)-1;for(let r=h;r>=c;r-=1){let n=r-1,o=e[t.charAt(n)];if(b&&(m[n]=+!!o),g[r]=(g[r+1]<<1|1)&o,v&&(g[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),g[r]&j&&(w=_(i,{errors:v,currentLocation:n,expectedLocation:d,distance:s,ignoreLocation:a}),w<=f)){if(f=w,p=n,p<=d)break;c=Math.max(1,2*d-p)}}if(_(i,{errors:v+1,currentLocation:d,expectedLocation:d,distance:s,ignoreLocation:a})>f)break;y=g}const M={isMatch:p>=0,score:Math.max(.001,w)};if(b){const t=function(t=[],i=v.minMatchCharLength){let e=[],n=-1,s=-1,o=0;for(let r=t.length;o<r;o+=1){let r=t[o];r&&-1===n?n=o:r||-1===n||(s=o-1,s-n+1>=i&&e.push([n,s]),n=-1)}return t[o-1]&&o-n>=i&&e.push([n,o-1]),e}(m,c);t.length?h&&(M.indices=t):M.isMatch=!1}return M}(t,i,d,{location:n+f,distance:s,threshold:o,findAllMatches:r,minMatchCharLength:c,includeMatches:e,ignoreLocation:h});p&&(l=!0),u+=b,p&&m&&(a=[...a,...m])}));let d={isMatch:l,score:l?u/this.chunks.length:1};return l&&e&&(d.indices=a),d}}class O{constructor(t){this.pattern=t}static isMultiMatch(t){return j(t,this.multiRegex)}static isSingleMatch(t){return j(t,this.singleRegex)}search(){}}function j(t,i){const e=t.match(i);return e?e[1]:null}class M extends O{constructor(t,{location:i=v.location,threshold:e=v.threshold,distance:n=v.distance,includeMatches:s=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:r=v.minMatchCharLength,isCaseSensitive:c=v.isCaseSensitive,ignoreLocation:h=v.ignoreLocation}={}){super(t),this._bitapSearch=new w(t,{location:i,threshold:e,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:c,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class I extends O{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let i,e=0;const n=[],s=this.pattern.length;for(;(i=t.indexOf(this.pattern,e))>-1;)e=i+s,n.push([i,e-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const E=[class extends O{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},I,class extends O{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends O{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=-1===t.indexOf(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},M],C=E.length,k=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,A=new Set([M.type,I.type]);const L=[];function S(t,i){for(let e=0,n=L.length;e<n;e+=1){let n=L[e];if(n.condition(t,i))return new n(t,i)}return new w(t,i)}const T="$and",N=t=>!(!t.$and&&!t.$or),R=t=>({[T]:Object.keys(t).map((i=>({[i]:t[i]})))});function P(t,i,{auto:e=!0}={}){const o=t=>{let c=Object.keys(t);const h=(t=>!!t.$path)(t);if(!h&&c.length>1&&!N(t))return o(R(t));if((t=>!n(t)&&r(t)&&!N(t))(t)){const n=h?t.$path:c[0],o=h?t.$val:t[n];if(!s(o))throw new Error((t=>`Invalid value for key ${t}`)(n));const r={keyId:p(n),pattern:o};return e&&(r.searcher=S(o,i)),r}let a={children:[],operator:c[0]};return c.forEach((i=>{const e=t[i];n(e)&&e.forEach((t=>{a.children.push(o(t))}))})),a};return N(t)||(t=R(t)),o(t)}function D(t,i){const e=t.matches;i.matches=[],c(e)&&e.forEach((t=>{if(!c(t.indices)||!t.indices.length)return;const{indices:e,value:n}=t;let s={indices:e,value:n};t.key&&(s.key=t.key.src),t.idx>-1&&(s.refIndex=t.idx),i.matches.push(s)}))}function z(t,i){i.score=t.score}class H{constructor(t,i={},e){this.options={...v,...i},this._keyStore=new l(this.options.keys),this.setCollection(t,e)}setCollection(t,i){if(this._docs=t,i&&!(i instanceof m))throw new Error("Incorrect 'index' type");this._myIndex=i||g(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const i=[];for(let e=0,n=this._docs.length;e<n;e+=1){const s=this._docs[e];t(s,e)&&(this.removeAt(e),e-=1,n-=1,i.push(s))}return i}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:i=-1}={}){const{includeMatches:e,includeScore:n,shouldSort:r,sortFn:c,ignoreFieldNorm:h}=this.options;let a=s(t)?s(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:i=v.ignoreFieldNorm}){t.forEach((t=>{let e=1;t.matches.forEach((({key:t,norm:n,score:s})=>{const o=t?t.weight:null;e*=Math.pow(0===s&&o?Number.EPSILON:s,(o||1)*(i?1:n))})),t.score=e}))}(a,{ignoreFieldNorm:h}),r&&a.sort(c),o(i)&&i>-1&&(a=a.slice(0,i)),function(t,i,{includeMatches:e=v.includeMatches,includeScore:n=v.includeScore}={}){const s=[];return e&&s.push(D),n&&s.push(z),t.map((t=>{const{idx:e}=t,n={item:i[e],refIndex:e};return s.length&&s.forEach((i=>{i(t,n)})),n}))}(a,this._docs,{includeMatches:e,includeScore:n})}_searchStringList(t){const i=S(t,this.options),{records:e}=this._myIndex,n=[];return e.forEach((({v:t,i:e,n:s})=>{if(!c(t))return;const{isMatch:o,score:r,indices:h}=i.searchIn(t);o&&n.push({item:t,idx:e,matches:[{score:r,value:t,norm:s,indices:h}]})})),n}_searchLogical(t){const i=P(t,this.options),e=(t,i,n)=>{if(!t.children){const{keyId:e,searcher:s}=t,o=this._findMatches({key:this._keyStore.get(e),value:this._myIndex.getValueForItemAtKeyId(i,e),searcher:s});return o&&o.length?[{idx:n,item:i,matches:o}]:[]}const s=[];for(let o=0,r=t.children.length;o<r;o+=1){const r=t.children[o],c=e(r,i,n);if(c.length)s.push(...c);else if(t.operator===T)return[]}return s},n=this._myIndex.records,s={},o=[];return n.forEach((({$:t,i:n})=>{if(c(t)){let r=e(i,t,n);r.length&&(s[n]||(s[n]={idx:n,item:t,matches:[]},o.push(s[n])),r.forEach((({matches:t})=>{s[n].matches.push(...t)})))}})),o}_searchObjectList(t){const i=S(t,this.options),{keys:e,records:n}=this._myIndex,s=[];return n.forEach((({$:t,i:n})=>{if(!c(t))return;let o=[];e.forEach(((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:i}))})),o.length&&s.push({idx:n,item:t,matches:o})})),s}_findMatches({key:t,value:i,searcher:e}){if(!c(i))return[];let s=[];if(n(i))i.forEach((({v:i,i:n,n:o})=>{if(!c(i))return;const{isMatch:r,score:h,indices:a}=e.searchIn(i);r&&s.push({score:h,key:t,value:i,idx:n,norm:o,indices:a})}));else{const{v:n,n:o}=i,{isMatch:r,score:c,indices:h}=e.searchIn(n);r&&s.push({score:c,key:t,value:n,norm:o,indices:h})}return s}}H.version="6.6.2",H.createIndex=g,H.parseIndex=function(t,{getFn:i=v.getFn,fieldNormWeight:e=v.fieldNormWeight}={}){const{keys:n,records:s}=t,o=new m({getFn:i,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(s),o},H.config=v,H.parseQuery=P,function(...t){L.push(...t)}(class{constructor(t,{isCaseSensitive:i=v.isCaseSensitive,includeMatches:e=v.includeMatches,minMatchCharLength:n=v.minMatchCharLength,ignoreLocation:s=v.ignoreLocation,findAllMatches:o=v.findAllMatches,location:r=v.location,threshold:c=v.threshold,distance:h=v.distance}={}){this.query=null,this.options={isCaseSensitive:i,includeMatches:e,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:r,threshold:c,distance:h},this.pattern=i?t:t.toLowerCase(),this.query=function(t,i={}){return t.split("|").map((t=>{let e=t.trim().split(k).filter((t=>t&&!!t.trim())),n=[];for(let s=0,o=e.length;s<o;s+=1){const t=e[s];let o=!1,r=-1;for(;!o&&++r<C;){const e=E[r];let s=e.isMultiMatch(t);s&&(n.push(new e(s,i)),o=!0)}if(!o)for(r=-1;++r<C;){const e=E[r];let s=e.isSingleMatch(t);if(s){n.push(new e(s,i));break}}}return n}))}(this.pattern,this.options)}static condition(t,i){return i.useExtendedSearch}searchIn(t){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:e,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let s=0,o=[],r=0;for(let c=0,h=i.length;c<h;c+=1){const n=i[c];o.length=0,s=0;for(let i=0,c=n.length;i<c;i+=1){const c=n[i],{isMatch:h,indices:a,score:u}=c.search(t);if(!h){r=0,s=0,o.length=0;break}if(s+=1,r+=u,e){const t=c.constructor.type;A.has(t)?o=[...o,...a]:o.push(a)}}if(s){let t={isMatch:!0,score:r/s};return e&&(t.indices=o),t}}return{isMatch:!1,score:1}}})},791:function(t,i,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function s(t,i,e){return(i=function(t){var i=function(t,i){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,i);if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===n(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function o(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function r(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?o(Object(e),!0).forEach((function(i){s(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function c(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}e.r(i),e.d(i,{__DO_NOT_USE__ActionTypes:function(){return u},applyMiddleware:function(){return g},bindActionCreators:function(){return b},combineReducers:function(){return p},compose:function(){return m},createStore:function(){return d},legacy_createStore:function(){return f}});var h="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function d(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(c(1));return e(d)(t,i)}if("function"!=typeof t)throw new Error(c(2));var s=t,o=i,r=[],a=r,f=!1;function p(){a===r&&(a=r.slice())}function v(){if(f)throw new Error(c(3));return o}function b(t){if("function"!=typeof t)throw new Error(c(4));if(f)throw new Error(c(5));var i=!0;return p(),a.push(t),function(){if(i){if(f)throw new Error(c(6));i=!1,p();var e=a.indexOf(t);a.splice(e,1),r=null}}}function m(t){if(!l(t))throw new Error(c(7));if(void 0===t.type)throw new Error(c(8));if(f)throw new Error(c(9));try{f=!0,o=s(o,t)}finally{f=!1}for(var i=r=a,e=0;e<i.length;e++)(0,i[e])();return t}function g(t){if("function"!=typeof t)throw new Error(c(10));s=t,m({type:u.REPLACE})}function _(){var t,i=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(c(11));function e(){t.next&&t.next(v())}return e(),{unsubscribe:i(e)}}})[h]=function(){return this},t}return m({type:u.INIT}),(n={dispatch:m,subscribe:b,getState:v,replaceReducer:g})[h]=_,n}var f=d;function p(t){for(var i=Object.keys(t),e={},n=0;n<i.length;n++){var s=i[n];"function"==typeof t[s]&&(e[s]=t[s])}var o,r=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(i){var e=t[i];if(void 0===e(void 0,{type:u.INIT}))throw new Error(c(12));if(void 0===e(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(c(13))}))}(e)}catch(t){o=t}return function(t,i){if(void 0===t&&(t={}),o)throw o;for(var n=!1,s={},h=0;h<r.length;h++){var a=r[h],u=e[a],l=t[a],d=u(l,i);if(void 0===d)throw new Error(c(14));s[a]=d,n=n||d!==l}return(n=n||r.length!==Object.keys(t).length)?s:t}}function v(t,i){return function(){return i(t.apply(this,arguments))}}function b(t,i){if("function"==typeof t)return v(t,i);if("object"!=typeof t||null===t)throw new Error(c(16));var e={};for(var n in t){var s=t[n];"function"==typeof s&&(e[n]=v(s,i))}return e}function m(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return 0===i.length?function(t){return t}:1===i.length?i[0]:i.reduce((function(t,i){return function(){return t(i.apply(void 0,arguments))}}))}function g(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),n=function(){throw new Error(c(15))},s={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=i.map((function(t){return t(s)}));return n=m.apply(void 0,o)(e.dispatch),r(r({},e),{},{dispatch:n})}}}}},i={};function e(n){var s=i[n];if(void 0!==s)return s.exports;var o=i[n]={exports:{}};return t[n].call(o.exports,o,o.exports,e),o.exports}e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,{a:i}),i},e.d=function(t,i){for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n,s,o={};n=e(373),s=e.n(n),e(187),e(883),e(789),e(686),o.default=s(),window.Choices=o.default}();const d='*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}hr,label{display:block}label,p{margin-bottom:8px}label{font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0}hr{margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}label+p{margin-top:-4px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width:620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:focus,.section a:visited{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo-img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.push-bottom{margin-bottom:24px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}[data-test-hook]{margin-bottom:24px}.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.25}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{-webkit-box-shadow:0 0 0 2px #00bcd4;box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one]::after{content:"";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0-4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;-webkit-box-sizing:border-box;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible}.is-open .choices__list--dropdown,.is-open .choices__list[aria-expanded]{border-color:#b7b7b7}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable,.choices__list[aria-expanded] .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto"}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-webkit-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-moz-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input:-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::placeholder{opacity:0}.filter-button-container .choices{width:100%;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 0px}.filter-button-container .choices .choices__inner{border:1px solid var(--color-outline);border-radius:8px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__inner,.filter-button-container .choices .choices__input,.filter-button-container .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,.filter-button-container .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .choices .choices__list--multiple .choices__item{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container);font-size:14px;margin-right:8px;border:1px solid var(--color-outline);border-radius:8px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__button{background-image:url(\'data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M2.592.044l18.364 18.364-2.548 2.548L.044 2.592z"/><path d="M0 18.364L18.364 0l2.548 2.548L2.548 20.912z"/></g></svg>\');color:var(--color-on-secondary-container);border-left:1px solid var(--color-outline)}.filter-button-container .choices .choices__list--dropdown,.filter-button-container .choices .choices__list[aria-expanded]{width:100%;color:var(--color-on-secondary-container);background-color:var(--color-secondary-container);border:1px solid var(--color-outline)}.filter-button-container .choices .choices__input{width:100%}.filter-button-container .filter-button,.filter-button-container .selected-filter-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:8px;-webkit-tap-highlight-color:transparent;line-height:20px;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;min-width:100px;white-space:nowrap}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}.select-container{display:-ms-inline-flexbox;display:inline-flex;width:100%;z-index:4000}.select-container .choicesjs-stencil{position:relative;width:100%;height:auto;z-index:22;z-index:4000}.select-container .choicesjs-stencil .choices__inner{padding:0px}.select-container .choicesjs-stencil .choices__input{padding:0px;margin:0px;width:100% !important;min-height:44px}';const f=class{constructor(i){t(this,i);this.filterType=undefined;this.filterName=undefined;this.filterPlaceholder="";this.filterNameProperty=undefined;this.segment=undefined}onResetFilter(){this.resetFilter()}handleFilter(t,i){const e=[...o[this.filterType]];e.find((t=>t.id===i.id)).selected=!e.find((t=>t.id===i.id)).selected;o[this.filterType]=e;o[this.segment]=0;if(o.mode==="treks"){r.filter((t=>t.segment===this.segment)).forEach((t=>{o[this.segment]+=o[t.property].filter((t=>t.selected)).length}));o.currentTreks=c()}else if(o.mode==="touristicContents"){h.filter((t=>t.segment===this.segment)).forEach((t=>{o[this.segment]+=o[t.property].filter((t=>t.selected)).length}));o.currentTouristicContents=a()}else if(o.mode==="touristicEvents"){u.filter((t=>t.segment===this.segment)).forEach((t=>{o[this.segment]+=o[t.property].filter((t=>t.selected)).length}));o.currentTouristicEvents=l()}}resetFilter(){if(this.choices){this.choices.removeActiveItems()}i(this.filterRef)}componentDidLoad(){if(this.choicesRef){this.choices=new Choices(this.choicesRef,{removeItemButton:true,choices:o[this.filterType].map((t=>({value:t.id,label:t[this.filterNameProperty],selected:t.selected}))),placeholder:true,placeholderValue:this.filterPlaceholder,noResultsText:"",noChoicesText:"",itemSelectText:""});const t=this.el.shadowRoot.querySelector(".choices");t.addEventListener("click",(t=>{t.stopPropagation();const i=this.el.shadowRoot.querySelector(".choices__list.choices__list--dropdown");if(!i.classList.contains("is-active")){const t=this.el.shadowRoot.querySelector(".choices");t.classList.add("is-focused");t.classList.add("is-open");i.classList.add("is-active");i.setAttribute("aria-expanded","true")}}),false);t.addEventListener("change",(t=>{this.handleFilter(null,o[this.filterType].find((i=>i.id===t.detail.value)))}),false)}}render(){return e(n,{ref:t=>this.filterRef=t},e("div",{class:"filter-name display-large"},this.filterName),e("div",{class:"filter-button-container"},o[this.filterType].length>9?e("select",{multiple:true,ref:t=>this.choicesRef=t}):o[this.filterType].map((t=>e("button",{onClick:i=>this.handleFilter(i,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}get el(){return s(this)}};f.style=d;export{f as grw_filter};
|
|
3
|
+
//# sourceMappingURL=p-06412985.entry.js.map
|
|
Binary file
|
|
Binary file
|