@geotrekce/geotrek-rando-widget 0.4.4 → 0.4.6
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-0d8a3c86.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.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-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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{r as t,e as i,h as e,H as r,i as n,g as s}from"./p-0c07a3f0.js";import{t as o}from"./p-e16d970b.js";import{t as a,s as l,h,a as c,c as f,b as u,d as p,o as d,r as m,f as v,e as g,g as w}from"./p-bcac98e0.js";import{g as b,n as y,a as k,e as x,S as A,N as _,P as M,K as z}from"./p-a06aacd4.js";const P='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:20px;line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:20px;border-bottom-right-radius:20px}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-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-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}';const C=class{constructor(e){t(this,e);this.resetFilter=i(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined}handleEraseTreksFilters(){a.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;l.currentTreks=h();this.resetFilter.emit()}handleOkTreksFilters(){this.handleFilters()}handleSelectedSegment(t){this.selectedSegment=t}handleSegment(t){if(l.mode==="treks"){return a.filter((i=>i.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}else if(l.mode==="touristicContents"){return c.filter((i=>i.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}else if(l.mode==="touristicEvents"){return f.filter((i=>i.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}}handleEraseTouristicContentsFilters(){c.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicContents=u();this.resetFilter.emit()}handleOkTouristicContentsFilters(){this.handleFilters()}handleEraseTouristicEventsFilters(){f.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicEvents=p();this.resetFilter.emit()}handleOkTouristicEventsFilters(){this.handleFilters()}render(){return e(r,null,e("div",{class:"options-container"},e("div",{class:"filters-container"},l.mode==="treks"&&e("div",{class:"filters-treks-container"},e("div",{class:"filters-options-container"},l.treksWithinBounds&&e("div",{class:"current-treks-within-bounds-length"},`${l.treksWithinBounds.length} ${l.treksWithinBounds.length>1?o[l.language].treks:o[l.language].trek}`),e("div",{class:"filters-options-buttons-container"},e("button",{class:"filter-option-button",onClick:()=>this.handleEraseTreksFilters()},o[l.language].erase),e("button",{class:"filter-option-button",onClick:()=>this.handleOkTreksFilters()},o[l.language].ok))),e("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},o[l.language].activities," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},o[l.language].themes," ",l.selectedThemesFilters!==0&&`(${l.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},o[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),e("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{key:"treks-activities-segment-container",class:"segment-container"},l["practices"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:o[l.language].placeholderPractices})),l["difficulties"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),l["durations"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["lengths"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["elevations"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["routes"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),l["accessibilities"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["labels"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&e("div",{key:"treks-themes-segment-container",class:"segment-container"},l["themes"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].themes,filterPlaceholder:o[l.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{key:"treks-location-segment-container",class:"segment-container"},l["districts"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),l["cities"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].crossedCities,filterPlaceholder:o[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicContents"&&e("div",{class:"filters-touristic-contents-container"},e("div",{class:"filters-options-container"},l.touristicContentsWithinBounds&&e("div",{class:"current-treks-within-bounds-length"},`${l.touristicContentsWithinBounds.length} ${l.touristicContentsWithinBounds.length>1?o[l.language].home.touristicContents:o[l.language].home.touristicContent}`),e("div",{class:"filters-options-buttons-container"},e("button",{class:"filter-option-button",onClick:()=>this.handleEraseTouristicContentsFilters()},o[l.language].erase),e("button",{class:"filter-option-button",onClick:()=>this.handleOkTouristicContentsFilters()},o[l.language].ok))),e("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},o[l.language].services," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},o[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),e("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},l["touristicContentCategories"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{key:"touristic-contents-location-segment-container",class:"segment-container"},l["districts"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),l["cities"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].crossedCities,filterPlaceholder:o[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicEvents"&&e("div",{class:"filters-touristic-events-container"},e("div",{class:"filters-options-container"},l.touristicEventsWithinBounds&&e("div",{class:"current-treks-within-bounds-length"},`${l.touristicEventsWithinBounds.length} ${l.touristicEventsWithinBounds.length>1?o[l.language].home.touristicEvents:o[l.language].home.touristicEvent}`),e("div",{class:"filters-options-buttons-container"},e("button",{class:"filter-option-button",onClick:()=>this.handleEraseTouristicEventsFilters()},o[l.language].erase),e("button",{class:"filter-option-button",onClick:()=>this.handleOkTouristicEventsFilters()},o[l.language].ok))),e("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},o[l.language].services," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},o[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),e("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},l["touristicEventTypes"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].type,filterPlaceholder:o[l.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{key:"touristic-events-location-segment-container",class:"segment-container"},l["districts"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),l["cities"].length>0&&e("div",{class:"filter-container"},e("grw-filter",{filterName:o[l.language].crossedCities,filterPlaceholder:o[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),e("div",{onClick:()=>this.handleFilters(),class:"back-filters-container"})))}};C.style=P;var O=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function T(t,i,e){return e={path:i,exports:{},require:function(t,i){return E()}},t(e,e.exports),e.exports}function j(t){if(t.__esModule)return t;var i=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:true,get:function(){return t[e]}})}));return i}function E(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var S=T((function(t,i){
|
|
2
|
+
/* @preserve
|
|
3
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
4
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
5
|
+
*/
|
|
6
|
+
(function(t,e){e(i)})(O,(function(t){var i="1.9.4";function e(t){var i,e,r,n;for(e=1,r=arguments.length;e<r;e++){n=arguments[e];for(i in n){t[i]=n[i]}}return t}var r=Object.create||function(){function t(){}return function(i){t.prototype=i;return new t}}();function n(t,i){var e=Array.prototype.slice;if(t.bind){return t.bind.apply(t,e.call(arguments,1))}var r=e.call(arguments,2);return function(){return t.apply(i,r.length?r.concat(e.call(arguments)):arguments)}}var s=0;function o(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++s}return t._leaflet_id}function a(t,i,e){var r,n,s,o;o=function(){r=false;if(n){s.apply(e,n);n=false}};s=function(){if(r){n=arguments}else{t.apply(e,arguments);setTimeout(o,i);r=true}};return s}function l(t,i,e){var r=i[1],n=i[0],s=r-n;return t===r&&e?t:((t-n)%s+s)%s+n}function h(){return false}function c(t,i){if(i===false){return t}var e=Math.pow(10,i===undefined?6:i);return Math.round(t*e)/e}function f(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return f(t).split(/\s+/)}function p(t,i){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?r(t.options):{}}for(var e in i){t.options[e]=i[e]}return t.options}function d(t,i,e){var r=[];for(var n in t){r.push(encodeURIComponent(e?n.toUpperCase():n)+"="+encodeURIComponent(t[n]))}return(!i||i.indexOf("?")===-1?"?":"&")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function v(t,i){return t.replace(m,(function(t,e){var r=i[e];if(r===undefined){throw new Error("No value provided for variable "+t)}else if(typeof r==="function"){r=r(i)}return r}))}var g=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function w(t,i){for(var e=0;e<t.length;e++){if(t[e]===i){return e}}return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var k=0;function x(t){var i=+new Date,e=Math.max(0,16-(i-k));k=i+e;return window.setTimeout(t,e)}var A=window.requestAnimationFrame||y("RequestAnimationFrame")||x;var _=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,i,e){if(e&&A===x){t.call(i)}else{return A.call(window,n(t,i))}}function z(t){if(t){_.call(window,t)}}var P={__proto__:null,extend:e,create:r,bind:n,get lastId(){return s},stamp:o,throttle:a,wrapNum:l,falseFn:h,formatNum:c,trim:f,splitWords:u,setOptions:p,getParamString:d,template:v,isArray:g,indexOf:w,emptyImageUrl:b,requestFn:A,cancelFn:_,requestAnimFrame:M,cancelAnimFrame:z};function C(){}C.extend=function(t){var i=function(){p(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var n=i.__super__=this.prototype;var s=r(n);s.constructor=i;i.prototype=s;for(var o in this){if(Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"){i[o]=this[o]}}if(t.statics){e(i,t.statics)}if(t.includes){O(t.includes);e.apply(null,[s].concat(t.includes))}e(s,t);delete s.statics;delete s.includes;if(s.options){s.options=n.options?r(n.options):{};e(s.options,t.options)}s._initHooks=[];s.callInitHooks=function(){if(this._initHooksCalled){return}if(n.callInitHooks){n.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,i=s._initHooks.length;t<i;t++){s._initHooks[t].call(this)}};return i};C.include=function(t){var i=this.prototype.options;e(this.prototype,t);if(t.options){this.prototype.options=i;this.mergeOptions(t.options)}return this};C.mergeOptions=function(t){e(this.prototype.options,t);return this};C.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1);var e=typeof t==="function"?t:function(){this[t].apply(this,i)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(e);return this};function O(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=g(t)?t:[t];for(var i=0;i<t.length;i++){if(t[i]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var T={on:function(t,i,e){if(typeof t==="object"){for(var r in t){this._on(r,t[r],i)}}else{t=u(t);for(var n=0,s=t.length;n<s;n++){this._on(t[n],i,e)}}return this},off:function(t,i,e){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var r in t){this._off(r,t[r],i)}}else{t=u(t);var n=arguments.length===1;for(var s=0,o=t.length;s<o;s++){if(n){this._off(t[s])}else{this._off(t[s],i,e)}}}return this},_on:function(t,i,e,r){if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,e)!==false){return}if(e===this){e=undefined}var n={fn:i,ctx:e};if(r){n.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(n)},_off:function(t,i,e){var r,n,s;if(!this._events){return}r=this._events[t];if(!r){return}if(arguments.length===1){if(this._firingCount){for(n=0,s=r.length;n<s;n++){r[n].fn=h}}delete this._events[t];return}if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}var o=this._listens(t,i,e);if(o!==false){var a=r[o];if(this._firingCount){a.fn=h;this._events[t]=r=r.slice()}r.splice(o,1)}},fire:function(t,i,r){if(!this.listens(t,r)){return this}var n=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var o=0,a=s.length;o<a;o++){var l=s[o];var h=l.fn;if(l.once){this.off(t,h,l.ctx)}h.call(l.ctx||this,n)}this._firingCount--}}if(r){this._propagateEvent(n)}return this},listens:function(t,i,e,r){if(typeof t!=="string"){console.warn('"string" type argument expected')}var n=i;if(typeof i!=="function"){r=!!i;n=undefined;e=undefined}var s=this._events&&this._events[t];if(s&&s.length){if(this._listens(t,n,e)!==false){return true}}if(r){for(var o in this._eventParents){if(this._eventParents[o].listens(t,i,e,r)){return true}}}return false},_listens:function(t,i,e){if(!this._events){return false}var r=this._events[t]||[];if(!i){return!!r.length}if(e===this){e=undefined}for(var n=0,s=r.length;n<s;n++){if(r[n].fn===i&&r[n].ctx===e){return n}}return false},once:function(t,i,e){if(typeof t==="object"){for(var r in t){this._on(r,t[r],i,true)}}else{t=u(t);for(var n=0,s=t.length;n<s;n++){this._on(t[n],i,e,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[o(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[o(t)]}return this},_propagateEvent:function(t){for(var i in this._eventParents){this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),true)}}};T.addEventListener=T.on;T.removeEventListener=T.clearAllEventListeners=T.off;T.addOneTimeEventListener=T.once;T.fireEvent=T.fire;T.hasEventListeners=T.listens;var j=C.extend(T);function E(t,i,e){this.x=e?Math.round(t):t;this.y=e?Math.round(i):i}var S=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new E(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new E(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=S(this.x);this.y=S(this.y);return this},distanceTo:function(t){t=B(t);var i=t.x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){t=B(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=B(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}};function B(t,i,e){if(t instanceof E){return t}if(g(t)){return new E(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new E(t.x,t.y)}return new E(t,i,e)}function F(t,i){if(!t){return}var e=i?[t,i]:t;for(var r=0,n=e.length;r<n;r++){this.extend(e[r])}}F.prototype={extend:function(t){var i,e;if(!t){return this}if(t instanceof E||typeof t[0]==="number"||"x"in t){i=e=B(t)}else{t=I(t);i=t.min;e=t.max;if(!i||!e){return this}}if(!this.min&&!this.max){this.min=i.clone();this.max=e.clone()}else{this.min.x=Math.min(i.x,this.min.x);this.max.x=Math.max(e.x,this.max.x);this.min.y=Math.min(i.y,this.min.y);this.max.y=Math.max(e.y,this.max.y)}return this},getCenter:function(t){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;if(typeof t[0]==="number"||t instanceof E){t=B(t)}else{t=I(t)}if(t instanceof F){i=t.min;e=t.max}else{i=e=t}return i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=I(t);var i=this.min,e=this.max,r=t.min,n=t.max,s=n.x>=i.x&&r.x<=e.x,o=n.y>=i.y&&r.y<=e.y;return s&&o},overlaps:function(t){t=I(t);var i=this.min,e=this.max,r=t.min,n=t.max,s=n.x>i.x&&r.x<e.x,o=n.y>i.y&&r.y<e.y;return s&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,e=this.max,r=Math.abs(i.x-e.x)*t,n=Math.abs(i.y-e.y)*t;return I(B(i.x-r,i.y-n),B(e.x+r,e.y+n))},equals:function(t){if(!t){return false}t=I(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function I(t,i){if(!t||t instanceof F){return t}return new F(t,i)}function N(t,i){if(!t){return}var e=i?[t,i]:t;for(var r=0,n=e.length;r<n;r++){this.extend(e[r])}}N.prototype={extend:function(t){var i=this._southWest,e=this._northEast,r,n;if(t instanceof D){r=t;n=t}else if(t instanceof N){r=t._southWest;n=t._northEast;if(!r||!n){return this}}else{return t?this.extend($(t)||R(t)):this}if(!i&&!e){this._southWest=new D(r.lat,r.lng);this._northEast=new D(n.lat,n.lng)}else{i.lat=Math.min(r.lat,i.lat);i.lng=Math.min(r.lng,i.lng);e.lat=Math.max(n.lat,e.lat);e.lng=Math.max(n.lng,e.lng)}return this},pad:function(t){var i=this._southWest,e=this._northEast,r=Math.abs(i.lat-e.lat)*t,n=Math.abs(i.lng-e.lng)*t;return new N(new D(i.lat-r,i.lng-n),new D(e.lat+r,e.lng+n))},getCenter:function(){return new D((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof D||"lat"in t){t=$(t)}else{t=R(t)}var i=this._southWest,e=this._northEast,r,n;if(t instanceof N){r=t.getSouthWest();n=t.getNorthEast()}else{r=n=t}return r.lat>=i.lat&&n.lat<=e.lat&&r.lng>=i.lng&&n.lng<=e.lng},intersects:function(t){t=R(t);var i=this._southWest,e=this._northEast,r=t.getSouthWest(),n=t.getNorthEast(),s=n.lat>=i.lat&&r.lat<=e.lat,o=n.lng>=i.lng&&r.lng<=e.lng;return s&&o},overlaps:function(t){t=R(t);var i=this._southWest,e=this._northEast,r=t.getSouthWest(),n=t.getNorthEast(),s=n.lat>i.lat&&r.lat<e.lat,o=n.lng>i.lng&&r.lng<e.lng;return s&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){if(!t){return false}t=R(t);return this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)},isValid:function(){return!!(this._southWest&&this._northEast)}};function R(t,i){if(t instanceof N){return t}return new N(t,i)}function D(t,i,e){if(isNaN(t)||isNaN(i)){throw new Error("Invalid LatLng object: ("+t+", "+i+")")}this.lat=+t;this.lng=+i;if(e!==undefined){this.alt=+e}}D.prototype={equals:function(t,i){if(!t){return false}t=$(t);var e=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return e<=(i===undefined?1e-9:i)},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return Y.distance(this,$(t))},wrap:function(){return Y.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return R([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new D(this.lat,this.lng,this.alt)}};function $(t,i,e){if(t instanceof D){return t}if(g(t)&&typeof t[0]!=="object"){if(t.length===3){return new D(t[0],t[1],t[2])}if(t.length===2){return new D(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new D(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(i===undefined){return null}return new D(t,i,e)}var G={latLngToPoint:function(t,i){var e=this.projection.project(t),r=this.scale(i);return this.transformation._transform(e,r)},pointToLatLng:function(t,i){var e=this.scale(i),r=this.transformation.untransform(t,e);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var i=this.projection.bounds,e=this.scale(t),r=this.transformation.transform(i.min,e),n=this.transformation.transform(i.max,e);return new F(r,n)},infinite:false,wrapLatLng:function(t){var i=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,e=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,r=t.alt;return new D(e,i,r)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),r=i.lat-e.lat,n=i.lng-e.lng;if(r===0&&n===0){return t}var s=t.getSouthWest(),o=t.getNorthEast(),a=new D(s.lat-r,s.lng-n),l=new D(o.lat-r,o.lng-n);return new N(a,l)}};var Y=e({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,r=t.lat*e,n=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),o=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(r)*Math.cos(n)*o*o,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var Z=6378137;var H={R:Z,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,r=Math.max(Math.min(e,t.lat),-e),n=Math.sin(r*i);return new E(this.R*t.lng*i,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(t){var i=180/Math.PI;return new D((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=Z*Math.PI;return new F([-t,-t],[t,t])}()};function U(t,i,e,r){if(g(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=i;this._c=e;this._d=r}U.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){i=i||1;t.x=i*(this._a*t.x+this._b);t.y=i*(this._c*t.y+this._d);return t},untransform:function(t,i){i=i||1;return new E((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function V(t,i,e,r){return new U(t,i,e,r)}var W=e({},Y,{code:"EPSG:3857",projection:H,transformation:function(){var t=.5/(Math.PI*H.R);return V(t,.5,-t,.5)}()});var Q=e({},W,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function q(t,i){var e="",r,n,s,o,a,l;for(r=0,s=t.length;r<s;r++){a=t[r];for(n=0,o=a.length;n<o;n++){l=a[n];e+=(n?"L":"M")+l.x+" "+l.y}e+=i?Ft.svg?"z":"x":""}return e||"M0 0"}var K=document.documentElement.style;var X="ActiveXObject"in window;var tt=X&&!document.addEventListener;var it="msLaunchUri"in navigator&&!("documentMode"in document);var et=Bt("webkit");var rt=Bt("android");var nt=Bt("android 2")||Bt("android 3");var st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var ot=rt&&Bt("Google")&&st<537&&!("AudioNode"in window);var at=!!window.opera;var lt=!it&&Bt("chrome");var ht=Bt("gecko")&&!et&&!at&&!X;var ct=!lt&&Bt("safari");var ft=Bt("phantom");var ut="OTransition"in K;var pt=navigator.platform.indexOf("Win")===0;var dt=X&&"transition"in K;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!nt;var vt="MozPerspective"in K;var gt=!window.L_DISABLE_3D&&(dt||mt||vt)&&!ut&&!ft;var wt=typeof orientation!=="undefined"||Bt("mobile");var bt=wt&&et;var yt=wt&&mt;var kt=!window.PointerEvent&&window.MSPointerEvent;var xt=!!(window.PointerEvent||kt);var At="ontouchstart"in window||!!window.TouchEvent;var _t=!window.L_NO_TOUCH&&(At||xt);var Lt=wt&&at;var Mt=wt&&ht;var zt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Pt=function(){var t=false;try{var i=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",h,i);window.removeEventListener("testPassiveEventSupport",h,i)}catch(e){}return t}();var Ct=function(){return!!document.createElement("canvas").getContext}();var Ot=!!(document.createElementNS&&J("svg").createSVGRect);var Tt=!!Ot&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var jt=!Ot&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;i.style.behavior="url(#default#VML)";return i&&typeof i.adj==="object"}catch(e){return false}}();var Et=navigator.platform.indexOf("Mac")===0;var St=navigator.platform.indexOf("Linux")===0;function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ft={ie:X,ielt9:tt,edge:it,webkit:et,android:rt,android23:nt,androidStock:ot,opera:at,chrome:lt,gecko:ht,safari:ct,phantom:ft,opera12:ut,win:pt,ie3d:dt,webkit3d:mt,gecko3d:vt,any3d:gt,mobile:wt,mobileWebkit:bt,mobileWebkit3d:yt,msPointer:kt,pointer:xt,touch:_t,touchNative:At,mobileOpera:Lt,mobileGecko:Mt,retina:zt,passiveEvents:Pt,canvas:Ct,svg:Ot,vml:jt,inlineSvg:Tt,mac:Et,linux:St};var It=Ft.msPointer?"MSPointerDown":"pointerdown";var Nt=Ft.msPointer?"MSPointerMove":"pointermove";var Rt=Ft.msPointer?"MSPointerUp":"pointerup";var Dt=Ft.msPointer?"MSPointerCancel":"pointercancel";var $t={touchstart:It,touchmove:Nt,touchend:Rt,touchcancel:Dt};var Gt={touchstart:Kt,touchmove:qt,touchend:qt,touchcancel:qt};var Yt={};var Zt=false;function Ht(t,i,e){if(i==="touchstart"){Jt()}if(!Gt[i]){console.warn("wrong event specified:",i);return h}e=Gt[i].bind(this,e);t.addEventListener($t[i],e,false);return e}function Ut(t,i,e){if(!$t[i]){console.warn("wrong event specified:",i);return}t.removeEventListener($t[i],e,false)}function Vt(t){Yt[t.pointerId]=t}function Wt(t){if(Yt[t.pointerId]){Yt[t.pointerId]=t}}function Qt(t){delete Yt[t.pointerId]}function Jt(){if(!Zt){document.addEventListener(It,Vt,true);document.addEventListener(Nt,Wt,true);document.addEventListener(Rt,Qt,true);document.addEventListener(Dt,Qt,true);Zt=true}}function qt(t,i){if(i.pointerType===(i.MSPOINTER_TYPE_MOUSE||"mouse")){return}i.touches=[];for(var e in Yt){i.touches.push(Yt[e])}i.changedTouches=[i];t(i)}function Kt(t,i){if(i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH){Vi(i)}qt(t,i)}function Xt(t){var i={},e,r;for(r in t){e=t[r];i[r]=e&&e.bind?e.bind(t):e}t=i;i.type="dblclick";i.detail=2;i.isTrusted=false;i._simulated=true;return i}var ti=200;function ii(t,i){t.addEventListener("dblclick",i);var e=0,r;function n(t){if(t.detail!==1){r=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var n=Qi(t);if(n.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!n.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var s=Date.now();if(s-e<=ti){r++;if(r===2){i(Xt(t))}}else{r=1}e=s}t.addEventListener("click",n);return{dblclick:i,simDblclick:n}}function ei(t,i){t.removeEventListener("dblclick",i.dblclick);t.removeEventListener("click",i.simDblclick)}var ri=yi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var ni=yi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var si=ni==="webkitTransition"||ni==="OTransition"?ni+"End":"transitionend";function oi(t){return typeof t==="string"?document.getElementById(t):t}function ai(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||e==="auto")&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);e=r?r[i]:null}return e==="auto"?null:e}function li(t,i,e){var r=document.createElement(t);r.className=i||"";if(e){e.appendChild(r)}return r}function hi(t){var i=t.parentNode;if(i){i.removeChild(t)}}function ci(t){while(t.firstChild){t.removeChild(t.firstChild)}}function fi(t){var i=t.parentNode;if(i&&i.lastChild!==t){i.appendChild(t)}}function ui(t){var i=t.parentNode;if(i&&i.firstChild!==t){i.insertBefore(t,i.firstChild)}}function pi(t,i){if(t.classList!==undefined){return t.classList.contains(i)}var e=gi(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function di(t,i){if(t.classList!==undefined){var e=u(i);for(var r=0,n=e.length;r<n;r++){t.classList.add(e[r])}}else if(!pi(t,i)){var s=gi(t);vi(t,(s?s+" ":"")+i)}}function mi(t,i){if(t.classList!==undefined){t.classList.remove(i)}else{vi(t,f((" "+gi(t)+" ").replace(" "+i+" "," ")))}}function vi(t,i){if(t.className.baseVal===undefined){t.className=i}else{t.className.baseVal=i}}function gi(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function wi(t,i){if("opacity"in t.style){t.style.opacity=i}else if("filter"in t.style){bi(t,i)}}function bi(t,i){var e=false,r="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(r)}catch(n){if(i===1){return}}i=Math.round(i*100);if(e){e.Enabled=i!==100;e.Opacity=i}else{t.style.filter+=" progid:"+r+"(opacity="+i+")"}}function yi(t){var i=document.documentElement.style;for(var e=0;e<t.length;e++){if(t[e]in i){return t[e]}}return false}function ki(t,i,e){var r=i||new E(0,0);t.style[ri]=(Ft.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(e?" scale("+e+")":"")}function xi(t,i){t._leaflet_pos=i;if(Ft.any3d){ki(t,i)}else{t.style.left=i.x+"px";t.style.top=i.y+"px"}}function Ai(t){return t._leaflet_pos||new E(0,0)}var _i;var Li;var Mi;if("onselectstart"in document){_i=function(){Ii(window,"selectstart",Vi)};Li=function(){Ri(window,"selectstart",Vi)}}else{var zi=yi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);_i=function(){if(zi){var t=document.documentElement.style;Mi=t[zi];t[zi]="none"}};Li=function(){if(zi){document.documentElement.style[zi]=Mi;Mi=undefined}}}function Pi(){Ii(window,"dragstart",Vi)}function Ci(){Ri(window,"dragstart",Vi)}var Oi,Ti;function ji(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ei();Oi=t;Ti=t.style.outlineStyle;t.style.outlineStyle="none";Ii(window,"keydown",Ei)}function Ei(){if(!Oi){return}Oi.style.outlineStyle=Ti;Oi=undefined;Ti=undefined;Ri(window,"keydown",Ei)}function Si(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Bi(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Fi={__proto__:null,TRANSFORM:ri,TRANSITION:ni,TRANSITION_END:si,get:oi,getStyle:ai,create:li,remove:hi,empty:ci,toFront:fi,toBack:ui,hasClass:pi,addClass:di,removeClass:mi,setClass:vi,getClass:gi,setOpacity:wi,testProp:yi,setTransform:ki,setPosition:xi,getPosition:Ai,get disableTextSelection(){return _i},get enableTextSelection(){return Li},disableImageDrag:Pi,enableImageDrag:Ci,preventOutline:ji,restoreOutline:Ei,getSizedParentNode:Si,getScale:Bi};function Ii(t,i,e,r){if(i&&typeof i==="object"){for(var n in i){Gi(t,n,i[n],e)}}else{i=u(i);for(var s=0,o=i.length;s<o;s++){Gi(t,i[s],e,r)}}return this}var Ni="_leaflet_events";function Ri(t,i,e,r){if(arguments.length===1){Di(t);delete t[Ni]}else if(i&&typeof i==="object"){for(var n in i){Yi(t,n,i[n],e)}}else{i=u(i);if(arguments.length===2){Di(t,(function(t){return w(i,t)!==-1}))}else{for(var s=0,o=i.length;s<o;s++){Yi(t,i[s],e,r)}}}return this}function Di(t,i){for(var e in t[Ni]){var r=e.split(/\d/)[0];if(!i||i(r)){Yi(t,r,null,null,e)}}}var $i={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Gi(t,i,e,r){var n=i+o(e)+(r?"_"+o(r):"");if(t[Ni]&&t[Ni][n]){return this}var s=function(i){return e.call(r||t,i||window.event)};var a=s;if(!Ft.touchNative&&Ft.pointer&&i.indexOf("touch")===0){s=Ht(t,i,s)}else if(Ft.touch&&i==="dblclick"){s=ii(t,s)}else if("addEventListener"in t){if(i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"){t.addEventListener($i[i]||i,s,Ft.passiveEvents?{passive:false}:false)}else if(i==="mouseenter"||i==="mouseleave"){s=function(i){i=i||window.event;if(Xi(t,i)){a(i)}};t.addEventListener($i[i],s,false)}else{t.addEventListener(i,a,false)}}else{t.attachEvent("on"+i,s)}t[Ni]=t[Ni]||{};t[Ni][n]=s}function Yi(t,i,e,r,n){n=n||i+o(e)+(r?"_"+o(r):"");var s=t[Ni]&&t[Ni][n];if(!s){return this}if(!Ft.touchNative&&Ft.pointer&&i.indexOf("touch")===0){Ut(t,i,s)}else if(Ft.touch&&i==="dblclick"){ei(t,s)}else if("removeEventListener"in t){t.removeEventListener($i[i]||i,s,false)}else{t.detachEvent("on"+i,s)}t[Ni][n]=null}function Zi(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Hi(t){Gi(t,"wheel",Zi);return this}function Ui(t){Ii(t,"mousedown touchstart dblclick contextmenu",Zi);t["_leaflet_disable_click"]=true;return this}function Vi(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function Wi(t){Vi(t);Zi(t);return this}function Qi(t){if(t.composedPath){return t.composedPath()}var i=[];var e=t.target;while(e){i.push(e);e=e.parentNode}return i}function Ji(t,i){if(!i){return new E(t.clientX,t.clientY)}var e=Bi(i),r=e.boundingClientRect;return new E((t.clientX-r.left)/e.x-i.clientLeft,(t.clientY-r.top)/e.y-i.clientTop)}var qi=Ft.linux&&Ft.chrome?window.devicePixelRatio:Ft.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ki(t){return Ft.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/qi:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Xi(t,i){var e=i.relatedTarget;if(!e){return true}try{while(e&&e!==t){e=e.parentNode}}catch(r){return false}return e!==t}var te={__proto__:null,on:Ii,off:Ri,stopPropagation:Zi,disableScrollPropagation:Hi,disableClickPropagation:Ui,preventDefault:Vi,stop:Wi,getPropagationPath:Qi,getMousePosition:Ji,getWheelDelta:Ki,isExternalTarget:Xi,addListener:Ii,removeListener:Ri};var ie=j.extend({run:function(t,i,e,r){this.stop();this._el=t;this._inProgress=true;this._duration=e||.25;this._easeOutPower=1/Math.max(r||.5,.2);this._startPos=Ai(t);this._offset=i.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=M(this._animate,this);this._step()},_step:function(t){var i=+new Date-this._startTime,e=this._duration*1e3;if(i<e){this._runFrame(this._easeOut(i/e),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));if(i){e._round()}xi(this._el,e);this.fire("step")},_complete:function(){z(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ee=j.extend({options:{crs:W,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,i){i=p(this,i);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=n(this._onResize,this);this._initEvents();if(i.maxBounds){this.setMaxBounds(i.maxBounds)}if(i.zoom!==undefined){this._zoom=this._limitZoom(i.zoom)}if(i.center&&i.zoom!==undefined){this.setView($(i.center),i.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=ni&&Ft.any3d&&!Ft.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Ii(this._proxy,si,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,i,r){i=i===undefined?this._zoom:this._limitZoom(i);t=this._limitCenter($(t),i,this.options.maxBounds);r=r||{};this._stop();if(this._loaded&&!r.reset&&r!==true){if(r.animate!==undefined){r.zoom=e({animate:r.animate},r.zoom);r.pan=e({animate:r.animate,duration:r.duration},r.pan)}var n=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,r.zoom):this._tryAnimatedPan(t,r.pan);if(n){clearTimeout(this._sizeTimer);return this}}this._resetView(t,i,r.pan&&r.pan.noMoveStart);return this},setZoom:function(t,i){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:i})},zoomIn:function(t,i){t=t||(Ft.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){t=t||(Ft.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var r=this.getZoomScale(i),n=this.getSize().divideBy(2),s=t instanceof E?t:this.latLngToContainerPoint(t),o=s.subtract(n).multiplyBy(1-1/r),a=this.containerPointToLatLng(n.add(o));return this.setView(a,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{};t=t.getBounds?t.getBounds():R(t);var e=B(i.paddingTopLeft||i.padding||[0,0]),r=B(i.paddingBottomRight||i.padding||[0,0]),n=this.getBoundsZoom(t,false,e.add(r));n=typeof i.maxZoom==="number"?Math.min(i.maxZoom,n):n;if(n===Infinity){return{center:t.getCenter(),zoom:n}}var s=r.subtract(e).divideBy(2),o=this.project(t.getSouthWest(),n),a=this.project(t.getNorthEast(),n),l=this.unproject(o.add(a).divideBy(2).add(s),n);return{center:l,zoom:n}},fitBounds:function(t,i){t=R(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){t=B(t).round();i=i||{};if(!t.x&&!t.y){return this.fire("moveend")}if(i.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ie;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!i.noMoveStart){this.fire("movestart")}if(i.animate!==false){di(this._mapPane,"leaflet-pan-anim");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,i,e){e=e||{};if(e.animate===false||!Ft.any3d){return this.setView(t,i,e)}this._stop();var r=this.project(this.getCenter()),n=this.project(t),s=this.getSize(),o=this._zoom;t=$(t);i=i===undefined?o:i;var a=Math.max(s.x,s.y),l=a*this.getZoomScale(o,i),h=n.distanceTo(r)||1,c=1.42,f=c*c;function u(t){var i=t?-1:1,e=t?l:a,r=l*l-a*a+i*f*f*h*h,n=2*e*f*h,s=r/n,o=Math.sqrt(s*s+1)-s;var c=o<1e-9?-18:Math.log(o);return c}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/d(t)}var v=u(0);function g(t){return a*(d(v)/d(v+c*t))}function w(t){return a*(d(v)*m(v+c*t)-p(v))/f}function b(t){return 1-Math.pow(1-t,1.5)}var y=Date.now(),k=(u(1)-v)/c,x=e.duration?1e3*e.duration:1e3*k*.8;function A(){var e=(Date.now()-y)/x,s=b(e)*k;if(e<=1){this._flyToFrame=M(A,this);this._move(this.unproject(r.add(n.subtract(r).multiplyBy(w(s)/h)),o),this.getScaleZoom(a/g(s),o),{flyTo:true})}else{this._move(t,i)._moveEnd(true)}}this._moveStart(true,e.noMoveStart);A.call(this);return this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){t=R(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var i=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var i=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,i){this._enforcingBounds=true;var e=this.getCenter(),r=this._limitCenter(e,this._zoom,R(t));if(!e.equals(r)){this.panTo(r,i)}this._enforcingBounds=false;return this},panInside:function(t,i){i=i||{};var e=B(i.paddingTopLeft||i.padding||[0,0]),r=B(i.paddingBottomRight||i.padding||[0,0]),n=this.project(this.getCenter()),s=this.project(t),o=this.getPixelBounds(),a=I([o.min.add(e),o.max.subtract(r)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=true;var h=s.subtract(a.getCenter());var c=a.extend(s).getSize().subtract(l);n.x+=h.x<0?-c.x:c.x;n.y+=h.y<0?-c.y:c.y;this.panTo(this.unproject(n),i);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=e({animate:false,pan:true},t===true?{animate:true}:t);var i=this.getSize();this._sizeChanged=true;this._lastCenter=null;var r=this.getSize(),s=i.divideBy(2).round(),o=r.divideBy(2).round(),a=s.subtract(o);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:i,newSize:r})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=e({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var i=n(this._handleGeolocationResponse,this),r=n(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(i,r,t)}else{navigator.geolocation.getCurrentPosition(i,r,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var i=t.code,e=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var i=t.coords.latitude,e=t.coords.longitude,r=new D(i,e),n=r.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var o=this.getBoundsZoom(n);this.setView(r,s.maxZoom?Math.min(o,s.maxZoom):o)}var a={latlng:r,bounds:n,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){a[l]=t.coords[l]}}this.fire("locationfound",a)},addHandler:function(t,i){if(!i){return this}var e=this[t]=new i(this);this._handlers.push(e);if(this.options[t]){e.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(i){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();hi(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){z(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){hi(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,i){var e="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),r=li("div",e,i||this._mapPane);if(t){this._panes[t]=r}return r},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter.clone()}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),e=this.unproject(t.getTopRight());return new N(i,e)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=R(t);e=B(e||[0,0]);var r=this.getZoom()||0,n=this.getMinZoom(),s=this.getMaxZoom(),o=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(e),h=I(this.project(a,r),this.project(o,r)).getSize(),c=Ft.any3d?this.options.zoomSnap:1,f=l.x/h.x,u=l.y/h.y,p=i?Math.max(f,u):Math.min(f,u);r=this.getScaleZoom(p,r);if(c){r=Math.round(r/(c/100))*(c/100);r=i?Math.ceil(r/c)*c:Math.floor(r/c)*c}return Math.max(n,Math.min(s,r))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new F(e,e.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;i=i===undefined?this._zoom:i;return e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=i===undefined?this._zoom:i;var r=e.zoom(t*e.scale(i));return isNaN(r)?Infinity:r},project:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.latLngToPoint($(t),i)},unproject:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.pointToLatLng(B(t),i)},layerPointToLatLng:function(t){var i=B(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project($(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng($(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,i){return this.options.crs.distance($(t),$(i))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint($(t)))},mouseEventToContainerPoint:function(t){return Ji(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=oi(t);if(!i){throw new Error("Map container not found.")}else if(i._leaflet_id){throw new Error("Map container is already initialized.")}Ii(i,"scroll",this._onScroll,this);this._containerId=o(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ft.any3d;di(t,"leaflet-container"+(Ft.touch?" leaflet-touch":"")+(Ft.retina?" leaflet-retina":"")+(Ft.ielt9?" leaflet-oldie":"")+(Ft.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=ai(t,"position");if(i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);xi(this._mapPane,new E(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){di(t.markerPane,"leaflet-zoom-hide");di(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,i,e){xi(this._mapPane,new E(0,0));var r=!this._loaded;this._loaded=true;i=this._limitZoom(i);this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,e)._move(t,i)._moveEnd(n);this.fire("viewreset");if(r){this.fire("load")}},_moveStart:function(t,i){if(t){this.fire("zoomstart")}if(!i){this.fire("movestart")}return this},_move:function(t,i,e,r){if(i===undefined){i=this._zoom}var n=this._zoom!==i;this._zoom=i;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!r){if(n||e&&e.pinch){this.fire("zoom",e)}this.fire("move",e)}else if(e&&e.pinch){this.fire("zoom",e)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){z(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){xi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(t){this._targets={};this._targets[o(this._container)]=this;var i=t?Ri:Ii;i(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){i(window,"resize",this._onResize,this)}if(Ft.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){z(this._resizeRequest);this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,i){var e=[],r,n=i==="mouseout"||i==="mouseover",s=t.target||t.srcElement,a=false;while(s){r=this._targets[o(s)];if(r&&(i==="click"||i==="preclick")&&this._draggableMoved(r)){a=true;break}if(r&&r.listens(i,true)){if(n&&!Xi(s,t)){break}e.push(r);if(n){break}}if(s===this._container){break}s=s.parentNode}if(!e.length&&!a&&!n&&this.listens(i,true)){e=[this]}return e},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!this._loaded||i["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(i)){return}var e=t.type;if(e==="mousedown"){ji(i)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,r){if(t.type==="click"){var n=e({},t);n.type="preclick";this._fireDOMEvent(n,n.type,r)}var s=this._findEventTargets(t,i);if(r){var o=[];for(var a=0;a<r.length;a++){if(r[a].listens(i,true)){o.push(r[a])}}s=o.concat(s)}if(!s.length){return}if(i==="contextmenu"){Vi(t)}var l=s[0];var h={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var c=l.getLatLng&&(!l._radius||l._radius<=10);h.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);h.layerPoint=this.containerPointToLayerPoint(h.containerPoint);h.latlng=c?l.getLatLng():this.layerPointToLatLng(h.layerPoint)}for(a=0;a<s.length;a++){s[a].fire(i,h,true);if(h.originalEvent._stopped||s[a].options.bubblingMouseEvents===false&&w(this._mouseEvents,i)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++){this._handlers[t].disable()}},whenReady:function(t,i){if(this._loaded){t.call(i||this,{target:this})}else{this.on("load",t,i)}return this},_getMapPanePos:function(){return Ai(this._mapPane)||new E(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var e=t&&i!==undefined?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return e.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var r=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,i,e){var r=this._getNewPixelOrigin(e,i);return I([this.project(t.getSouthWest(),i)._subtract(r),this.project(t.getNorthWest(),i)._subtract(r),this.project(t.getSouthEast(),i)._subtract(r),this.project(t.getNorthEast(),i)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e){return t}var r=this.project(t,i),n=this.getSize().divideBy(2),s=new F(r.subtract(n),r.add(n)),o=this._getBoundsOffset(s,e,i);if(Math.abs(o.x)<=1&&Math.abs(o.y)<=1){return t}return this.unproject(r.add(o),i)},_limitOffset:function(t,i){if(!i){return t}var e=this.getPixelBounds(),r=new F(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(r,i))},_getBoundsOffset:function(t,i,e){var r=I(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),n=r.min.subtract(t.min),s=r.max.subtract(t.max),o=this._rebound(n.x,-s.x),a=this._rebound(n.y,-s.y);return new E(o,a)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),r=Ft.any3d?this.options.zoomSnap:1;if(r){t=Math.round(t/r)*r}return Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mi(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();if((i&&i.animate)!==true&&!this.getSize().contains(e)){return false}this.panBy(e,i);return true},_createAnimProxy:function(){var t=this._proxy=li("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var i=ri,e=this._proxy.style[i];ki(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(e===this._proxy.style[i]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){hi(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();ki(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom){return true}e=e||{};if(!this._zoomAnimated||e.animate===false||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold){return false}var r=this.getZoomScale(i),n=this._getCenterOffset(t)._divideBy(1-1/r);if(e.animate!==true&&!this.getSize().contains(n)){return false}M((function(){this._moveStart(true,e.noMoveStart||false)._animateZoom(t,i,true)}),this);return true},_animateZoom:function(t,i,e,r){if(!this._mapPane){return}if(e){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=i;di(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:i,noUpdate:r});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(n(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){mi(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function re(t,i){return new ee(t,i)}var ne=C.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;if(i){i.removeControl(this)}this.options.position=t;if(i){i.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),r=t._controlCorners[e];di(i,"leaflet-control");if(e.indexOf("bottom")!==-1){r.insertBefore(i,r.firstChild)}else{r.appendChild(i)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}hi(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var se=function(t){return new ne(t)};ee.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",e=this._controlContainer=li("div",i+"control-container",this._container);function r(r,n){var s=i+r+" "+i+n;t[r+n]=li("div",s,e)}r("top","left");r("top","right");r("bottom","left");r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){hi(this._controlCorners[t])}hi(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var oe=ne.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,i,e,r){return e<r?-1:r<e?1:0}},initialize:function(t,i,e){p(this,e);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var r in t){this._addLayer(t[r],r)}for(r in i){this._addLayer(i[r],r,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++){this._layers[i].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ne.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,i){this._addLayer(t,i);return this._map?this._update():this},addOverlay:function(t,i){this._addLayer(t,i,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(o(t));if(i){this._layers.splice(this._layers.indexOf(i),1)}return this._map?this._update():this},expand:function(){di(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){di(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{mi(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){mi(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=li("div",t),e=this.options.collapsed;i.setAttribute("aria-haspopup",true);Ui(i);Hi(i);var r=this._section=li("section",t+"-list");if(e){this._map.on("click",this.collapse,this);Ii(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var n=this._layersLink=li("a",t+"-toggle",i);n.href="#";n.title="Layers";n.setAttribute("role","button");Ii(n,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){Vi(t);this._expandSafely()}},this);if(!e){this.expand()}this._baseLayersList=li("div",t+"-base",r);this._separator=li("div",t+"-separator",r);this._overlaysList=li("div",t+"-overlays",r);i.appendChild(r)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++){if(this._layers[i]&&o(this._layers[i].layer)===t){return this._layers[i]}}},_addLayer:function(t,i,e){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:i,overlay:e});if(this.options.sortLayers){this._layers.sort(n((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}ci(this._baseLayersList);ci(this._overlaysList);this._layerControlInputs=[];var t,i,e,r,n=0;for(e=0;e<this._layers.length;e++){r=this._layers[e];this._addItem(r);i=i||r.overlay;t=t||!r.overlay;n+=!r.overlay?1:0}if(this.options.hideSingleBase){t=t&&n>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=i&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var i=this._getLayer(o(t.target));var e=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(e){this._map.fire(e,i)}},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>";var r=document.createElement("div");r.innerHTML=e;return r.firstChild},_addItem:function(t){var i=document.createElement("label"),e=this._map.hasLayer(t.layer),r;if(t.overlay){r=document.createElement("input");r.type="checkbox";r.className="leaflet-control-layers-selector";r.defaultChecked=e}else{r=this._createRadioElement("leaflet-base-layers_"+o(this),e)}this._layerControlInputs.push(r);r.layerId=o(t.layer);Ii(r,"click",this._onInputClick,this);var n=document.createElement("span");n.innerHTML=" "+t.name;var s=document.createElement("span");i.appendChild(s);s.appendChild(r);s.appendChild(n);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(i);this._checkDisabledLayers();return i},_onInputClick:function(){if(this._preventClick){return}var t=this._layerControlInputs,i,e;var r=[],n=[];this._handlingClick=true;for(var s=t.length-1;s>=0;s--){i=t[s];e=this._getLayer(i.layerId).layer;if(i.checked){r.push(e)}else if(!i.checked){n.push(e)}}for(s=0;s<n.length;s++){if(this._map.hasLayer(n[s])){this._map.removeLayer(n[s])}}for(s=0;s<r.length;s++){if(!this._map.hasLayer(r[s])){this._map.addLayer(r[s])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,i,e,r=this._map.getZoom();for(var n=t.length-1;n>=0;n--){i=t[n];e=this._getLayer(i.layerId).layer;i.disabled=e.options.minZoom!==undefined&&r<e.options.minZoom||e.options.maxZoom!==undefined&&r>e.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;this._preventClick=true;Ii(t,"click",Vi);this.expand();var i=this;setTimeout((function(){Ri(t,"click",Vi);i._preventClick=false}))}});var ae=function(t,i,e){return new oe(t,i,e)};var le=ne.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=li("div",i+" leaflet-bar"),r=this.options;this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,i+"-in",e,this._zoomIn);this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,i+"-out",e,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,i,e,r,n){var s=li("a",e,r);s.innerHTML=t;s.href="#";s.title=i;s.setAttribute("role","button");s.setAttribute("aria-label",i);Ui(s);Ii(s,"click",Wi);Ii(s,"click",n,this);Ii(s,"click",this._refocusOnMap,this);return s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";mi(this._zoomInButton,i);mi(this._zoomOutButton,i);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){di(this._zoomOutButton,i);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){di(this._zoomInButton,i);this._zoomInButton.setAttribute("aria-disabled","true")}}});ee.mergeOptions({zoomControl:true});ee.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new le;this.addControl(this.zoomControl)}}));var he=function(t){return new le(t)};var ce=ne.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var i="leaflet-control-scale",e=li("div",i),r=this.options;this._addScales(r,i+"-line",e);t.on(r.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){if(t.metric){this._mScale=li("div",i,e)}if(t.imperial){this._iScale=li("div",i,e)}},_update:function(){var t=this._map,i=t.getSize().y/2;var e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i=t*3.2808399,e,r,n;if(i>5280){e=i/5280;r=this._getRoundNum(e);this._updateScale(this._iScale,r+" mi",r/e)}else{n=this._getRoundNum(i);this._updateScale(this._iScale,n+" ft",n/i)}},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px";t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1;return i*e}});var fe=function(t){return new ce(t)};var ue='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var pe=ne.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ft.inlineSvg?ue+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=li("div","leaflet-control-attribution");Ui(this._container);for(var i in t._layers){if(t._layers[i].getAttribution){this.addAttribution(t._layers[i].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var i in this._attributions){if(this._attributions[i]){t.push(i)}}var e=[];if(this.options.prefix){e.push(this.options.prefix)}if(t.length){e.push(t.join(", "))}this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}});ee.mergeOptions({attributionControl:true});ee.addInitHook((function(){if(this.options.attributionControl){(new pe).addTo(this)}}));var de=function(t){return new pe(t)};ne.Layers=oe;ne.Zoom=le;ne.Scale=ce;ne.Attribution=pe;se.layers=ae;se.zoom=he;se.scale=fe;se.attribution=de;var me=C.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});me.addTo=function(t,i){t.addHandler(i,this);return this};var ve={Events:T};var ge=Ft.touch?"touchstart mousedown":"mousedown";var we=j.extend({options:{clickTolerance:3},initialize:function(t,i,e,r){p(this,r);this._element=t;this._dragStartTarget=i||t;this._preventOutline=e},enable:function(){if(this._enabled){return}Ii(this._dragStartTarget,ge,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(we._dragging===this){this.finishDrag(true)}Ri(this._dragStartTarget,ge,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(pi(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(we._dragging===this){this.finishDrag()}return}if(we._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}we._dragging=this;if(this._preventOutline){ji(this._element)}Pi();_i();if(this._moving){return}this.fire("down");var i=t.touches?t.touches[0]:t,e=Si(this._element);this._startPoint=new E(i.clientX,i.clientY);this._startPos=Ai(this._element);this._parentScale=Bi(e);var r=t.type==="mousedown";Ii(document,r?"mousemove":"touchmove",this._onMove,this);Ii(document,r?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,e=new E(i.clientX,i.clientY)._subtract(this._startPoint);if(!e.x&&!e.y){return}if(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance){return}e.x/=this._parentScale.x;e.y/=this._parentScale.y;Vi(t);if(!this._moved){this.fire("dragstart");this._moved=true;di(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}di(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(e);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);xi(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){mi(document.body,"leaflet-dragging");if(this._lastTarget){mi(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Ri(document,"mousemove touchmove",this._onMove,this);Ri(document,"mouseup touchend touchcancel",this._onUp,this);Ci();Li();var i=this._moved&&this._moving;this._moving=false;we._dragging=false;if(i){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}});function be(t,i,e){var r,n=[1,4,2,8],s,o,a,l,h,c,f,u;for(s=0,c=t.length;s<c;s++){t[s]._code=je(t[s],i)}for(a=0;a<4;a++){f=n[a];r=[];for(s=0,c=t.length,o=c-1;s<c;o=s++){l=t[s];h=t[o];if(!(l._code&f)){if(h._code&f){u=Te(h,l,f,i,e);u._code=je(u,i);r.push(u)}r.push(l)}else if(!(h._code&f)){u=Te(h,l,f,i,e);u._code=je(u,i);r.push(u)}}t=r}return t}function ye(t,i){var e,r,n,s,o,a,l,h,c;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Be(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var f=$([0,0]);var u=R(t);var p=u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest());if(p<1700){f=ke(t)}var d=t.length;var m=[];for(e=0;e<d;e++){var v=$(t[e]);m.push(i.project($([v.lat-f.lat,v.lng-f.lng])))}a=l=h=0;for(e=0,r=d-1;e<d;r=e++){n=m[e];s=m[r];o=n.y*s.x-s.y*n.x;l+=(n.x+s.x)*o;h+=(n.y+s.y)*o;a+=o*3}if(a===0){c=m[0]}else{c=[l/a,h/a]}var g=i.unproject(B(c));return $([g.lat+f.lat,g.lng+f.lng])}function ke(t){var i=0;var e=0;var r=0;for(var n=0;n<t.length;n++){var s=$(t[n]);i+=s.lat;e+=s.lng;r++}return $([i/r,e/r])}var xe={__proto__:null,clipPolygon:be,polygonCenter:ye,centroid:ke};function Ae(t,i){if(!i||!t.length){return t.slice()}var e=i*i;t=Pe(t,e);t=Me(t,e);return t}function _e(t,i,e){return Math.sqrt(Se(t,i,e,true))}function Le(t,i,e){return Se(t,i,e)}function Me(t,i){var e=t.length,r=typeof Uint8Array!==undefined+""?Uint8Array:Array,n=new r(e);n[0]=n[e-1]=1;ze(t,n,i,0,e-1);var s,o=[];for(s=0;s<e;s++){if(n[s]){o.push(t[s])}}return o}function ze(t,i,e,r,n){var s=0,o,a,l;for(a=r+1;a<=n-1;a++){l=Se(t[a],t[r],t[n],true);if(l>s){o=a;s=l}}if(s>e){i[o]=1;ze(t,i,e,r,o);ze(t,i,e,o,n)}}function Pe(t,i){var e=[t[0]];for(var r=1,n=0,s=t.length;r<s;r++){if(Ee(t[r],t[n])>i){e.push(t[r]);n=r}}if(n<s-1){e.push(t[s-1])}return e}var Ce;function Oe(t,i,e,r,n){var s=r?Ce:je(t,e),o=je(i,e),a,l,h;Ce=o;while(true){if(!(s|o)){return[t,i]}if(s&o){return false}a=s||o;l=Te(t,i,a,e,n);h=je(l,e);if(a===s){t=l;s=h}else{i=l;o=h}}}function Te(t,i,e,r,n){var s=i.x-t.x,o=i.y-t.y,a=r.min,l=r.max,h,c;if(e&8){h=t.x+s*(l.y-t.y)/o;c=l.y}else if(e&4){h=t.x+s*(a.y-t.y)/o;c=a.y}else if(e&2){h=l.x;c=t.y+o*(l.x-t.x)/s}else if(e&1){h=a.x;c=t.y+o*(a.x-t.x)/s}return new E(h,c,n)}function je(t,i){var e=0;if(t.x<i.min.x){e|=1}else if(t.x>i.max.x){e|=2}if(t.y<i.min.y){e|=4}else if(t.y>i.max.y){e|=8}return e}function Ee(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}function Se(t,i,e,r){var n=i.x,s=i.y,o=e.x-n,a=e.y-s,l=o*o+a*a,h;if(l>0){h=((t.x-n)*o+(t.y-s)*a)/l;if(h>1){n=e.x;s=e.y}else if(h>0){n+=o*h;s+=a*h}}o=t.x-n;a=t.y-s;return r?o*o+a*a:new E(n,s)}function Be(t){return!g(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Fe(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Be(t)}function Ie(t,i){var e,r,n,s,o,a,l,h;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Be(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var c=$([0,0]);var f=R(t);var u=f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest());if(u<1700){c=ke(t)}var p=t.length;var d=[];for(e=0;e<p;e++){var m=$(t[e]);d.push(i.project($([m.lat-c.lat,m.lng-c.lng])))}for(e=0,r=0;e<p-1;e++){r+=d[e].distanceTo(d[e+1])/2}if(r===0){h=d[0]}else{for(e=0,s=0;e<p-1;e++){o=d[e];a=d[e+1];n=o.distanceTo(a);s+=n;if(s>r){l=(s-r)/n;h=[a.x-l*(a.x-o.x),a.y-l*(a.y-o.y)];break}}}var v=i.unproject(B(h));return $([v.lat+c.lat,v.lng+c.lng])}var Ne={__proto__:null,simplify:Ae,pointToSegmentDistance:_e,closestPointOnSegment:Le,clipSegment:Oe,_getEdgeIntersection:Te,_getBitCode:je,_sqClosestPointOnSegment:Se,isFlat:Be,_flat:Fe,polylineCenter:Ie};var Re={project:function(t){return new E(t.lng,t.lat)},unproject:function(t){return new D(t.y,t.x)},bounds:new F([-180,-90],[180,90])};var De={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,r=t.lat*i,n=this.R_MINOR/e,s=Math.sqrt(1-n*n),o=s*Math.sin(r);var a=Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),s/2);r=-e*Math.log(Math.max(a,1e-10));return new E(t.lng*i*e,r)},unproject:function(t){var i=180/Math.PI,e=this.R,r=this.R_MINOR/e,n=Math.sqrt(1-r*r),s=Math.exp(-t.y/e),o=Math.PI/2-2*Math.atan(s);for(var a=0,l=.1,h;a<15&&Math.abs(l)>1e-7;a++){h=n*Math.sin(o);h=Math.pow((1-h)/(1+h),n/2);l=Math.PI/2-2*Math.atan(s*h)-o;o+=l}return new D(o*i,t.x*i/e)}};var $e={__proto__:null,LonLat:Re,Mercator:De,SphericalMercator:H};var Ge=e({},Y,{code:"EPSG:3395",projection:De,transformation:function(){var t=.5/(Math.PI*De.R);return V(t,.5,-t,.5)}()});var Ye=e({},Y,{code:"EPSG:4326",projection:Re,transformation:V(1/180,1,-1/180,.5)});var Ze=e({},G,{projection:Re,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,r=i.lat-t.lat;return Math.sqrt(e*e+r*r)},infinite:true});G.Earth=Y;G.EPSG3395=Ge;G.EPSG3857=W;G.EPSG900913=Q;G.EPSG4326=Ye;G.Simple=Ze;var He=j.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[o(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[o(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(!i.hasLayer(this)){return}this._map=i;this._zoomAnimated=i._zoomAnimated;if(this.getEvents){var e=this.getEvents();i.on(e,this);this.once("remove",(function(){i.off(e,this)}),this)}this.onAdd(i);this.fire("add");i.fire("layeradd",{layer:this})}});ee.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var i=o(t);if(this._layers[i]){return this}this._layers[i]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var i=o(t);if(!this._layers[i]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[i];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers){t.call(i,this._layers[e])}return this},_addLayers:function(t){t=t?g(t)?t:[t]:[];for(var i=0,e=t.length;i<e;i++){this.addLayer(t[i])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[o(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var i=o(t);if(this._zoomBoundLayers[i]){delete this._zoomBoundLayers[i];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,i=-Infinity,e=this._getZoomSpan();for(var r in this._zoomBoundLayers){var n=this._zoomBoundLayers[r].options;t=n.minZoom===undefined?t:Math.min(t,n.minZoom);i=n.maxZoom===undefined?i:Math.max(i,n.maxZoom)}this._layersMaxZoom=i===-Infinity?undefined:i;this._layersMinZoom=t===Infinity?undefined:t;if(e!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Ue=He.extend({initialize:function(t,i){p(this,i);this._layers={};var e,r;if(t){for(e=0,r=t.length;e<r;e++){this.addLayer(t[e])}}},addLayer:function(t){var i=this.getLayerId(t);this._layers[i]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[i]){this._map.removeLayer(this._layers[i])}delete this._layers[i];return this},hasLayer:function(t){var i=typeof t==="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),e,r;for(e in this._layers){r=this._layers[e];if(r[t]){r[t].apply(r,i)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers){t.call(i,this._layers[e])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}});var Ve=function(t,i){return new Ue(t,i)};var We=Ue.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Ue.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Ue.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new N;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}});var Qe=function(t,i){return new We(t,i)};var Je=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var r=this._createImg(e,i&&i.tagName==="IMG"?i:null);this._setIconStyles(r,t);if(this.options.crossOrigin||this.options.crossOrigin===""){r.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return r},_setIconStyles:function(t,i){var e=this.options;var r=e[i+"Size"];if(typeof r==="number"){r=[r,r]}var n=B(r),s=B(i==="shadow"&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,true));t.className="leaflet-marker-"+i+" "+(e.className||"");if(s){t.style.marginLeft=-s.x+"px";t.style.marginTop=-s.y+"px"}if(n){t.style.width=n.x+"px";t.style.height=n.y+"px"}},_createImg:function(t,i){i=i||document.createElement("img");i.src=t;return i},_getIconUrl:function(t){return Ft.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function qe(t){return new Je(t)}var Ke=Je.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(typeof Ke.imagePath!=="string"){Ke.imagePath=this._detectIconPath()}return(this.options.imagePath||Ke.imagePath)+Je.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,e){var r=i.exec(t);return r&&r[e]};t=i(t,/^url\((['"])?(.+)\1\)$/,2);return t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=li("div","leaflet-default-icon-path",document.body);var i=ai(t,"background-image")||ai(t,"backgroundImage");document.body.removeChild(t);i=this._stripUrl(i);if(i){return i}var e=document.querySelector('link[href$="leaflet.css"]');if(!e){return""}return e.href.substring(0,e.href.length-"leaflet.css".length-1)}});var Xe=me.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new we(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();di(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){mi(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,r=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,s=Ai(i._icon),o=e.getPixelBounds(),a=e.getPixelOrigin();var l=I(o.min._subtract(a).add(n),o.max._subtract(a).subtract(n));if(!l.contains(s)){var h=B((Math.max(l.max.x,s.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,s.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,s.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,s.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(r);e.panBy(h,{animate:false});this._draggable._newPos._add(h);this._draggable._startPos._add(h);xi(i._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){z(this._panRequest);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDrag:function(t){var i=this._marker,e=i._shadow,r=Ai(i._icon),n=i._map.layerPointToLatLng(r);if(e){xi(e,r)}i._latlng=n;t.latlng=n;t.oldLatLng=this._oldLatLng;i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var tr=He.extend({options:{icon:new Ke,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){p(this,i);this._latlng=$(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;this._latlng=$(t);this.update();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var e=t.icon.createIcon(this._icon),r=false;if(e!==this._icon){if(this._icon){this._removeIcon()}r=true;if(t.title){e.title=t.title}if(e.tagName==="IMG"){e.alt=t.alt||""}}di(e,i);if(t.keyboard){e.tabIndex="0";e.setAttribute("role","button")}this._icon=e;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ii(e,"focus",this._panOnFocus,this)}var n=t.icon.createShadow(this._shadow),s=false;if(n!==this._shadow){this._removeShadow();s=true}if(n){di(n,i);n.alt=""}this._shadow=n;if(t.opacity<1){this._updateOpacity()}if(r){this.getPane().appendChild(this._icon)}this._initInteraction();if(n&&s){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ri(this._icon,"focus",this._panOnFocus,this)}hi(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){hi(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){xi(this._icon,t)}if(this._shadow){xi(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(!this.options.interactive){return}di(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Xe){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Xe(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){wi(this._icon,t)}if(this._shadow){wi(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var i=this.options.icon.options;var e=i.iconSize?B(i.iconSize):B(0,0);var r=i.iconAnchor?B(i.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:e.subtract(r)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ir(t,i){return new tr(t,i)}var er=He.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){p(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var rr=er.extend({options:{fill:true,radius:10},initialize:function(t,i){p(this,i);this._latlng=$(t);this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;this._latlng=$(t);this.redraw();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;er.prototype.setStyle.call(this,t);this.setRadius(i);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),r=[t+e,i+e];this._pxBounds=new F(this._point.subtract(r),this._point.add(r))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nr(t,i){return new rr(t,i)}var sr=rr.extend({initialize:function(t,i,r){if(typeof i==="number"){i=e({},r,{radius:i})}p(this,i);this._latlng=$(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:er.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,r=e.options.crs;if(r.distance===Y.distance){var n=Math.PI/180,s=this._mRadius/Y.R/n,o=e.project([i+s,t]),a=e.project([i-s,t]),l=o.add(a).divideBy(2),h=e.unproject(l).lat,c=Math.acos((Math.cos(s*n)-Math.sin(i*n)*Math.sin(h*n))/(Math.cos(i*n)*Math.cos(h*n)))/n;if(isNaN(c)||c===0){c=s/Math.cos(Math.PI/180*i)}this._point=l.subtract(e.getPixelOrigin());this._radius=isNaN(c)?0:l.x-e.project([h,t-c]).x;this._radiusY=l.y-o.y}else{var f=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng);this._radius=this._point.x-e.latLngToLayerPoint(f).x}this._updateBounds()}});function or(t,i,e){return new sr(t,i,e)}var ar=er.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,i){p(this,i);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var i=Infinity,e=null,r=Se,n,s;for(var o=0,a=this._parts.length;o<a;o++){var l=this._parts[o];for(var h=1,c=l.length;h<c;h++){n=l[h-1];s=l[h];var f=r(t,n,s,true);if(f<i){i=f;e=r(t,n,s)}}}if(e){e.distance=Math.sqrt(i)}return e},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Ie(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){i=i||this._defaultShape();t=$(t);i.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new N;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Be(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var i=[],e=Be(t);for(var r=0,n=t.length;r<n;r++){if(e){i[r]=$(t[r]);this._bounds.extend(i[r])}else{i[r]=this._convertLatLngs(t[r])}}return i},_project:function(){var t=new F;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),i=new E(t,t);if(!this._rawPxBounds){return}this._pxBounds=new F([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)])},_projectLatlngs:function(t,i,e){var r=t[0]instanceof D,n=t.length,s,o;if(r){o=[];for(s=0;s<n;s++){o[s]=this._map.latLngToLayerPoint(t[s]);e.extend(o[s])}i.push(o)}else{for(s=0;s<n;s++){this._projectLatlngs(t[s],i,e)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,e,r,n,s,o,a,l;for(e=0,n=0,s=this._rings.length;e<s;e++){l=this._rings[e];for(r=0,o=l.length;r<o-1;r++){a=Oe(l[r],l[r+1],t,r,true);if(!a){continue}i[n]=i[n]||[];i[n].push(a[0]);if(a[1]!==l[r+1]||r===o-2){i[n].push(a[1]);n++}}}},_simplifyPoints:function(){var t=this._parts,i=this.options.smoothFactor;for(var e=0,r=t.length;e<r;e++){t[e]=Ae(t[e],i)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,r,n,s,o,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(e=0,s=this._parts.length;e<s;e++){a=this._parts[e];for(r=0,o=a.length,n=o-1;r<o;n=r++){if(!i&&r===0){continue}if(_e(t,a[n],a[r])<=l){return true}}}return false}});function lr(t,i){return new ar(t,i)}ar._flat=Fe;var hr=ar.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return ye(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=ar.prototype._convertLatLngs.call(this,t),e=i.length;if(e>=2&&i[0]instanceof D&&i[0].equals(i[e-1])){i.pop()}return i},_setLatLngs:function(t){ar.prototype._setLatLngs.call(this,t);if(Be(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Be(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new E(i,i);t=new F(t.min.subtract(e),t.max.add(e));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var r=0,n=this._rings.length,s;r<n;r++){s=be(this._rings[r],t,true);if(s.length){this._parts.push(s)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var i=false,e,r,n,s,o,a,l,h;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(s=0,l=this._parts.length;s<l;s++){e=this._parts[s];for(o=0,h=e.length,a=h-1;o<h;a=o++){r=e[o];n=e[a];if(r.y>t.y!==n.y>t.y&&t.x<(n.x-r.x)*(t.y-r.y)/(n.y-r.y)+r.x){i=!i}}}return i||ar.prototype._containsPoint.call(this,t,true)}});function cr(t,i){return new hr(t,i)}var fr=We.extend({initialize:function(t,i){p(this,i);this._layers={};if(t){this.addData(t)}},addData:function(t){var i=g(t)?t:t.features,e,r,n;if(i){for(e=0,r=i.length;e<r;e++){n=i[e];if(n.geometries||n.geometry||n.features||n.coordinates){this.addData(n)}}return this}var s=this.options;if(s.filter&&!s.filter(t)){return this}var o=ur(t,s);if(!o){return this}o.feature=br(t);o.defaultOptions=o.options;this.resetStyle(o);if(s.onEachFeature){s.onEachFeature(t,o)}return this.addLayer(o)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=e({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){if(t.setStyle){if(typeof i==="function"){i=i(t.feature)}t.setStyle(i)}}});function ur(t,i){var e=t.type==="Feature"?t.geometry:t,r=e?e.coordinates:null,n=[],s=i&&i.pointToLayer,o=i&&i.coordsToLatLng||dr,a,l,h,c;if(!r&&!e){return null}switch(e.type){case"Point":a=o(r);return pr(s,t,a,i);case"MultiPoint":for(h=0,c=r.length;h<c;h++){a=o(r[h]);n.push(pr(s,t,a,i))}return new We(n);case"LineString":case"MultiLineString":l=mr(r,e.type==="LineString"?0:1,o);return new ar(l,i);case"Polygon":case"MultiPolygon":l=mr(r,e.type==="Polygon"?1:2,o);return new hr(l,i);case"GeometryCollection":for(h=0,c=e.geometries.length;h<c;h++){var f=ur({geometry:e.geometries[h],type:"Feature",properties:t.properties},i);if(f){n.push(f)}}return new We(n);case"FeatureCollection":for(h=0,c=e.features.length;h<c;h++){var u=ur(e.features[h],i);if(u){n.push(u)}}return new We(n);default:throw new Error("Invalid GeoJSON object.")}}function pr(t,i,e,r){return t?t(i,e):new tr(e,r&&r.markersInheritOptions&&r)}function dr(t){return new D(t[1],t[0],t[2])}function mr(t,i,e){var r=[];for(var n=0,s=t.length,o;n<s;n++){o=i?mr(t[n],i-1,e):(e||dr)(t[n]);r.push(o)}return r}function vr(t,i){t=$(t);return t.alt!==undefined?[c(t.lng,i),c(t.lat,i),c(t.alt,i)]:[c(t.lng,i),c(t.lat,i)]}function gr(t,i,e,r){var n=[];for(var s=0,o=t.length;s<o;s++){n.push(i?gr(t[s],Be(t[s])?0:i-1,e,r):vr(t[s],r))}if(!i&&e&&n.length>0){n.push(n[0].slice())}return n}function wr(t,i){return t.feature?e({},t.feature,{geometry:i}):br(i)}function br(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var yr={toGeoJSON:function(t){return wr(this,{type:"Point",coordinates:vr(this.getLatLng(),t)})}};tr.include(yr);sr.include(yr);rr.include(yr);ar.include({toGeoJSON:function(t){var i=!Be(this._latlngs);var e=gr(this._latlngs,i?1:0,false,t);return wr(this,{type:(i?"Multi":"")+"LineString",coordinates:e})}});hr.include({toGeoJSON:function(t){var i=!Be(this._latlngs),e=i&&!Be(this._latlngs[0]);var r=gr(this._latlngs,e?2:i?1:0,true,t);if(!i){r=[r]}return wr(this,{type:(e?"Multi":"")+"Polygon",coordinates:r})}});Ue.include({toMultiPoint:function(t){var i=[];this.eachLayer((function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}));return wr(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint"){return this.toMultiPoint(t)}var e=i==="GeometryCollection",r=[];this.eachLayer((function(i){if(i.toGeoJSON){var n=i.toGeoJSON(t);if(e){r.push(n.geometry)}else{var s=br(n);if(s.type==="FeatureCollection"){r.push.apply(r,s.features)}else{r.push(s)}}}}));if(e){return wr(this,{geometries:r,type:"GeometryCollection"})}return{type:"FeatureCollection",features:r}}});function kr(t,i){return new fr(t,i)}var xr=kr;var Ar=He.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t;this._bounds=R(i);p(this,e)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){di(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){hi(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){fi(this._image)}return this},bringToBack:function(){if(this._map){ui(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=R(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var i=this._image=t?this._url:li("img");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=h;i.onmousemove=h;i.onload=n(this.fire,this,"load");i.onerror=n(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=i.src;return}i.src=this._url;i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ki(this._image,e,i)},_reset:function(){var t=this._image,i=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();xi(t,i.min);t.style.width=e.x+"px";t.style.height=e.y+"px"},_updateOpacity:function(){wi(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var _r=function(t,i,e){return new Ar(t,i,e)};var Lr=Ar.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var i=this._image=t?this._url:li("video");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=h;i.onmousemove=h;i.onloadeddata=n(this.fire,this,"load");if(t){var e=i.getElementsByTagName("source");var r=[];for(var s=0;s<e.length;s++){r.push(e[s].src)}this._url=e.length>0?r:[i.src];return}if(!g(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")){i.style["objectFit"]="fill"}i.autoplay=!!this.options.autoplay;i.loop=!!this.options.loop;i.muted=!!this.options.muted;i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var a=li("source");a.src=this._url[o];i.appendChild(a)}}});function Mr(t,i,e){return new Lr(t,i,e)}var zr=Ar.extend({_initImage:function(){var t=this._image=this._url;di(t,"leaflet-image-layer");if(this._zoomAnimated){di(t,"leaflet-zoom-animated")}if(this.options.className){di(t,this.options.className)}t.onselectstart=h;t.onmousemove=h}});function Pr(t,i,e){return new zr(t,i,e)}var Cr=He.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,i){if(t&&(t instanceof D||g(t))){this._latlng=$(t);p(this,i)}else{p(this,t);this._source=i}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){wi(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){wi(this._container,1)}this.bringToFront();if(this.options.interactive){di(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){wi(this._container,0);this._removeTimeout=setTimeout(n(hi,undefined,this._container),200)}else{hi(this._container)}if(this.options.interactive){mi(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=$(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){fi(this._container)}return this},bringToBack:function(){if(this._map){ui(this._container)}return this},_prepareOpen:function(t){var i=this._source;if(!i._map){return false}if(i instanceof We){i=null;var e=this._source._layers;for(var r in e){if(e[r]._map){i=e[r];break}}if(!i){return false}this._source=i}if(!t){if(i.getCenter){t=i.getCenter()}else if(i.getLatLng){t=i.getLatLng()}else if(i.getBounds){t=i.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var i=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof i==="string"){t.innerHTML=i}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(i)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),i=B(this.options.offset),e=this._getAnchor();if(this._zoomAnimated){xi(this._container,t.add(e))}else{i=i.add(t).add(e)}var r=this._containerBottom=-i.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=r+"px";this._container.style.left=n+"px"},_getAnchor:function(){return[0,0]}});ee.include({_initOverlay:function(t,i,e,r){var n=i;if(!(n instanceof t)){n=new t(r).setContent(i)}if(e){n.setLatLng(e)}return n}});He.include({_initOverlay:function(t,i,e,r){var n=e;if(n instanceof t){p(n,r);n._source=this}else{n=i&&!r?i:new t(r,this);n.setContent(e)}return n}});var Or=Cr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Cr.prototype.openOn.call(this,t)},onAdd:function(t){Cr.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof er)){this._source.on("preclick",Zi)}}},onRemove:function(t){Cr.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof er)){this._source.off("preclick",Zi)}}},getEvents:function(){var t=Cr.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",i=this._container=li("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var e=this._wrapper=li("div",t+"-content-wrapper",i);this._contentNode=li("div",t+"-content",e);Ui(i);Hi(this._contentNode);Ii(i,"contextmenu",Zi);this._tipContainer=li("div",t+"-tip-container",i);this._tip=li("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var r=this._closeButton=li("a",t+"-close-button",i);r.setAttribute("role","button");r.setAttribute("aria-label","Close popup");r.href="#close";r.innerHTML='<span aria-hidden="true">×</span>';Ii(r,"click",(function(t){Vi(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="";i.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth);e=Math.max(e,this.options.minWidth);i.width=e+1+"px";i.whiteSpace="";i.height="";var r=t.offsetHeight,n=this.options.maxHeight,s="leaflet-popup-scrolled";if(n&&r>n){i.height=n+"px";di(t,s)}else{mi(t,s)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();xi(this._container,i.add(e))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,i=parseInt(ai(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,r=this._containerWidth,n=new E(this._containerLeft,-e-this._containerBottom);n._add(Ai(this._container));var s=t.layerPointToContainerPoint(n),o=B(this.options.autoPanPadding),a=B(this.options.autoPanPaddingTopLeft||o),l=B(this.options.autoPanPaddingBottomRight||o),h=t.getSize(),c=0,f=0;if(s.x+r+l.x>h.x){c=s.x+r-h.x+l.x}if(s.x-c-a.x<0){c=s.x-a.x}if(s.y+e+l.y>h.y){f=s.y+e-h.y+l.y}if(s.y-f-a.y<0){f=s.y-a.y}if(c||f){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([c,f])}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var Tr=function(t,i){return new Or(t,i)};ee.mergeOptions({closePopupOnClick:true});ee.include({openPopup:function(t,i,e){this._initOverlay(Or,t,i,e).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});He.include({bindPopup:function(t,i){this._popup=this._initOverlay(Or,this._popup,t,i);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup){if(!(this instanceof We)){this._popup._source=this}if(this._popup._prepareOpen(t||this._latlng)){this._popup.openOn(this._map)}}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}Wi(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof er)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=i;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var jr=Cr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Cr.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Cr.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Cr.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=li("div",i);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e,r=this._map,n=this._container,s=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(t),a=this.options.direction,l=n.offsetWidth,h=n.offsetHeight,c=B(this.options.offset),f=this._getAnchor();if(a==="top"){i=l/2;e=h}else if(a==="bottom"){i=l/2;e=0}else if(a==="center"){i=l/2;e=h/2}else if(a==="right"){i=0;e=h/2}else if(a==="left"){i=l;e=h/2}else if(o.x<s.x){a="right";i=0;e=h/2}else{a="left";i=l+(c.x+f.x)*2;e=h/2}t=t.subtract(B(i,e,true)).add(c).add(f);mi(n,"leaflet-tooltip-right");mi(n,"leaflet-tooltip-left");mi(n,"leaflet-tooltip-top");mi(n,"leaflet-tooltip-bottom");di(n,"leaflet-tooltip-"+a);xi(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){wi(this._container,t)}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Er=function(t,i){return new jr(t,i)};ee.include({openTooltip:function(t,i,e){this._initOverlay(jr,t,i,e).openOn(this);return this},closeTooltip:function(t){t.close();return this}});He.include({bindTooltip:function(t,i){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(jr,this._tooltip,t,i);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){e.mouseover=this._openTooltip;e.mouseout=this.closeTooltip;e.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{e.add=this._addFocusListeners}}else{e.add=this._openTooltip}if(this._tooltip.options.sticky){e.mousemove=this._moveTooltip}this[i](e);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof We)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map);if(this.getElement){this._setAriaDescribedByOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._setAriaDescribedByOnLayer,this)}}}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){if(this.getElement){this._addFocusListenersOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._addFocusListenersOnLayer,this)}},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){Ii(i,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);Ii(i,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){i.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=false;i._openTooltip(t)}));return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var i=t.latlng,e,r;if(this._tooltip.options.sticky&&t.originalEvent){e=this._map.mouseEventToContainerPoint(t.originalEvent);r=this._map.containerPointToLayerPoint(e);i=this._map.layerPointToLatLng(r)}this._tooltip.setLatLng(i)}});var Sr=Je.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),e=this.options;if(e.html instanceof Element){ci(i);i.appendChild(e.html)}else{i.innerHTML=e.html!==false?e.html:""}if(e.bgPos){var r=B(e.bgPos);i.style.backgroundPosition=-r.x+"px "+-r.y+"px"}this._setIconStyles(i,"icon");return i},createShadow:function(){return null}});function Br(t){return new Sr(t)}Je.Default=Ke;var Fr=He.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ft.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();hi(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){fi(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){ui(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof E?t:new E(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var i=this.getPane().children,e=-t(-Infinity,Infinity);for(var r=0,n=i.length,s;r<n;r++){s=i[r].style.zIndex;if(i[r]!==this._container&&s){e=t(e,+s)}}if(isFinite(e)){this.options.zIndex=e+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Ft.ielt9){return}wi(this._container,this.options.opacity);var t=+new Date,i=false,e=false;for(var r in this._tiles){var n=this._tiles[r];if(!n.current||!n.loaded){continue}var s=Math.min(1,(t-n.loaded)/200);wi(n.el,s);if(s<1){i=true}else{if(n.active){e=true}else{this._onOpaqueTile(n)}n.active=true}}if(e&&!this._noPrune){this._pruneTiles()}if(i){z(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}},_onOpaqueTile:h,_initContainer:function(){if(this._container){return}this._container=li("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t===undefined){return undefined}for(var e in this._levels){e=Number(e);if(this._levels[e].el.children.length||e===t){this._levels[e].el.style.zIndex=i-Math.abs(t-e);this._onUpdateLevel(e)}else{hi(this._levels[e].el);this._removeTilesAtZoom(e);this._onRemoveLevel(e);delete this._levels[e]}}var r=this._levels[t],n=this._map;if(!r){r=this._levels[t]={};r.el=li("div","leaflet-tile-container leaflet-zoom-animated",this._container);r.el.style.zIndex=i;r.origin=n.project(n.unproject(n.getPixelOrigin()),t).round();r.zoom=t;this._setZoomTransform(r,n.getCenter(),n.getZoom());this._onCreateLevel(r)}this._level=r;return r},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(!this._map){return}var t,i;var e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){i=this._tiles[t];i.retain=i.current}for(t in this._tiles){i=this._tiles[t];if(i.current&&!i.active){var r=i.coords;if(!this._retainParent(r.x,r.y,r.z,r.z-5)){this._retainChildren(r.x,r.y,r.z,r.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles){if(this._tiles[i].coords.z!==t){continue}this._removeTile(i)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){hi(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,i,e,r){var n=Math.floor(t/2),s=Math.floor(i/2),o=e-1,a=new E(+n,+s);a.z=+o;var l=this._tileCoordsToKey(a),h=this._tiles[l];if(h&&h.active){h.retain=true;return true}else if(h&&h.loaded){h.retain=true}if(o>r){return this._retainParent(n,s,o,r)}return false},_retainChildren:function(t,i,e,r){for(var n=2*t;n<2*t+2;n++){for(var s=2*i;s<2*i+2;s++){var o=new E(n,s);o.z=e+1;var a=this._tileCoordsToKey(o),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(e+1<r){this._retainChildren(n,s,e+1,r)}}}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var i=this.options;if(undefined!==i.minNativeZoom&&t<i.minNativeZoom){return i.minNativeZoom}if(undefined!==i.maxNativeZoom&&i.maxNativeZoom<t){return i.maxNativeZoom}return t},_setView:function(t,i,e,r){var n=Math.round(i);if(this.options.maxZoom!==undefined&&n>this.options.maxZoom||this.options.minZoom!==undefined&&n<this.options.minZoom){n=undefined}else{n=this._clampZoom(n)}var s=this.options.updateWhenZooming&&n!==this._tileZoom;if(!r||s){this._tileZoom=n;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(n!==undefined){this._update(t)}if(!e){this._pruneTiles()}this._noPrune=!!e}this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels){this._setZoomTransform(this._levels[e],t,i)}},_setZoomTransform:function(t,i,e){var r=this._map.getZoomScale(e,t.zoom),n=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(i,e)).round();if(Ft.any3d){ki(t.el,n,r)}else{xi(t.el,n)}},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),r=this._tileZoom;var n=this._map.getPixelWorldBounds(this._tileZoom);if(n){this._globalTileRange=this._pxBoundsToTileRange(n)}this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],r).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],r).x/e.y)];this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],r).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],r).y/e.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),r=i.getZoomScale(e,this._tileZoom),n=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(r*2);return new F(n.subtract(s),n.add(s))},_update:function(t){var i=this._map;if(!i){return}var e=this._clampZoom(i.getZoom());if(t===undefined){t=i.getCenter()}if(this._tileZoom===undefined){return}var r=this._getTiledPixelBounds(t),n=this._pxBoundsToTileRange(r),s=n.getCenter(),o=[],a=this.options.keepBuffer,l=new F(n.getBottomLeft().subtract([a,-a]),n.getTopRight().add([a,-a]));if(!(isFinite(n.min.x)&&isFinite(n.min.y)&&isFinite(n.max.x)&&isFinite(n.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var h in this._tiles){var c=this._tiles[h].coords;if(c.z!==this._tileZoom||!l.contains(new E(c.x,c.y))){this._tiles[h].current=false}}if(Math.abs(e-this._tileZoom)>1){this._setView(t,e);return}for(var f=n.min.y;f<=n.max.y;f++){for(var u=n.min.x;u<=n.max.x;u++){var p=new E(u,f);p.z=this._tileZoom;if(!this._isValidTile(p)){continue}var d=this._tiles[this._tileCoordsToKey(p)];if(d){d.current=true}else{o.push(p)}}}o.sort((function(t,i){return t.distanceTo(s)-i.distanceTo(s)}));if(o.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(u=0;u<o.length;u++){this._addTile(o[u],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y)){return false}}if(!this.options.bounds){return true}var r=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),r=t.scaleBy(e),n=r.add(e),s=i.unproject(r,t.z),o=i.unproject(n,t.z);return[s,o]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new N(i[0],i[1]);if(!this.options.noWrap){e=this._map.wrapLatLngBounds(e)}return e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new E(+i[0],+i[1]);e.z=+i[2];return e},_removeTile:function(t){var i=this._tiles[t];if(!i){return}hi(i.el);delete this._tiles[t];this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){di(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px";t.style.height=i.y+"px";t.onselectstart=h;t.onmousemove=h;if(Ft.ielt9&&this.options.opacity<1){wi(t,this.options.opacity)}},_addTile:function(t,i){var e=this._getTilePos(t),r=this._tileCoordsToKey(t);var s=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(s);if(this.createTile.length<2){M(n(this._tileReady,this,t,null,s))}xi(s,e);this._tiles[r]={el:s,coords:t,current:true};i.appendChild(s);this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){if(i){this.fire("tileerror",{error:i,tile:e,coords:t})}var r=this._tileCoordsToKey(t);e=this._tiles[r];if(!e){return}e.loaded=+new Date;if(this._map._fadeAnimated){wi(e.el,0);z(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}else{e.active=true;this._pruneTiles()}if(!i){di(e.el,"leaflet-tile-loaded");this.fire("tileload",{tile:e.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Ft.ielt9||!this._map._fadeAnimated){M(this._pruneTiles,this)}else{setTimeout(n(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new E(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);i.z=t.z;return i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new F(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Ir(t){return new Fr(t)}var Nr=Fr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,i){this._url=t;i=p(this,i);if(i.detectRetina&&Ft.retina&&i.maxZoom>0){i.tileSize=Math.floor(i.tileSize/2);if(!i.zoomReverse){i.zoomOffset++;i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)}else{i.zoomOffset--;i.minZoom=Math.min(i.maxZoom,i.minZoom+1)}i.minZoom=Math.max(0,i.minZoom)}else if(!i.zoomReverse){i.maxZoom=Math.max(i.minZoom,i.maxZoom)}else{i.minZoom=Math.min(i.maxZoom,i.minZoom)}if(typeof i.subdomains==="string"){i.subdomains=i.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){if(this._url===t&&i===undefined){i=true}this._url=t;if(!i){this.redraw()}return this},createTile:function(t,i){var e=document.createElement("img");Ii(e,"load",n(this._tileOnLoad,this,i,e));Ii(e,"error",n(this._tileOnError,this,i,e));if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){e.referrerPolicy=this.options.referrerPolicy}e.alt="";e.src=this.getTileUrl(t);return e},getTileUrl:function(t){var i={r:Ft.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;if(this.options.tms){i["y"]=r}i["-y"]=r}return v(this._url,e(i,this.options))},_tileOnLoad:function(t,i){if(Ft.ielt9){setTimeout(n(t,this,null,i),0)}else{t(null,i)}},_tileOnError:function(t,i,e){var r=this.options.errorTileUrl;if(r&&i.getAttribute("src")!==r){i.src=r}t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,r=this.options.zoomOffset;if(e){t=i-t}return t+r},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){i=this._tiles[t].el;i.onload=h;i.onerror=h;if(!i.complete){i.src=b;var e=this._tiles[t].coords;hi(i);delete this._tiles[t];this.fire("tileabort",{tile:i,coords:e})}}}},_removeTile:function(t){var i=this._tiles[t];if(!i){return}i.el.setAttribute("src",b);return Fr.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(!this._map||e&&e.getAttribute("src")===b){return}return Fr.prototype._tileReady.call(this,t,i,e)}});function Rr(t,i){return new Nr(t,i)}var Dr=Nr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,i){this._url=t;var r=e({},this.defaultWmsParams);for(var n in i){if(!(n in this.options)){r[n]=i[n]}}i=p(this,i);var s=i.detectRetina&&Ft.retina?2:1;var o=this.getTileSize();r.width=o.x*s;r.height=o.y*s;this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code;Nr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,r=I(e.project(i[0]),e.project(i[1])),n=r.min,s=r.max,o=(this._wmsVersion>=1.3&&this._crs===Ye?[n.y,n.x,s.y,s.x]:[n.x,n.y,s.x,s.y]).join(","),a=Nr.prototype.getTileUrl.call(this,t);return a+d(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,i){e(this.wmsParams,t);if(!i){this.redraw()}return this}});function $r(t,i){return new Dr(t,i)}Nr.WMS=Dr;Rr.wms=$r;var Gr=He.extend({options:{padding:.1},initialize:function(t){p(this,t);o(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();di(this._container,"leaflet-zoom-animated")}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),n=this._map.project(this._center,i),s=r.multiplyBy(-e).add(n).subtract(this._map._getNewPixelOrigin(t,i));if(Ft.any3d){ki(this._container,s,e)}else{xi(this._container,s)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new F(e,e.add(i.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Yr=Gr.extend({options:{tolerance:0},getEvents:function(){var t=Gr.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Gr.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ii(t,"mousemove",this._onMouseMove,this);Ii(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Ii(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest);delete this._ctx;hi(this._container);Ri(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var i in this._layers){t=this._layers[i];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gr.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),r=Ft.retina?2:1;xi(i,t.min);i.width=r*e.x;i.height=r*e.y;i.style.width=e.x+"px";i.style.height=e.y+"px";if(Ft.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Gr.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[o(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=i}this._drawLast=i;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order;var e=i.next;var r=i.prev;if(e){e.prev=r}else{this._drawLast=r}if(r){r.next=e}else{this._drawFirst=e}delete t._order;delete this._layers[o(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var i=t.options.dashArray.split(/[, ]+/),e=[],r,n;for(n=0;n<i.length;n++){r=Number(i[n]);if(isNaN(r)){return}e.push(r)}t.options._dashArray=e}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||M(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F;this._redrawBounds.extend(t._pxBounds.min.subtract([i,i]));this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,i=this._redrawBounds;this._ctx.save();if(i){var e=i.getSize();this._ctx.beginPath();this._ctx.rect(i.min.x,i.min.y,e.x,e.y);this._ctx.clip()}this._drawing=true;for(var r=this._drawFirst;r;r=r.next){t=r.layer;if(!i||t._pxBounds&&t._pxBounds.intersects(i)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,i){if(!this._drawing){return}var e,r,n,s,o=t._parts,a=o.length,l=this._ctx;if(!a){return}l.beginPath();for(e=0;e<a;e++){for(r=0,n=o[e].length;r<n;r++){s=o[e][r];l[r?"lineTo":"moveTo"](s.x,s.y)}if(i){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var i=t._point,e=this._ctx,r=Math.max(Math.round(t._radius),1),n=(Math.max(Math.round(t._radiusY),1)||r)/r;if(n!==1){e.save();e.scale(1,n)}e.beginPath();e.arc(i.x,i.y/n,r,0,Math.PI*2,false);if(n!==1){e.restore()}this._fillStroke(e,t)},_fillStroke:function(t,i){var e=i.options;if(e.fill){t.globalAlpha=e.fillOpacity;t.fillStyle=e.fillColor||e.color;t.fill(e.fillRule||"evenodd")}if(e.stroke&&e.weight!==0){if(t.setLineDash){t.setLineDash(i.options&&i.options._dashArray||[])}t.globalAlpha=e.opacity;t.lineWidth=e.weight;t.strokeStyle=e.color;t.lineCap=e.lineCap;t.lineJoin=e.lineJoin;t.stroke()}},_onClick:function(t){var i=this._map.mouseEventToLayerPoint(t),e,r;for(var n=this._drawFirst;n;n=n.next){e=n.layer;if(e.options.interactive&&e._containsPoint(i)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(e)){r=e}}}this._fireEvent(r?[r]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)},_handleMouseOut:function(t){var i=this._hoveredLayer;if(i){mi(this._container,"leaflet-interactive");this._fireEvent([i],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,i){if(this._mouseHoverThrottled){return}var e,r;for(var s=this._drawFirst;s;s=s.next){e=s.layer;if(e.options.interactive&&e._containsPoint(i)){r=e}}if(r!==this._hoveredLayer){this._handleMouseOut(t);if(r){di(this._container,"leaflet-interactive");this._fireEvent([r],t,"mouseover");this._hoveredLayer=r}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(n((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order;if(!i){return}var e=i.next;var r=i.prev;if(e){e.prev=r}else{return}if(r){r.next=e}else if(e){this._drawFirst=e}i.prev=this._drawLast;this._drawLast.next=i;i.next=null;this._drawLast=i;this._requestRedraw(t)},_bringToBack:function(t){var i=t._order;if(!i){return}var e=i.next;var r=i.prev;if(r){r.next=e}else{return}if(e){e.prev=r}else if(r){this._drawLast=r}i.prev=null;i.next=this._drawFirst;this._drawFirst.prev=i;this._drawFirst=i;this._requestRedraw(t)}});function Zr(t){return Ft.canvas?new Yr(t):null}var Hr=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Ur={_initContainer:function(){this._container=li("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Gr.prototype._update.call(this);this.fire("update")},_initPath:function(t){var i=t._container=Hr("shape");di(i,"leaflet-vml-shape "+(this.options.className||""));i.coordsize="1 1";t._path=Hr("path");i.appendChild(t._path);this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i);if(t.options.interactive){t.addInteractiveTarget(i)}},_removePath:function(t){var i=t._container;hi(i);t.removeInteractiveTarget(i);delete this._layers[o(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,r=t.options,n=t._container;n.stroked=!!r.stroke;n.filled=!!r.fill;if(r.stroke){if(!i){i=t._stroke=Hr("stroke")}n.appendChild(i);i.weight=r.weight+"px";i.color=r.color;i.opacity=r.opacity;if(r.dashArray){i.dashStyle=g(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," ")}else{i.dashStyle=""}i.endcap=r.lineCap.replace("butt","flat");i.joinstyle=r.lineJoin}else if(i){n.removeChild(i);t._stroke=null}if(r.fill){if(!e){e=t._fill=Hr("fill")}n.appendChild(e);e.color=r.fillColor||r.color;e.opacity=r.fillOpacity}else if(e){n.removeChild(e);t._fill=null}},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),r=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+r+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){fi(t._container)},_bringToBack:function(t){ui(t._container)}};var Vr=Ft.vml?Hr:J;var Wr=Gr.extend({_initContainer:function(){this._container=Vr("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Vr("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){hi(this._container);Ri(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gr.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;if(!this._svgSize||!this._svgSize.equals(i)){this._svgSize=i;e.setAttribute("width",i.x);e.setAttribute("height",i.y)}xi(e,t.min);e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" "));this.fire("update")},_initPath:function(t){var i=t._path=Vr("path");if(t.options.className){di(i,t.options.className)}if(t.options.interactive){di(i,"leaflet-interactive")}this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){hi(t._path);t.removeInteractiveTarget(t._path);delete this._layers[o(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var i=t._path,e=t.options;if(!i){return}if(e.stroke){i.setAttribute("stroke",e.color);i.setAttribute("stroke-opacity",e.opacity);i.setAttribute("stroke-width",e.weight);i.setAttribute("stroke-linecap",e.lineCap);i.setAttribute("stroke-linejoin",e.lineJoin);if(e.dashArray){i.setAttribute("stroke-dasharray",e.dashArray)}else{i.removeAttribute("stroke-dasharray")}if(e.dashOffset){i.setAttribute("stroke-dashoffset",e.dashOffset)}else{i.removeAttribute("stroke-dashoffset")}}else{i.setAttribute("stroke","none")}if(e.fill){i.setAttribute("fill",e.fillColor||e.color);i.setAttribute("fill-opacity",e.fillOpacity);i.setAttribute("fill-rule",e.fillRule||"evenodd")}else{i.setAttribute("fill","none")}},_updatePoly:function(t,i){this._setPath(t,q(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),r=Math.max(Math.round(t._radiusY),1)||e,n="a"+e+","+r+" 0 1,0 ";var s=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+e*2+",0 "+n+-e*2+",0 ";this._setPath(t,s)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){fi(t._path)},_bringToBack:function(t){ui(t._path)}});if(Ft.vml){Wr.include(Ur)}function Qr(t){return Ft.svg||Ft.vml?new Wr(t):null}ee.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!i){i=this._renderer=this._createRenderer()}if(!this.hasLayer(i)){this.addLayer(i)}return i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var i=this._paneRenderers[t];if(i===undefined){i=this._createRenderer({pane:t});this._paneRenderers[t]=i}return i},_createRenderer:function(t){return this.options.preferCanvas&&Zr(t)||Qr(t)}});var Jr=hr.extend({initialize:function(t,i){hr.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=R(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function qr(t,i){return new Jr(t,i)}Wr.create=Vr;Wr.pointsToPath=q;fr.geometryToLayer=ur;fr.coordsToLatLng=dr;fr.coordsToLatLngs=mr;fr.latLngToCoords=vr;fr.latLngsToCoords=gr;fr.getFeature=wr;fr.asFeature=br;ee.mergeOptions({boxZoom:true});var Kr=me.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){Ii(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ri(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){hi(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();_i();Pi();this._startPoint=this._map.mouseEventToContainerPoint(t);Ii(document,{contextmenu:Wi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=li("div","leaflet-zoom-box",this._container);di(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var i=new F(this._point,this._startPoint),e=i.getSize();xi(this._box,i.min);this._box.style.width=e.x+"px";this._box.style.height=e.y+"px"},_finish:function(){if(this._moved){hi(this._box);mi(this._container,"leaflet-crosshair")}Li();Ci();Ri(document,{contextmenu:Wi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var i=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ee.addInitHook("addHandler","boxZoom",Kr);ee.mergeOptions({doubleClickZoom:true});var Xr=me.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),r=i.options.zoomDelta,n=t.originalEvent.shiftKey?e-r:e+r;if(i.options.doubleClickZoom==="center"){i.setZoom(n)}else{i.setZoomAround(t.containerPoint,n)}}});ee.addInitHook("addHandler","doubleClickZoom",Xr);ee.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var tn=me.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new we(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}di(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){mi(this._map._container,"leaflet-grab");mi(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=R(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e);this._times.push(i);this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var i=this._offsetLimit;if(t.x<i.min.x){t.x=this._viscousLimit(t.x,i.min.x)}if(t.y<i.min.y){t.y=this._viscousLimit(t.y,i.min.y)}if(t.x>i.max.x){t.x=this._viscousLimit(t.x,i.max.x)}if(t.y>i.max.y){t.y=this._viscousLimit(t.y,i.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,r=this._draggable._newPos.x,n=(r-i+e)%t+i-e,s=(r+i+e)%t-i-e,o=Math.abs(n+e)<Math.abs(s+e)?n:s;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,e=i.options,r=!e.inertia||t.noInertia||this._times.length<2;i.fire("dragend",t);if(r){i.fire("moveend")}else{this._prunePositions(+new Date);var n=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,o=e.easeLinearity,a=n.multiplyBy(o/s),l=a.distanceTo([0,0]),h=Math.min(e.inertiaMaxSpeed,l),c=a.multiplyBy(h/l),f=h/(e.inertiaDeceleration*o),u=c.multiplyBy(-f/2).round();if(!u.x&&!u.y){i.fire("moveend")}else{u=i._limitOffset(u,i.options.maxBounds);M((function(){i.panBy(u,{duration:f,easeLinearity:o,noMoveStart:true,animate:true})}))}}}});ee.addInitHook("addHandler","dragging",tn);ee.mergeOptions({keyboard:true,keyboardPanDelta:80});var en=me.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}Ii(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Ri(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,r=t.scrollLeft||i.scrollLeft;this._map._container.focus();window.scrollTo(r,e)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},e=this.keyCodes,r,n;for(r=0,n=e.left.length;r<n;r++){i[e.left[r]]=[-1*t,0]}for(r=0,n=e.right.length;r<n;r++){i[e.right[r]]=[t,0]}for(r=0,n=e.down.length;r<n;r++){i[e.down[r]]=[0,t]}for(r=0,n=e.up.length;r<n;r++){i[e.up[r]]=[0,-1*t]}},_setZoomDelta:function(t){var i=this._zoomKeys={},e=this.keyCodes,r,n;for(r=0,n=e.zoomIn.length;r<n;r++){i[e.zoomIn[r]]=t}for(r=0,n=e.zoomOut.length;r<n;r++){i[e.zoomOut[r]]=-t}},_addHooks:function(){Ii(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ri(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var i=t.keyCode,e=this._map,r;if(i in this._panKeys){if(!e._panAnim||!e._panAnim._inProgress){r=this._panKeys[i];if(t.shiftKey){r=B(r).multiplyBy(3)}if(e.options.maxBounds){r=e._limitOffset(B(r),e.options.maxBounds)}if(e.options.worldCopyJump){var n=e.wrapLatLng(e.unproject(e.project(e.getCenter()).add(r)));e.panTo(n)}else{e.panBy(r)}}}else if(i in this._zoomKeys){e.setZoom(e.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i])}else if(i===27&&e._popup&&e._popup.options.closeOnEscapeKey){e.closePopup()}else{return}Wi(t)}});ee.addInitHook("addHandler","keyboard",en);ee.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var rn=me.extend({addHooks:function(){Ii(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Ri(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Ki(t);var e=this._map.options.wheelDebounceTime;this._delta+=i;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var r=Math.max(e-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(n(this._performZoom,this),r);Wi(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),n=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,s=e?Math.ceil(n/e)*e:n,o=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0;this._startTime=null;if(!o){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(i+o)}else{t.setZoomAround(this._lastMousePos,i+o)}}});ee.addInitHook("addHandler","scrollWheelZoom",rn);var nn=600;ee.mergeOptions({tapHold:Ft.touchNative&&Ft.safari&&Ft.mobile,tapTolerance:15});var sn=me.extend({addHooks:function(){Ii(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ri(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var i=t.touches[0];this._startPos=this._newPos=new E(i.clientX,i.clientY);this._holdTimeout=setTimeout(n((function(){this._cancel();if(!this._isTapValid()){return}Ii(document,"touchend",Vi);Ii(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",i)}),this),nn);Ii(document,"touchend touchcancel contextmenu",this._cancel,this);Ii(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Ri(document,"touchend",Vi);Ri(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Ri(document,"touchend touchcancel contextmenu",this._cancel,this);Ri(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new E(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var e=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});e._simulated=true;i.target.dispatchEvent(e)}});ee.addInitHook("addHandler","tapHold",sn);ee.mergeOptions({touchZoom:Ft.touch,bounceAtZoomLimits:true});var on=me.extend({addHooks:function(){di(this._map._container,"leaflet-touch-zoom");Ii(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mi(this._map._container,"leaflet-touch-zoom");Ri(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming){return}var e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2);this._startLatLng=i.containerPointToLatLng(this._centerPoint);if(i.options.touchZoom!=="center"){this._pinchStartLatLng=i.containerPointToLatLng(e.add(r)._divideBy(2))}this._startDist=e.distanceTo(r);this._startZoom=i.getZoom();this._moved=false;this._zooming=true;i._stop();Ii(document,"touchmove",this._onTouchMove,this);Ii(document,"touchend touchcancel",this._onTouchEnd,this);Vi(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),s=e.distanceTo(r)/this._startDist;this._zoom=i.getScaleZoom(s,this._startZoom);if(!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)){this._zoom=i._limitZoom(this._zoom)}if(i.options.touchZoom==="center"){this._center=this._startLatLng;if(s===1){return}}else{var o=e._add(r)._divideBy(2)._subtract(this._centerPoint);if(s===1&&o.x===0&&o.y===0){return}this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}if(!this._moved){i._moveStart(true,false);this._moved=true}z(this._animRequest);var a=n(i._move,i,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=M(a,this,true);Vi(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;z(this._animRequest);Ri(document,"touchmove",this._onTouchMove,this);Ri(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});ee.addInitHook("addHandler","touchZoom",on);ee.BoxZoom=Kr;ee.DoubleClickZoom=Xr;ee.Drag=tn;ee.Keyboard=en;ee.ScrollWheelZoom=rn;ee.TapHold=sn;ee.TouchZoom=on;t.Bounds=F;t.Browser=Ft;t.CRS=G;t.Canvas=Yr;t.Circle=sr;t.CircleMarker=rr;t.Class=C;t.Control=ne;t.DivIcon=Sr;t.DivOverlay=Cr;t.DomEvent=te;t.DomUtil=Fi;t.Draggable=we;t.Evented=j;t.FeatureGroup=We;t.GeoJSON=fr;t.GridLayer=Fr;t.Handler=me;t.Icon=Je;t.ImageOverlay=Ar;t.LatLng=D;t.LatLngBounds=N;t.Layer=He;t.LayerGroup=Ue;t.LineUtil=Ne;t.Map=ee;t.Marker=tr;t.Mixin=ve;t.Path=er;t.Point=E;t.PolyUtil=xe;t.Polygon=hr;t.Polyline=ar;t.Popup=Or;t.PosAnimation=ie;t.Projection=$e;t.Rectangle=Jr;t.Renderer=Gr;t.SVG=Wr;t.SVGOverlay=zr;t.TileLayer=Nr;t.Tooltip=jr;t.Transformation=U;t.Util=P;t.VideoOverlay=Lr;t.bind=n;t.bounds=I;t.canvas=Zr;t.circle=or;t.circleMarker=nr;t.control=se;t.divIcon=Br;t.extend=e;t.featureGroup=Qe;t.geoJSON=kr;t.geoJson=xr;t.gridLayer=Ir;t.icon=qe;t.imageOverlay=_r;t.latLng=$;t.latLngBounds=R;t.layerGroup=Ve;t.map=re;t.marker=ir;t.point=B;t.polygon=cr;t.polyline=lr;t.popup=Tr;t.rectangle=qr;t.setOptions=p;t.stamp=o;t.svg=Qr;t.svgOverlay=Pr;t.tileLayer=Rr;t.tooltip=Er;t.transformation=V;t.version=i;t.videoOverlay=Mr;var an=window.L;t.noConflict=function(){window.L=an;return this};window.L=t}))}));!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){const t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(i,e,r,n,s){var o=e||new L.Point(0,0);if(!n)return e=o._round(),t.setTransform.apply(this,arguments);o=o.rotateFrom(n,s),i.style[L.DomUtil.TRANSFORM]="translate3d("+o.x+"px,"+o.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(i,e,r,n,s){if(!r)return t.setPosition.apply(this,arguments);i._leaflet_pos=e,L.Browser.any3d?L.DomUtil.setTransform(i,e,s,r,n):(i.style.left=e.x+"px",i.style.top=e.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,i){if(!t)return this;var e=Math.sin(t),r=Math.cos(t),n=i.x,s=i.y,o=this.x-n,a=this.y-s;return new L.Point(o*r-a*e+n,o*e+a*r+s)}});const i=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(i.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(i._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),e=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(e).add(t))}}});const e=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(e._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var i=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(i);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(i))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,i=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,r=this._containerWidth,n=new L.Point(this._containerLeft,-e-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var s=n._add(this._map._getMapPanePos()),o=L.point(this.options.autoPanPadding),a=L.point(this.options.autoPanPaddingTopLeft||o),l=L.point(this.options.autoPanPaddingBottomRight||o),h=t.getSize(),c=0,f=0;s.x+r+l.x>h.x&&(c=s.x+r-h.x+l.x),s.x-c-a.x<0&&(c=s.x-a.x),s.y+e+l.y>h.y&&(f=s.y+e-h.y+l.y),s.y-f-a.y<0&&(f=s.y-a.y),(c||f)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,f]))}}});const r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);i=this._map.rotatedPointToMapPanePoint(i),this._setPosition(i)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,i){var e=this.options,r=e[i+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),s=L.point("shadow"===i&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=s.x+"px "+s.y+"px 0px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}});const n=L.extend({},L.Marker.prototype);var s;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var o={_onDrag:function(t){var i=this._marker,e=i.options.rotation||i.options.rotateWithView,r=i._shadow,n=L.DomUtil.getPosition(i._icon);!e&&r&&L.DomUtil.setPosition(r,n),i._map._rotate&&(n=i._map.mapPanePointToRotatedPoint(n));var s=i._map.layerPointToLatLng(n);i._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e?i.setLatLng(s):i.fire("move",t),i.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),s._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(s=s||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:o._onDrag.bind(this.dragging),_onDragEnd:o._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var i=this.options.rotation||0;this.options.rotateWithView&&(i+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,i,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,i,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});const a=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=a.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):a._getTiledPixelBounds.apply(this,arguments)}});const l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(t,i){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var e=this._map.getZoomScale(i,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,i,t);L.DomUtil.setTransform(this._container,r,e)},_update:function(){if(!this._map._rotate)return l._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});const h=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,i){i.rotate&&(this._rotate=!0,this._bearing=0),h.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):h.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):h.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&h.mapBoundsToContainerBounds)return h.mapBoundsToContainerBounds.apply(this,arguments);const i=this.getPixelOrigin(),e=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(i)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(i)),n=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(i)),s=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(i));return L.bounds([L.point(Math.min(e.x,r.x,s.x,n.x),Math.min(e.y,r.y,s.y,n.y)),L.point(Math.max(e.x,r.x,s.x,n.x),Math.max(e.y,r.y,s.y,n.y))])},getBounds:function(){if(!this._rotate)return h.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var i=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,e=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,e),n=r.rotateFrom(i,e);L.DomUtil.setPosition(this._rotatePane,r,i,e),this._pivot=e,this._bearing=i,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside(t,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return h.panInside.apply(this,arguments);i=i||{};const e=L.point(i.paddingTopLeft||i.padding||[0,0]),r=L.point(i.paddingBottomRight||i.padding||[0,0]),n=this._container.getBoundingClientRect(),s=this.latLngToContainerPoint(t),o=L.bounds([L.point(n),L.point(n).add(this.getSize())]),a=o.getCenter(),l=L.bounds([o.min.add(e),o.max.subtract(r)]),c=l.getSize();if(!l.contains(s)){this._enforcingBounds=!0;const t=s.subtract(l.getCenter()),e=l.extend(s).getSize().subtract(c);a.x+=t.x<0?-e.x:e.x,a.y+=t.y<0?-e.y:e.y,this.panTo(this.containerPointToLatLng(a),i),this._enforcingBounds=!1}return this},getBoundsZoom(t,i,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return h.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),e=L.point(e||[0,0]);let r=this.getZoom()||0;const n=this.getMinZoom(),s=this.getMaxZoom(),o=this.getSize().subtract(e),a=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,c=o.x/a.x,f=o.y/a.y,u=i?Math.max(c,f):Math.min(c,f);return r=this.getScaleZoom(u,r),l&&(r=Math.round(r/(l/100))*(l/100),r=i?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(s,r))},_getCenterOffset:function(t){var i=h._getCenterOffset.apply(this,arguments);return this._rotate&&(i=i.rotate(this._bearing)),i},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,i){if(!this._rotate)return h._getNewPixelOrigin.apply(this,arguments);var e=this.getSize()._divideBy(2);return this.project(t,i).rotate(this._bearing)._subtract(e)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,i){if(t=t||this.getCenter(),i=i||this.getZoom(),!this._rotate&&h._getNewPixelBounds)return h._getNewPixelBounds.apply(this,arguments);var e=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(e,i),n=this.project(t,i).floor(),s=this.getSize(),o=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([s.x,0]).floor(),this.containerPointToLayerPoint([0,s.y]).floor(),this.containerPointToLayerPoint([s.x,s.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(o),n.add(o))},_getPixelCenter:function(){return!this._rotate&&h._getPixelCenter?h._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&h._getPaddedPixelBounds)return h._getPaddedPixelBounds.apply(this,arguments);var i=t,e=this.getSize(),r=e.multiplyBy(-i),n=e.multiplyBy(1+i);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,e=t.coords.longitude,r=t.coords.heading,n=new L.LatLng(i,e),s=n.toBounds(t.coords.accuracy),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(s);this.setView(n,o.maxZoom?Math.min(a,o.maxZoom):a)}var l={latlng:n,bounds:s,timestamp:t.timestamp,heading:r};for(var h in t.coords)"number"==typeof t.coords[h]&&(l[h]=t.coords[h]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var i=t.webkitCompassHeading||t.alpha,e=0;!t.absolute&&t.webkitCompassHeading&&(i=360-i),t.absolute||void 0===window.orientation||(e=window.orientation),this._map.setBearing(i-e)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming&&!this._rotating){var e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),n=e.subtract(r);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(r)._divideBy(2))),this._startDist=e.distanceTo(r),this._startZoom=i.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=i.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,i._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var i,e=this._map,r=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=r.subtract(n),o=r.distanceTo(n)/this._startDist;if(this._rotating){var a=(Math.atan(s.x/s.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;s.y<0&&(a+=180),a&&e.setBearing(this._startBearing-a)}if(this._zooming)if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{if(i=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===o&&0===i.x&&0===i.y)return;var l=-e.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=e.unproject(e.project(this._pinchStartLatLng).subtract(i.rotate(l)))}this._moved||(e._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var h=e._move.bind(e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(h,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var i=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),e=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");e.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",e.style.cursor="grab",e.style.display="block",e.style.width="100%",e.style.height="100%",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",i);return r.appendChild(e),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(i.style.display="none"),i},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var i=t.clientX-this.dragstartX;this._map.setBearing(i)}},_cycleState:function(t){if(this._map){var i=this._map;i.touchRotate.enabled()||i.compassBearing.enabled()?i.compassBearing.enabled()?(i.compassBearing.disable(),i.setBearing(0),this.options.closeOnZeroBearing&&i.touchRotate.enable()):(i.touchRotate.disable(),i.compassBearing.enable()):i.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,i=t.getBearing();this._arrow.style.transform="rotate("+i+"deg)",i&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===i&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));T((function(t,i){
|
|
7
|
+
/*!
|
|
8
|
+
Copyright (c) 2016 Dominik Moritz
|
|
9
|
+
|
|
10
|
+
This file is part of the leaflet locate control. It is licensed under the MIT license.
|
|
11
|
+
You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
|
|
12
|
+
*/
|
|
13
|
+
(function(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(S)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,r)=>{r=r.split(" ");r.forEach((function(r){t.DomUtil[i].call(this,e,r)}))};const e=(t,e)=>i("addClass",t,e);const r=(t,e)=>i("removeClass",t,e);const n=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const r=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const r=t.weight;const n=e+r;const s=n*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${n} -${n} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=n.extend({initialize(i,e,r){t.Util.setOptions(this,r);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const r=t.width+t.weight;const n=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${r},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}" version="1.1" viewBox="-${r/2} 0 ${r} ${n}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});const o=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:s,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback(i,e){const r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);r.title=e.strings.title;r.href="#";r.setAttribute("role","button");const n=t.DomUtil.create(e.iconElementTag,e.icon,r);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",r);i.textContent=e.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(e.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError(t,i){alert(t.message)},onLocationOutsideMapBounds(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const r=this.options.createButtonCallback(e,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_onClick(){this._justClicked=true;const t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){const i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){const t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;t.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate(){if(this._active||!this._map){return}this._map.locate(this.options.locateOptions);this._map.fire("locateactivate",this);this._active=true;this._map.on("locationfound",this._onLocationFound,this);this._map.on("locationerror",this._onLocationError,this);this._map.on("dragstart",this._onDrag,this);this._map.on("zoomstart",this._onZoom,this);this._map.on("zoomend",this._onZoomEnd,this);if(this.options.showCompass){const i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const r=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass(){if(!this._event){return}const t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){const i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker(){if(this._event.accuracy===undefined){this._event.accuracy=0}const i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,r).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(r)}}let r;let n;if(this.options.metric){r=i.toFixed(0);n=this.options.strings.metersUnit}else{r=(i*3.2808399).toFixed(0);n=this.options.strings.feetUnit}if(this.options.drawMarker){const t=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:n})}else if(typeof s==="function"){return s({distance:r,unit:n})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd(){if(this._event){this._drawCompass()}if(this._event&&!this._ignoreEvent){if(this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}}},_isFollowing(){if(!this._active){return false}if(this.options.setView==="always"){return true}else if(this.options.setView==="untilPan"){return!this._userPanned}else if(this.options.setView==="untilPanOrZoom"){return!this._userPanned&&!this._userZoomed}},_isOutsideMapBounds(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){if(!this._container){return}if(this._active&&!this._event){this._setClasses("requesting")}else if(this._isFollowing()){this._setClasses("following")}else if(this._active){this._setClasses("active")}else{this._cleanClasses()}},_setClasses(t){if(t=="requesting"){r(this._container,"active following");e(this._container,"requesting");r(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");e(this._container,"active");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");e(this._container,"active following");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}},_cleanClasses(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));var B=T((function(t,i){(function(e){var r=i&&!i.nodeType&&i;var n=t&&!t.nodeType&&t;var s=typeof O=="object"&&O;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,l=36,h=1,c=26,f=38,u=700,p=72,d=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-h,k=Math.floor,x=String.fromCharCode,A;function _(t){throw new RangeError(b[t])}function L(t,i){var e=t.length;var r=[];while(e--){r[e]=i(t[e])}return r}function M(t,i){var e=t.split("@");var r="";if(e.length>1){r=e[0]+"@";t=e[1]}t=t.replace(w,".");var n=t.split(".");var s=L(n,i).join(".");return r+s}function z(t){var i=[],e=0,r=t.length,n,s;while(e<r){n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((n&1023)<<10)+(s&1023)+65536)}else{i.push(n);e--}}else{i.push(n)}}return i}function P(t){return L(t,(function(t){var i="";if(t>65535){t-=65536;i+=x(t>>>10&1023|55296);t=56320|t&1023}i+=x(t);return i})).join("")}function C(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function T(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function j(t,i,e){var r=0;t=e?k(t/u):t>>1;t+=k(t/i);for(;t>y*c>>1;r+=l){t=k(t/y)}return k(r+(y+1)*t/(t+f))}function E(t){var i=[],e=t.length,r,n=0,s=d,o=p,f,u,v,g,w,b,y,x,A;f=t.lastIndexOf(m);if(f<0){f=0}for(u=0;u<f;++u){if(t.charCodeAt(u)>=128){_("not-basic")}i.push(t.charCodeAt(u))}for(v=f>0?f+1:0;v<e;){for(g=n,w=1,b=l;;b+=l){if(v>=e){_("invalid-input")}y=C(t.charCodeAt(v++));if(y>=l||y>k((a-n)/w)){_("overflow")}n+=y*w;x=b<=o?h:b>=o+c?c:b-o;if(y<x){break}A=l-x;if(w>k(a/A)){_("overflow")}w*=A}r=i.length+1;o=j(n-g,r,g==0);if(k(n/r)>a-s){_("overflow")}s+=k(n/r);n%=r;i.splice(n++,0,s)}return P(i)}function S(t){var i,e,r,n,s,o,f,u,v,g,w,b=[],y,A,L,M;t=z(t);y=t.length;i=d;e=0;s=p;for(o=0;o<y;++o){w=t[o];if(w<128){b.push(x(w))}}r=n=b.length;if(n){b.push(m)}while(r<y){for(f=a,o=0;o<y;++o){w=t[o];if(w>=i&&w<f){f=w}}A=r+1;if(f-i>k((a-e)/A)){_("overflow")}e+=(f-i)*A;i=f;for(o=0;o<y;++o){w=t[o];if(w<i&&++e>a){_("overflow")}if(w==i){for(u=e,v=l;;v+=l){g=v<=s?h:v>=s+c?c:v-s;if(u<g){break}M=u-g;L=l-g;b.push(x(T(g+M%L,0)));u=k(M/L)}b.push(x(T(u,0)));s=j(e,A,r==n);e=0;++r}}++e;++i}return b.join("")}function B(t){return M(t,(function(t){return v.test(t)?E(t.slice(4).toLowerCase()):t}))}function F(t){return M(t,(function(t){return g.test(t)?"xn--"+S(t):t}))}o={version:"1.4.1",ucs2:{decode:z,encode:P},decode:E,encode:S,toASCII:F,toUnicode:B};if(r&&n){if(t.exports==r){n.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(r[A]=o[A])}}}else{e.punycode=o}})(O)}));var F=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var r=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;i[e]=n;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==n||o.enumerable!==true){return false}}return true};var I=typeof Symbol!=="undefined"&&Symbol;var N=function t(){if(typeof I!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof I("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return F()};var R={foo:{}};var D=Object;var $=function t(){return{__proto__:R}.foo===R.foo&&!({__proto__:null}instanceof D)};var G="Function.prototype.bind called on incompatible ";var Y=Array.prototype.slice;var Z=Object.prototype.toString;var H="[object Function]";var U=function t(i){var e=this;if(typeof e!=="function"||Z.call(e)!==H){throw new TypeError(G+e)}var r=Y.call(arguments,1);var n;var s=function(){if(this instanceof n){var t=e.apply(this,r.concat(Y.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,r.concat(Y.call(arguments)))}};var o=Math.max(0,e.length-r.length);var a=[];for(var l=0;l<o;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var h=function t(){};h.prototype=e.prototype;n.prototype=new h;h.prototype=null}return n};var V=Function.prototype.bind||U;var W=V.call(Function.call,Object.prototype.hasOwnProperty);var Q;var J=SyntaxError;var q=Function;var K=TypeError;var X=function(t){try{return q('"use strict"; return ('+t+").constructor;")()}catch(i){}};var tt=Object.getOwnPropertyDescriptor;var it=function(){throw new K};var et=tt?function(){try{return it}catch(t){try{return tt(arguments,"callee").get}catch(i){return it}}}():it;var rt=N();var nt=$();var st=Object.getPrototypeOf||(nt?function(t){return t.__proto__}:null);var ot={};var at=typeof Uint8Array==="undefined"||!st?Q:st(Uint8Array);var lt={"%AggregateError%":typeof AggregateError==="undefined"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":rt&&st?st([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":ot,"%AsyncGenerator%":ot,"%AsyncGeneratorFunction%":ot,"%AsyncIteratorPrototype%":ot,"%Atomics%":typeof Atomics==="undefined"?Q:Atomics,"%BigInt%":typeof BigInt==="undefined"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?Q:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?Q:FinalizationRegistry,"%Function%":q,"%GeneratorFunction%":ot,"%Int8Array%":typeof Int8Array==="undefined"?Q:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?Q:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rt&&st?st(st([][Symbol.iterator]())):Q,"%JSON%":typeof JSON==="object"?JSON:Q,"%Map%":typeof Map==="undefined"?Q:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!rt||!st?Q:st((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?Q:Promise,"%Proxy%":typeof Proxy==="undefined"?Q:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?Q:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!rt||!st?Q:st((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rt&&st?st(""[Symbol.iterator]()):Q,"%Symbol%":rt?Symbol:Q,"%SyntaxError%":J,"%ThrowTypeError%":et,"%TypedArray%":at,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array==="undefined"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?Q:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?Q:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?Q:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?Q:WeakSet};var ht=function t(i){var e;if(i==="%AsyncFunction%"){e=X("async function () {}")}else if(i==="%GeneratorFunction%"){e=X("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=X("async function* () {}")}else if(i==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");if(r){e=r.prototype}}else if(i==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");if(n&&st){e=st(n.prototype)}}lt[i]=e;return e};var ct={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var ft=V.call(Function.call,Array.prototype.concat);var ut=V.call(Function.apply,Array.prototype.splice);var pt=V.call(Function.call,String.prototype.replace);var dt=V.call(Function.call,String.prototype.slice);var mt=V.call(Function.call,RegExp.prototype.exec);var vt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var gt=/\\(\\)?/g;var wt=function t(i){var e=dt(i,0,1);var r=dt(i,-1);if(e==="%"&&r!=="%"){throw new J("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&e!=="%"){throw new J("invalid intrinsic syntax, expected opening `%`")}var n=[];pt(i,vt,(function(t,i,e,r){n[n.length]=e?pt(r,gt,"$1"):i||t}));return n};var bt=function t(i,e){var r=i;var n;if(W(ct,r)){n=ct[r];r="%"+n[0]+"%"}if(W(lt,r)){var s=lt[r];if(s===ot){s=ht(r)}if(typeof s==="undefined"&&!e){throw new K("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new J("intrinsic "+i+" does not exist!")};var yt=function t(i,e){if(typeof i!=="string"||i.length===0){throw new K("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new K('"allowMissing" argument must be a boolean')}if(mt(/^%?[^%]*%?$/,i)===null){throw new J("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=wt(i);var n=r.length>0?r[0]:"";var s=bt("%"+n+"%",e);var o=s.name;var a=s.value;var l=false;var h=s.alias;if(h){n=h[0];ut(r,ft([0,1],h))}for(var c=1,f=true;c<r.length;c+=1){var u=r[c];var p=dt(u,0,1);var d=dt(u,-1);if((p==='"'||p==="'"||p==="`"||(d==='"'||d==="'"||d==="`"))&&p!==d){throw new J("property names with quotes must have matching quotes")}if(u==="constructor"||!f){l=true}n+="."+u;o="%"+n+"%";if(W(lt,o)){a=lt[o]}else if(a!=null){if(!(u in a)){if(!e){throw new K("base intrinsic for "+i+" exists, but the property is not available.")}return void Q}if(tt&&c+1>=r.length){var m=tt(a,u);f=!!m;if(f&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[u]}}else{f=W(a,u);a=a[u]}if(f&&!l){lt[o]=a}}}return a};var kt=T((function(t){var i=yt("%Function.prototype.apply%");var e=yt("%Function.prototype.call%");var r=yt("%Reflect.apply%",true)||V.call(e,i);var n=yt("%Object.getOwnPropertyDescriptor%",true);var s=yt("%Object.defineProperty%",true);var o=yt("%Math.max%");if(s){try{s({},"a",{value:1})}catch(l){s=null}}t.exports=function t(i){var a=r(V,e,arguments);if(n&&s){var l=n(a,"length");if(l.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return r(V,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var xt=kt(yt("String.prototype.indexOf"));var At=function t(i,e){var r=yt(i,!!e);if(typeof r==="function"&&xt(i,".prototype.")>-1){return kt(r)}return r};const _t={};const Lt=Object.freeze({__proto__:null,default:_t});const Mt=j(Lt);var zt=typeof Map==="function"&&Map.prototype;var Pt=Object.getOwnPropertyDescriptor&&zt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var Ct=zt&&Pt&&typeof Pt.get==="function"?Pt.get:null;var Ot=zt&&Map.prototype.forEach;var Tt=typeof Set==="function"&&Set.prototype;var jt=Object.getOwnPropertyDescriptor&&Tt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Et=Tt&&jt&&typeof jt.get==="function"?jt.get:null;var St=Tt&&Set.prototype.forEach;var Bt=typeof WeakMap==="function"&&WeakMap.prototype;var Ft=Bt?WeakMap.prototype.has:null;var It=typeof WeakSet==="function"&&WeakSet.prototype;var Nt=It?WeakSet.prototype.has:null;var Rt=typeof WeakRef==="function"&&WeakRef.prototype;var Dt=Rt?WeakRef.prototype.deref:null;var $t=Boolean.prototype.valueOf;var Gt=Object.prototype.toString;var Yt=Function.prototype.toString;var Zt=String.prototype.match;var Ht=String.prototype.slice;var Ut=String.prototype.replace;var Vt=String.prototype.toUpperCase;var Wt=String.prototype.toLowerCase;var Qt=RegExp.prototype.test;var Jt=Array.prototype.concat;var qt=Array.prototype.join;var Kt=Array.prototype.slice;var Xt=Math.floor;var ti=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var ii=Object.getOwnPropertySymbols;var ei=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var ri=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var ni=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri?"object":"symbol")?Symbol.toStringTag:null;var si=Object.prototype.propertyIsEnumerable;var oi=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ai(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||Qt.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var r=t<0?-Xt(-t):Xt(t);if(r!==t){var n=String(r);var s=Ht.call(i,n.length+1);return Ut.call(n,e,"$&_")+"."+Ut.call(Ut.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ut.call(i,e,"$&_")}var li=Mt.custom;var hi=yi(li)?li:null;var ci=function t(i,e,r,n){var s=e||{};if(Ai(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(Ai(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=Ai(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(Ai(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(Ai(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Ei(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var l=String(i);return a?ai(i,l):l}if(typeof i==="bigint"){var h=String(i)+"n";return a?ai(i,h):h}var c=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=c&&c>0&&typeof i==="object"){return pi(i)?"[Array]":"[Object]"}var f=Ri(s,r);if(typeof n==="undefined"){n=[]}else if(Mi(n,i)>=0){return"[Circular]"}function u(i,e,o){if(e){n=Kt.call(n);n.push(e)}if(o){var a={depth:s.depth};if(Ai(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,r+1,n)}return t(i,s,r+1,n)}if(typeof i==="function"&&!mi(i)){var p=Li(i);var d=$i(i,u);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(d.length>0?" { "+qt.call(d,", ")+" }":"")}if(yi(i)){var m=ri?Ut.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):ei.call(i);return typeof i==="object"&&!ri?Bi(m):m}if(ji(i)){var v="<"+Wt.call(String(i.nodeName));var g=i.attributes||[];for(var w=0;w<g.length;w++){v+=" "+g[w].name+"="+fi(ui(g[w].value),"double",s)}v+=">";if(i.childNodes&&i.childNodes.length){v+="..."}v+="</"+Wt.call(String(i.nodeName))+">";return v}if(pi(i)){if(i.length===0){return"[]"}var b=$i(i,u);if(f&&!Ni(b)){return"["+Di(b,f)+"]"}return"[ "+qt.call(b,", ")+" ]"}if(vi(i)){var y=$i(i,u);if(!("cause"in Error.prototype)&&"cause"in i&&!si.call(i,"cause")){return"{ ["+String(i)+"] "+qt.call(Jt.call("[cause]: "+u(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+qt.call(y,", ")+" }"}if(typeof i==="object"&&o){if(hi&&typeof i[hi]==="function"&&Mt){return Mt(i,{depth:c-r})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if(zi(i)){var k=[];if(Ot){Ot.call(i,(function(t,e){k.push(u(e,i,true)+" => "+u(t,i))}))}return Ii("Map",Ct.call(i),k,f)}if(Oi(i)){var x=[];if(St){St.call(i,(function(t){x.push(u(t,i))}))}return Ii("Set",Et.call(i),x,f)}if(Pi(i)){return Fi("WeakMap")}if(Ti(i)){return Fi("WeakSet")}if(Ci(i)){return Fi("WeakRef")}if(wi(i)){return Bi(u(Number(i)))}if(ki(i)){return Bi(u(ti.call(i)))}if(bi(i)){return Bi($t.call(i))}if(gi(i)){return Bi(u(String(i)))}if(!di(i)&&!mi(i)){var A=$i(i,u);var _=oi?oi(i)===Object.prototype:i instanceof Object||i.constructor===Object;var L=i instanceof Object?"":"null prototype";var M=!_&&ni&&Object(i)===i&&ni in i?Ht.call(_i(i),8,-1):L?"Object":"";var z=_||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var P=z+(M||L?"["+qt.call(Jt.call([],M||[],L||[]),": ")+"] ":"");if(A.length===0){return P+"{}"}if(f){return P+"{"+Di(A,f)+"}"}return P+"{ "+qt.call(A,", ")+" }"}return String(i)};function fi(t,i,e){var r=(e.quoteStyle||i)==="double"?'"':"'";return r+t+r}function ui(t){return Ut.call(String(t),/"/g,""")}function pi(t){return _i(t)==="[object Array]"&&(!ni||!(typeof t==="object"&&ni in t))}function di(t){return _i(t)==="[object Date]"&&(!ni||!(typeof t==="object"&&ni in t))}function mi(t){return _i(t)==="[object RegExp]"&&(!ni||!(typeof t==="object"&&ni in t))}function vi(t){return _i(t)==="[object Error]"&&(!ni||!(typeof t==="object"&&ni in t))}function gi(t){return _i(t)==="[object String]"&&(!ni||!(typeof t==="object"&&ni in t))}function wi(t){return _i(t)==="[object Number]"&&(!ni||!(typeof t==="object"&&ni in t))}function bi(t){return _i(t)==="[object Boolean]"&&(!ni||!(typeof t==="object"&&ni in t))}function yi(t){if(ri){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!ei){return false}try{ei.call(t);return true}catch(i){}return false}function ki(t){if(!t||typeof t!=="object"||!ti){return false}try{ti.call(t);return true}catch(i){}return false}var xi=Object.prototype.hasOwnProperty||function(t){return t in this};function Ai(t,i){return xi.call(t,i)}function _i(t){return Gt.call(t)}function Li(t){if(t.name){return t.name}var i=Zt.call(Yt.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function Mi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,r=t.length;e<r;e++){if(t[e]===i){return e}}return-1}function zi(t){if(!Ct||!t||typeof t!=="object"){return false}try{Ct.call(t);try{Et.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function Pi(t){if(!Ft||!t||typeof t!=="object"){return false}try{Ft.call(t,Ft);try{Nt.call(t,Nt)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function Ci(t){if(!Dt||!t||typeof t!=="object"){return false}try{Dt.call(t);return true}catch(i){}return false}function Oi(t){if(!Et||!t||typeof t!=="object"){return false}try{Et.call(t);try{Ct.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Ti(t){if(!Nt||!t||typeof t!=="object"){return false}try{Nt.call(t,Nt);try{Ft.call(t,Ft)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function ji(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function Ei(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var r="... "+e+" more character"+(e>1?"s":"");return Ei(Ht.call(t,0,i.maxStringLength),i)+r}var n=Ut.call(Ut.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Si);return fi(n,"single",i)}function Si(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+Vt.call(i.toString(16))}function Bi(t){return"Object("+t+")"}function Fi(t){return t+" { ? }"}function Ii(t,i,e,r){var n=r?Di(e,r):qt.call(e,", ");return t+" ("+i+") {"+n+"}"}function Ni(t){for(var i=0;i<t.length;i++){if(Mi(t[i],"\n")>=0){return false}}return true}function Ri(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=qt.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:qt.call(Array(i+1),e)}}function Di(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+qt.call(t,","+e)+"\n"+i.prev}function $i(t,i){var e=pi(t);var r=[];if(e){r.length=t.length;for(var n=0;n<t.length;n++){r[n]=Ai(t,n)?i(t[n],t):""}}var s=typeof ii==="function"?ii(t):[];var o;if(ri){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var l in t){if(!Ai(t,l)){continue}if(e&&String(Number(l))===l&&l<t.length){continue}if(ri&&o["$"+l]instanceof Symbol){continue}else if(Qt.call(/[^\w$]/,l)){r.push(i(l,t)+": "+i(t[l],t))}else{r.push(l+": "+i(t[l],t))}}if(typeof ii==="function"){for(var h=0;h<s.length;h++){if(si.call(t,s[h])){r.push("["+i(s[h])+"]: "+i(t[s[h]],t))}}}return r}var Gi=yt("%TypeError%");var Yi=yt("%WeakMap%",true);var Zi=yt("%Map%",true);var Hi=At("WeakMap.prototype.get",true);var Ui=At("WeakMap.prototype.set",true);var Vi=At("WeakMap.prototype.has",true);var Wi=At("Map.prototype.get",true);var Qi=At("Map.prototype.set",true);var Ji=At("Map.prototype.has",true);var qi=function(t,i){for(var e=t,r;(r=e.next)!==null;e=r){if(r.key===i){e.next=r.next;r.next=t.next;t.next=r;return r}}};var Ki=function(t,i){var e=qi(t,i);return e&&e.value};var Xi=function(t,i,e){var r=qi(t,i);if(r){r.value=e}else{t.next={key:i,next:t.next,value:e}}};var te=function(t,i){return!!qi(t,i)};var ie=function t(){var i;var e;var r;var n={assert:function(t){if(!n.has(t)){throw new Gi("Side channel does not contain "+ci(t))}},get:function(t){if(Yi&&t&&(typeof t==="object"||typeof t==="function")){if(i){return Hi(i,t)}}else if(Zi){if(e){return Wi(e,t)}}else{if(r){return Ki(r,t)}}},has:function(t){if(Yi&&t&&(typeof t==="object"||typeof t==="function")){if(i){return Vi(i,t)}}else if(Zi){if(e){return Ji(e,t)}}else{if(r){return te(r,t)}}return false},set:function(t,n){if(Yi&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new Yi}Ui(i,t,n)}else if(Zi){if(!e){e=new Zi}Qi(e,t,n)}else{if(!r){r={key:{},next:null}}Xi(r,t,n)}}};return n};var ee=String.prototype.replace;var re=/%20/g;var ne={RFC1738:"RFC1738",RFC3986:"RFC3986"};var se={default:ne.RFC3986,formatters:{RFC1738:function(t){return ee.call(t,re,"+")},RFC3986:function(t){return String(t)}},RFC1738:ne.RFC1738,RFC3986:ne.RFC3986};var oe=Object.prototype.hasOwnProperty;var ae=Array.isArray;var le=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var he=function t(i){while(i.length>1){var e=i.pop();var r=e.obj[e.prop];if(ae(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}e.obj[e.prop]=n}}};var ce=function t(i,e){var r=e&&e.plainObjects?Object.create(null):{};for(var n=0;n<i.length;++n){if(typeof i[n]!=="undefined"){r[n]=i[n]}}return r};var fe=function t(i,e,r){if(!e){return i}if(typeof e!=="object"){if(ae(i)){i.push(e)}else if(i&&typeof i==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!oe.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var n=i;if(ae(i)&&!ae(e)){n=ce(i,r)}if(ae(i)&&ae(e)){e.forEach((function(e,n){if(oe.call(i,n)){var s=i[n];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[n]=t(s,e,r)}else{i.push(e)}}else{i[n]=e}}));return i}return Object.keys(e).reduce((function(i,n){var s=e[n];if(oe.call(i,n)){i[n]=t(i[n],s,r)}else{i[n]=s}return i}),n)};var ue=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var pe=function(t,i,e){var r=t.replace(/\+/g," ");if(e==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var de=function t(i,e,r,n,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(r==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<o.length;++l){var h=o.charCodeAt(l);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||s===se.RFC1738&&(h===40||h===41)){a+=o.charAt(l);continue}if(h<128){a=a+le[h];continue}if(h<2048){a=a+(le[192|h>>6]+le[128|h&63]);continue}if(h<55296||h>=57344){a=a+(le[224|h>>12]+le[128|h>>6&63]+le[128|h&63]);continue}l+=1;h=65536+((h&1023)<<10|o.charCodeAt(l)&1023);a+=le[240|h>>18]+le[128|h>>12&63]+le[128|h>>6&63]+le[128|h&63]}return a};var me=function t(i){var e=[{obj:{o:i},prop:"o"}];var r=[];for(var n=0;n<e.length;++n){var s=e[n];var o=s.obj[s.prop];var a=Object.keys(o);for(var l=0;l<a.length;++l){var h=a[l];var c=o[h];if(typeof c==="object"&&c!==null&&r.indexOf(c)===-1){e.push({obj:o,prop:h});r.push(c)}}}he(e);return i};var ve=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var ge=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var we=function t(i,e){return[].concat(i,e)};var be=function t(i,e){if(ae(i)){var r=[];for(var n=0;n<i.length;n+=1){r.push(e(i[n]))}return r}return e(i)};var ye={arrayToObject:ce,assign:ue,combine:we,compact:me,decode:pe,encode:de,isBuffer:ge,isRegExp:ve,maybeMap:be,merge:fe};var ke=Object.prototype.hasOwnProperty;var xe={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var Ae=Array.isArray;var _e=Array.prototype.push;var Le=function(t,i){_e.apply(t,Ae(i)?i:[i])};var Me=Date.prototype.toISOString;var ze=se["default"];var Pe={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:ye.encode,encodeValuesOnly:false,format:ze,formatter:se.formatters[ze],indices:false,serializeDate:function t(i){return Me.call(i)},skipNulls:false,strictNullHandling:false};var Ce=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var Oe={};var Te=function t(i,e,r,n,s,o,a,l,h,c,f,u,p,d,m,v){var g=i;var w=v;var b=0;var y=false;while((w=w.get(Oe))!==void undefined&&!y){var k=w.get(i);b+=1;if(typeof k!=="undefined"){if(k===b){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof w.get(Oe)==="undefined"){b=0}}if(typeof l==="function"){g=l(e,g)}else if(g instanceof Date){g=f(g)}else if(r==="comma"&&Ae(g)){g=ye.maybeMap(g,(function(t){if(t instanceof Date){return f(t)}return t}))}if(g===null){if(s){return a&&!d?a(e,Pe.encoder,m,"key",u):e}g=""}if(Ce(g)||ye.isBuffer(g)){if(a){var x=d?e:a(e,Pe.encoder,m,"key",u);return[p(x)+"="+p(a(g,Pe.encoder,m,"value",u))]}return[p(e)+"="+p(String(g))]}var A=[];if(typeof g==="undefined"){return A}var _;if(r==="comma"&&Ae(g)){if(d&&a){g=ye.maybeMap(g,a)}_=[{value:g.length>0?g.join(",")||null:void undefined}]}else if(Ae(l)){_=l}else{var L=Object.keys(g);_=h?L.sort(h):L}var M=n&&Ae(g)&&g.length===1?e+"[]":e;for(var z=0;z<_.length;++z){var P=_[z];var C=typeof P==="object"&&typeof P.value!=="undefined"?P.value:g[P];if(o&&C===null){continue}var O=Ae(g)?typeof r==="function"?r(M,P):M:M+(c?"."+P:"["+P+"]");v.set(i,b);var T=ie();T.set(Oe,v);Le(A,t(C,O,r,n,s,o,r==="comma"&&d&&Ae(g)?null:a,l,h,c,f,u,p,d,m,T))}return A};var je=function t(i){if(!i){return Pe}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||Pe.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=se["default"];if(typeof i.format!=="undefined"){if(!ke.call(se.formatters,i.format)){throw new TypeError("Unknown format option provided.")}r=i.format}var n=se.formatters[r];var s=Pe.filter;if(typeof i.filter==="function"||Ae(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:Pe.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?Pe.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:Pe.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?Pe.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:Pe.encode,encoder:typeof i.encoder==="function"?i.encoder:Pe.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:Pe.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:Pe.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:Pe.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:Pe.strictNullHandling}};var Ee=function(t,i){var e=t;var r=je(i);var n;var s;if(typeof r.filter==="function"){s=r.filter;e=s("",e)}else if(Ae(r.filter)){s=r.filter;n=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in xe){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var l=xe[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var h=l==="comma"&&i&&i.commaRoundTrip;if(!n){n=Object.keys(e)}if(r.sort){n.sort(r.sort)}var c=ie();for(var f=0;f<n.length;++f){var u=n[f];if(r.skipNulls&&e[u]===null){continue}Le(o,Te(e[u],u,l,h,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var p=o.join(r.delimiter);var d=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){d+="utf8=%26%2310003%3B&"}else{d+="utf8=%E2%9C%93&"}}return p.length>0?d+p:""};var Se=Object.prototype.hasOwnProperty;var Be=Array.isArray;var Fe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:ye.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Ie=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var Ne=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var Re="utf8=%26%2310003%3B";var De="utf8=%E2%9C%93";var $e=function t(i,e){var r={__proto__:null};var n=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=n.split(e.delimiter,s);var a=-1;var l;var h=e.charset;if(e.charsetSentinel){for(l=0;l<o.length;++l){if(o[l].indexOf("utf8=")===0){if(o[l]===De){h="utf-8"}else if(o[l]===Re){h="iso-8859-1"}a=l;l=o.length}}}for(l=0;l<o.length;++l){if(l===a){continue}var c=o[l];var f=c.indexOf("]=");var u=f===-1?c.indexOf("="):f+1;var p,d;if(u===-1){p=e.decoder(c,Fe.decoder,h,"key");d=e.strictNullHandling?null:""}else{p=e.decoder(c.slice(0,u),Fe.decoder,h,"key");d=ye.maybeMap(Ne(c.slice(u+1),e),(function(t){return e.decoder(t,Fe.decoder,h,"value")}))}if(d&&e.interpretNumericEntities&&h==="iso-8859-1"){d=Ie(d)}if(c.indexOf("[]=")>-1){d=Be(d)?[d]:d}if(Se.call(r,p)){r[p]=ye.combine(r[p],d)}else{r[p]=d}}return r};var Ge=function(t,i,e,r){var n=r?i:Ne(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(n)}else{o=e.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var h=parseInt(l,10);if(!e.parseArrays&&l===""){o={0:n}}else if(!isNaN(h)&&a!==l&&String(h)===l&&h>=0&&(e.parseArrays&&h<=e.arrayLimit)){o=[];o[h]=n}else if(l!=="__proto__"){o[l]=n}}n=o}return n};var Ye=function t(i,e,r,n){if(!i){return}var s=r.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&o.exec(s);var h=l?s.slice(0,l.index):s;var c=[];if(h){if(!r.plainObjects&&Se.call(Object.prototype,h)){if(!r.allowPrototypes){return}}c.push(h)}var f=0;while(r.depth>0&&(l=a.exec(s))!==null&&f<r.depth){f+=1;if(!r.plainObjects&&Se.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}c.push(l[1])}if(l){c.push("["+s.slice(l.index)+"]")}return Ge(c,e,r,n)};var Ze=function t(i){if(!i){return Fe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?Fe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?Fe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:Fe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:Fe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:Fe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:Fe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:Fe.comma,decoder:typeof i.decoder==="function"?i.decoder:Fe.decoder,delimiter:typeof i.delimiter==="string"||ye.isRegExp(i.delimiter)?i.delimiter:Fe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:Fe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:Fe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:Fe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:Fe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:Fe.strictNullHandling}};var He=function(t,i){var e=Ze(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var r=typeof t==="string"?$e(t,e):t;var n=e.plainObjects?Object.create(null):{};var s=Object.keys(r);for(var o=0;o<s.length;++o){var a=s[o];var l=Ye(a,r[a],e,typeof t==="string");n=ye.merge(n,l,e)}if(e.allowSparse===true){return n}return ye.compact(n)};var Ue={formats:se,parse:He,stringify:Ee};function Ve(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var We=/^([a-z0-9.+-]+:)/i,Qe=/:[0-9]*$/,Je=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,qe=["<",">",'"',"`"," ","\r","\n","\t"],Ke=["{","}","|","\\","^","`"].concat(qe),Xe=["'"].concat(Ke),tr=["%","/","?",";","#"].concat(Xe),ir=["/","?","#"],er=255,rr=/^[+a-z0-9A-Z_-]{0,63}$/,nr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sr={javascript:true,"javascript:":true},or={javascript:true,"javascript:":true},ar={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function lr(t,i,e){if(t&&typeof t==="object"&&t instanceof Ve){return t}var r=new Ve;r.parse(t,i,e);return r}Ve.prototype.parse=function(t,i,e){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var r=t.indexOf("?"),n=r!==-1&&r<t.indexOf("#")?"?":"#",s=t.split(n),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(n);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var l=Je.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(i){this.query=Ue.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var h=We.exec(a);if(h){h=h[0];var c=h.toLowerCase();this.protocol=c;a=a.substr(h.length)}if(e||h||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";if(f&&!(h&&or[h])){a=a.substr(2);this.slashes=true}}if(!or[h]&&(f||h&&!ar[h])){var u=-1;for(var p=0;p<ir.length;p++){var d=a.indexOf(ir[p]);if(d!==-1&&(u===-1||d<u)){u=d}}var m,v;if(u===-1){v=a.lastIndexOf("@")}else{v=a.lastIndexOf("@",u)}if(v!==-1){m=a.slice(0,v);a=a.slice(v+1);this.auth=decodeURIComponent(m)}u=-1;for(var p=0;p<tr.length;p++){var d=a.indexOf(tr[p]);if(d!==-1&&(u===-1||d<u)){u=d}}if(u===-1){u=a.length}this.host=a.slice(0,u);a=a.slice(u);this.parseHost();this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var w=this.hostname.split(/\./);for(var p=0,b=w.length;p<b;p++){var y=w[p];if(!y){continue}if(!y.match(rr)){var k="";for(var x=0,A=y.length;x<A;x++){if(y.charCodeAt(x)>127){k+="x"}else{k+=y[x]}}if(!k.match(rr)){var _=w.slice(0,p);var L=w.slice(p+1);var M=y.match(nr);if(M){_.push(M[1]);L.unshift(M[2])}if(L.length){a="/"+L.join(".")+a}this.hostname=_.join(".");break}}}}if(this.hostname.length>er){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!g){this.hostname=B.toASCII(this.hostname)}var z=this.port?":"+this.port:"";var P=this.hostname||"";this.host=P+z;this.href+=this.host;if(g){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!sr[c]){for(var p=0,b=Xe.length;p<b;p++){var C=Xe[p];if(a.indexOf(C)===-1){continue}var O=encodeURIComponent(C);if(O===C){O=escape(C)}a=a.split(C).join(O)}}var T=a.indexOf("#");if(T!==-1){this.hash=a.substr(T);a=a.slice(0,T)}var j=a.indexOf("?");if(j!==-1){this.search=a.substr(j);this.query=a.substr(j+1);if(i){this.query=Ue.parse(this.query)}a=a.slice(0,j)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(ar[c]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var z=this.pathname||"";var E=this.search||"";this.path=z+E}this.href=this.format();return this};function hr(t){if(typeof t==="string"){t=lr(t)}if(!(t instanceof Ve)){return Ve.prototype.format.call(t)}return t.format()}Ve.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",r=this.hash||"",n=false,s="";if(this.host){n=t+this.host}else if(this.hostname){n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){n+=":"+this.port}}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length){s=Ue.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||ar[i])&&n!==false){n="//"+(n||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+n+e+o+r};function cr(t,i){return lr(t,false,true).resolve(i)}Ve.prototype.resolve=function(t){return this.resolveObject(lr(t,false,true)).format()};function fr(t,i){if(!t){return i}return lr(t,false,true).resolveObject(i)}Ve.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new Ve;i.parse(t,false,true);t=i}var e=new Ve;var r=Object.keys(this);for(var n=0;n<r.length;n++){var s=r[n];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var l=o[a];if(l!=="protocol"){e[l]=t[l]}}if(ar[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!ar[t.protocol]){var h=Object.keys(t);for(var c=0;c<h.length;c++){var f=h[c];e[f]=t[f]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!or[t.protocol]){var u=(t.pathname||"").split("/");while(u.length&&!(t.host=u.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(u[0]!==""){u.unshift("")}if(u.length<2){u.unshift("")}e.pathname=u.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var p=e.pathname||"";var d=e.search||"";e.path=p+d}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var m=e.pathname&&e.pathname.charAt(0)==="/",v=t.host||t.pathname&&t.pathname.charAt(0)==="/",g=v||m||e.host&&t.pathname,w=g,b=e.pathname&&e.pathname.split("/")||[],u=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!ar[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(b[0]===""){b[0]=e.host}else{b.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(u[0]===""){u[0]=t.host}else{u.unshift(t.host)}}t.host=null}g=g&&(u[0]===""||b[0]==="")}if(v){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;b=u}else if(u.length){if(!b){b=[]}b.pop();b=b.concat(u);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=b.shift();e.hostname=e.host;var k=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(k){e.auth=k.shift();e.hostname=k.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!b.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var x=b.slice(-1)[0];var A=(e.host||t.host||b.length>1)&&(x==="."||x==="..")||x==="";var _=0;for(var L=b.length;L>=0;L--){x=b[L];if(x==="."){b.splice(L,1)}else if(x===".."){b.splice(L,1);_++}else if(_){b.splice(L,1);_--}}if(!g&&!w){for(;_--;_){b.unshift("..")}}if(g&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")){b.unshift("")}if(A&&b.join("/").substr(-1)!=="/"){b.push("")}var M=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(y){e.hostname=M?"":b.length?b.shift():"";e.host=e.hostname;var k=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(k){e.auth=k.shift();e.hostname=k.shift();e.host=e.hostname}}g=g||e.host&&b.length;if(g&&!M){b.unshift("")}if(b.length>0){e.pathname=b.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};Ve.prototype.parseHost=function(){var t=this.host;var i=Qe.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var ur=lr;var pr=cr;var dr=fr;var mr=hr;var vr=Ve;var gr={parse:ur,resolve:pr,resolveObject:dr,format:mr,Url:vr};!function(t){t()}((function(){const t={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},i=6e4,e=60*i,r=24*e;function n(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=m("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),r=document.body;r.appendChild(e),e.click(),r.removeChild(e)}function o(t,i,e){return t&&(({props:r,point:n,id:s,isMulti:o})=>{if(r)for(const l of t)if(l in r){n.meta[i]=(e||a).call(this,o?r[l][o]:r[l],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),h=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),c=(t,i,e)=>(e?l:h)(t,i),f=(t,i,e)=>i&&h(t,i)||e&&l(t,e),u=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),p=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},d=(t,i,e,r)=>t[r?"on":"off"](i,e),m=(t,i,e,r)=>{let n=L.DomUtil.create(t,i||"");return e&&p(n,e),r&&v(r,n),n},v=(t,i)=>t.appendChild(i),g=(t,i,e)=>t.insertAdjacentElement(e,i),w=(t,i)=>(i||document).querySelector(t),b=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:k,off:x}=L.DomEvent,{throttle:A,wrapNum:_}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,P=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,C=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function O(t,i=[],e=[]){switch(!t||typeof t){case"object":const r=e.filter((i=>t===i.original))[0];if(r)return r.copy;const n=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:n}),Object.getOwnPropertyNames(t).forEach((function(r){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(r)?s.value:O(s.value,i,e)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var T=Object.freeze({__proto__:null,Colors:t,addClass:l,append:v,clamp:P,cloneDeep:O,coordPropsToMeta:o,create:m,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:b,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let n=Math.floor(t/r),s=Math.floor((t-n*r)/e),o=Math.floor((t-n*r-s*e)/i),a=Math.round((t-n*r-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:g,off:x,on:k,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:h,replaceClass:f,resolveURL:n,round:z,saveFile:s,select:w,setAttributes:p,style:u,throttle:A,toggleClass:c,toggleEvent:d,toggleStyle:(t,i,e,r)=>u(t,i,r?e:""),wrapDelta:C,wrapNum:_}),j={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?gr.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?gr.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=(t,i)=>t);const E=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:j,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=w(this.options.elevationDiv),e=this.onAdd(t);i?v(i,e):g(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(this._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){u(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},O(j),i)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],i.trkStart||j.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||j.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=A(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=j.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=j.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){case this.__D3:i="object"!=typeof d3;break;case this.__TOGEOJSON:i="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:i="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:i="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:i="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:i="function"!=typeof L.Hotline}return!1!==i?__sc_import_geotrek_rando_widget(n(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(t.getContainer(),"mousewheel",this._resetDrag,this),x(t.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove")},redraw(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){u(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return b(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return b(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,i,e){let r=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:r,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),r=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),n=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:n}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let i=this._map;i?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){f(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){f(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=t[r]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=n.line||n.area||r,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=n.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((r=>{let n=this._chart=new(r[1]||E).Chart(i,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(n.render()),n.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),k(e.getContainer(),"mousewheel",this._resetDrag,this),k(e.getContainer(),"touchstart",this._resetDrag,this),k(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();c(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),d(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),d(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),i.style.zIndex=625,i.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((t=>{this._marker=new(t[1]||E).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(k(t,"mouseover",this._expand,this),k(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);k(i,"click",L.DomEvent.stop),k(i,"click",this._toggle,this),k(i,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||E).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==E[t]?E[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{b(i,((i,e)=>{let r=i&&Object.keys(i)[0];r&&(t[e]=E[r]=E[r]??i[r])})),b(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:r,wptIcons:n,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let l=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(r){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(r)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(r)&&0!=n)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(l);const i={data:t,layer:l,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),l},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&h(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>c(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let n=toGeoJSON[e](i);return n.name=r.length>0?(Array.from(r).find((t=>"trk"==t.parentElement.tagName))??r[0]).textContent:"",n},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,r,n=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,r=e??this._data[i],e=this._data[i],e[n]=t.pointToAttr.call(this,a,i),i>0&&isNaN(r[n])&&(isNaN(s[n])||isNaN(e[n])?isNaN(s[n])?isNaN(e[n])||(r[n]=e[n]):r[n]=s[n]:r[n]=(s[n]+e[n])/2,t.meta&&(r[t.meta]=r[n])),!isNaN(e[n])){if(s[n]=e[n],t.deltaMax&&(e[n]=C(e[n],r[n],t.deltaMax)),t.clampRange&&(e[n]=P(e[n],t.clampRange)),isNaN(t.decimals)||(e[n]=z(e[n],t.decimals)),t.stats)for(const i in t.stats){let r=(t.statsName||n)+(""!=i?"_":"");this.track_info[r+i]=t.stats[i].call(this,e[n],this.track_info[r+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[n],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:r,deltaMax:n,clampRange:s,decimals:a,meta:l,unit:h,coordinateProperties:c,coordPropsToMeta:f,pointToAttr:u,onPointAdded:p,stats:d,statsName:m,grid:v,scale:g,path:w,tooltip:y,summary:k}=t;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:e,meta:l,deltaMax:n,clampRange:s,decimals:a,coordPropsToMeta:o(c,l||i,f),pointToAttr:u,onPointAdded:p,stats:d,statsName:m}),v&&this._registerAxisGrid(L.extend({name:i},v)),"summary"!==this.options[i]&&(g&&this._registerAxisScale(L.extend({name:i,label:h},g)),w&&this._registerAreaPath(L.extend({name:i},w))),(y||t.tooltips)&&b([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),k&&(b(k,((t,i)=>k[i]=L.extend({unit:h},t))),this._registerSummary(k)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:r}=this.options;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let n=L.marker(t,{icon:r[i]});return e&&(n.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),n.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(n)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=u(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:P(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){this._summary&&(this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",w(".download a",this._summary._container).onclick=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});E.Utils=T,L.control.elevation=t=>new E(t)}));T((function(t,i){!function(t,e){e(i)}(O,(function(t){var i=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var i=t,e=this._zoom;if(t.__parent)for(;i.__parent._zoom>=e;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,i):this._animationAddLayerNonAnimated(t,i)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,i){if(!L.Util.isArray(t))return this.addLayer(t);var e,r=this._featureGroup,n=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,h=0,c=!0;if(this._map){var f=(new Date).getTime(),u=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();h<l;h++){if(s&&h%200==0){var d=(new Date).getTime()-p;if(o<d)break}if((e=t[h])instanceof L.LayerGroup)c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(e,t),l=t.length;else if(e.getLatLng){if(!this.hasLayer(e)&&(this._addLayer(e,this._maxZoom),i||this.fire("layeradd",{layer:e}),e.__parent&&2===e.__parent.getChildCount())){var m=e.__parent.getAllChildMarkers(),v=m[0]===e?m[1]:m[0];r.removeLayer(v)}}else n.addLayer(e),i||this.fire("layeradd",{layer:e})}a&&a(h,l,(new Date).getTime()-f),h===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(u,this.options.chunkDelay)}),this);u()}else for(var p=this._needsClustering;h<l;h++)(e=t[h])instanceof L.LayerGroup?(c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(e,t),l=t.length):e.getLatLng?this.hasLayer(e)||p.push(e):n.addLayer(e);return this},removeLayers:function(t){var i,e,r=t.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):(this._arraySplice(this._needsClustering,e),s.removeLayer(e),this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=r;for(i=0;i<l;i++)(e=a[i])instanceof L.LayerGroup?(this._extractNonGroupLayers(e,a),l=a.length):this._unspiderfyLayer(e)}for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):e.__parent?(this._removeLayer(e,!0,!0),this.fire("layerremove",{layer:e}),n.hasLayer(e)&&(n.removeLayer(e),e.clusterShow&&e.clusterShow())):(s.removeLayer(e),this.fire("layerremove",{layer:e}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var i=this._needsClustering.length-1;0<=i;i--)t.extend(this._needsClustering[i].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,i){var e,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(e=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){e=!1;break}e&&t.call(i,s[r])}this._nonPointGroup.eachLayer(t,i)},getLayers:function(){var t=[];return this.eachLayer((function(i){t.push(i)})),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.eachLayer((function(e){L.stamp(e)===t&&(i=e)})),i},hasLayer:function(t){if(!t)return!1;var i,e=this._needsClustering;for(i=e.length-1;0<=i;i--)if(e[i]===t)return!0;for(i=(e=this._needsRemoving).length-1;0<=i;i--)if(e[i].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,i){var e=this._map;"function"!=typeof i&&(i=function(){});var r=function(){!e.hasLayer(t)&&!e.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),e.hasLayer(t)?i():t.__parent._icon&&(this.once("spiderfied",i,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?i():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var i,e,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,i=0,e=this._needsRemoving.length;i<e;i++)(r=this._needsRemoving[i]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(i=0,e=this._needsRemoving.length;i<e;i++)r=this._needsRemoving[i],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),e=this._needsClustering,this._needsClustering=[],this.addLayers(e,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var i=t;i&&!i._icon;)i=i.__parent;return i||null},_arraySplice:function(t,i){for(var e=t.length-1;0<=e;e--)if(t[e]===i)return t.splice(e,1),!0},_removeFromGridUnclustered:function(t,i){for(var e=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=i&&r[i].removeObject(t,e.project(t.getLatLng(),i));i--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var i=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),i&&t.target.openPopup()}},_moveChild:function(t,i,e){t._latlng=i,this.removeLayer(t),t._latlng=e,this.addLayer(t)},_childMarkerDragEnd:function(t){var i=t.target.__dragStart;delete t.target.__dragStart,i&&this._moveChild(t.target,i,t.target._latlng)},_removeLayer:function(t,i,e){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(t,this._maxZoom);var l,h=t.__parent,c=h._markers;for(this._arraySplice(c,t);h&&(h._childCount--,h._boundsNeedUpdate=!0,!(h._zoom<a));)i&&h._childCount<=1?(l=h._markers[0]===t?h._markers[1]:h._markers[0],r[h._zoom].removeObject(h,o.project(h._cLatLng,h._zoom)),n[h._zoom].addObject(l,o.project(l.getLatLng(),h._zoom)),this._arraySplice(h.__parent._childClusters,h),h.__parent._markers.push(l),l.__parent=h.__parent,h._icon&&(s.removeLayer(h),e||s.addLayer(l))):h._iconNeedsUpdate=!0,h=h.__parent;delete t.__parent},_isOrIsParent:function(t,i){for(;i;){if(t===i)return!0;i=i.parentNode}return!1},fire:function(t,i,e){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,i,e)},listens:function(t,i){return L.FeatureGroup.prototype.listens.call(this,t,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,i)},_defaultIconCreateFunction:function(t){var i=t.getChildCount(),e=" marker-cluster-";return e+=i<10?"small":i<100?"medium":"large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+e,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,i=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(i||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var i=t.layer,e=i;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===e._childClusters.length;)e=e._childClusters[0];e._zoom===this._maxZoom&&e._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,e=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||e||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),i=Math.floor(this._map.getMinZoom()),e=this.options.maxClusterRadius,r=e;"function"!=typeof e&&(r=function(){return e}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;i<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,i-1)},_addLayer:function(t,i){var e,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=i;i--){e=this._map.project(t.getLatLng(),i);var a=n[i].getNearObject(e);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[i].getNearObject(e)){var l=a.__parent;l&&this._removeLayer(a,!1);var h=new this._markerCluster(this,i,a,t);n[i].addObject(h,this._map.project(h._cLatLng,i)),a.__parent=h;var c=t.__parent=h;for(r=i-1;r>l._zoom;r--)c=new this._markerCluster(this,r,c),n[r].addObject(c,this._map.project(a.getLatLng(),r));return l._addChild(c),void this._removeFromGridUnclustered(a,i)}s[i].addObject(t,e)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var i=this._maxLat;return void 0!==i&&(t.getNorth()>=i&&(t._northEast.lat=1/0),t.getSouth()<=-i&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,i){if(i===t)this._featureGroup.addLayer(t);else if(2===i._childCount){i._addToMap();var e=i.getAllChildMarkers();this._featureGroup.removeLayer(e[0]),this._featureGroup.removeLayer(e[1])}else i._updateIcon()},_extractNonGroupLayers:function(t,i){var e,r=t.getLayers(),n=0;for(i=i||[];n<r.length;n++)(e=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(e,i):i.push(e);return i},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,i){this._animationAddLayerNonAnimated(t,i)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,i){var e,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var o,a=s._latlng,l=s._markers;for(r.contains(a)||(a=null),s._isSingleParent()&&t+1===i?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,i,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,i,r)),e=l.length-1;0<=e;e--)o=l[e],r.contains(o._latlng)||n.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,i),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,i,(function(t){t._recursivelyRestoreChildPositions(i)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,i){this._animationZoomOutSingle(this._topClusterLevel,t-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,i){var e=this,r=this._featureGroup;r.addLayer(t),i!==t&&(2<i._childCount?(i._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(i.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),e._animationEnd()}))):(this._forceLayout(),e._animationStart(),e._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,i,e){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,i+1,e);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,e),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,e,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,i+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var e=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,i,e,r){L.Marker.prototype.initialize.call(this,e?e._cLatLng||e.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,e&&this._addChild(e),r&&this._addChild(r)},getAllChildMarkers:function(t,i){t=t||[];for(var e=this._childClusters.length-1;0<=e;e--)this._childClusters[e].getAllChildMarkers(t,i);for(var r=this._markers.length-1;0<=r;r--)i&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var i,e=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<e.length&&s<n;){s++;var a=[];for(i=0;i<e.length;i++)a=a.concat(e[i]._childClusters);e=a}s<n?this._group._map.setView(this._latlng,s):n<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(i||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(i||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,i,e,r,n=this._markers,s=this._childClusters,o=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)e=n[t]._latlng,this._bounds.extend(e),o+=e.lat,a+=e.lng;for(t=0;t<s.length;t++)(i=s[t])._boundsNeedUpdate&&i._recalculateBounds(),this._bounds.extend(i._bounds),e=i._wLatLng,r=i._childCount,o+=e.lat*r,a+=e.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,i,e){this._recursively(t,this._group._map.getMinZoom(),e-1,(function(t){var e,r,n=t._markers;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}),(function(t){var e,r,n=t._childClusters;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,e,r){this._recursively(t,r,i,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),e),n._isSingleParent()&&e-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,i,e)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,i){this._recursively(t,this._group._map.getMinZoom(),i,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,i,e){this._recursively(e,this._group._map.getMinZoom()-1,i,(function(r){if(i!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];e.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(i){i._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var i=this._markers.length-1;0<=i;i--){var e=this._markers[i];e._backupLatlng&&(e.setLatLng(e._backupLatlng),delete e._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,i,e,r){var n,s;this._recursively(t,i-1,e-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,i,e,r,n){var s,o,a=this._childClusters,l=this._zoom;if(i<=l&&(r&&r(this),n&&l===e&&n(this)),l<i||l<e)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,i,e,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,i){var e=this._getCoord(i.x),r=this._getCoord(i.y),n=this._grid,s=n[r]=n[r]||{},o=s[e]=s[e]||[],a=L.Util.stamp(t);this._objectPoint[a]=i,o.push(t)},updateObject:function(t,i){this.removeObject(t),this.addObject(t,i)},removeObject:function(t,i){var e,r,n=this._getCoord(i.x),s=this._getCoord(i.y),o=this._grid,a=o[s]=o[s]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],e=0,r=l.length;e<r;e++)if(l[e]===t)return l.splice(e,1),1===r&&delete a[n],!0},eachObject:function(t,i){var e,r,n,s,o,a,l=this._grid;for(e in l)for(r in o=l[e])for(n=0,s=(a=o[r]).length;n<s;n++)t.call(i,a[n])&&(n--,s--)},getNearObject:function(t){var i,e,r,n,s,o,a,l,h=this._getCoord(t.x),c=this._getCoord(t.y),f=this._objectPoint,u=this._sqCellSize,p=null;for(i=c-1;i<=c+1;i++)if(n=this._grid[i])for(e=h-1;e<=h+1;e++)if(s=n[e])for(r=0,o=s.length;r<o;r++)a=s[r],((l=this._sqDist(f[L.Util.stamp(a)],t))<u||l<=u&&null===p)&&(u=l,p=a);return p},_getCoord:function(t){var i=Math.floor(t/this._cellSize);return isFinite(i)?i:t},_sqDist:function(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}},L.QuickHull={getDistant:function(t,i){var e=i[1].lat-i[0].lat;return(i[0].lng-i[1].lng)*(t.lat-i[0].lat)+e*(t.lng-i[0].lng)},findMostDistantPointFromBaseLine:function(t,i){var e,r,n,s=0,o=null,a=[];for(e=i.length-1;0<=e;e--)r=i[e],0<(n=this.getDistant(r,t))&&(a.push(r),s<n&&(s=n,o=r));return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,i){var e=[],r=this.findMostDistantPointFromBaseLine(t,i);return r.maxPoint?e=(e=e.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var i,e=!1,r=!1,n=!1,s=!1,o=null,a=null,l=null,h=null,c=null,f=null;for(i=t.length-1;0<=i;i--){var u=t[i];(!1===e||u.lat>e)&&(e=(o=u).lat),(!1===r||u.lat<r)&&(r=(a=u).lat),(!1===n||u.lng>n)&&(n=(l=u).lng),(!1===s||u.lng<s)&&(s=(h=u).lng)}return c=r!==e?(f=a,o):(f=h,l),[].concat(this.buildConvexHull([f,c],t),this.buildConvexHull([c,f],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,i,e=this.getAllChildMarkers(),r=[];for(i=e.length-1;0<=i;i--)t=e[i].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,i=this.getAllChildMarkers(null,!0),e=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(i.length,e):i.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(i.length,e):(e.y+=10,this._generatePointsCircle(i.length,e)),this._animationSpiderfy(i,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,i){var e,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,o=[];for(n=Math.max(n,35),o.length=t,e=0;e<t;e++)r=this._circleStartAngle+e*s,o[e]=new L.Point(i.x+n*Math.cos(r),i.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,i){var e,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(e=l.length=t;0<=e;e--)e<t&&(l[e]=new L.Point(i.x+n*Math.cos(a),i.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*e);return l},_noanimationUnspiderfy:function(){var t,i,e=this._group,r=e._map,n=e._featureGroup,s=this.getAllChildMarkers(null,!0);for(e._ignoreMove=!0,this.setOpacity(1),i=s.length-1;0<=i;i--)t=s[i],n.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);e.fire("unspiderfied",{cluster:this,markers:s}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,i){var e,r,n,s,o=this._group,a=o._map,l=o._featureGroup,h=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,e=0;e<t.length;e++)s=a.layerPointToLatLng(i[e]),r=t[e],n=new L.Polyline([this._latlng,s],h),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,i){var e,r,n,s,o,a,l=this,h=this._group,c=h._map,f=h._featureGroup,u=this._latlng,p=c.latLngToLayerPoint(u),d=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),v=m.opacity;for(void 0===v&&(v=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),d?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=v,h._ignoreMove=!0,e=0;e<t.length;e++)r=t[e],a=c.layerPointToLatLng(i[e]),n=new L.Polyline([u,a],m),c.addLayer(n),r._spiderLeg=n,d&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),f.addLayer(r),r._setPos&&r._setPos(p);for(h._forceLayout(),h._animationStart(),e=t.length-1;0<=e;e--)a=c.layerPointToLatLng(i[e]),(r=t[e])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),d&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:v}));this.setOpacity(.3),h._ignoreMove=!1,setTimeout((function(){h._animationEnd(),h.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var i,e,r,n,s,o,a=this,l=this._group,h=l._map,c=l._featureGroup,f=t?h._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):h.latLngToLayerPoint(this._latlng),u=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),e=u.length-1;0<=e;e--)(i=u[e])._preSpiderfyLatlng&&(i.closePopup(),i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng,o=!0,i._setPos&&(i._setPos(f),o=!1),i.clusterHide&&(i.clusterHide(),o=!1),o&&c.removeLayer(i),p&&(s=(n=(r=i._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(e=u.length-1;0<=e;e--)(i=u[e])._spiderLeg&&t++;for(e=u.length-1;0<=e;e--)(i=u[e])._spiderLeg&&(i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),1<t&&c.removeLayer(i),h.removeLayer(i._spiderLeg),delete i._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:u})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var i,e;for(i in t)for(e=t[i].__parent;e;)e._iconNeedsUpdate=!0,e=e.__parent},_refreshSingleMarkerModeMarkers:function(t){var i,e;for(i in t)e=t[i],this.hasLayer(e)&&e.setIcon(this._overrideMarkerIcon(e))}}),L.Marker.include({refreshIconOptions:function(t,i){var e=this.options.icon;return L.setOptions(e,t),this.setIcon(e),i&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=i,t.MarkerCluster=e,Object.defineProperty(t,"__esModule",{value:!0})}))}));function wr(t){return fetch(`${l.api}trek/${t}/?language=${l.language}&published=true&fields=geometry`,{cache:"default"}).then((t=>t.json()))}const br='@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, "")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:"✖";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:"";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:" — "}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:"Roboto";display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container{background-color:var(--color-surface-variant)}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:64px;height:64px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:48px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:8px;border-top-right-radius:8px}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-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}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:64px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}';const yr=class{constructor(e){t(this,e);this.trekCardPress=i(this,"trekCardPress",7);this.touristicContentCardPress=i(this,"touristicContentCardPress",7);this.touristicEventCardPress=i(this,"touristicEventCardPress",7);this.maxZoom=19;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}onCenterOnMap(t){this.map.setView(new S.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}stepsIsInViewport(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}}descriptionIsInViewport(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}touristicContentsIsInViewport(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}}touristicEventsIsInViewport(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}}onCardTrekMouseOver(t){if(!l.parentTrek&&(!l.selectedTrekId||l.selectedTrekId!==t.detail)){l.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(l.parentTrek){this.stepPopupIsOpen=false;l.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){l.selectedStepId=null;this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}componentDidLoad(){this.map=S.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});S.control.scale({metric:true,imperial:false}).addTo(this.map);S.control.locate({showPopup:false}).addTo(this.map);const t=this.nameLayer?this.nameLayer.split(","):[];const i=this.urlLayer.split(",http").map(((t,i)=>i===0?t:"http"+t));const e=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach(((i,r)=>{this.tileLayer.push({key:`${t[r]}`,value:S.tileLayer(i,{maxZoom:this.maxZoom,attribution:`${e[r]&&e[r]!==""?e[r].concat(" | "):""}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=S.control.layers(this.tileLayer.reduce(((t,i)=>Object.assign(t,{[i.key]:i.value})),{}),{},{collapsed:true}).addTo(this.map);S.Control.Contract=S.Control.extend({onAdd:()=>{const t=S.DomUtil.create("div");t.className="leaflet-bar leaflet-control";const i=t.appendChild(S.DomUtil.create("a"));i.href="#";i.style.backgroundImage=`var(--contract-image-src)`;t.onclick=t=>{this.bounds&&this.map.fitBounds(this.bounds);t.preventDefault()};return t}});S.control.contract=t=>new S.Control.Contract(t);S.control.contract({position:"topleft"}).addTo(this.map)}if(l.currentTrek){this.addTrek()}else if(l.currentTreks){this.addTreks()}else if(l.currentTouristicContent){this.addTouristicContent()}else if(l.currentTouristicEvent){this.addTouristicEvent()}else if(l.touristicContents){this.addTouristicContents()}else if(l.touristicEvents){this.addTouristicEvents()}d("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTrek){this.removeTreks();this.addTrek()}else if(l.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));d("currentTrek",(()=>{if(l.currentTrek){this.removeTreks();this.addTrek()}else if(l.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));d("currentTouristicContent",(()=>{if(l.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(l.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(l.currentTrek){this.removeTouristicContent();this.addTrek()}else if(l.currentTreks){this.removeTouristicContent();this.addTreks()}}));d("currentTouristicEvent",(()=>{if(l.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(l.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(l.currentTreks){this.removeTouristicEvent();this.addTreks()}}));d("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(l.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeTouristicContent();this.addTouristicContents(true)}}));d("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(l.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvent();this.addTouristicEvents(true)}}));d("mode",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.mode==="treks"){if(l.treks){this.removeTouristicContents();this.removeTouristicEvents();this.addTreks(true)}}else if(l.mode==="touristicContents"){if(l.touristicContents){this.removeTreks();this.removeTouristicEvents();this.addTouristicContents(true)}}else if(l.mode==="touristicEvents"){if(l.touristicEvents){this.removeTreks();this.removeTouristicContents();this.addTouristicEvents(true)}}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(t=false){var i;l.treksWithinBounds=l.currentTreks;const e=[];const r={type:"FeatureCollection",features:[]};if(l.currentTreks){for(const t of l.currentTreks){e.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=l.practices.find((i=>i.id===t.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.treksLayer){if(e.length>0&&!l.currentMapBounds||t){this.bounds=S.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}this.treksLayer=S.geoJSON(r,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.hideTrekLine();this.showTrekLine(t.properties.id);this.addSelectedCurrentTrek(t.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=S.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>S.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,48]})});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(e.length>0){this.bounds=S.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(l.currentTreks&&!l.currentMapBounds||l.currentTreks&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.treksWithinBounds=l.currentTreks.filter((t=>this.map.getBounds().contains(S.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(l.currentTouristicContents&&!l.currentMapBounds||l.currentTouristicContents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicContentsWithinBounds=l.currentTouristicContents.filter((t=>this.map.getBounds().contains(S.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(l.currentTouristicEvents&&!l.currentMapBounds||l.currentTouristicEvents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicEventsWithinBounds=l.currentTouristicEvents.filter((t=>this.map.getBounds().contains(S.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}addTrek(){var t,i,e,r;this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const n={type:"Feature",geometry:l.currentTrek.geometry,properties:{}};this.currentTrekLayer=S.geoJSON(n,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(l.currentTrek.parking_location){const t={type:"Feature",properties:{},geometry:{type:"Point",coordinates:l.currentTrek.parking_location}};this.currentParkingLayer=S.geoJSON(t,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})})}if(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of l.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=S.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=S.DomUtil.create("div");e.className="sensitive-area-tooltip";const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="sensitive-area-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(l.currentPois&&l.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of l.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=l.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=S.geoJSON(i,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=S.DomUtil.create("div");e.className="poi-tooltip";const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="poi-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(l.trekTouristicContents&&l.trekTouristicContents.length>0){const t={type:"FeatureCollection",features:[]};for(const e of l.trekTouristicContents){t.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=l.touristicContentCategories.find((t=>t.id===e.category)))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})}this.currentToutisticContentsLayer=S.geoJSON(t,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.category_pictogram?`<img src=${t.properties.category_pictogram} />`:`<img />`,className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=S.DomUtil.create("div");e.className="touristic-content-tooltip";const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(l.touristicEvents&&l.touristicEvents.length>0){const t={type:"FeatureCollection",features:[]};for(const i of l.touristicEvents){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=l.touristicEventTypes.find((t=>t.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentToutisticEventsLayer=S.geoJSON(t,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=S.DomUtil.create("div");e.className="touristic-event-tooltip";const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(l.currentInformationDesks&&l.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of l.currentInformationDesks.filter((t=>l.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=S.geoJSON(t,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=S.DomUtil.create("div");e.className="information-desks-tooltip";const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="information-desks-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(l.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:l.currentTrek.points_reference});let i=0;this.currentReferencePointsLayer=S.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return S.marker(e,{icon:S.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&l.parentTrekId&&l.parentTrek&&l.currentTrek.id===l.parentTrekId){const t={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){for(const i of l.currentTrekSteps){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(r=l.practices.find((t=>t.id===i.practice)))===null||r===void 0?void 0:r.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}let i=0;this.currentStepsLayer=S.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return S.marker(e,{zIndexOffset:4e6,icon:S.divIcon({html:`<div class="step-marker-container"><div class="step-number">${i}</div></div>`,className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}const s={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:`custom-theme${!this.useGradient?" use-theme-color":""}`,detached:true,height:250,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:false,time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=S.control.elevation(Object.assign({},s)).addTo(this.map);const a=JSON.stringify({name:`${l.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:l.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(a);const h={};if(this.currentStepsLayer){h[o[l.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){h[o[l.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){h[o[l.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){h[o[l.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){h[o[l.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){h[o[l.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){h[o[l.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){h[o[l.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(h).forEach((t=>{this.layersControl.addOverlay(h[t],t)}))}else{this.layersControl=S.control.layers({},h,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=S.latLngBounds(l.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}addSelectedCurrentTrek(t,i){var e;const r={type:"FeatureCollection",features:[]};if(l.currentTreks){const n=l.currentTreks.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(e=l.practices.find((t=>t.id===n.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();l.selectedTrekId=t;this.selectedCurrentTrekLayer=S.geoJSON(r,{pointToLayer:(t,i)=>S.marker(i,{zIndexOffset:4e6,icon:S.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.trekPopupIsOpen){l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));i.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(l.selectedTrekId)}));i.on("popupclose",(()=>{if(l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){l.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,i){var e;const r={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){const n=l.currentTrekSteps.findIndex((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:l.currentTrekSteps[n].departure_geom},properties:{id:l.currentTrekSteps[n].id,name:l.currentTrekSteps[n].name,practice:(e=l.practices.find((t=>t.id===l.currentTrekSteps[n].practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:l.currentTrekSteps[n].attachments&&l.currentTrekSteps[n].attachments.length>0&&l.currentTrekSteps[n].attachments[0].thumbnail,index:n+1}})}this.removeSelectedCurrentStep();l.selectedStepId=t;this.selectedCurrentStepLayer=S.geoJSON(r,{pointToLayer:(t,i)=>S.marker(i,{zIndexOffset:4e6,icon:S.divIcon({html:`<div class="step-marker-container"><div class="step-number">${t.properties.index}</div></div>`,className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.stepPopupIsOpen){l.selectedTrekId=null;this.removeSelectedCurrentStep()}}));i.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(l.selectedStepId)}));i.on("popupclose",(()=>{if(l.selectedStepId){this.stepPopupIsOpen=false;l.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(l.selectedStepId){l.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{if(this.layersControl._layers.find((i=>i.layer._leaflet_id===t.layerId)).overlay){t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}}))}removeTrek(){if(this.layersControl){if(!this.layersControl._layers.some((t=>!t.overlay))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((t=>t.overlay)).forEach((t=>{this.layersControl.removeLayer(t.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentToutisticEventsLayer){this.map.removeLayer(this.currentToutisticEventsLayer);this.currentToutisticEventsLayer=null}}disconnectedCallback(){if(this.resetStoreOnDisconnected){m()}}showTrekLine(t){wr(t).then((t=>{const i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=S.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}))}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}addTouristicContent(){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(l.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicContent.geometry.coordinates},properties:{id:l.currentTouristicContent.id,name:l.currentTouristicContent.name,practice:l.touristicContentCategories.find((t=>t.id===l.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=S.geoJSON(t,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([l.currentTouristicContent.geometry.coordinates[1],l.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}addTouristicContents(t=false){l.touristicContentsWithinBounds=l.currentTouristicContents;const i=[];const e={type:"FeatureCollection",features:[]};if(l.currentTouristicContents){for(const t of l.currentTouristicContents){i.push(t.geometry.coordinates);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:l.touristicContentCategories.find((i=>i.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticContentsLayer){if(i.length>0&&!l.currentMapBounds||t){this.bounds=S.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}this.toutisticContentsLayer=S.geoJSON(e,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicContent(t.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=S.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>S.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(i.length>0){this.bounds=S.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(e);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)}removeTouristicContents(){if(this.toutisticContentsLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}addTouristicEvent(){const t={type:"FeatureCollection",features:[]};if(l.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicEvent.geometry.coordinates},properties:{id:l.currentTouristicEvent.id,name:l.currentTouristicEvent.name,type:l.touristicEventTypes.find((t=>t.id===l.currentTouristicEvent.type)).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=S.geoJSON(t,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([l.currentTouristicEvent.geometry.coordinates[1],l.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}addSelectedTouristicContent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(l.touristicContents){const n=l.touristicContents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=l.touristicContentCategories.find((t=>t.id===n.category)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();l.selectedTouristicContentId=t;this.selectedTouristicContentLayer=S.geoJSON(r,{pointToLayer:(t,i)=>S.marker(i,{zIndexOffset:4e6,icon:S.divIcon({html:t.properties.category?`<div class="touristic-content-marker-container"><img src=${t.properties.category} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));i.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(l.selectedTouristicContentId)}));i.on("popupclose",(()=>{if(l.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){l.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}addTouristicEvents(t=false){var i;l.touristicEventsWithinBounds=l.currentTouristicEvents;const e=[];const r={type:"FeatureCollection",features:[]};if(l.currentTouristicEvents){for(const t of l.currentTouristicEvents){e.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=l.touristicEventTypes.find((i=>i.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticEventsLayer){if(e.length>0&&!l.currentMapBounds||t){this.bounds=S.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}this.toutisticEventsLayer=S.geoJSON(r,{pointToLayer:(t,i)=>S.marker(i,{icon:S.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicEvent(t.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=S.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>S.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})});this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(e.length>0){this.bounds=S.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)}removeTouristicEvents(){if(this.toutisticEventsLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}addSelectedTouristicEvent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(l.touristicEvents){const n=l.touristicEvents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=l.touristicEventTypes.find((t=>t.id===n.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();l.selectedTouristicEventId=t;this.selectedTouristicEventLayer=S.geoJSON(r,{pointToLayer:(t,i)=>S.marker(i,{zIndexOffset:4e6,icon:S.divIcon({html:t.properties.category?`<div class="touristic-event-marker-container"><img src=${t.properties.category} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=S.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=S.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}const r=S.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=S.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));i.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(l.selectedTouristicEventId)}));i.on("popupclose",(()=>{if(l.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){l.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}render(){const t=n(`${""}assets/layers.svg`);const i=n(`${""}assets/contract.svg`);return e(r,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${t})`,"--contract-image-src":`url(${i})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},e("div",{id:"map",style:{},class:l.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),l.currentTrek&&e("div",null,e("div",{id:"elevation",ref:t=>this.elevationRef=t}),e("div",{class:"map-bottom-space"})),!this.mapIsReady&&e("div",{class:"map-loader-container"},e("span",{class:"loader"})))}};yr.style=br;const kr='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host span{font-size:24px;position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:40px;color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:400;font-family:"Roboto";height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}';const xr=class{constructor(i){t(this,i)}onSearchChange(t){l.searchValue=t.target.value;if(l.mode==="treks"){l.currentTreks=h()}else if(l.mode==="touristicContents"){l.currentTouristicContents=u()}else if(l.mode==="touristicEvents"){l.currentTouristicEvents=p()}}render(){return e(r,null,e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),e("input",{onInput:t=>this.onSearchChange(t),class:"search-input",type:"search",placeholder:"Rechercher",value:l.searchValue}))}};xr.style=kr;const Ar='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';const _r=class{constructor(i){t(this,i)}handleSelect(t){l.treks=null;l.currentTreks=null;l.currentTrek=null;l.language=t.target.value}render(){return e(r,null,e("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),e("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},l.languages.map((t=>e("option",{selected:t===l.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};_r.style=Ar;function Lr({swiper:t,extendParams:i,on:e,emit:r}){const n=b();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});t.mousewheel={enabled:false};let s;let o=k();let a;const l=[];function h(t){const i=10;const e=40;const r=800;let n=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}o=n*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=r;a*=r}}if(o&&!n){n=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:n,spinY:s,pixelX:o,pixelY:a}}function c(){if(!t.enabled)return;t.mouseEntered=true}function f(){if(!t.enabled)return;t.mouseEntered=false}function u(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&k()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&k()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();r("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();r("scroll",i.raw)}o=(new n.Date).getTime();return false}function p(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function d(i){let e=i;let n=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let c=t.el;if(t.params.mousewheel.eventsTarget!=="container"){c=document.querySelector(t.params.mousewheel.eventsTarget)}const f=c&&c.contains(e.target);if(!t.mouseEntered&&!f&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let d=0;const m=t.rtlTranslate?-1:1;const v=h(e);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(v.pixelX)>Math.abs(v.pixelY))d=-v.pixelX*m;else return true}else if(Math.abs(v.pixelY)>Math.abs(v.pixelX))d=-v.pixelY;else return true}else{d=Math.abs(v.pixelX)>Math.abs(v.pixelY)?-v.pixelX*m:-v.pixelY}if(d===0)return true;if(o.invert)d=-d;let g=t.getTranslate()+d*o.sensitivity;if(g>=t.minTranslate())g=t.minTranslate();if(g<=t.maxTranslate())g=t.maxTranslate();n=t.params.loop?true:!(g===t.minTranslate()||g===t.maxTranslate());if(n&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:k(),delta:Math.abs(d),direction:Math.sign(d),raw:i};if(l.length>=2){l.shift()}const e=l.length?l[l.length-1]:undefined;l.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){u(t)}}else{u(t)}if(p(t)){return true}}else{const i={time:k(),delta:Math.abs(d),direction:Math.sign(d)};const n=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!n){a=undefined;let h=t.getTranslate()+d*o.sensitivity;const c=t.isBeginning;const f=t.isEnd;if(h>=t.minTranslate())h=t.minTranslate();if(h<=t.maxTranslate())h=t.maxTranslate();t.setTransition(0);t.setTranslate(h);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!c&&t.isBeginning||!f&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(l.length>=15){l.shift()}const e=l.length?l[l.length-1]:undefined;const r=l[0];l.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){l.splice(0)}else if(l.length>=15&&i.time-r.time<500&&r.delta-i.delta>=1&&i.delta<=6){const e=d>0?.8:.2;a=i;l.splice(0);s=y((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=y((()=>{const e=.5;a=i;l.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!n)r("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(h===t.minTranslate()||h===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function m(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",c);e[i]("mouseleave",f);e[i]("wheel",d)}function v(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",d);return true}if(t.mousewheel.enabled)return false;m("addEventListener");t.mousewheel.enabled=true;return true}function g(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,d);return true}if(!t.mousewheel.enabled)return false;m("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){g()}if(t.params.mousewheel.enabled)v()}));e("destroy",(()=>{if(t.params.cssMode){v()}if(t.mousewheel.enabled)g()}));Object.assign(t.mousewheel,{enable:v,disable:g})}function Mr({swiper:t,extendParams:i,emit:e,once:r}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function n(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:k()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:n,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:l}=t;const h=k();const c=h-l.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(n.freeMode.momentum){if(l.velocities.length>1){const i=l.velocities.pop();const e=l.velocities.pop();const r=i.position-e.position;const s=i.time-e.time;t.velocity=r/s;t.velocity/=2;if(Math.abs(t.velocity)<n.freeMode.minimumVelocity){t.velocity=0}if(s>150||k()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=n.freeMode.momentumVelocityRatio;l.velocities.length=0;let i=1e3*n.freeMode.momentumRatio;const h=t.velocity*i;let c=t.translate+h;if(o)c=-c;let f=false;let u;const p=Math.abs(t.velocity)*20*n.freeMode.momentumBounceRatio;let d;if(c<t.maxTranslate()){if(n.freeMode.momentumBounce){if(c+t.maxTranslate()<-p){c=t.maxTranslate()-p}u=t.maxTranslate();f=true;l.allowMomentumBounce=true}else{c=t.maxTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(c>t.minTranslate()){if(n.freeMode.momentumBounce){if(c-t.minTranslate()>p){c=t.minTranslate()+p}u=t.minTranslate();f=true;l.allowMomentumBounce=true}else{c=t.minTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(n.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-c){i=t;break}}if(Math.abs(a[i]-c)<Math.abs(a[i-1]-c)||t.swipeDirection==="next"){c=a[i]}else{c=a[i-1]}c=-c}if(d){r("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-c-t.translate)/t.velocity)}else{i=Math.abs((c-t.translate)/t.velocity)}if(n.freeMode.sticky){const e=Math.abs((o?-c:c)-t.translate);const r=t.slidesSizesGrid[t.activeIndex];if(e<r){i=n.speed}else if(e<2*r){i=n.speed*1.5}else{i=n.speed*2.5}}}else if(n.freeMode.sticky){t.slideToClosest();return}if(n.freeMode.momentumBounce&&f){t.updateProgress(u);t.setTransition(i);t.setTranslate(c);t.transitionStart(true,t.swipeDirection);t.animating=true;x(s,(()=>{if(!t||t.destroyed||!l.allowMomentumBounce)return;e("momentumBounce");t.setTransition(n.speed);setTimeout((()=>{t.setTranslate(u);x(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(c);t.setTransition(i);t.setTranslate(c);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;x(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(c)}t.updateActiveIndex();t.updateSlidesClasses()}else if(n.freeMode.sticky){t.slideToClosest();return}else if(n.freeMode){e("_freeModeNoMomentumRelease")}if(!n.freeMode.momentum||c>=n.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:n,onTouchMove:s,onTouchEnd:o}})}const zr='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';const Pr=class{constructor(i){t(this,i);this.displayFullscreen=false;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}componentDidLoad(){if(this.swiperImagesRef){this.swiperImages=new A(this.swiperImagesRef,{modules:[_,M,z,Mr,Lr],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}handleFullscreen(){if(l.currentTouristicContent.attachments&&l.currentTouristicContent.attachments[0]&&l.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=n(`${""}assets/default-image.svg`);const i=l.touristicContentCategories&&l.currentTouristicContent&&l.touristicContentCategories.find((t=>t.id===l.currentTouristicContent.category));const s=l.currentTouristicContent&&l.currentTouristicContent.cities.map((t=>{var i;return(i=l.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return e(r,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},l.currentTouristicContent&&e("div",{class:"touristic-content-detail-container",ref:t=>this.touristicContentDetailContainerRef=t},e("div",{class:"images-container",ref:t=>this.presentationRef=t},e("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},e("div",{class:"swiper-wrapper"},l.currentTouristicContent.attachments.length>0?l.currentTouristicContent.attachments.filter((t=>t.type==="image")).map((t=>e("div",{class:"swiper-slide"},e("img",{class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):e("div",{class:"swiper-slide"},e("img",{class:"default-poi-img",src:t,loading:"lazy"}))),e("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),e("div",{class:"touristic-content-category-container"},e("img",{src:i.pictogram}),e("div",{class:"touristic-content-category-name"},i.label)),e("div",{class:"name"},l.currentTouristicContent.name),e("div",{class:"divider"}),e("div",{class:"downloads-container"},e("div",{class:"download-title"},o[l.language].download),e("div",{class:"links-container"},e("a",{href:`${l.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),l.currentTouristicContent.description_teaser&&e("div",null,e("div",{class:"divider"}),e("div",{class:"description-teaser",innerHTML:l.currentTouristicContent.description_teaser})),e("div",{class:"divider"}),l.currentTouristicContent.practical_info&&e("div",{class:"description-container",ref:t=>this.descriptionRef=t},e("div",{class:"description-title"},o[l.language].description),e("div",{class:"description",innerHTML:l.currentTouristicContent.description})),s&&s.length>0&&e("div",{class:"cities-container"},e("div",{class:"cities-title"},o[l.language].city," : "),e("div",{innerHTML:s.join(", ")})),l.currentTouristicContent.practical_info&&e("div",null,e("div",{class:"divider"}),e("div",{class:"useful-information-container"},e("div",{class:"useful-information-title"},o[l.language].usefulInformation," : "),e("div",{innerHTML:l.currentTouristicContent.practical_info}))),(l.currentTouristicContent.contact||l.currentTouristicContent.email||l.currentTouristicContent.website)&&e("div",null,e("div",{class:"divider"}),e("div",{class:"contact-container"},e("div",{class:"contact-title"},o[l.language].contact," : "),l.currentTouristicContent.contact&&e("div",{innerHTML:l.currentTouristicContent.contact}),l.currentTouristicContent.email&&e("div",{class:"email-container"},e("div",null,o[l.language].email," : "),e("div",{innerHTML:l.currentTouristicContent.email})),l.currentTouristicContent.website&&e("div",{class:"website-container"},e("div",null,o[l.language].website," : "),e("div",{innerHTML:l.currentTouristicContent.website})))),e("div",{class:"detail-bottom-space"})))}};Pr.style=zr;const Cr=class{constructor(i){t(this,i);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContent()}handleTouristicContent(){const t=[];t.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!l.touristicContentCategories?fetch(`${l.api}touristiccontent_category/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${l.api}touristiccontent/${this.touristicContentId}/?language=${l.language}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{l.trekNetworkError=false;if(t){l.cities=t.results}if(i){l.touristicContentCategories=i.results}l.currentTouristicContent=e})).catch((()=>{l.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();l.trekNetworkError=false}render(){return e(r,null)}};const Or='.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";width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';const Tr=class{constructor(i){t(this,i);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTouristicContents){this.touristicContentsToDisplay=[...l.currentTouristicContents.slice(0,this.step)]}d("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTouristicContents){this.touristicContentsToDisplay=[...l.currentTouristicContents.slice(0,this.step)]}}));d("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...l.touristicContentsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<l.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=l.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=l.touristicContentsWithinBounds.length?l.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){m()}this.handleInfiniteScrollEvent(false)}render(){return e(r,{style:{"--color-primary-app":this.colorPrimaryApp}},l.touristicContentsWithinBounds&&e("div",{class:"current-touristic-contents-within-bounds-length"},`${l.touristicContentsWithinBounds.length} ${l.touristicContentsWithinBounds.length>1?o[l.language].home.touristicContents:o[l.language].home.touristicContent}`),e("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((t=>e("grw-touristic-content-card",{"reset-store-on-disconnected":"false",key:`touristic-content-${t.id}`,touristicContent:t,"is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})))),!this.isLargeView&&e("div",{class:"list-bottom-space"}))}get element(){return s(this)}};Tr.style=Or;const jr=class{constructor(i){t(this,i);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${l.api}touristiccontent/?language=${l.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts&page_size=999`;const i=[];i.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!l.districts?fetch(`${l.api}district/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!l.touristicContentCategories?fetch(`${l.api}touristiccontent_category/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{l.trekNetworkError=false;if(t){l.cities=t.results}if(i){l.districts=i.results}if(e){l.touristicContentCategories=e.results}l.touristicContents=r.results;l.currentTouristicContents=r.results})).catch((()=>{l.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();l.trekNetworkError=false}render(){return e(r,null)}};const Er='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';const Sr=class{constructor(i){t(this,i);this.displayFullscreen=false;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}componentDidLoad(){this.swiperImages=new A(this.swiperImagesRef,{modules:[_,M,z,Mr,Lr],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}handleFullscreen(){if(l.currentTouristicEvent.attachments&&l.currentTouristicEvent.attachments[0]&&l.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=n(`${""}assets/default-image.svg`);const i=l.touristicEventTypes&&l.currentTouristicEvent&&l.touristicEventTypes.find((t=>t.id===l.currentTouristicEvent.type));const s=l.currentTouristicEvent&&l.currentTouristicEvent.cities.map((t=>{var i;return(i=l.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return e(r,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},l.currentTouristicEvent&&e("div",{class:"touristic-event-detail-container",ref:t=>this.touristicEventDetailContainerRef=t},e("div",{class:"images-container",ref:t=>this.presentationRef=t},e("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},e("div",{class:"swiper-wrapper"},l.currentTouristicEvent.attachments.length>0?l.currentTouristicEvent.attachments.filter((t=>t.type==="image")).map((t=>e("div",{class:"swiper-slide"},e("img",{class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):e("div",{class:"swiper-slide"},e("img",{class:"default-poi-img",src:t,loading:"lazy"}))),e("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),e("div",{class:"touristic-event-category-container"},e("img",{src:i.pictogram}),e("div",{class:"touristic-event-category-name"},i.type)),e("div",{class:"name"},l.currentTouristicEvent.name),(l.currentTouristicEvent.begin_date||l.currentTouristicEvent.end_date)&&e("div",{class:"touristic-event-date-container"},l.currentTouristicEvent.begin_date&&e("div",{class:"touristic-event-date"},"Date de début : ",l.currentTouristicEvent.begin_date),l.currentTouristicEvent.end_date&&e("div",{class:"touristic-event-date"},"Date de fin : ",l.currentTouristicEvent.end_date)),e("div",{class:"divider"}),e("div",{class:"downloads-container"},e("div",{class:"download-title"},o[l.language].download),e("div",{class:"links-container"},e("a",{href:`${l.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),l.currentTouristicEvent.description_teaser&&e("div",null,e("div",{class:"divider"}),e("div",{class:"description-teaser",innerHTML:l.currentTouristicEvent.description_teaser})),e("div",{class:"divider"}),l.currentTouristicEvent.practical_info&&e("div",{class:"description-container",ref:t=>this.descriptionRef=t},e("div",{class:"description-title"},o[l.language].description),e("div",{class:"description",innerHTML:l.currentTouristicEvent.description})),s&&s.length>0&&e("div",{class:"cities-container"},e("div",{class:"cities-title"},o[l.language].city," : "),e("div",{innerHTML:s.join(", ")})),l.currentTouristicEvent.practical_info&&e("div",null,e("div",{class:"divider"}),e("div",{class:"useful-information-container"},e("div",{class:"useful-information-title"},o[l.language].usefulInformation," : "),e("div",{innerHTML:l.currentTouristicEvent.practical_info}))),(l.currentTouristicEvent.contact||l.currentTouristicEvent.email||l.currentTouristicEvent.website)&&e("div",null,e("div",{class:"divider"}),e("div",{class:"contact-container"},e("div",{class:"contact-title"},o[l.language].contact," : "),l.currentTouristicEvent.contact&&e("div",{innerHTML:l.currentTouristicEvent.contact}),l.currentTouristicEvent.email&&e("div",{class:"email-container"},e("div",null,o[l.language].email," : "),e("div",{innerHTML:l.currentTouristicEvent.email})),l.currentTouristicEvent.website&&e("div",{class:"website-container"},e("div",null,o[l.language].website," : "),e("div",{innerHTML:l.currentTouristicEvent.website})))),e("div",{class:"detail-bottom-space"})))}};Sr.style=Er;const Br=class{constructor(i){t(this,i);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvent()}handleTouristicEvent(){const t=[];t.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!l.touristicEventTypes?fetch(`${l.api}touristicevent_type/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${l.api}touristicevent/${this.touristicEventId}/?language=${l.language}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{l.trekNetworkError=false;if(t){l.cities=t.results}if(i){l.touristicEventTypes=i.results}l.currentTouristicEvent=e})).catch((()=>{l.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();l.trekNetworkError=false}render(){return e(r,null)}};const Fr='.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";width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-event-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';const Ir=class{constructor(i){t(this,i);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTouristicEvents){this.touristicEventsToDisplay=[...l.currentTouristicEvents.slice(0,this.step)]}d("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTouristicContents){this.touristicEventsToDisplay=[...l.currentTouristicEvents.slice(0,this.step)]}}));d("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...l.touristicEventsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<l.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=l.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=l.touristicEventsWithinBounds.length?l.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){m()}this.handleInfiniteScrollEvent(false)}render(){return e(r,{style:{"--color-primary-app":this.colorPrimaryApp}},l.touristicEventsWithinBounds&&e("div",{class:"current-touristic-events-within-bounds-length"},`${l.touristicEventsWithinBounds.length} ${l.touristicEventsWithinBounds.length>1?o[l.language].home.touristicEvents:o[l.language].home.touristicEvent}`),e("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((t=>e("grw-touristic-event-card",{"reset-store-on-disconnected":"false",key:`touristic-event-${t.id}`,touristicEvent:t,"is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})))),!this.isLargeView&&e("div",{class:"list-bottom-space"}))}get element(){return s(this)}};Ir.style=Fr;const Nr=class{constructor(i){t(this,i);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${l.api}touristicevent/?language=${l.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999`;const i=[];i.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!l.districts?fetch(`${l.api}district/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!l.touristicEventTypes?fetch(`${l.api}touristicevent_type/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{l.trekNetworkError=false;if(t){l.cities=t.results}if(i){l.districts=i.results}if(e){l.touristicEventTypes=e.results}l.touristicEvents=r.results;l.currentTouristicEvents=r.results})).catch((()=>{l.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();l.trekNetworkError=false}render(){return e(r,null)}};const Rr='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-options .presentation.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .steps.selected-trek-option~.indicator-selected-trek-option{width:160px;background-size:80px 100%}.trek-options .description.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .recommendations.selected-trek-option~.indicator-selected-trek-option{width:380px;background-size:190px 100%}.trek-options .sensitive-areas.selected-trek-option~.indicator-selected-trek-option{width:320px;background-size:160px 100%}.trek-options .information-places.selected-trek-option~.indicator-selected-trek-option{width:400px;background-size:200px 100%}.trek-options .pois.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-content.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-event.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .presentation{min-width:120px;width:120px}.trek-options .steps{min-width:80px;width:80px}.trek-options .description{min-width:120px;width:120px}.trek-options .recommendations{min-width:190px;width:190px}.trek-options .sensitive-areas{min-width:160px;width:160px}.trek-options .information-places{min-width:200px;width:200px}.trek-options .pois{min-width:120px;width:120px}.trek-options .touristic-content{min-width:120px;width:120px}.trek-options .touristic-event{min-width:120px;width:120px}.trek-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-on-surface);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:8px;border-bottom-left-radius:8px}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}';const Dr={visible:true,width:120,indicator:false};const $r={visible:false,width:80,indicator:false};const Gr={visible:false,width:120,indicator:false};const Yr={visible:false,width:190,indicator:false};const Zr={visible:false,width:160,indicator:false};const Hr={visible:false,width:200,indicator:false};const Ur={visible:false,width:120,indicator:false};const Vr={visible:false,width:120,indicator:false};const Wr={visible:false,width:120,indicator:false};const Qr={presentation:Dr,steps:$r,description:Gr,recommendations:Yr,sensitiveArea:Zr,informationPlaces:Hr,pois:Ur,touristicContents:Vr,touristicEvents:Wr};const Jr=class{constructor(e){t(this,e);this.descriptionIsInViewport=i(this,"descriptionIsInViewport",7);this.parkingIsInViewport=i(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=i(this,"sensitiveAreaIsInViewport",7);this.informationDeskIsInViewport=i(this,"informationDeskIsInViewport",7);this.poiIsInViewport=i(this,"poiIsInViewport",7);this.stepsIsInViewport=i(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=i(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=i(this,"touristicEventsIsInViewport",7);this.parentTrekPress=i(this,"parentTrekPress",7);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.trek=undefined;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}componentDidLoad(){this.swiperImages=new A(this.swiperImagesRef,{modules:[_,M,z,Mr,Lr],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperStep=new A(this.swiperStepRef,{modules:[Mr,Lr],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new A(this.swiperPoisRef,{modules:[Mr,Lr],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new A(this.swiperInformationDesksRef,{modules:[Mr,Lr],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new A(this.swiperTouristicContentsRef,{modules:[Mr,Lr],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new A(this.swiperTouristicEventsRef,{modules:[Mr,Lr],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})})}}));t.observe(this.presentationRef)}if(this.stepsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.stepsIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:i})})}}));t.observe(this.stepsRef)}if(this.descriptionRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.descriptionIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})})}}));t.observe(this.descriptionRef)}if(this.recommendationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})})}}));t.observe(this.recommendationRef)}if(this.parkingRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.parkingIsInViewport.emit(i)}));t.observe(this.parkingRef)}if(this.sensitiveAreaRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})})}}));t.observe(this.sensitiveAreaRef)}if(this.informationDeskRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.informationDeskIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})})}}));t.observe(this.informationDeskRef)}if(this.poiRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.poiIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})})}}));t.observe(this.poiRef)}if(this.touristicContentsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:i})})}}));t.observe(this.touristicContentsRef)}if(this.touristicEventsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:i})})}}));t.observe(this.touristicContentsRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:l.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=l.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=l.routes.find((t=>t.id===this.currentTrek.route));this.practice=l.practices.find((t=>t.id===this.currentTrek.practice));this.themes=l.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=l.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=l.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=l.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=l.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}d("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:l.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=l.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=l.routes.find((t=>t.id===this.currentTrek.route));this.practice=l.practices.find((t=>t.id===this.currentTrek.practice));this.themes=l.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=l.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=l.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=l.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=l.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){m()}}handleOptions(){return Object.assign(Object.assign({},Qr),{presentation:Object.assign({},Dr),steps:Object.assign(Object.assign({},$r),{visible:Boolean(l.parentTrek)}),description:Object.assign(Object.assign({},Gr),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},Yr),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Zr),{visible:Boolean(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Hr),{visible:Boolean(l.currentInformationDesks&&l.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),pois:Object.assign(Object.assign({},Ur),{visible:Boolean(l.currentPois&&l.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},Vr),{visible:Boolean(l.trekTouristicContents&&l.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Wr),{visible:Boolean(l.touristicEvents&&l.touristicEvents.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t=0;let i;let e=0;const r=Object.values(this.options);let n=0;while(!i&&n<r.length){if(r[n].indicator){i=r[n]}else{if(r[n].visible){t+=1;e+=r[n].width}}n++}return`${e+16*t-i.width/2}px`}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-48})}render(){var t,i,n,s,a,h,c;return e(r,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},this.currentTrek&&e("div",{class:"trek-options"},e("a",{onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.options.presentation.indicator?" selected-trek-option":""}`},o[l.language].options.presentation),this.options.steps.visible&&e("a",{onClick:()=>this.handleScrollTo(this.stepsRef),class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`},o[l.language].options.steps),this.options.description.visible&&e("a",{onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.options.description.indicator?" selected-trek-option":""}`},o[l.language].options.description),this.options.recommendations.visible&&e("a",{onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.options.recommendations.indicator?" selected-trek-option":""}`},o[l.language].options.recommendations),this.options.sensitiveArea.visible&&e("a",{onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.options.sensitiveArea.indicator?" selected-trek-option":""}`},o[l.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&e("a",{onClick:()=>this.handleScrollTo(this.informationDeskRef),class:`information-places trek-option${this.options.informationPlaces.indicator?" selected-trek-option":""}`},o[l.language].options.informationPlaces),this.options.pois.visible&&e("a",{onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.options.pois.indicator?" selected-trek-option":""}`},o[l.language].options.pois),this.options.touristicContents.visible&&e("a",{onClick:()=>this.handleScrollTo(this.touristicContentsRef),class:`touristic-content trek-option${this.options.touristicContents.indicator?" selected-trek-option":""}`},o[l.language].options.touristicContents),this.options.touristicEvents.visible&&e("a",{onClick:()=>this.handleScrollTo(this.touristicEventsRef),class:`touristic-event trek-option${this.options.touristicEvents.indicator?" selected-trek-option":""}`},o[l.language].options.touristicEvents),e("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.handleIndicatorSelectedTrekOption()})`}})),this.currentTrek&&e("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},e("div",{class:"images-container",ref:t=>this.presentationRef=t},e("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},e("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>e("div",{class:"swiper-slide"},e("img",{class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),e("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),e("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&e("div",{class:"themes-container"},this.themes.map((t=>e("div",{class:"theme"},t.label)))),e("div",{class:"sub-container"},e("div",{class:"icons-labels-container"},e("div",{class:"row"},e("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&e("img",{src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),e("div",{class:"icon-label duration"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),v((n=this.currentTrek)===null||n===void 0?void 0:n.duration)),e("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&e("img",{src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route)),e("div",{class:"row"},e("div",{class:"icon-label length"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),g(this.currentTrek.length_2d)),e("div",{class:"icon-label ascent"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),w(this.currentTrek.ascent)),e("div",{class:"icon-label practice"},((h=this.practice)===null||h===void 0?void 0:h.pictogram)&&e("img",{src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name)),this.currentTrek.ratings.map((t=>e("div",{class:"row"},l.ratings.find((i=>i.id===t)).name))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&e("div",{class:"row"},this.currentTrek.ratings_description))),e("div",{class:"divider"}),e("div",{class:"downloads-container"},e("div",{class:"download-title"},o[l.language].downloads),e("div",{class:"links-container"},e("a",{href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),e("a",{href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),e("a",{href:`${this.currentTrek.pdf}`,target:"_blank",rel:"noopener noreferrer"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),e("div",{class:"divider"}),this.currentTrek.description_teaser&&e("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&e("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),l.parentTrekId&&l.parentTrek&&this.currentTrek.id!==l.parentTrekId&&e("div",null,e("div",{class:"divider"}),e("div",{class:"parent-trek-container"},e("button",{class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(l.parentTrekId)},e("div",null,"<"),l.parentTrek.name))),l.currentTrekSteps&&e("div",{class:"step-container",ref:t=>this.stepsRef=t},e("div",{class:"step-title"},`${l.currentTrekSteps.length} ${o[l.language].steps}`),e("div",{class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},e("div",{class:"swiper-wrapper"},l.currentTrekSteps&&l.currentTrekSteps.map((t=>e("div",{class:"swiper-slide"},e("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"is-large-view":false,"is-step":true,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}))))))),e("div",{class:"divider"}),this.currentTrek.description&&e("div",{class:"description-container",ref:t=>this.descriptionRef=t},e("div",{class:"description-title"},o[l.language].description),e("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&e("div",{class:"departure-container"},e("div",{class:"departure-title"},o[l.language].departure," : "),e("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&e("div",{class:"arrival-container"},e("div",{class:"arrival-title"},o[l.language].arrival," : "),e("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&e("div",{class:"cities-container"},e("div",{class:"cities-title"},o[l.language].crossedCities," : "),e("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&e("div",{class:"weather-container"},e("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`})),this.currentTrek.access&&e("div",null,e("div",{class:"divider"}),e("div",{class:"access-container"},e("div",{class:"access-title"},o[l.language].roadAccess),e("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&e("div",null,e("div",{class:"divider"}),e("div",{class:"public-transport-container"},e("div",{class:"public-transport-title"},o[l.language].transport),e("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&e("div",null,e("div",{class:"divider"}),e("div",{class:"advice-container",ref:t=>this.recommendationRef=t},e("div",{class:"advice-title"},o[l.language].recommendations),this.currentTrek.advice&&e("div",{class:"current-advice-container"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),e("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((t=>e("div",{class:"label-container"},e("div",{class:"label-sub-container"},t.pictogram&&e("img",{src:t.pictogram}),e("div",{class:"label-name",innerHTML:t.name})),e("div",{class:"label-advice",innerHTML:t.advice})))))),this.currentTrek.advised_parking&&e("div",null,e("div",{class:"divider"}),e("div",{class:"advised-parking-container",ref:t=>this.parkingRef=t},e("div",{class:"advised-parking-title"},o[l.language].recommendedParking),e("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&e("div",null,e("div",{class:"divider"}),e("div",{class:"gear-container"},e("div",{class:"gear-title"},o[l.language].equipments),e("div",{class:"gear",innerHTML:this.currentTrek.gear}))),l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0&&e("div",null,e("div",{class:"divider"}),e("div",{class:"sensitive-areas-container",ref:t=>this.sensitiveAreaRef=t},e("div",{class:"sensitive-areas-title"},o[l.language].environmentalSensitiveAreas),l.currentSensitiveAreas.map((t=>e("grw-sensitive-area-detail",{sensitiveArea:t}))))),l.currentInformationDesks&&l.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&e("div",null,e("div",{class:"divider"}),e("div",{class:"information-desks-container",ref:t=>this.informationDeskRef=t},e("div",{class:"information-desks-title"},o[l.language].informationPlaces),e("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},e("div",{class:"swiper-wrapper"},l.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>e("div",{class:"swiper-slide"},e("grw-information-desk",{informationDesk:t})))))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&e("div",null,e("div",{class:"divider"}),e("div",{class:"accessibilities-container"},e("div",{class:"accessibilities-title"},o[l.language].accessibility),this.currentTrek.disabled_infrastructure&&e("div",{innerHTML:this.currentTrek.disabled_infrastructure}),e("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>e("div",{class:"accessibility-content-container"},e("img",{src:t.pictogram}),e("div",{innerHTML:t.name}))))),this.currentTrek.accessibility_level&&e("div",{class:"accessibility-level-container"},e("div",{class:"accessibility-level-title"},o[l.language].accessibilityLevel),e("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&e("div",{class:"accessibility-slope-container"},e("div",{class:"accessibility-slope-title"},o[l.language].accessibilitySlope),e("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&e("div",{class:"accessibility-width-container"},e("div",{class:"accessibility-width-title"},o[l.language].accessibilityWidth),e("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&e("div",{class:"accessibility-signage-container"},e("div",{class:"accessibility-signage-title"},o[l.language].accessibilitySignage),e("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&e("div",{class:"accessibility-covering-container"},e("div",{class:"accessibility-covering-title"},o[l.language].accessibilityCovering),e("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&e("div",{class:"accessibility-exposure-container"},e("div",{class:"accessibility-exposure-title"},o[l.language].accessibilityExposure),e("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&e("div",{class:"accessibility-advice-container"},e("div",{class:"accessibility-advice-title"},o[l.language].accessibilityAdvices),e("div",{innerHTML:this.currentTrek.accessibility_advice})))),l.currentPois&&l.currentPois.length>0&&e("div",null,e("div",{class:"divider"}),e("div",{class:"pois-container",ref:t=>this.poiRef=t},e("div",{class:"pois-title"},o[l.language].pois(l.currentPois.length)),e("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{class:"swiper-wrapper"},l.currentPois.map((t=>e("div",{class:"swiper-slide"},e("grw-poi",{poi:t})))))))),l.trekTouristicContents&&l.trekTouristicContents.length>0&&e("div",null,e("div",{class:"divider"}),e("div",{class:"touristic-content-container",ref:t=>this.touristicContentsRef=t},e("div",{class:"touristic-content-title"},o[l.language].touristicContents(l.trekTouristicContents.length)),e("div",{class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},e("div",{class:"swiper-wrapper"},l.trekTouristicContents.map((t=>e("div",{class:"swiper-slide"},e("grw-touristic-content-card",{touristicContent:t,isInsideHorizontalList:true})))))))),l.touristicEvents&&l.touristicEvents.length>0&&e("div",null,e("div",{class:"divider"}),e("div",{class:"touristic-event-container",ref:t=>this.touristicEventsRef=t},e("div",{class:"touristic-event-title"},o[l.language].touristicEvents(l.touristicEvents.length)),e("div",{class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},e("div",{class:"swiper-wrapper"},l.touristicEvents.map((t=>e("div",{class:"swiper-slide"},e("grw-touristic-event-card",{touristicEvent:t})))))))),this.currentTrek.source&&this.currentTrek.source.length>0&&e("div",null,e("div",{class:"divider"}),e("div",{class:"source-container"},e("div",{class:"source-title"},o[l.language].sources),this.sources.map((t=>e("div",{class:"source-sub-container"},t.pictogram&&e("img",{src:t.pictogram}),e("div",null,e("div",{class:"source-name",innerHTML:t.name}),e("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),e("div",{class:"detail-bottom-space"})))}};Jr.style=Rr;const qr=class{constructor(i){t(this,i);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!l.difficulties?fetch(`${l.api}trek_difficulty/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!l.routes?fetch(`${l.api}trek_route/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!l.practices?fetch(`${l.api}trek_practice/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!l.themes?fetch(`${l.api}theme/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!l.accessibilities?fetch(`${l.api}trek_accessibility/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!l.ratings?fetch(`${l.api}trek_rating/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${l.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${l.api}label/?language=${l.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${l.api}source/?language=${l.language}&fields=id,name,website,pictogram`,this.init),fetch(`${l.api}trek_accessibility_level/?language=${l.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${l.api}poi/?language=${l.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,this.init),fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init),fetch(`${l.api}informationdesk/?language=${l.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${l.api}touristiccontent/?language=${l.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,category,geometry&page_size=999`,this.init),fetch(`${l.api}touristiccontent_category/?language=${l.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),fetch(`${l.api}touristicevent/?language=${l.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,this.init),fetch(`${l.api}touristicevent_type/?language=${l.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${l.api}trek/${this.trekId}/?language=${l.language}&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,i,e,r,n,s,o,a,h,c,f,u,p,d,m,v,g,w,b])=>{l.trekNetworkError=false;if(b.children.length>0||l.parentTrekId){const t=[];if(b.children.length>0){l.parentTrekId=b.id;l.parentTrek=b;t.push(...b.children)}else{const i=await fetch(`${l.api}trek/${l.parentTrekId}/?language=${l.language}&published=true&fields=name,children`).then((t=>t.json()));l.parentTrek=i;t.push(...i.children)}const i=[];t.forEach((t=>{i.push(fetch(`${l.api}trek/${t}/?language=${l.language}&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts`))}));l.currentTrekSteps=await Promise.all([...i]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){l.difficulties=t.results}if(i){l.routes=i.results}if(e){l.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){l.themes=r.results}if(n){l.cities=n.results}if(s){l.accessibilities=s.results}if(o){l.ratings=o.results}if(a){l.currentSensitiveAreas=a.results}l.labels=h.results;l.sources=c.results;if(f){l.accessibilitiesLevel=f.results}if(m){l.trekTouristicContents=m.results}if(v){l.touristicContentCategories=v.results}if(g){l.touristicEvents=g.results}if(w){l.touristicEventTypes=w.results}l.currentPois=u.results;l.poiTypes=p.results;l.currentInformationDesks=d.results;l.currentTrek=b})).catch((()=>{l.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();l.trekNetworkError=false}render(){return e(r,null)}};const Kr='.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";width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';const Xr=class{constructor(i){t(this,i);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTreks){this.treksToDisplay=[...l.currentTreks.slice(0,this.step)]}d("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTreks){this.treksToDisplay=[...l.currentTreks.slice(0,this.step)]}}));d("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.treksWithinBounds){this.treksToDisplay=[...l.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<l.treksWithinBounds.length){this.treksToDisplay=l.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=l.treksWithinBounds.length?l.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){m()}this.handleInfiniteScrollEvent(false)}render(){return e(r,{style:{"--color-primary-app":this.colorPrimaryApp}},l.treksWithinBounds&&e("div",{class:"current-treks-within-bounds-length"},`${l.treksWithinBounds.length} ${l.treksWithinBounds.length>1?o[l.language].treks:o[l.language].trek}`),e("div",{class:"treks-list-container"},this.treksToDisplay.map((t=>e("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})))),!this.isLargeView&&e("div",{class:"list-bottom-space"}))}get element(){return s(this)}};Xr.style=Kr;const tn=class{constructor(i){t(this,i);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();l.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${l.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999`;Promise.all([fetch(`${l.api}trek_difficulty/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${l.api}trek_route/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${l.api}trek_practice/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${l.api}theme/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${l.api}trek_accessibility/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${l.api}label/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram&published=true&page_size=999`,this.init),fetch(`${l.api}district/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r,n,s,o,a,h])=>{l.treksNetworkError=false;l.difficulties=t.results;l.routes=i.results;l.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));l.themes=r.results;l.cities=n.results;l.accessibilities=s.results;l.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];l.lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];l.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];l.labels=o.results;l.districts=a.results;l.treks=h.results;l.currentTreks=h.results})).catch((()=>l.treksNetworkError=true))}render(){return e(r,null)}};export{C as grw_filters,yr as grw_map,xr as grw_search,_r as grw_select_language,Pr as grw_touristic_content_detail,Cr as grw_touristic_content_provider,Tr as grw_touristic_contents_list,jr as grw_touristic_contents_provider,Sr as grw_touristic_event_detail,Br as grw_touristic_event_provider,Ir as grw_touristic_events_list,Nr as grw_touristic_events_provider,Jr as grw_trek_detail,qr as grw_trek_provider,Xr as grw_treks_list,tn as grw_treks_provider};
|
|
14
|
+
//# sourceMappingURL=p-e9caba62.entry.js.map
|