@geotrekce/geotrek-rando-widget 0.24.2 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/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 +1 -1
- 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-common-button_23.cjs.entry.js +241 -205
- package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +1 -1
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +1 -1
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +1 -1
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
- package/dist/cjs/{i18n-ceda6815.js → i18n-d757c0bf.js} +61 -1
- package/dist/cjs/i18n-d757c0bf.js.br +0 -0
- package/dist/cjs/i18n-d757c0bf.js.gz +0 -0
- package/dist/cjs/i18n-d757c0bf.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/{treks.service-829e772f.js → treks.service-3e1c0220.js} +2 -2
- package/dist/cjs/treks.service-3e1c0220.js.br +0 -0
- package/dist/cjs/treks.service-3e1c0220.js.gz +0 -0
- package/dist/cjs/{treks.service-829e772f.js.map → treks.service-3e1c0220.js.map} +1 -1
- package/dist/collection/components/grw-map/grw-map.css +14 -0
- 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 +5 -5
- 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-offline-confirm-modal/grw-offline-confirm-modal.js +36 -7
- package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.br +0 -0
- package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.gz +0 -0
- package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.map +1 -1
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +87 -47
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +179 -139
- 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 +60 -0
- 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/services/treks.service.js +1 -1
- package/dist/collection/services/treks.service.js.br +0 -0
- package/dist/collection/services/treks.service.js.gz +0 -0
- package/dist/collection/services/treks.service.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +2 -4
- 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/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 +1 -1
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js +241 -205
- package/dist/esm/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm/grw-details-modal_8.entry.js +1 -1
- package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js +1 -1
- package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +1 -1
- package/dist/esm/grw-poi_3.entry.js.br +0 -0
- package/dist/esm/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js +1 -1
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm/{i18n-4ec6fb16.js → i18n-d4785001.js} +61 -1
- package/dist/esm/i18n-d4785001.js.br +0 -0
- package/dist/esm/i18n-d4785001.js.gz +0 -0
- package/dist/esm/i18n-d4785001.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/{treks.service-a59a05d5.js → treks.service-53203dbb.js} +2 -2
- package/dist/esm/treks.service-53203dbb.js.br +0 -0
- package/dist/esm/treks.service-53203dbb.js.gz +0 -0
- package/dist/esm/{treks.service-a59a05d5.js.map → treks.service-53203dbb.js.map} +1 -1
- 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-common-button_23.entry.js +2 -2
- package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
- package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js +1 -1
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js +1 -1
- package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm-es5/i18n-d4785001.js +2 -0
- package/dist/esm-es5/i18n-d4785001.js.br +0 -0
- package/dist/esm-es5/i18n-d4785001.js.gz +0 -0
- package/dist/esm-es5/i18n-d4785001.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/{treks.service-a59a05d5.js → treks.service-53203dbb.js} +2 -2
- package/dist/esm-es5/treks.service-53203dbb.js.br +0 -0
- package/dist/esm-es5/treks.service-53203dbb.js.gz +0 -0
- package/dist/{geotrek-rando-widget/p-d64a208b.system.js.map → esm-es5/treks.service-53203dbb.js.map} +1 -1
- 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-94f1ea91.system.entry.js → p-1ecac760.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-1ecac760.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1ecac760.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js +2 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-a0027314.system.entry.js → p-24e8475f.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-24e8475f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-24e8475f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-20a73813.entry.js → p-2990b91c.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2990b91c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2990b91c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js +2 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-033910ba.system.entry.js → p-34a34d74.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-34a34d74.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-34a34d74.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-a9f81664.system.entry.js → p-3566b43b.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-3566b43b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3566b43b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js +1 -1
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js.map +1 -1
- package/dist/geotrek-rando-widget/{p-805e2ba0.js → p-4cf52b6c.js} +2 -2
- package/dist/geotrek-rando-widget/p-4cf52b6c.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4cf52b6c.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-805e2ba0.js.map → p-4cf52b6c.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-9844030a.entry.js → p-5a073c3e.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-5a073c3e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a073c3e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d64a208b.system.js → p-7d139984.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-7d139984.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7d139984.system.js.gz +0 -0
- package/dist/{esm-es5/treks.service-a59a05d5.js.map → geotrek-rando-widget/p-7d139984.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-422bb6de.entry.js → p-87558980.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-87558980.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-87558980.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-45f46d33.entry.js → p-875e71d3.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-875e71d3.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-875e71d3.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-2a4d46f7.entry.js → p-87eb3dcc.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-87eb3dcc.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-87eb3dcc.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-aa1ff056.system.entry.js → p-9bcb7645.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9bcb7645.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9bcb7645.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-75f7d534.system.entry.js → p-d47a130a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d47a130a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d47a130a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-beba3e06.entry.js → p-d92ca7f1.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d92ca7f1.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d92ca7f1.entry.js.gz +0 -0
- package/dist/types/components/grw-offline-confirm-modal/grw-offline-confirm-modal.d.ts +3 -0
- package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +2 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/i18n/i18n.d.ts +20 -0
- package/package.json +1 -1
- package/readme.md +75 -29
- package/dist/cjs/i18n-ceda6815.js.br +0 -0
- package/dist/cjs/i18n-ceda6815.js.gz +0 -0
- package/dist/cjs/i18n-ceda6815.js.map +0 -1
- package/dist/cjs/treks.service-829e772f.js.br +0 -0
- package/dist/cjs/treks.service-829e772f.js.gz +0 -0
- package/dist/esm/i18n-4ec6fb16.js.br +0 -0
- package/dist/esm/i18n-4ec6fb16.js.gz +0 -0
- package/dist/esm/i18n-4ec6fb16.js.map +0 -1
- package/dist/esm/treks.service-a59a05d5.js.br +0 -0
- package/dist/esm/treks.service-a59a05d5.js.gz +0 -0
- package/dist/esm-es5/i18n-4ec6fb16.js +0 -2
- package/dist/esm-es5/i18n-4ec6fb16.js.br +0 -0
- package/dist/esm-es5/i18n-4ec6fb16.js.gz +0 -0
- package/dist/esm-es5/i18n-4ec6fb16.js.map +0 -1
- package/dist/esm-es5/treks.service-a59a05d5.js.br +0 -0
- package/dist/esm-es5/treks.service-a59a05d5.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-033910ba.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-033910ba.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-046d4502.system.js +0 -2
- package/dist/geotrek-rando-widget/p-046d4502.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-046d4502.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-046d4502.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0a3fc934.js +0 -2
- package/dist/geotrek-rando-widget/p-0a3fc934.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0a3fc934.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0a3fc934.js.map +0 -1
- package/dist/geotrek-rando-widget/p-20a73813.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-20a73813.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-422bb6de.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-422bb6de.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45f46d33.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-45f46d33.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-805e2ba0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-805e2ba0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9844030a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9844030a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a0027314.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a0027314.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-beba3e06.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-beba3e06.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d64a208b.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d64a208b.system.js.gz +0 -0
- /package/dist/geotrek-rando-widget/{p-94f1ea91.system.entry.js.map → p-1ecac760.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-a0027314.system.entry.js.map → p-24e8475f.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-20a73813.entry.js.map → p-2990b91c.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-033910ba.system.entry.js.map → p-34a34d74.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-a9f81664.system.entry.js.map → p-3566b43b.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-9844030a.entry.js.map → p-5a073c3e.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-422bb6de.entry.js.map → p-87558980.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-45f46d33.entry.js.map → p-875e71d3.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-2a4d46f7.entry.js.map → p-87eb3dcc.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-aa1ff056.system.entry.js.map → p-9bcb7645.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-75f7d534.system.entry.js.map → p-d47a130a.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-beba3e06.entry.js.map → p-d92ca7f1.entry.js.map} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):n(t.value).then(s,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(r=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];n=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,n=e.length,o;r<n;r++){if(o||!(r in e)){if(!o)o=Array.prototype.slice.call(e,0,r);o[r]=e[r]}}return t.concat(o||Array.prototype.slice.call(e))};System.register(["./p-f047e406.system.js","./p-3208ccea.system.js","./p-7be3b18f.system.js","./p-1846c369.system.js","./p-a2fc57e4.system.js","./p-7d139984.system.js","./p-9362944f.system.js","./p-06880c0d.system.js","./p-5f0cf716.system.js","./p-42525761.system.js"],(function(t){"use strict";var e,i,r,n,o,s,a,c,l,u,p,d,h,f,m,v,g,b,w,k,x,y,A,_,z,C,M,F,P,B,O,T,j,E,S,N,Y,I,H,G,Z,D,R,q,V,Q,U,X,J,W,K,$,tt,et,it,rt,nt,ot,st,at,ct,lt,ut,pt,dt,ht,ft,mt,vt,gt,bt,wt,kt,xt,yt,At,_t,zt,Lt,Ct,Mt;return{setters:[function(t){e=t.r;i=t.h;r=t.H;n=t.c;o=t.e;s=t.f;a=t.g;c=t.F},function(t){l=t.t},function(t){u=t.s;p=t.o},function(t){d=t.t;h=t.h;f=t.d;m=t.e;v=t.o;g=t.f;b=t.j;w=t.a;k=t.C;x=t.c;y=t.k;A=t.F;_=t.D;z=t.l;C=t.m;M=t.n;F=t.s;P=t.i;B=t.p;O=t.q;T=t.u;j=t.v},function(t){E=t.l;S=t.c;N=t.L;Y=t.b;I=t.a;H=t.h;G=t.g;Z=t.w;D=t.d;R=t.e},function(t){q=t.c;V=t.g;Q=t.a;U=t.b;X=t.d;J=t.e;W=t.f;K=t.h;$=t.i;tt=t.j;et=t.k;it=t.t},function(t){rt=t.g;nt=t.c;ot=t.a;st=t.n;at=t.e;ct=t.S;lt=t.N;ut=t.P;pt=t.K},function(t){dt=t.f;ht=t.M;ft=t.C;mt=t.D;vt=t.g;gt=t.a;bt=t.b;wt=t.c;kt=t.d;xt=t.e;yt=t.h},function(t){At=t.T;_t=t.O;zt=t.M},function(t){Lt=t.a;Ct=t.b;Mt=t.c}],execute:function(){var Ft='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"/></svg>';var Pt='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>';var Bt=".common-button{-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;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--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.1px;font-family:var(--font-family);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;height:44px}.common-button .common-button-icon{font-size:18px}";var Ot=Bt;var Tt=t("grw_common_button",function(){function t(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return i(r,{key:"75c00d1d6355bfe164a96b8833e648cb1382986b",style:{"--font-family":this.fontFamily}},i("button",{key:"aeba6123a03f4226f9704c5f77d8968ed6002a80",part:"common-button",class:"common-button",onClick:function(){return t.action()}},i("span",{key:"78eac7ec8fc244bf0b640074670f35224136dddf",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?Ft:Pt}),i("span",{key:"248b06ddd2cdd1d9ded5848670cb2eac816b6c30",part:"common-button-label",class:"label"},this.name)))};return t}());Tt.style=Ot;var jt='.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,.filters-container .filters-outdoor-sites-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:var(--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%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-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:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-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;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-app);background-color:transparent;font-family:var(--font-family)}.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}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';var Et=jt;var St=t("grw_filters",function(){function t(t){e(this,t);this.resetFilter=n(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}t.prototype.handleEraseTreksFilters=function(){d.forEach((function(t){u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;u.currentTreks=h();this.resetFilter.emit()};t.prototype.handleOkTreksFilters=function(){this.handleFilters()};t.prototype.handleSelectedSegment=function(t){this.selectedSegment=t};t.prototype.handleSegment=function(t){if(u.mode==="treks"){return d.filter((function(e){return e.segment===t})).some((function(t){return u[t.property]&&u[t.property].length>0}))}else if(u.mode==="touristicContents"){return f.filter((function(e){return e.segment===t})).some((function(t){return u[t.property]&&u[t.property].length>0}))}else if(u.mode==="touristicEvents"){return m.filter((function(e){return e.segment===t})).some((function(t){return u[t.property]&&u[t.property].length>0}))}else if(u.mode==="outdoor"){return v.filter((function(e){return e.segment===t})).some((function(t){return u[t.property]&&u[t.property].length>0}))}};t.prototype.handleEraseTouristicContentsFilters=function(){f.forEach((function(t){u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedLocationFilters=0;u.currentTouristicContents=g();this.resetFilter.emit()};t.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};t.prototype.handleEraseTouristicEventsFilters=function(){m.forEach((function(t){u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedLocationFilters=0;u.currentTouristicEvents=b();this.resetFilter.emit()};t.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};t.prototype.handleEraseOutdoorSitesFilters=function(){v.forEach((function(t){u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedLocationFilters=0;u.currentOutdoorSites=w();this.resetFilter.emit()};t.prototype.handleOkOutdoorSitesFilters=function(){this.handleFilters()};t.prototype.render=function(){var t=this;return i(r,{key:"de110e8139105f4124ca4b0d23b1ec230d0f9dfe",style:{"--font-family":this.fontFamily}},i("div",{key:"74b19f6bb8f18c933c5797748819151d65fd9656",part:"options-container",class:"options-container"},i("div",{key:"7c019d85dce235a02e66ba7ad5b1cadb30486850",part:"filters-container",class:"filters-container"},u.mode==="treks"&&i("div",{part:"filters-treks-container",class:"filters-treks-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},u.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.treksWithinBounds.length," ").concat(u.treksWithinBounds.length>1?l[u.language].treks:l[u.language].trek)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},l[u.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},l[u.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},l[u.language].home.segment.treks," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},l[u.language].themes," ",u.selectedThemesFilters!==0&&"(".concat(u.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},l[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},u["practices"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderPractices})),u["difficulties"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderDifficulties})),u["durations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderDurations})),u["lengths"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderLengths})),u["elevations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderElevations})),u["routes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderRoutes})),u["accessibilities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderAccessibilities})),u["labels"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},u["themes"].length>0&&i("div",{part:"",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].themes,filterPlaceholder:l[u.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},u["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].crossedCities,filterPlaceholder:l[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),u.mode==="touristicContents"&&i("div",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},u.touristicContentsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.touristicContentsWithinBounds.length," ").concat(u.touristicContentsWithinBounds.length>1?l[u.language].home.touristicContents:l[u.language].home.touristicContent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},l[u.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},l[u.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},l[u.language].services," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},l[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},u["touristicContentCategories"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},u["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].crossedCities,filterPlaceholder:l[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),u.mode==="touristicEvents"&&i("div",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},u.touristicEventsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.touristicEventsWithinBounds.length," ").concat(u.touristicEventsWithinBounds.length>1?l[u.language].home.touristicEvents:l[u.language].home.touristicEvent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},l[u.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},l[u.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},l[u.language].services," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},l[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},u["touristicEventTypes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].type,filterPlaceholder:l[u.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},u["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].crossedCities,filterPlaceholder:l[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),u.mode==="outdoor"&&i("div",{part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},u.outdoorSitesWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(u.outdoorSitesWithinBounds.length," ").concat(u.outdoorSitesWithinBounds.length>1?l[u.language].home.outdoorSites:l[u.language].home.outdoorSite)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},l[u.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},l[u.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},l[u.language].home.segment.outdoorSites," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},l[u.language].themes," ",u.selectedThemesFilters!==0&&"(".concat(u.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},l[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},u["outdoorPractices"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].practice,filterPlaceholder:l[u.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),u["outdoorSiteTypes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[u.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},u["themes"].length>0&&i("div",{part:"",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].themes,filterPlaceholder:l[u.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},u["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[u.language].crossedCities,filterPlaceholder:l[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),i("div",{key:"6a6bbd344f45917ddd71a5c8f2eeb3449ea536f0",part:"back-filters-container",class:"back-filters-container",onClick:function(){return t.handleFilters()}})))};return t}());St.style=Et;var Nt=".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)}}";var Yt=Nt;var It=t("grw_loader",function(){function t(t){e(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}t.prototype.render=function(){return i(r,{key:"46d79648e22472eab37c2e0576d6872fa7945966",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},i("span",{key:"5898aa6a9b04d0670a23b85bb959f0ab97913658",part:"loader",class:"loader"}))};return t}());It.style=Yt;var Ht={exports:{}};(function(t,e){(function(e,i){{t.exports=e(E.exports)}if(typeof i!=="undefined"&&i.L){e(i.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function e(i,r){t.locales[i]=t.Util.extend({},t.locales[i],r)};t.setLocale=function e(i){t.locale=i};return t.i18n=t._=function e(i,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][i]!=="undefined"){i=t.locales[t.locale][i]}try{i=t.Util.template(i,r)}catch(t){}return i}}),window)})(Ht);var Gt={exports:{}};(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(E.exports),void 0!==i&&i.L&&e(i.L)}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,i){t.locales[e]=t.Util.extend({},t.locales[e],i)},t.setLocale=function(e){t.locale=e},t.i18n=t._=function(e,i){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,i)}catch(t){}return e}}),window);var e=6e4,i=60*e,r=24*i;function n(t){var n=Math.floor(t/r),o=Math.floor((t-n*r)/i),s=Math.floor((t-n*r-o*i)/e),a=Math.round((t-n*r-o*i-s*e)/1e3);return 60===a&&(s++,a=0),60===s&&(o++,s=0),24===o&&(n++,o=0),(n?n+"d ":"")+o.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'}function o(t,e){var i=v("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function s(t,e,i){return!1===e?Promise.resolve():i instanceof Promise?i:new Promise((function(e,i){var r=document.createElement("script");r.addEventListener("load",e,{once:!0}),r.src=t,document.head.appendChild(r)}))}function a(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath()}function c(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function u(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function p(t,e,i){return(i?l:u).call(null,t,e)}function d(t,e,i){e&&u(t,e),i&&l(t,i)}function h(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function f(t,e,i,r){return h(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function v(t,e,i,r){var n=L.DomUtil.create(t,e||"");return i&&w(n,i),r&&g(r,n),n}function g(t,e){return t.appendChild(e)}function b(t,e,i){return t.insertAdjacentElement(i,e)}function w(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var x=L.DomEvent.on,y=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function z(t,e){for(var i in t)e(t[i],i)}var C=Object.freeze({__proto__:null,formatTime:n,saveFile:o,lazyLoader:s,drawCanvas:a,clamp:c,addClass:l,removeClass:u,toggleClass:p,replaceClass:d,style:h,toggleStyle:f,toggleEvent:m,create:v,append:g,insert:b,setAttributes:w,select:k,on:x,off:y,hasClass:A,randomId:_,each:z}),M={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"}},F=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,n=t.scaleX,o=t.scaleY,s=t.interpolation,a=void 0===s?"curveLinear":s;return d3.area().curve("string"==typeof a?d3[a]:a).x((function(t){return t.xDiagCoord=n(t[i])})).y0(e).y1((function(t){return o(t[r])}))},P=function(t){var e=t.name,i=t.color,r=t.strokeColor,n=t.strokeOpacity,o=t.fillOpacity,s=d3.create("svg:path");return e&&s.classed(e,!0),s.style("pointer-events","none"),s.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",o||"0.8"),s},B=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,n=void 0===r?6:r,o=t.tickPadding,s=void 0===o?3:o,a=t.position,c=t.height,l=t.width,u=t.axis,p=t.scale,d=t.ticks,h=t.tickFormat,f=t.label,m=t.labelX,v=t.labelY,g=t.name,b=void 0===g?"":g,w=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==a&&(r=c),"right"==a&&(e=l),"x"==u&&"grid"==i?n=-c:"y"==u&&"grid"==i&&(n=-l);var o=d3["axis"+a.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(p).ticks(d).tickPadding(s).tickSize(n).tickFormat(h),g=t.append("g").attr("class",[u,i,a,b].join(" ")).attr("transform","translate("+e+","+r+")").call(o);return f&&g.append("svg:text").attr("x",m).attr("y",v).text(f),w&&g.call(w),g}},O=function(t){return t.type="grid",B(t)},T=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,n=t.yCoord,o=void 0===n?0:n,s=t.labels,a=void 0===s?{}:s,c=t.item,l=void 0===c?{}:c,u=t.length,p=void 0===u?0:u;return function(t){t.attr("class","height-focus-group");var i,n=t.select(".height-focus.line"),s=t.select(".height-focus.circle-lower"),c=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),s.node()||(s=t.append("svg:circle")),c.node()||(c=t.append("svg:text")),isNaN(r)||isNaN(o)||(s.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+o+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",o).attr("y2",p),c.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",p),Object.keys(a).sort((function(t,e){return a[t].order-a[e].order})).forEach((function(t){(i=c.select(".height-focus-"+a[t].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+a[t].name).attr("dy","1.5em")),i.text("function"!=typeof a[t].value?a[t].value:a[t].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),t}},j=function(t){var e=t.name,i=t.label,r=t.width,n=t.height,o=t.margins,s=void 0===o?{}:o,a=t.color,c=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:c.node(),name:e,legend:t.node(),enabled:!c.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",n+s.bottom/2).attr("width",50).attr("height",10).attr("fill",a).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+s.bottom/2).attr("dy","0.75em"),t}},S=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,n=t.height,o=t.labels,s=void 0===o?{}:o,a=t.item,c=void 0===a?{}:a;return function(t){var o=t.select(".mouse-focus-line"),a=t.select(".mouse-focus-label");o.node()||(o=t.append("svg:line")),a.node()||(a=t.append("g"));var l=a.select(".mouse-focus-label-rect"),u=a.select(".mouse-focus-label-text");l.node()||(l=a.append("svg:rect")),u.node()||(u=a.append("svg:text"));var p,d=0,h=0,f={width:0,height:0};try{f=u.node().getBBox()}catch(e){return t}return e&&(d=e+(e<r/2?10:-f.width-10)),i&&(h=Math.max(i-f.height,L.Browser.webkit?0:-1/0)),o.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",n),a.attr("class","mouse-focus-label"),l.attr("class","mouse-focus-label-rect").attr("x",d-5).attr("y",h-5).attr("width",f.width+10).attr("height",f.height+10).attr("rx",3).attr("ry",3),u.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",h),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(p=u.select(".mouse-focus-label-"+s[t].name)).size()||(p=u.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+s[t].name).attr("dy","1.5em")),p.text("function"!=typeof s[t].value?s[t].value:s[t].value(c))})),u.select("tspan").attr("dy","1em"),u.selectAll("tspan").attr("x",d),t}},N=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),n=t.selectAll(".horizontal-drag-line").data([{w:i}]),o=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),s=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),n.exit().remove(),o.exit().remove(),s.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),o.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(o).attr("x",(function(t){return t.w})),s.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(s).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return"translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},Y=function(t){var e=t.point,i=t.height,r=t.width,n=t.x,o=t.y;return function(t){return isNaN(n)||isNaN(o)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:o}).attr("class",(function(t){return"point "+t.pos})).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-o,bottom:i-o}[e.position],x2:{left:-n,right:r-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},I=function(t){var e=t.min,i=t.max,r=t.attr,n=t.name,o=t.forceBounds,s=t.scale;return function(t){r=r||n,s&&s.attr&&(r=s.attr);var a=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<a[0]||o)&&(a[0]=e),void 0!==i&&(i>a[1]||o)&&(a[1]=i),a}},H=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},G=function(t){var e=t.data,i=t.attr,r=t.min,n=t.max,o=t.forceBounds,s=t.range;return d3.scaleLinear().range(s).domain(I({min:r,max:n,attr:i,forceBounds:o})(e))},Z=function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,o=e-n.left-n.right,s=i-n.top-n.bottom,a=d3.create("svg:svg").attr("class","background"),c=a.append("g"),l={grid:c.append("g").attr("class","grid"),area:c.append("g").attr("class","area"),axis:c.append("g").attr("class","axis"),point:c.append("g").attr("class","point"),brush:c.append("g").attr("class","brush"),tooltip:c.append("g").attr("class","tooltip").attr("display","none"),ruler:c.append("g").attr("class","ruler"),legend:c.append("g").attr("class","legend")},u=l.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),p=u.append("svg:rect").attr("class","zoom").attr("fill","white"),d=l.area.append("svg:foreignObject").attr("mask","url(#"+u.attr("id")+")"),h=d.append("xhtml:canvas").attr("class","canvas-plot"),f=h.node().getContext("2d");l.tooltip.call(S({xCoord:0,yCoord:0,height:s,width:o,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return l.brush.select(".overlay").attr("cursor",null)})),v={mask:u,canvas:h,context:f,brush:m},g={svg:a,g:c,panes:l,utils:v,scale:function(t){return{x:G(t.x),y:G(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,o=t.ruler,s=e-n.left-n.right,u=i-n.top-n.bottom;a.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),c.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&h.style("transform","translate("+n.left+"px,"+n.top+"px)"),p.attr("x",0).attr("y",0).attr("width",s).attr("height",u),d.attr("width",s).attr("height",u),h.attr("width",s).attr("height",u),o&&l.ruler.call(N({height:u,width:s})),l.brush.call(m.extent([[0,0],[s,u]])),l.brush.select(".overlay").attr("cursor",null),g._width=s,g._height=u,g.svg.dispatch("resize",{detail:{width:s,height:u}})},pane:function(t){return l[t]||(l[t]=c.append("g").attr("class",t)),l[t]},get:function(t){return v[t]}};return g._resize({width:e,height:i,margins:n}),g},D=Object.freeze({__proto__:null,Colors:M,Area:F,Path:P,Axis:B,Grid:O,PositionMarker:T,LegendItem:j,Tooltip:S,Ruler:N,CheckPoint:Y,Domain:I,Range:H,Scale:G,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,n=t.x,o=t.attr;return d3.bisector((function(t){return t[o]})).left(i,r.invert(n))},Chart:Z}),R=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var i=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var r=this._chart=Z(t);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){i._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return i._maskGaps.push(t.index)}))}))},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(t){var e=this._paths[t],i=this._props.areas[t];e.datum(this._data).attr("d",F(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?a(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],n=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:n,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),n=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[n]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,n=i.legend,o=i.name,s=i.enabled;if(r){var a=k("text",n),c=k("rect",n);f(a,"text-decoration-line","line-through",s),f(c,"fill-opacity","0",s),p(r,"leaflet-hidden",s),t._updateArea(),t.fire("elepath_toggle",{path:r,name:o,legend:n,enabled:s})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),n=t._ruler.data()[0].y;(n>=r||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var n=t._height(),o=d3.pointers(i,t._area.node())[0][1],s=o>0?o<n?o:n:0,a=t._y.invert(s),c=L.extend(t._ruler.data()[0],{y:s});t._ruler.data([c]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",s<n),t._container.select(".horizontal-drag-label").text(e(a)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:o<n&&o>0?t._findCoordsForY(o):[]})})),this._ruler.call(i)}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var i=P(t);this._paths[t.name]=i,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:i})},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,i=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:e.forceAxisBounds},i)).attr=i.attr||t.name;var r=this._domains[t.name]=I(t),n=this._ranges[t.name]=H(t);i.range=i.range||n(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=G(i)}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,i},_registerCheckPoint:function(t){var e,i,r;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],i=this._x(e.dist),r=this._y(e.z)):isNaN(t.dist)||(i=this._x(t.dist),e=this._data[this._findIndexForXCoord(i)],r=this._y(e.z)),this._point.call(Y({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,n=this._props.grids,o=this._props.axes,s={width:this._width(),height:this._height(),tickFormat:""},a={width:this._width(),height:this._height()};for(var c in n)e=L.extend({},s,n[c]),r=O(e),this._grid.call(r);for(var l in o)!1!==t[l]&&"summary"!==t[l]&&(e=L.extend({},a,o[l]),i=B(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),n=r.attr("transform"),o=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");r.attr("transform","translate("+(+o[0]+40*e)+","+o[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],n=t._data[t._maskGaps[i+1]],o=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),s=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",o).attr("y",0).attr("width",s-o).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)e=j(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var n=this._legend.selectAll(".legend-item"),o=n.nodes().length,s=Array(Math.floor(o/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(o%2))})),a=s.slice().reverse().map((function(t){return-t}));o%2!=0&&a.push(0),s=a.concat(s);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,u=30*o;o&&this.options.margins.right<u&&(this.options.margins.right=u,this.fire("margins_updated")),c&&this.options.margins.bottom<l&&(this.options.margins.bottom=l,this.fire("margins_updated")),n.each((function(e,i,r){var n=d3.select(r[i]),o=(n.select("rect"),n.attr("data-name")),a=t._paths[o],l=55*s[i],u=2*c;n.attr("transform","translate("+l+", "+u+")"),o in t.options&&"disabled"==t.options[o]&&(a.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&a.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),n=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),o=0;return n.reduce((function(t,r,s){return n[e=s+1]===n[s]+1&&e!==n.length||(t.push(n.slice(o,e).map((function(t){return i[t].latlng}))),o=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,n){var o=t.distanceTo(r.latlng);o<i&&(i=o,e=n)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(S({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var V,Q=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(T({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(T({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":u(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t}}),U=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},h(this._container=v("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"")},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML=""},append:function(t,e,i){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,i){return t.labels[e].order-t.labels[i].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info))}))},_registerSummary:function(t){for(var e in t){var i;t[e].order=null!==(i=t[e].order)&&void 0!==i?i:100,this.labels[e]=t[e]}}}),X={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},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,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,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",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},J=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:X,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})}))},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||b(t.getContainer(),e,"afterend"),g(e,this.onAdd(t))}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){h(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=X.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=X.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(M,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":q(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":q(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==q(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=s(t,e,L.Control.Elevation[i])},load:function(t){var e=this;this._parseFromString(t).then((function(i){return i?e._loadLayer(i):e._loadFile(t)}))},onAdd:function(t){var e=this;this._map=t;var i=this._container=v("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(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),y(t.getContainer(),"mousewheel",this._resetDrag,this),y(t.getContainer(),"touchstart",this._resetDrag,this),y(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){h(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":z(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&z(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var n,o,s,a,c;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:l,id:r}),i._addPoint(null!==(o=t.lat)&&void 0!==o?o:t[1],null!==(s=t.lng)&&void 0!==s?s:t[0],null!==(a=null!==(c=t.alt)&&void 0!==c?c:t.meta.ele)&&void 0!==a?a:t[2]),i.fire("elepoint_added",{point:t,index:i._data.length-1})})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){if(this.options.reverseCoords){var r=[e,t];t=r[0],e=r[1]}this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}))},_addMarker:function(t){t&&this._markers.addLayer(t)},_initAlmostOverHandler:function(t,e){var i=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return i._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return i._mouseoutHandler(t)})))}))},_initDistanceMarkers:function(t,e){var i=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t))},_initElevationDiv:function(){var t=k(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+_(),t=v("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var n=e.options.theme.replace("-theme",""),o=M[n]||{},s=r.options;if(s.color=o.line||o.area||n,s.stroke=!!s.color,t.call(this,i,r),s.stroke&&0!==s.weight){var a=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=o.outline||"#FFF",i.lineWidth=1.75*s.weight,i.stroke(),i.globalCompositeOperation=a}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,n=i.offsetHeight;r>0&&(e.width=r),n>20&&(e.height=n-20)}else{var o=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>o&&(e.width=o-30)}var s=this._chart=new R(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(s.render()),s.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer;p(i.getElement&&i.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),m(i,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),m(i,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type)}))},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new Q(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=v("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new U({summary:this.options.summary},this),d3.select(t).call(this._summary.render())},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse()},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(i){e._downloadURL=t,e._parseFromString(i).then((function(t){return t&&e._loadLayer(t)}))})).catch((function(t){return console.warn(t)}))},_loadLayer:function(t){var e=this,i=e.options,r=i.wptIcons,n=i.wptLabels,o=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var i=L.extend({},e.options.polyline);return e.options.theme&&(i.className+=" "+e.options.theme),i},pointToLayer:function(t,i){var o,s,a;if(e.options.waypoints){var c=t.properties,l=null!==(o=c.desc)&&void 0!==o?o:"",u=null!==(s=c.name)&&void 0!==s?s:"",p=(null!==(a=c.sym)&&void 0!==a?a:u).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(n)?u:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=r){r.hasOwnProperty(p)||(r[p]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+p+'"></i>'})));var d=L.marker(i,{icon:r[p]});if([!0,"markers"].includes(n)&&(u||l)){var h=decodeURI("<b>"+u+"</b>"+(l.length>0?"<br>"+l:""));d.bindPopup(h,{className:"elevation-popup",keepInView:!0}).openPopup(),d.bindTooltip(h,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(d),e.fire("waypoint_added",{point:d,element:i,properties:c}),d}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,o),e._fireEvt("eledata_loaded",{data:t,layer:o,name:e.track_info.name,track_info:e.track_info})})),o},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(t){this.fire("elechart_enter")},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var i=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:i}),this.fire("elechart_hover",{data:e,xCoord:i})}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var i=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&u(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=n.length>0?(null!==(e=Array.from(n).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",o},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var n=e._data[r.index][t.name];if(r.index>0){var o=e._data[r.index-1][t.name];if(isNaN(o)){if(isNaN(i)||isNaN(n)?isNaN(i)?isNaN(n)||(o=n):o=i:o=(i+n)/2,!isNaN(o))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=o}}isNaN(n)||(i=n)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=h(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return p(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
|
|
2
|
+
/*!this._data.length ||*/
|
|
3
|
+
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;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>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:o.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});J.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+" "+i.label},order:10}})})),J.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return n(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===q(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+n)}else e.meta.time=new Date(Date.now());var o=e.meta.time;return o.getTime()-60*o.getTimezoneOffset()*1e3==0&&(o=0),o},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+n(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return n(t.time||0)},order:20}}))})),J.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),n=M[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,n=t.track_info;if(t.options.altitudeDeltaMax){var o=e-r[i>0?i-1:i].z,s=t.options.altitudeDeltaMax;Math.abs(o)>s&&(e=r[i-1].z+s*Math.sign(o))}return(e=c(e,t.options.altitudeRange))>n.elevation_max&&(n.elevation_max=e),e<n.elevation_min&&(n.elevation_min=e),n.elevation_avg=(e+n.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||r,strokeColor:e.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?n.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),J.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),n=i[e].z-i[e>0?e-1:e].z;return isNaN(n)||0===r?0:n/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,n=t._data,o=n[i].z-n[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var s=slop-n[i>0?i-1:i].slope,a=t.options.slopeDeltaMax;Math.abs(s)>a&&(e=n[i-1].slope+a*Math.sign(s))}return e=c(e,t.options.slopeRange),o>0?t.track_info.ascent+=o:o<0&&(t.track_info.descent-=o),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+" "+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+" "+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+" "+i.label},order:40}})}})),J.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,n=1e3*(r[i].dist-r[i>0?i-1:i].dist),o=r[i].time-r[i>0?i-1:i].time;return o>0?Math.abs(n/o*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,n=t.track_info;if(t.options.speedDeltaMax){var o=e-r[i>0?i-1:i].speed,s=t.options.speedDeltaMax;Math.abs(o)>s&&(e=r[i-1].speed+s*Math.sign(o))}return(e=c(e,t.options.speedRange))>n.speed_max&&(n.speed_max=e),e<n.speed_min&&(n.speed_min=e),n.speed_avg=(e+n.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+" "+i.label},order:50}}))}})),J.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),o=(r[i].time-r[i>0?i-1:i].time)/1e3;return o>0?Math.abs(n/o)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,n=t.track_info;if(t.options.accelerationDeltaMax){var o=e-r[i>0?i-1:i].acceleration,s=t.options.accelerationDeltaMax;Math.abs(o)>s&&(e=r[i-1].acceleration+s*Math.sign(o))}return(e=c(e,t.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=e),e<n.acceleration_min&&(n.acceleration_min=e),n.acceleration_avg=(e+n.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+" "+i.label},order:60}})}})),J.Utils=C,J.Components=D,J.Chart=R,V=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]=""),V.call(null,t,e)},J.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(t){return new J(t)}}))})(Gt);var Zt={exports:{}};(function(t,e){!function(t,i){i(e)}(S,(function(t){var e=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 e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?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 e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),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,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,c=t.length,l=0,u=!0;if(this._map){var p=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<c;l++){if(o&&l%200==0){var f=(new Date).getTime()-h;if(s<f)break}if((i=t[l])instanceof L.LayerGroup)u&&(t=t.slice(),u=!1),this._extractNonGroupLayers(i,t),c=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),v=m[0]===i?m[1]:m[0];r.removeLayer(v)}}else n.addLayer(i),e||this.fire("layeradd",{layer:i})}a&&a(l,c,(new Date).getTime()-p),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;l<c;l++)(i=t[l])instanceof L.LayerGroup?(u&&(t=t.slice(),u=!1),this._extractNonGroupLayers(i,t),c=t.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,n=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=!1),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),c=r;for(e=0;e<c;e++)(i=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),c=a.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));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 e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,n,o=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,n=s.length-1;0<=n;n--)if(s[n].layer===o[r]){i=!1;break}i&&t.call(e,o[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():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 e,i,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,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],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(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!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 e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var c,l=t.__parent,u=l._markers;for(this._arraySplice(u,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)e&&l._childCount<=1?(c=l._markers[0]===t?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,s.project(l._cLatLng,l._zoom)),n[l._zoom].addObject(c,s.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(o.removeLayer(l),i||o.addLayer(c))):l._iconNeedsUpdate=!0,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(e||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(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()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;e<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,n=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);s<=e;e--){i=this._map.project(t.getLatLng(),e);var a=n[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=o[e].getNearObject(i)){var c=a.__parent;c&&this._removeLayer(a,!1);var l=new this._markerCluster(this,e,a,t);n[e].addObject(l,this._map.project(l._cLatLng,e)),a.__parent=l;var u=t.__parent=l;for(r=e-1;r>c._zoom;r--)u=new this._markerCluster(this,r,u),n[r].addObject(u,this._map.project(a.getLatLng(),r));return c._addChild(u),void this._removeFromGridUnclustered(a,e)}o[e].addObject(t,i)}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 e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),n=0;for(e=e||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_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,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,o,(function(o){var s,a=o._latlng,c=o._markers;for(r.contains(a)||(a=null),o._isSingleParent()&&t+1===e?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,e,r)),i=c.length-1;0<=i;i--)s=c[i],r.contains(s._latlng)||n.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,o,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var s=t._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else t._recursively(r,i,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,e+1)}));o._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 i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,s=r.getZoom();0<i.length&&o<n;){o++;var a=[];for(e=0;e<i.length;e++)a=a.concat(i[e]._childClusters);i=a}o<n?this._group._map.setView(this._latlng,o):n<=s?this._group._map.setView(this._latlng,s+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,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||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,e,i,r,n=this._markers,o=this._childClusters,s=0,a=0,c=this._childCount;if(0!==c){for(this._resetBounds(),t=0;t<n.length;t++)i=n[t]._latlng,this._bounds.extend(i),s+=i.lat,a+=i.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,s+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/c,a/c),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,n=t._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,n=t._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,e,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._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,e,i,r){var n,o;this._recursively(t,e-1,i-1,(function(t){for(o=t._markers.length-1;0<=o;o--)n=t._markers[o],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(o=t._childClusters.length-1;0<=o;o--)n=t._childClusters[o],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,e,i,r,n){var o,s,a=this._childClusters,c=this._zoom;if(e<=c&&(r&&r(this),n&&c===i&&n(this)),c<e||c<i)for(o=a.length-1;0<=o;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),t.intersects(s._bounds)&&s._recursively(t,e,i,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,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),n=this._grid,o=n[r]=n[r]||{},s=o[i]=o[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,n=this._getCoord(e.x),o=this._getCoord(e.y),s=this._grid,a=s[o]=s[o]||{},c=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=c.length;i<r;i++)if(c[i]===t)return c.splice(i,1),1===r&&delete a[n],!0},eachObject:function(t,e){var i,r,n,o,s,a,c=this._grid;for(i in c)for(r in s=c[i])for(n=0,o=(a=s[r]).length;n<o;n++)t.call(e,a[n])&&(n--,o--)},getNearObject:function(t){var e,i,r,n,o,s,a,c,l=this._getCoord(t.x),u=this._getCoord(t.y),p=this._objectPoint,d=this._sqCellSize,h=null;for(e=u-1;e<=u+1;e++)if(n=this._grid[e])for(i=l-1;i<=l+1;i++)if(o=n[i])for(r=0,s=o.length;r<s;r++)a=o[r],((c=this._sqDist(p[L.Util.stamp(a)],t))<d||c<=d&&null===h)&&(d=c,h=a);return h},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,n,o=0,s=null,a=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(n=this.getDistant(r,t))&&(a.push(r),o<n&&(o=n,s=r));return{maxPoint:s,newPoints:a}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,n=!1,o=!1,s=null,a=null,c=null,l=null,u=null,p=null;for(e=t.length-1;0<=e;e--){var d=t[e];(!1===i||d.lat>i)&&(i=(s=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(c=d).lng),(!1===o||d.lng<o)&&(o=(l=d).lng)}return u=r!==i?(p=a,s):(p=l,c),[].concat(this.buildConvexHull([p,u],t),this.buildConvexHull([u,p],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].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,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,s=[];for(n=Math.max(n,35),s.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*o,s[i]=new L.Point(e.x+n*Math.cos(r),e.y+n*Math.sin(r))._round();return s},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,a=0,c=[];for(i=c.length=t;0<=i;i--)i<t&&(c[i]=new L.Point(e.x+n*Math.cos(a),e.y+n*Math.sin(a))._round()),n+=s/(a+=o/n+5e-4*i);return c},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;0<=e;e--)t=o[e],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);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,n,o,s=this._group,a=s._map,c=s._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<t.length;i++)o=a.layerPointToLatLng(e[i]),r=t[i],n=new L.Polyline([this._latlng,o],l),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,n,o,s,a,c=this,l=this._group,u=l._map,p=l._featureGroup,d=this._latlng,h=u.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),v=m.opacity;for(void 0===v&&(v=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=v,l._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],a=u.layerPointToLatLng(e[i]),n=new L.Polyline([d,a],m),u.addLayer(n),r._spiderLeg=n,f&&(s=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=s,o.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),p.addLayer(r),r._setPos&&r._setPos(h);for(l._forceLayout(),l._animationStart(),i=t.length-1;0<=i;i--)a=u.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),f&&((o=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:v}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,n,o,s,a=this,c=this._group,l=c._map,u=c._featureGroup,p=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(e=d[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,s=!0,e._setPos&&(e._setPos(p),s=!1),e.clusterHide&&(e.clusterHide(),s=!1),s&&u.removeLayer(e),h&&(o=(n=(r=e._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));c._ignoreMove=!1,setTimeout((function(){var t=0;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&u.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:a,markers:d})}),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 e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(Zt,Zt.exports);!function(e){if("function"==typeof define&&define.amd)define(["leaflet"],e);else if("object"==typeof t)module.exports=e(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=e(window.L)}}((function(t){var e=t.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:!0,zoomLevel:void 0,drawCircle:!0,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>',htmlSpinner:'\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>',htmlGeolocation:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>',htmlOrientation:'\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>',iconGeolocation:t.divIcon({html:'\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:t.divIcon({html:'\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(e){t.Util.setOptions(this,e),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(e){return this._map=e,this._button=t.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&t.DomUtil.addClass(this._button,this.options.className),t.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),t.DomEvent.on(this._button,"click",t.DomEvent.stopPropagation).on(this._button,"click",t.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(t){this.options.zoomLevel=t},_onClick:function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((function(){clearTimeout(t._clickTimeout),t._clickTimeout=void 0,t._map&&(t._clicked&&t.options.setViewAfterClick?t._setView():(t._clicked=!0,t._updateButton(),t._map.on("layeradd",t._onLayerAdd,t),t._checkGeolocation().then((function(e){t._geolocation=!0,t._onLocationFound(e.coords),t.options.setViewAfterClick&&t._setView(),t._watchGeolocation(),t._checkClickResult()})).catch((function(){t._geolocation=!1,t._checkClickResult()})),t._checkOrientation().then((function(){t._orientation=!0,t._watchOrientation(),t._checkClickResult()})).catch((function(){t._orientation=!1,t._checkClickResult()}))))}),this.options.clickTimeoutDelay);return[2]}))}))},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),!1===this._geolocation&&!1===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise((function(t,e){navigator.geolocation.getCurrentPosition(t,e,{maximumAge:0,enableHighAccuracy:!0})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((function(t){return"granted"===t||Promise.reject()})):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:!0,enableHighAccuracy:!0}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){t.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){t.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(t){this._latitude&&t.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*t.latitude)&&this._longitude&&t.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*t.longitude)&&this._accuracy&&t.accuracy&&Math.round(100*this._accuracy)===Math.round(100*t.accuracy)||(this._latitude=t.latitude,this._longitude=t.longitude,this._accuracy=t.accuracy,this._updateMarker())},_onOrientation:function(t){var e;e=t.webkitCompassHeading||360-t.alpha,this._angle&&Math.abs(e-this._angle)<this.options.minAngleChange||(this._angle=e,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(t){this.options.afterMarkerAdd&&t.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){var e=void 0;if(this._geolocation&&this._orientation&&this._angle)e="iconOrientation";else{if(!this._geolocation)return;e="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=t.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===e?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=t.marker([this._latitude,this._longitude],{icon:this.options[e]}),this._marker.icon_name=e,this._marker.addTo(this._map))}}});return t.control.simpleLocate=function(t){return new e(t)},e}));var Dt=6371008.8;var Rt={centimeters:Dt*100,centimetres:Dt*100,degrees:Dt/111325,feet:Dt*3.28084,inches:Dt*39.37,kilometers:Dt/1e3,kilometres:Dt/1e3,meters:Dt,metres:Dt,miles:Dt/1609.344,millimeters:Dt*1e3,millimetres:Dt*1e3,nauticalmiles:Dt/1852,radians:1,yards:Dt*1.0936};function qt(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function Vt(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!Jt(t[0])||!Jt(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return qt(r,e,i)}function Qt(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function Ut(t,e){if(e===void 0){e="kilometers"}var i=Rt[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function Xt(t){var e=t%360;return e*Math.PI/180}function Jt(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Wt(t,e,i){if(t===null)return;var r,n,o,s,a,c,l,u=0,p=0,d,h=t.type,f=h==="FeatureCollection",m=h==="Feature",v=f?t.features.length:1;for(var g=0;g<v;g++){l=f?t.features[g].geometry:m?t.geometry:t;d=l?l.type==="GeometryCollection":false;a=d?l.geometries.length:1;for(var b=0;b<a;b++){var w=0;var k=0;s=d?l.geometries[b]:l;if(s===null)continue;c=s.coordinates;var x=s.type;u=i&&(x==="Polygon"||x==="MultiPolygon")?1:0;switch(x){case null:break;case"Point":if(e(c,p,g,w,k)===false)return false;p++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(e(c[r],p,g,w,k)===false)return false;p++;if(x==="MultiPoint")w++}if(x==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(n=0;n<c[r].length-u;n++){if(e(c[r][n],p,g,w,k)===false)return false;p++}if(x==="MultiLineString")w++;if(x==="Polygon")k++}if(x==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<c.length;r++){k=0;for(n=0;n<c[r].length;n++){for(o=0;o<c[r][n].length-u;o++){if(e(c[r][n][o],p,g,w,k)===false)return false;p++}k++}w++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(Wt(s.geometries[r],e,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function Kt(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function $t(t){var e=[];if(t.type==="FeatureCollection"){Kt(t,(function(t){Wt(t,(function(i){e.push(Vt(i,t.properties))}))}))}else{Wt(t,(function(i){e.push(Vt(i,t.properties))}))}return Qt(e)}function te(t){var e=[Infinity,Infinity,-Infinity,-Infinity];Wt(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}te["default"]=te;function ee(t,e){if(e===void 0){e={}}var i=te(t);var r=(i[0]+i[2])/2;var n=(i[1]+i[3])/2;return Vt([r,n],e.properties,e)}function ie(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return re(t);case"FeatureCollection":return oe(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return se(t);default:throw new Error("unknown GeoJSON type")}}function re(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=ne(t.properties);e.geometry=se(t.geometry);return e}function ne(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=ne(r)}}else{e[i]=r}}));return e}function oe(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return re(t)}));return e}function se(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return se(t)}));return e}e.coordinates=ae(t.coordinates);return e}function ae(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return ae(t)}))}function ce(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function le(t){if(t.type==="Feature"){return t.geometry}return t}function ue(t,e,i){if(i===void 0){i={}}var r=ce(t);var n=ce(e);var o=Xt(n[1]-r[1]);var s=Xt(n[0]-r[0]);var a=Xt(r[1]);var c=Xt(n[1]);var l=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(c);return Ut(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function pe(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var n=0;Kt(e,(function(e,i){var o=ue(t,e);if(o<r){n=i;r=o}}));i=ie(e.features[n]);i.properties.featureIndex=n;i.properties.distanceToPoint=r;return i}function de(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=ce(t);var n=le(e);var o=n.type;var s=e.bbox;var a=n.coordinates;if(s&&fe(r,s)===false){return false}if(o==="Polygon"){a=[a]}var c=false;for(var l=0;l<a.length&&!c;l++){if(he(r,a[l][0],i.ignoreBoundary)){var u=false;var p=1;while(p<a[l].length&&!u){if(he(r,a[l][p],!i.ignoreBoundary)){u=true}p++}if(!u){c=true}}}return c}function he(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var n=0,o=e.length-1;n<e.length;o=n++){var s=e[n][0];var a=e[n][1];var c=e[o][0];var l=e[o][1];var u=t[1]*(s-c)+a*(c-t[0])+l*(t[0]-s)===0&&(s-t[0])*(c-t[0])<=0&&(a-t[1])*(l-t[1])<=0;if(u){return!i}var p=a>t[1]!==l>t[1]&&t[0]<(c-s)*(t[1]-a)/(l-a)+s;if(p){r=!r}}return r}function fe(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function me(t){var e=ve(t);var i=ee(e);var r=false;var n=0;while(!r&&n<e.features.length){var o=e.features[n].geometry;var s,a,c,l,u,p,d;var h=false;if(o.type==="Point"){if(i.geometry.coordinates[0]===o.coordinates[0]&&i.geometry.coordinates[1]===o.coordinates[1]){r=true}}else if(o.type==="MultiPoint"){var f=false;d=0;while(!f&&d<o.coordinates.length){if(i.geometry.coordinates[0]===o.coordinates[d][0]&&i.geometry.coordinates[1]===o.coordinates[d][1]){r=true;f=true}d++}}else if(o.type==="LineString"){d=0;while(!h&&d<o.coordinates.length-1){s=i.geometry.coordinates[0];a=i.geometry.coordinates[1];c=o.coordinates[d][0];l=o.coordinates[d][1];u=o.coordinates[d+1][0];p=o.coordinates[d+1][1];if(ge(s,a,c,l,u,p)){h=true;r=true}d++}}else if(o.type==="MultiLineString"){var m=0;while(m<o.coordinates.length){h=false;d=0;var v=o.coordinates[m];while(!h&&d<v.length-1){s=i.geometry.coordinates[0];a=i.geometry.coordinates[1];c=v[d][0];l=v[d][1];u=v[d+1][0];p=v[d+1][1];if(ge(s,a,c,l,u,p)){h=true;r=true}d++}m++}}else if(o.type==="Polygon"||o.type==="MultiPolygon"){if(de(i,o)){r=true}}n++}if(r){return i}else{var g=Qt([]);for(n=0;n<e.features.length;n++){g.features=g.features.concat($t(e.features[n]).features)}return Vt(pe(i,g).geometry.coordinates)}}function ve(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return Qt([qt(t)])}return Qt([t])}return t}function ge(t,e,i,r,n,o){var s=Math.sqrt((n-i)*(n-i)+(o-r)*(o-r));var a=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var c=Math.sqrt((n-t)*(n-t)+(o-e)*(o-e));return s===a+c}var be='@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}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-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-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.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}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#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}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);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;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-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-content-marker .outdoor-site-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,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-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-trek-marker .outdoor-site-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-step-marker .outdoor-site-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-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-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:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.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,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-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,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-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-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-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,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-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-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-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-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-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-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-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(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-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-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-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,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.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-trek-marker .outdoor-site-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-step-marker .outdoor-site-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-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !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,.outdoor-site-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,.outdoor-site-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 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:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-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-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;font-family:var(--font-family)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.poi-tooltip .signage-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,.information-desks-tooltip .parking-name,.information-desks-tooltip .signage-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,.sensitive-area-tooltip .parking-name,.sensitive-area-tooltip .signage-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-content-tooltip .parking-name,.touristic-content-tooltip .signage-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,.touristic-event-tooltip .parking-name,.touristic-event-tooltip .signage-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-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:var(--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-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.signage-marker{overflow:hidden;border-radius:0%}.signage-marker img{width:30% !important}.signage-marker .signage-name{margin-left:8px;color:white;white-space:nowrap;max-width:50%}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);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:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !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:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}';var we=be;var ke=t("grw_map",function(){function t(t){e(this,t);this.trekCardPress=n(this,"trekCardPress",7);this.touristicContentCardPress=n(this,"touristicContentCardPress",7);this.touristicEventCardPress=n(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=n(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=n(this,"outdoorCourseCardPress",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.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d"}t.prototype.onCenterOnMap=function(t){this.map.setView(new N.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){if(this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){if(this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){if(this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationPlacesIsInViewport=function(t){if(this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){if(this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){if(this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}};t.prototype.touristicContentsIsInViewport=function(t){if(this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}};t.prototype.touristicEventsIsInViewport=function(t){if(this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer)}};t.prototype.sitesIsInViewport=function(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}};t.prototype.coursesIsInViewport=function(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}};t.prototype.onCardTrekMouseOver=function(t){if(!u.parentTrek&&(!u.selectedTrekId||u.selectedTrekId!==t.detail)){u.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(u.parentTrek){this.stepPopupIsOpen=false;u.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}};t.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&u.selectedTrekId){this.trekPopupIsOpen=false;u.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};t.prototype.onTouristicContentMouseOver=function(t){this.touristicContentPopupIsOpen=false;u.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)};t.prototype.onTouristicContentMouseLeave=function(){u.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};t.prototype.onTouristicEventMouseOver=function(t){this.touristicEventPopupIsOpen=false;u.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)};t.prototype.onTouristicEventMouseLeave=function(){u.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};t.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};t.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};t.prototype.onOutdoorSiteMouseOver=function(t){this.outdoorSitePopupIsOpen=false;u.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)};t.prototype.onOutdoorSiteMouseLeave=function(){u.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};t.prototype.componentDidLoad=function(){var t=this;this.map=N.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){t.tileLayer.push({key:"".concat(e[n]),value:Y.exports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=N.control.layers(this.tileLayer.reduce((function(t,e){var i;return Object.assign(t,(i={},i[e.key]=e.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}N.control.zoom({zoomInTitle:l[u.language].zoomIn,zoomOutTitle:l[u.language].zoomOut}).addTo(this.map);N.control.scale({metric:true,imperial:false}).addTo(this.map);N.Control.Contract=N.Control.extend({onAdd:function(){var e=N.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(N.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";e.onclick=function(e){t.bounds&&t.map.fitBounds(t.bounds);e.preventDefault()};i.title=l[u.language].contract;return e}});N.control.contract=function(t){return new N.Control.Contract(t)};N.control.contract({position:"topleft"}).addTo(this.map);new N.Control.SimpleLocate({position:"topleft",className:"button-locate",title:l[u.language].locate}).addTo(this.map);if(u.currentTrek){this.addTrek()}else if(u.currentTreks){this.addTreks()}else if(u.currentTouristicContent){this.addTouristicContent()}else if(u.currentTouristicEvent){this.addTouristicEvent()}else if(u.currentOutdoorSite){this.addOutdoorSite()}else if(u.currentOutdoorCourse){this.addOutdoorCourse()}else if(u.touristicContents){this.addTouristicContents()}else if(u.touristicEvents){this.addTouristicEvents()}else if(u.outdoorSites){this.addOutdoorSites()}p("currentTreks",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(u.currentTrek){t.removeTreks();t.addTrek()}else if(u.currentTreks){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));p("currentOutdoorSites",(function(){if(u.currentOutdoorSites){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.addOutdoorSites(true)}}));p("currentTrek",(function(){if(u.currentTrek){t.removeTreks();t.addTrek()}else if(u.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));p("currentOutdoorSite",(function(){if(u.currentOutdoorSite){t.removeOutdoorCourse();t.removeOutdoorSites();t.addOutdoorSite()}else if(u.currentOutdoorSites){t.removeOutdoorSite();t.addOutdoorSites()}}));p("currentOutdoorSite",(function(){if(u.currentOutdoorCourse){t.removeOutdoorSite();t.addOutdoorCourse()}}));p("currentTouristicContent",(function(){if(t.grwApp){if(u.currentTouristicContent){t.removeTrek();t.removeTouristicContents();t.addTouristicContent()}else if(u.touristicContents){t.removeTouristicContent();t.addTouristicContents()}else if(u.currentTrek){t.removeTouristicContent();t.addTrek()}else if(u.currentTreks){t.removeTouristicContent();t.addTreks()}}}));p("currentTouristicEvent",(function(){if(t.grwApp){if(u.currentTouristicEvent){t.removeTrek();t.removeTouristicEvents();t.addTouristicEvent()}else if(u.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(u.currentTreks){t.removeTouristicEvent();t.addTreks()}}}));p("currentTouristicContents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(u.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(u.currentTouristicContents){t.removeTreks();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTouristicContent();t.addTouristicContents(true)}}));p("currentTouristicEvents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(u.currentTouristicEvent){t.removeTouristicEvents();t.addTouristicEvent()}else if(u.currentTouristicEvents){t.removeTreks();t.removeTouristicContents();t.removeOutdoorSites();t.removeTouristicEvent();t.addTouristicEvents(true)}}))};t.prototype.handleLayerVisibility=function(t,e){if(t&&!this.map.hasLayer(e)){e.addTo(this.map)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()};t.prototype.addTreks=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c;var l=this;return __generator(this,(function(p){switch(p.label){case 0:u.treksWithinBounds=u.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(u.currentTreks){n=function(t){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=u.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,s=u.currentTreks;o<s.length;o++){a=s[o];n(a)}}if(!!this.treksLayer)return[3,2];if(i.length>0&&!u.currentMapBounds||t){this.bounds=N.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:c=p.sent();this.treksLayer=N.geoJSON(r,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:c[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(c[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:l.mainMarkerSize,iconAnchor:[l.mainMarkerSize/2,l.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(l,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=N.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=N.DomUtil.create("img");o.part="trek-image-popup";o.src=r;n.appendChild(o)}s=N.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";n.appendChild(s);a=N.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="trek-button";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){l.hideTrekLine();l.showTrekLine(t.properties.id);l.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return N.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:l.mainClusterSize})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=N.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);p.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){if(this.treksLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(u.currentTreks&&!u.currentMapBounds||u.currentTreks&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.treksWithinBounds=u.currentTreks.filter((function(e){return t.map.getBounds().contains(N.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.handleTouristicContentsWithinBounds=function(){var t=this;if(u.currentTouristicContents&&!u.currentMapBounds||u.currentTouristicContents&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.touristicContentsWithinBounds=u.currentTouristicContents.filter((function(e){return t.map.getBounds().contains(N.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleTouristicEventsWithinBounds=function(){var t=this;if(u.currentTouristicEvents&&!u.currentMapBounds||u.currentTouristicEvents&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.touristicEventsWithinBounds=u.currentTouristicEvents.filter((function(e){return t.map.getBounds().contains(N.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleOutdoorSitesWithinBounds=function(){var t=this;if(u.currentOutdoorSites&&!u.currentMapBounds||u.currentOutdoorSites&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.outdoorSitesWithinBounds=u.currentOutdoorSites.filter((function(e){var i=me(e.geometry).geometry.coordinates;return t.map.getBounds().contains(N.latLng(i[1],i[0]))}))}};t.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,a,c,l,p,d,h,f,m,v,g,b,w,k,x,y,A,_;var z=this;return __generator(this,(function(L){switch(L.label){case 0:return[4,I("treks",u.currentTrek.id)];case 1:e=L.sent();if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;u.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:u.currentTrek.geometry,properties:{}};this.currentTrekLayer=N.geoJSON(i,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(u.currentTrek.parking_location){r=o("".concat("","assets/parking.svg"));n={type:"Feature",properties:{name:u.currentTrek.advised_parking},geometry:{type:"Point",coordinates:u.currentTrek.parking_location}};this.currentParkingLayer=N.geoJSON(n,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:z.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=N.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=N.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(u.currentSensitiveAreas&&u.currentSensitiveAreas.length>0){a={type:"FeatureCollection",features:[]};for(c=0,l=u.currentSensitiveAreas;c<l.length;c++){p=l[c];a.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=N.geoJSON(a,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=N.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=N.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:z.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(u.currentTrek)];case 2:L.sent();return[4,this.addCurrentPois()];case 3:L.sent();return[4,this.addCurrentSignages()];case 4:L.sent();return[4,this.addCurrentTouristicContents()];case 5:L.sent();return[4,this.addCurrentTouristicEvents()];case 6:L.sent();if(u.currentTrek.points_reference){d={type:"FeatureCollection",features:[]};d.features.push({type:"Feature",properties:{},geometry:u.currentTrek.points_reference});h=0;this.currentReferencePointsLayer=N.geoJSON(d,{pointToLayer:function(t,e){h+=1;return N.marker(e,{icon:N.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(h,"</div>"),className:"",iconSize:z.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&u.parentTrekId&&u.parentTrek&&u.currentTrek.id===u.parentTrekId){f={type:"FeatureCollection",features:[]};if(u.currentTrekSteps){m=function(e){f.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=u.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(t){return t.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(v=0,g=u.currentTrekSteps;v<g.length;v++){b=g[v];m(b)}}w=0;this.currentStepsLayer=N.geoJSON(f,{pointToLayer:function(t,e){w+=1;return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:'<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(w,"</div></div></div>"),className:"",iconSize:z.mainMarkerSize,iconAnchor:[z.mainMarkerSize/2,z.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(z,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=N.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=N.DomUtil.create("img");o.src=r;n.appendChild(o)}s=N.DomUtil.create("div");s.innerHTML=t.properties.name;n.part="trek-name";s.className="trek-name";n.appendChild(s);a=N.DomUtil.create("button");a.innerHTML="Afficher le détail";n.part="trek-button";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){z.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}k={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};N.registerLocale("fr",k);N.setLocale("fr");x={elevationDiv:"#elevation-container",theme:"custom-theme use-theme-color",height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:true},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false};this.elevationControl=N.control.elevation(x).addTo(this.map);y=JSON.stringify({name:"".concat(u.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:u.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(y);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";s(this.hostElement);A={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:u.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:u.currentTrek.geometry.coordinates[u.currentTrek.geometry.coordinates.length-1]},properties:null}]};_=0;this.departureArrivalLayer=N.geoJSON(A,{pointToLayer:function(t,e){_+=1;return N.marker(e,{icon:N.divIcon({html:'<div part="'.concat(_===1?"departure-marker":"arrival-marker",'" class="').concat(_===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:z.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=N.latLngBounds(u.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.on("eledata_loaded",(function(){z.map.invalidateSize();z.bounds&&z.map.fitBounds(z.bounds);!z.mapIsReady&&(z.mapIsReady=!z.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;return __generator(this,(function(s){switch(s.label){case 0:i={};r=0;s.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];n=i;o=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:n[o]=s.sent();s.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(!!k.isNativePlatform())return[3,5];return[4,x(t)];case 1:i=a.sent();if(!i)return[3,3];o=(n=window.URL).createObjectURL;return[4,y(t)];case 2:r=o.apply(n,[a.sent().data]);return[3,4];case 3:r=t?t:null;a.label=4;case 4:e=r;return[3,7];case 5:return[4,A.getUri({path:t,directory:_.Data})];case 6:s=a.sent();if(s){e=k.convertFileSrc(s.uri)}a.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:r={type:"FeatureCollection",features:[]};if(u.currentTreks){n=u.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=u.practices.find((function(t){return t.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(t){return t.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedCurrentTrek();u.selectedTrekId=t;return[4,this.getIcons(r,"practice")];case 1:o=a.sent();this.selectedCurrentTrekLayer=N.geoJSON(r,{pointToLayer:function(t,e){return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:o[t.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(s,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=N.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=N.DomUtil.create("img");o.src=r;o.part="trek-image";n.appendChild(o)}s=N.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";n.appendChild(s);a=N.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="trek-button";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!s.trekPopupIsOpen){u.selectedTrekId=null;s.hideTrekLine();s.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){s.trekPopupIsOpen=Boolean(u.selectedTrekId)}));e.on("popupclose",(function(){if(u.selectedTrekId){s.trekPopupIsOpen=false;u.selectedTrekId=null;s.hideTrekLine();s.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedCurrentTrek=function(){u.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};t.prototype.addSelectedCurrentStep=function(t,e){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(u.currentTrekSteps){var o=u.currentTrekSteps.findIndex((function(e){return e.id===t}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:u.currentTrekSteps[o].departure_geom},properties:{id:u.currentTrekSteps[o].id,name:u.currentTrekSteps[o].name,practice:(r=u.practices.find((function(t){return t.id===u.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:u.currentTrekSteps[o].attachments&&u.currentTrekSteps[o].attachments.filter((function(t){return t.type==="image"})).length>0?u.currentTrekSteps[o].attachments[0].thumbnail!==""?u.currentTrekSteps[o].attachments[0].thumbnail:u.currentTrekSteps[o].attachments[0].url:null,index:o+1}})}this.removeSelectedCurrentStep();u.selectedStepId=t;this.selectedCurrentStepLayer=N.geoJSON(n,{pointToLayer:function(t,e){return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:'<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(t.properties.index,"</div></div></div>"),className:"",iconSize:i.selectedMainMarkerSize,iconAnchor:[i.selectedMainMarkerSize/2,i.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=N.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=N.DomUtil.create("img");o.part="trek-image";o.src=r;n.appendChild(o)}s=N.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";n.appendChild(s);a=N.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="trek-name";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!i.stepPopupIsOpen){u.selectedTrekId=null;i.removeSelectedCurrentStep()}}));e.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(u.selectedStepId)}));e.on("popupclose",(function(){if(u.selectedStepId){i.stepPopupIsOpen=false;u.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};t.prototype.removeSelectedCurrentStep=function(){if(u.selectedStepId){u.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};t.prototype.handleLayersControlEvent=function(){var t=this;if(this.layersControl){var e=this.layersControl._layerControlInputs;e.forEach((function(e){if(t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId})).overlay){e.onchange=function(i){t.userLayersState[e.layerId]=i.target.checked}}}))}};t.prototype.removeTrek=function(){this.handleLayersOnRemove()};t.prototype.showTrekLine=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:this.removeSelectedCurrentTrek();return[4,q(t)];case 1:e=n.sent();i={type:"Feature",geometry:e.geometry,properties:{}};this.currentTrekLayer=N.geoJSON(i,{style:function(){return{color:r.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};t.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:this.touristicContentPopupIsOpen=false;u.selectedTouristicContentId=null;this.removeSelectedTouristicContent();t={type:"FeatureCollection",features:[]};if(u.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:u.currentTouristicContent.geometry.coordinates},properties:{id:u.currentTouristicContent.id,name:u.currentTouristicContent.name,practice:u.touristicContentCategories.find((function(t){return t.id===u.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:e=r.sent();this.currentToutisticContentLayer=N.geoJSON(t,{pointToLayer:function(t,r){return N.marker(r,{icon:N.divIcon({html:e[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(e[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:i.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);r.label=2;case 2:this.map.setView([u.currentTouristicContent.geometry.coordinates[1],u.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:u.touristicContentsWithinBounds=u.currentTouristicContents;e=[];i={type:"FeatureCollection",features:[]};if(u.currentTouristicContents){r=function(t){e.push(t.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:u.touristicContentCategories.find((function(e){return e.id===t.category})).pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=u.currentTouristicContents;n<o.length;n++){s=o[n];r(s)}}if(!!this.toutisticContentsLayer)return[3,2];if(e.length>0&&!u.currentMapBounds||t){this.bounds=N.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(i,"practice")];case 1:a=l.sent();this.toutisticContentsLayer=N.geoJSON(i,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:a[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(a[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:c.mainMarkerSize,iconAnchor:[c.mainMarkerSize/2,c.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;i.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=function(){return c.touristicContentCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){c.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return N.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:c.mainClusterSize})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(e.length>0){this.bounds=N.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);l.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};t.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:t={type:"FeatureCollection",features:[]};if(u.currentTouristicEvent){e=u.touristicEventTypes.find((function(t){return t.id===u.currentTouristicEvent.type}));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:u.currentTouristicEvent.geometry.coordinates},properties:{id:u.currentTouristicEvent.id,name:u.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=n.sent();this.currentToutisticEventLayer=N.geoJSON(t,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:i[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);n.label=2;case 2:this.map.setView([u.currentTouristicEvent.geometry.coordinates[1],u.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:r={type:"FeatureCollection",features:[]};if(u.touristicContents){n=u.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=u.touristicContentCategories.find((function(t){return t.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(t){return t.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedTouristicContent();u.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:o=a.sent();this.selectedTouristicContentLayer=N.geoJSON(r,{pointToLayer:function(t,e){return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:o[t.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(o[t.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=function(){return s.touristicContentCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicContentPopupIsOpen){u.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){s.touristicContentPopupIsOpen=Boolean(u.selectedTouristicContentId)}));e.on("popupclose",(function(){if(u.selectedTouristicContentId){s.touristicContentPopupIsOpen=false;u.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicContent=function(){u.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};t.prototype.addTouristicEvents=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c;var l=this;return __generator(this,(function(p){switch(p.label){case 0:u.touristicEventsWithinBounds=u.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(u.currentTouristicEvents){n=function(t){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=u.touristicEventTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,s=u.currentTouristicEvents;o<s.length;o++){a=s[o];n(a)}}if(!!this.touristicEventsLayer)return[3,2];if(i.length>0&&!u.currentMapBounds||t){this.bounds=N.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(r,"type")];case 1:c=p.sent();this.touristicEventsLayer=N.geoJSON(r,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:c[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(c[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:l.mainMarkerSize,iconAnchor:[l.mainMarkerSize/2,l.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=function(){return l.touristicEventCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){l.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return N.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:l.mainClusterSize})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=N.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);p.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicEvents=function(){if(this.touristicEventsLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};t.prototype.addOutdoorSites=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,l;var p=this;return __generator(this,(function(d){switch(d.label){case 0:u.outdoorSitesWithinBounds=u.currentOutdoorSites;i=[];r={type:"FeatureCollection",features:[]};if(u.currentOutdoorSites){n=function(t){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:me(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(e=u.outdoorPractices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,s=u.currentOutdoorSites;o<s.length;o++){a=s[o];n(a)}}if(!!this.outdoorSitesLayer)return[3,2];if(i.length>0&&!u.currentMapBounds||t){c=te(r);this.bounds=N.latLngBounds([c[1],c[0]],[c[3],c[2]])}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:l=d.sent();this.outdoorSitesLayer=N.geoJSON(r,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:l[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(l[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:p.mainMarkerSize,iconAnchor:[p.mainMarkerSize/2,p.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=function(){return p.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){p.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return N.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:p.mainClusterSize})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=N.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(r);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);d.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind);return[2]}}))}))};t.prototype.removeOutdoorSites=function(){if(this.outdoorSitesLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};t.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:t={type:"FeatureCollection",features:[]};if(u.currentOutdoorSite){e=u.outdoorPractices.find((function(t){return t.id===u.currentOutdoorSite.practice}));t.features.push({type:"Feature",geometry:u.currentOutdoorSite.geometry,properties:{id:u.currentOutdoorSite.id,name:u.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:i=n.sent();this.currentOutdoorSiteLayer=N.geoJSON(t,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:i[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);n.label=2;case 2:return[4,this.addCurrentInformationDesks(u.currentOutdoorSite)];case 3:n.sent();return[4,this.addCurrentPois()];case 4:n.sent();return[4,this.addCurrentTouristicContents()];case 5:n.sent();return[4,this.addCurrentTouristicEvents()];case 6:n.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:n.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:n.sent();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(u.currentRelatedOutdoorSites){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=u.outdoorPractices.find((function(t){return t.id===i.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,n=u.currentRelatedOutdoorSites;r<n.length;r++){o=n[r];i(o)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:s=c.sent();this.currentRelatedOutdoorSitesLayer=N.geoJSON(e,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:s[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:a.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:a.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(u.currentRelatedOutdoorCourses){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=u.outdoorCourseTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,n=u.currentRelatedOutdoorCourses;r<n.length;r++){o=n[r];i(o)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:s=c.sent();this.currentRelatedOutdoorCoursesLayer=N.geoJSON(e,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:s[t.properties.practice]?'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>',className:"",iconSize:a.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:a.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:r={type:"FeatureCollection",features:[]};if(u.touristicEvents){n=u.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=u.touristicEventTypes.find((function(t){return t.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(t){return t.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedTouristicEvent();u.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:o=a.sent();this.selectedTouristicEventLayer=N.geoJSON(r,{pointToLayer:function(t,e){return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:o[t.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(o[t.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=function(){return s.touristicEventCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicEventPopupIsOpen){u.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){s.touristicEventPopupIsOpen=Boolean(u.selectedTouristicEventId)}));e.on("popupclose",(function(){if(u.selectedTouristicEventId){s.touristicEventPopupIsOpen=false;u.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicEvent=function(){u.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};t.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:t={type:"FeatureCollection",features:[]};if(u.currentOutdoorCourse){e=u.outdoorCourseTypes.find((function(t){return t.id===u.currentOutdoorCourse.type}));t.features.push({type:"Feature",geometry:u.currentOutdoorCourse.geometry,properties:{id:u.currentOutdoorCourse.id,name:u.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=n.sent();this.currentOutdoorCourseLayer=N.geoJSON(t,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:i[t.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);n.label=2;case 2:return[4,this.addCurrentPois()];case 3:n.sent();return[4,this.addCurrentTouristicContents()];case 4:n.sent();return[4,this.addCurrentTouristicEvents()];case 5:n.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(u.currentOutdoorSites){r=u.currentOutdoorSites.find((function(e){return e.id===t}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:me(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(e=u.outdoorPractices.find((function(t){return t.id===r.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();u.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:n=s.sent();this.selectedOutdoorSiteLayer=N.geoJSON(i,{pointToLayer:function(t,e){return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:n[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(n[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var s=N.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=function(){return o.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.outdoorSitePopupIsOpen){u.selectedOutdoorSiteId=null;o.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){o.outdoorSitePopupIsOpen=Boolean(u.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(u.selectedOutdoorSiteId){o.outdoorSitePopupIsOpen=false;u.selectedOutdoorSiteId=null;o.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorSite=function(){u.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};t.prototype.addSelectedOutdoorCourse=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(u.currentOutdoorCourse){r=u.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:me(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(e=u.outdoorCourseTypes.find((function(t){return t.id===r.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();u.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:n=s.sent();this.selectedOutdoorCourseLayer=N.geoJSON(i,{pointToLayer:function(t,e){return N.marker(e,{zIndexOffset:4e6,icon:N.divIcon({html:n[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(n[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=N.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){var r=N.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=N.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-course-name";n.className="outdoor-course-name";i.appendChild(n);var s=N.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-course-button";s.className="outdoor-course-button";s.onclick=function(){return o.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.outdoorCoursePopupIsOpen){u.selectedOutdoorCourseId=null;o.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){o.outdoorCoursePopupIsOpen=Boolean(u.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(u.selectedOutdoorCourseId){o.outdoorCoursePopupIsOpen=false;u.selectedOutdoorCourseId=null;o.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorCourse=function(){u.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};t.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:if(!(u.currentPois&&u.currentPois.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=u.poiTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,n=u.currentPois;r<n.length;r++){o=n[r];i(o)}return[4,this.getIcons(e,"type_pictogram")];case 1:s=c.sent();this.currentPoisLayer=N.geoJSON(e,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:s[t.properties.type_pictogram]?'<div part="poi-marker" class="poi-marker"><img src='.concat(s[t.properties.type_pictogram]," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:a.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=N.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=N.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentSignages=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n;var s=this;return __generator(this,(function(a){if(u.currentSignages&&u.currentSignages.length>0){t=o("".concat("","assets/signage.svg"));e={type:"FeatureCollection",features:[]};for(i=0,r=u.currentSignages;i<r.length;i++){n=r[i];e.features.push({type:"Feature",properties:{name:n.name},geometry:n.geometry})}this.currentSignagesLayer=N.geoJSON(e,{pointToLayer:function(e,i){return N.marker(i,{icon:N.divIcon({html:'<div part="signage-marker" class="signage-marker"><img src='.concat(t,' /><div part="signage-name" class="signage-name">').concat(e.properties.name,"</div></div>"),className:"",iconSize:[s.commonMarkerSize*1.2,s.commonMarkerSize*.8]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=N.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";var r=N.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}return[2]}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:if(!(u.trekTouristicContents&&u.trekTouristicContents.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(t=u.touristicContentCategories.find((function(t){return t.id===i.category})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,n=u.trekTouristicContents;r<n.length;r++){o=n[r];i(o)}return[4,this.getIcons(e,"category_pictogram")];case 1:s=c.sent();this.currentToutisticContentsLayer=N.geoJSON(e,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:s[t.properties.category_pictogram]?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(s[t.properties.category_pictogram]," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:a.grwApp?"":"cursor-pointer",iconSize:a.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.on("click",(function(){if(!a.grwApp){a.touristicContentCardPress.emit(t.properties.id)}}));e.on("mouseover",(function(){var i=N.DomUtil.create("div");i.part="touristic-content-tooltip";i.className="touristic-content-tooltip";var r=N.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:if(!(u.trekTouristicEvents&&u.trekTouristicEvents.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(t=u.touristicEventTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,n=u.trekTouristicEvents;r<n.length;r++){o=n[r];i(o)}return[4,this.getIcons(e,"type_pictogram")];case 1:s=c.sent();this.currentTouristicEventsLayer=N.geoJSON(e,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:s[t.properties.type_pictogram]?'\n <div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(s[t.properties.type_pictogram]," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:a.grwApp?"":"cursor-pointer",iconSize:a.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.on("click",(function(){if(!a.grwApp){a.touristicEventCardPress.emit(t.properties.id)}}));e.once("mouseover",(function(){var i=N.DomUtil.create("div");i.part="touristic-event-tooltip";i.className="touristic-event-tooltip";var r=N.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:if(!(u.currentInformationDesks&&u.currentInformationDesks.length>0))return[3,2];e={type:"FeatureCollection",features:[]};for(i=0,r=u.currentInformationDesks.filter((function(e){return t.information_desks.includes(e.id)}));i<r.length;i++){n=r[i];if(n.latitude&&n.longitude){e.features.push({type:"Feature",properties:{name:n.name,type_pictogram:n.type.pictogram},geometry:{type:"Point",coordinates:[Number(n.longitude),Number(n.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:o=a.sent();this.currentInformationDesksLayer=N.geoJSON(e,{pointToLayer:function(t,e){return N.marker(e,{icon:N.divIcon({html:o[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(o[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=N.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=N.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});a.label=2;case 2:return[2]}}))}))};t.prototype.handleLayersControl=function(){var t=this;var e={};if(this.currentStepsLayer){e[l[u.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[l[u.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[l[u.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[l[u.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[l[u.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){e[l[u.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){e[l[u.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(this.currentToutisticContentsLayer){e[l[u.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentTouristicEventsLayer){e[l[u.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[l[u.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[l[u.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((function(i){t.layersControl.addOverlay(e[i],i)}))}else if(Object.keys(e).length>0){this.layersControl=N.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};t.prototype.handleLayersOnRemove=function(){var t=this;if(this.layersControl){if(!this.layersControl._layers.some((function(t){return!t.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(t){return t.overlay})).forEach((function(e){t.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=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.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=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.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=t;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}s(this.hostElement)};t.prototype.handleElevation=function(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();s(this.hostElement)};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/layers.svg"));var n=o("".concat("","assets/contract.svg"));return i(r,{key:"0e1b952b693a51282cb5db4602393cf8fa5dfd18",ref:function(e){return t.hostElement=e},style:{"--font-family":this.fontFamily,"--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-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(n,")"),"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},i("div",{key:"9484ce7be3051376ef461dbada5cff8c7dc9bdaa",id:"map",part:"map",class:(u.currentTouristicContent||u.currentTouristicEvent||u.currentOutdoorSite||u.currentOutdoorCourse)&&this.grwApp?"common-map":u.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":u.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}},u.currentTrek&&i("div",{class:"grw-elevation-visibility-button-container"},i("grw-fab",{exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleElevation()},icon:function(){return t.elevationControl&&t.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation"},showTitle:l[u.language].showElevation,hideTitle:l[u.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&i("div",{part:"map-loader-container",class:"map-loader-container"},i("span",{part:"loader",class:"loader"})))};Object.defineProperty(t.prototype,"mapElement",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());ke.style=we;var xe=":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px 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;margin-right:16px}@-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)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-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-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}";var ye=xe;var Ae=t("grw_offline_confirm_modal",function(){function t(t){e(this,t);this.downloadPress=n(this,"downloadPress",7);this.deletePress=n(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showErrorModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false;this.mode=undefined}t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.downloadedErrorConfirm=function(){this.showLoaderModal=false;this.showErrorModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.deleteErrorConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){document.body.style.overflow="visible";this.showOfflineModal=false};t.prototype.render=function(){var t=this;return i(r,{key:"cec1d47f1c1889c6342e5ce6a51f5e12dd39984d"},this.showOfflineModal&&i("div",{class:"modal-container"},i("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&i(c,null,i("div",{class:"modal-message-container"},"".concat(this.mode==="treks"?l[u.language].offline.downloadRouteQuestion:l[u.language].offline.downloadOutdoorQuestion)),i("div",{class:"modal-buttons-container"},i("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},l[u.language].offline.cancel),i("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},l[u.language].offline.ok))),this.showConfirmDeleteModal&&i(c,null,i("div",{class:"modal-message-container"},"".concat(this.mode==="treks"?l[u.language].offline.deleteRouteQuestion:l[u.language].offline.deleteRouteQuestion)),i("div",{class:"modal-buttons-container"},i("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},l[u.language].offline.cancel),i("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},l[u.language].offline.ok))),this.showLoaderModal&&i(c,null,i("div",{class:"modal-message-container"},i("div",{class:"modal-loader"}),this.showDeletingMessage?l[u.language].offline.deleting:l[u.language].offline.downloading)),this.showSuccessModal&&i(c,null,i("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?l[u.language].offline.offlineRouteDeleted:l[u.language].offline.offlineOutdoorDeleted:this.mode==="treks"?l[u.language].offline.routeAvailableOffline:l[u.language].offline.outdoorAvailableOffline),i("div",{class:"modal-button-container"},i("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},l[u.language].offline.ok))),this.showErrorModal&&i(c,null,i("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?l[u.language].offline.deleteRouteError:l[u.language].offline.deleteOutdoorError:this.mode==="treks"?l[u.language].offline.downloadRouteError:l[u.language].offline.downloadOutdoorError),i("div",{class:"modal-button-container"},i("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},l[u.language].offline.ok))))))};return t}());Ae.style=ye;function _e(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var o=rt();var s=false;var a=null;var c=null;var l;var u;var p;var d;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,n=t.el;var o=e.params.scrollbar;var s=e.params.loop?e.progressLoop:e.progress;var c=u;var l=(p-u)*s;if(i){l=-l;if(l>0){c=u-l;l=0}else if(-l+u>p){c=p+l}}else if(l<0){c=u+l;l=0}else if(l+u>p){c=p-l}if(e.isHorizontal()){r.style.transform="translate3d(".concat(l,"px, 0, 0)");r.style.width="".concat(c,"px")}else{r.style.transform="translate3d(0px, ".concat(l,"px, 0)");r.style.height="".concat(c,"px")}if(o.hide){clearTimeout(a);n.style.opacity=1;a=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function f(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";p=e.isHorizontal()?r.offsetWidth:r.offsetHeight;d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){u=p*d}else{u=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(u,"px")}else{i.style.height="".concat(u,"px")}if(d>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function v(t){return e.isHorizontal()?t.clientX:t.clientY}function g(t){var i=e.scrollbar,r=e.rtlTranslate;var n=i.el;var o;o=(v(t)-at(n)[e.isHorizontal()?"left":"top"]-(l!==null?l:u/2))/(p-u);o=Math.max(Math.min(o,1),0);if(r){o=1-o}var s=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*o;e.updateProgress(s);e.setTranslate(s);e.updateActiveIndex();e.updateSlidesClasses()}function b(t){var i=e.params.scrollbar;var r=e.scrollbar,o=e.wrapperEl;var a=r.el,u=r.dragEl;s=true;l=t.target===u?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();o.style.transitionDuration="100ms";u.style.transitionDuration="100ms";g(t);clearTimeout(c);a.style.transitionDuration="0ms";if(i.hide){a.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",t)}function w(t){var i=e.scrollbar,r=e.wrapperEl;var o=i.el,a=i.dragEl;if(!s)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;g(t);r.style.transitionDuration="0ms";o.style.transitionDuration="0ms";a.style.transitionDuration="0ms";n("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,o=e.wrapperEl;var a=r.el;if(!s)return;s=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";o.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=st((function(){a.style.opacity=0;a.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function x(t){var i=e.scrollbar,r=e.params;var n=i.el;if(!n)return;var s=n;var a=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!s)return;var l=t==="on"?"addEventListener":"removeEventListener";s[l]("pointerdown",b,a);o[l]("pointermove",w,a);o[l]("pointerup",k,c)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("off")}function _(){var t=e.scrollbar,i=e.el;e.params.scrollbar=nt(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});var r=e.params.scrollbar;if(!r.el)return;var n;if(typeof r.el==="string"&&e.isElement){n=e.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=o.querySelectorAll(r.el)}else if(!n){n=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&n.length>1&&i.querySelectorAll(r.el).length===1){n=i.querySelector(r.el)}if(n.length>0)n=n[0];n.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var s;if(n){s=n.querySelector(".".concat(e.params.scrollbar.dragClass));if(!s){s=ot("div",e.params.scrollbar.dragClass);n.append(s)}}Object.assign(t,{el:n,dragEl:s});if(r.draggable){y()}if(n){n.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function z(){var t=e.params.scrollbar;var i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}A()}r("init",(function(){if(e.params.scrollbar.enabled===false){C()}else{_();m();h()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){h()}));r("setTransition",(function(t,e){f(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){z()}));var L=function(){e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}_();m();h()};var C=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}z()};Object.assign(e.scrollbar,{enable:L,disable:C,updateSize:m,setTranslate:h,init:_,destroy:z})}var ze='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>';var Le='@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}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.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:var(--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-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);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}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-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;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-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}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--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;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .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)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}';var Ce=Le;var Me=1;var Fe=t("grw_outdoor_course_detail",function(){function t(t){e(this,t);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";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;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.currentOutdoorCourse=undefined;this.offline=false}t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,ut,pt,dt,ht],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new ct(this.swiperTouristicContentsRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new ct(this.swiperTouristicEventsRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new ct(this.swiperPoisRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:Me});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:Me});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:Me});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(u.currentOutdoorCourse){this.currentOutdoorCourse=u.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}p("currentOutdoorCourse",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(u.currentOutdoorCourse){this.currentOutdoorCourse=u.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/default-image.svg"));var n=u.outdoorCourseTypes&&this.currentOutdoorCourse&&u.outdoorCourseTypes.find((function(e){return e.id===t.currentOutdoorCourse.type}));var s=u.cities&&u.cities.find((function(e){return e.id===t.currentOutdoorCourse.cities[0]}));var a=u.outdoorRatings&&this.currentOutdoorCourse&&u.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var c=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var p=c&&u.outdoorRatingsScale.filter((function(t){return c.includes(t.id)}));return i(r,{key:"f8c78fc0516ee15f1d2d53668f97a041b2631da6",style:{"--font-family":this.fontFamily,"--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?u.languages&&u.languages.length>1?"44px":"12px":u.languages&&u.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&i("div",{part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},i("div",{part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(r){var n=[r.legend,r.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},i("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:ft})),i("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},n),i("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:t.offline&&r.thumbnail!==""?r.thumbnail:r.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:r.legend}))})):i("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),i("div",null,i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),i("div",{part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},n&&i("div",{part:"icon-label",class:"icon-label type"},n.pictogram&&i("img",{part:"icon",class:"icon",src:n.pictogram,alt:""}),i("span",{part:"label",class:"label"},n.name)),i("div",{part:"icon-label",class:"icon-label duration"},i("span",{part:"icon",class:"icon",innerHTML:At}),i("span",{part:"label",class:"label"},z(this.currentOutdoorCourse.duration))),i("div",{part:"icon-label",class:"icon-label length"},i("span",{part:"icon",class:"icon",innerHTML:_t}),i("span",{part:"label",class:"label"},C(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&i("div",{part:"icon-label",class:"icon-label ascent"},i("span",{part:"icon",class:"icon",innerHTML:zt}),i("span",{part:"label",class:"label"},M(this.currentOutdoorCourse.max_elevation))),a&&p.map((function(t){return i("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},l[u.language].downloads),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentOutdoorCourse.pdf).concat(u.portalsFromProviders&&u.portalsFromProviders.length===1?"?portal="+u.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:mt}),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},l[u.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},l[u.language].departure," : "),i("div",{part:"departure",innerHTML:s.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},l[u.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(t){var e;return(e=u.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},l[u.language].recommendations),this.currentOutdoorCourse.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{part:"icon",class:"icon",innerHTML:ze}),i("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilites-title",class:"accessibilities-title"},l[u.language].accessibility),i("div",{part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),u.trekTouristicContents&&u.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},l[u.language].touristicContents(u.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicContents.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),u.trekTouristicEvents&&u.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},l[u.language].touristicEvents(u.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicEvents.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),u.currentPois&&u.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},l[u.language].pois(u.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentPois.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&s&&!this.offline&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(s.id,"0#").concat(this.colorPrimaryApp)}))),this.grwApp&&i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}());Fe.style=Ce;var Pe=t("grw_outdoor_course_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorCourseId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}this.handleOutdoorCourse()};t.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,I("outdoorCourses",this.outdoorCourseId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};t.prototype.handleOfflineOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,l,p,d,h,f;return __generator(this,(function(m){switch(m.label){case 0:e=u;return[4,H("cities")];case 1:e.cities=m.sent();i=u;return[4,H("districts")];case 2:i.districts=m.sent();r=u;return[4,H("themes")];case 3:r.themes=m.sent();n=u;return[4,H("touristicContentCategories")];case 4:n.touristicContentCategories=m.sent();o=u;return[4,H("touristicEventTypes")];case 5:o.touristicEventTypes=m.sent();s=u;return[4,H("poiTypes")];case 6:s.poiTypes=m.sent();a=u;return[4,H("outdoorCourseTypes")];case 7:a.outdoorCourseTypes=m.sent();return[4,H("pois",["url"])];case 8:c=m.sent();l=c.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));u.currentPois=l;return[4,H("touristicContents",["url"])];case 9:p=m.sent();d=p.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));u.trekTouristicContents=d;return[4,H("touristicEvents",["url"])];case 10:h=m.sent();f=h.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));u.trekTouristicEvents=f;return[4,F(t,P,["url"])];case 11:m.sent();u.currentOutdoorCourse=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourse=function(){var t=this;var e=[];e.push(!u.cities?V(u.api,u.language,this.init):new Response("null"));e.push(!u.districts?Q(u.api,u.language,this.init):new Response("null"));e.push(!u.themes?U(u.api,u.language,this.portals,this.init):new Response("null"));e.push(!u.outdoorCourseTypes?Lt(u.api,u.language,this.init):new Response("null"));e.push(vt(u.api,u.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(u.api,"touristiccontent_category/?language=").concat(u.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(gt(u.api,u.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(u.api,"touristicevent_type/?language=").concat(u.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init));e.push(Ct(u.api,u.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),this.init));e.push(Mt(u.api,u.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],p=e[8],d=e[9],h=e[10];return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){u.networkError=false;if(i){u.cities=i.results}if(r){u.districts=r.results}if(n){u.themes=n.results}if(o){u.outdoorCourseTypes=o.results}if(s){u.trekTouristicContents=s.results}if(a){u.touristicContentCategories=a.results}if(c){u.trekTouristicEvents=c.results}if(l){u.touristicEventTypes=l.results}if(p){u.currentPois=p.results}if(d){u.poiTypes=d.results}u.currentOutdoorCourse=h;return[2]}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){u.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.render=function(){return i(r,{key:"c528699499e390381bf36072c33415d4b7562b90"})};return t}());var Be='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>';var Oe='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>';var Te='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var je='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var Ee='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>';function Se(t,e,i,r,n,o,s,a,c){var l="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));n&&(l+="&districts=".concat(n));o&&(l+="&structures=".concat(o));s&&(l+="&themes=".concat(s));a&&(l+="&portals=".concat(a));l+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind&page_size=999";return fetch(l,c)}function Ne(t,e,i,r){var n="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");n+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents&page_size=999";return fetch(n,r)}function Ye(t,e,i){var r="".concat(t,"outdoor_sitetype/?language=").concat(e,"&published=true");return fetch(r,i)}function Ie(t,e,i){var r="".concat(t,"outdoor_practice/?language=").concat(e,"&published=true");return fetch(r,i)}function He(t,e,i,r){return fetch("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),r)}function Ge(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,I("outdoorSites",t)];case 1:e=i.sent();return[2,e&&e.offline]}}))}))}var Ze='@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}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.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:var(--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-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{display:none}.outdoor-site-options .outdoor-site-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}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-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}.outdoor-site-detail-container{font-family:var(--font-family);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}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-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;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-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}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--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;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-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}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);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}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-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}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;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;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.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,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom: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;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.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 div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.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,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.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:var(--border-radius, 8px);border-bottom-left-radius:var(--border-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:var(--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)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;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}';var De=Ze;var Re=1;var qe=t("grw_outdoor_site_detail",function(){function t(t){e(this,t);this.informationPlacesIsInViewport=n(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=n(this,"sitesIsInViewport",7);this.coursesIsInViewport=n(this,"coursesIsInViewport",7);this.downloadConfirm=n(this,"downloadConfirm",7);this.downloadedSuccessConfirm=n(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=n(this,"downloadedErrorConfirm",7);this.deleteConfirm=n(this,"deleteConfirm",7);this.deleteSuccessConfirm=n(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=n(this,"deleteErrorConfirm",7);this.fontFamily="Roboto";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;this.weather=false;this.enableOffline=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.currentOutdoorSite=undefined;this.sources=undefined;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";u.currentTouristicContent=null;u.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.handleObservers=function(){var t=this;if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i)}),{threshold:Re});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:Re});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:Re});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:Re});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sitesIsInViewport.emit(i)}),{threshold:Re});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),{threshold:Re});this.courseObserver.observe(this.coursesRef)}};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,ut,pt,dt,ht],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new ct(this.swiperRelatedOutdoorSitesRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new ct(this.swiperInformationDesksRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new ct(this.swiperRelatedOutdoorCoursesRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new ct(this.swiperTouristicContentsRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new ct(this.swiperTouristicEventsRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new ct(this.swiperPoisRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(u.currentOutdoorSite){this.sources=u.sources.filter((function(t){return u.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=u.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}p("currentOutdoorSite",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(u.currentOutdoorSite){this.sources=u.sources.filter((function(t){return u.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=u.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s,a,c,a,l;var p=this;return __generator(this,(function(d){switch(d.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};if(!!u.outdoorSites)return[3,3];return[4,Se(u.api,u.language,u.inBboxFromProviders,u.citiesFromProviders,u.districtsFromProviders,u.structuresFromProviders,u.themesFromProviders,u.portalsFromProviders,i)];case 1:r=d.sent();n=u;return[4,r.json()];case 2:n.outdoorSites=d.sent().results;u.currentOutdoorSites=u.outdoorSites;d.label=3;case 3:return[4,G("outdoorSites")];case 4:o=d.sent().filter((function(t){return t.offline===true}));s=u.outdoorSites;s=s.filter((function(t){return o.findIndex((function(e){return e.id===t.id}))===-1}));return[4,Z("outdoorSites",s)];case 5:d.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:d.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:d.sent();return[4,D(u.themes,P)];case 8:d.sent();return[4,D(u.outdoorSiteTypes,P)];case 9:d.sent();return[4,D(u.outdoorPractices,P)];case 10:d.sent();return[4,D(u.sources,P)];case 11:d.sent();return[4,D(this.currentOutdoorSite,P,true,["url"])];case 12:d.sent();return[4,Z("cities",u.cities)];case 13:d.sent();return[4,Z("districts",u.districts)];case 14:d.sent();return[4,Z("themes",u.themes)];case 15:d.sent();return[4,Z("outdoorSiteTypes",u.outdoorSiteTypes)];case 16:d.sent();return[4,Z("outdoorPractices",u.outdoorPractices)];case 17:d.sent();return[4,Z("outdoorRatings",u.outdoorRatings)];case 18:d.sent();return[4,Z("outdoorRatingsScale",u.outdoorRatingsScale)];case 19:d.sent();return[4,Z("pois",u.currentPois)];case 20:d.sent();return[4,Z("poiTypes",u.poiTypes)];case 21:d.sent();return[4,Z("informationDesks",u.currentInformationDesks)];case 22:d.sent();return[4,Z("outdoorCourseTypes",u.outdoorCourseTypes)];case 23:d.sent();return[4,Z("touristicEventTypes",u.touristicEventTypes)];case 24:d.sent();return[4,Z("touristicContentCategories",u.touristicContentCategories)];case 25:d.sent();return[4,Z("sources",u.sources)];case 26:d.sent();return[4,D(u.currentPois,P,true,["url"])];case 27:d.sent();return[4,D(u.currentInformationDesks,P,true)];case 28:d.sent();return[4,D(u.outdoorCourseTypes,P,true)];case 29:d.sent();return[4,D(u.touristicContentCategories,P,true)];case 30:d.sent();return[4,D(u.trekTouristicContents,P,true,["url"])];case 31:d.sent();u.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,Z("touristicContents",u.trekTouristicContents)];case 32:d.sent();return[4,D(u.trekTouristicEvents,P,true,["url"])];case 33:d.sent();u.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,Z("touristicEvents",u.trekTouristicEvents)];case 34:d.sent();if(!(u.currentOutdoorSite.courses&&u.currentOutdoorSite.courses.length>0))return[3,38];a=0;d.label=35;case 35:if(!(a<u.currentOutdoorSite.courses.length))return[3,38];c=u.currentOutdoorSite.courses[a];return[4,this.downloadOutdoorCourse(c)];case 36:d.sent();d.label=37;case 37:a++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];a=0;d.label=39;case 39:if(!(a<this.currentOutdoorSite.children.length))return[3,42];l=this.currentOutdoorSite.children[a];return[4,this.downloadOutdoorSite(l)];case 40:d.sent();d.label=41;case 41:a++;return[3,39];case 42:return[4,Z("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:u.currentPois.map((function(t){return t.id})),touristicContents:u.trekTouristicContents.map((function(t){return t.id})),touristicEvents:u.trekTouristicEvents.map((function(t){return t.id}))})])];case 43:d.sent();u.outdoorSites.find((function(t){return t.id===p.currentOutdoorSite.id})).offline=true;u.currentOutdoorSites.find((function(t){return t.id===p.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,l,c,p,d;return __generator(this,(function(h){switch(h.label){case 0:h.trys.push([0,22,,23]);e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,Ne(u.api,u.language,t,r).then((function(t){return t.json()}))];case 1:n=h.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:h.sent();return[4,D(n,P,true,["url"])];case 3:h.sent();return[4,He(u.api,u.language,t,r).then((function(t){return t.json()}))];case 4:o=h.sent().results;return[4,Z("pois",o)];case 5:h.sent();return[4,D(o,P,true,["url"])];case 6:h.sent();return[4,bt(u.api,u.language,t,r).then((function(t){return t.json()}))];case 7:s=h.sent().results;return[4,D(s,P,true,["url"])];case 8:h.sent();s.forEach((function(t){t.offline=true}));return[4,Z("touristicContents",s)];case 9:h.sent();return[4,wt(u.api,u.language,t,r).then((function(t){return t.json()}))];case 10:a=h.sent().results;return[4,D(a,P,true,["url"])];case 11:h.sent();a.forEach((function(t){t.offline=true}));return[4,Z("touristicEvents",a)];case 12:h.sent();return[4,Z("outdoorSites",[Object.assign(Object.assign({},n),{offline:true,pois:o.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:a.map((function(t){return t.id}))})])];case 13:h.sent();if(!(n.courses&&n.courses.length>0))return[3,17];c=0;h.label=14;case 14:if(!(c<n.courses.length))return[3,17];l=n.courses[c];return[4,this.downloadOutdoorCourse(l)];case 15:h.sent();h.label=16;case 16:c++;return[3,14];case 17:if(!(n.children&&n.children.length>0))return[3,21];c=0;h.label=18;case 18:if(!(c<n.children.length))return[3,21];p=n.children[c];return[4,this.downloadOutdoorSite(p)];case 19:h.sent();h.label=20;case 20:c++;return[3,18];case 21:return[3,23];case 22:d=h.sent();this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id);return[3,23];case 23:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a;return __generator(this,(function(c){switch(c.label){case 0:e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,Mt(u.api,u.language,t,r).then((function(t){return t.json()}))];case 1:n=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:c.sent();return[4,D(n,P,true,["url"])];case 3:c.sent();return[4,Ct(u.api,u.language,t,r).then((function(t){return t.json()}))];case 4:o=c.sent().results;return[4,Z("pois",o)];case 5:c.sent();return[4,D(o,P,true,["url"])];case 6:c.sent();return[4,vt(u.api,u.language,t,r).then((function(t){return t.json()}))];case 7:s=c.sent().results;return[4,D(s,P,true,["url"])];case 8:c.sent();s.forEach((function(t){t.offline=true}));return[4,Z("touristicContents",s)];case 9:c.sent();return[4,gt(u.api,u.language,t,r).then((function(t){return t.json()}))];case 10:a=c.sent().results;return[4,D(a,P,true,["url"])];case 11:c.sent();a.forEach((function(t){t.offline=true}));return[4,Z("touristicEvents",a)];case 12:c.sent();return[4,Z("outdoorCourses",[Object.assign(Object.assign({},n),{offline:true,pois:o.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:a.map((function(t){return t.id}))})])];case 13:c.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,3,,4]);t=[];return[4,I("outdoorSites",this.currentOutdoorSite.id)];case 1:e=n.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,Z("outdoorSites",t)];case 2:n.sent();if(u.outdoorSites){delete u.outdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline;if(!u.currentOutdoorSites){u.currentOutdoorSites=u.outdoorSites}delete u.currentOutdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[3,4];case 3:i=n.sent();this.deleteErrorConfirm.emit(this.currentOutdoorSite.id);return[3,4];case 4:return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,s,a;return __generator(this,(function(c){switch(c.label){case 0:i=Y.exports.tileLayerOffline(t,{attribution:e});r=[];if(u.outdoorSites){for(n=0,o=u.outdoorSites;n<o.length;n++){s=o[n];r.push(me(s.geometry).geometry.coordinates)}}a=N.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,R(i,a,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,n,o;return __generator(this,(function(s){switch(s.label){case 0:r=Y.exports.tileLayerOffline(t,{attribution:e});n=te(i);o=N.latLngBounds([n[1],n[0]],[n[3],n[2]]);return[4,R(r,o,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:s.sent();return[2]}}))}))};t.prototype.deleteOfflineOutdoorSiteProperties=function(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/default-image.svg"));var n=u.outdoorPractices&&this.currentOutdoorSite&&u.outdoorPractices.find((function(e){return e.id===t.currentOutdoorSite.practice}));var s=u.cities&&this.currentOutdoorSite&&u.cities.find((function(e){return e.id===t.currentOutdoorSite.cities[0]}));var a=u.outdoorRatings&&this.currentOutdoorSite&&u.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var p=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var d=p&&u.outdoorRatingsScale.filter((function(t){return p.includes(t.id)}));return i(r,{key:"3bb4b79d006243fe3009d2d3e8eb41054b8ae2a3",style:{"--font-family":this.fontFamily,"--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?u.languages&&u.languages.length>1?"44px":"12px":u.languages&&u.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&i("div",{part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},i("div",{part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(r){var n=[r.legend,r.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},i("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:ft})),i("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},n),i("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:t.offline&&r.thumbnail!==""?r.thumbnail:r.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:r.legend}))})):i("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),i("div",null,i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),i("div",{part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),u.themes&&u.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).length>0&&i("div",{part:"themes-container",class:"themes-container"},u.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).map((function(t){return i("div",{part:"theme",class:"theme"},t.label)}))),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},n&&i("div",{part:"icon-label",class:"icon-label practice"},n.pictogram&&i("img",{part:"icon",class:"icon",src:n.pictogram,alt:""}),i("span",{part:"label",class:"label"},n.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&i("div",{part:"row",class:"row"},i("span",{part:"icon",class:"icon",innerHTML:Te}),i("span",{part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(t){return l[u.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&i("div",{part:"row",class:"row"},i("span",{part:"icon",class:"icon",innerHTML:Oe}),i("span",{part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return l[u.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&i("div",{part:"row",class:"row"},i("span",{part:"icon",class:"icon",innerHTML:Be}),i("span",{part:"label",class:"label"},this.currentOutdoorSite.period)),a&&d.map((function(t){return i("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},l[u.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},i("span",{part:"icon",class:"icon",innerHTML:je}),i("span",{part:"label",class:"label"},l[u.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},i("span",{part:"icon",class:"icon",innerHTML:Ee}),i("span",{part:"label",class:"label"},l[u.language].offline.deleteOffline)),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentOutdoorSite.pdf).concat(u.portalsFromProviders&&u.portalsFromProviders.length===1?"?portal="+u.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:mt}),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&i("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&i("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),i("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},l[u.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},l[u.language].departure," : "),i("div",{part:"departure",innerHTML:s.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},l[u.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(t){var e;return(e=u.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),u.currentPois&&u.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},l[u.language].pois(u.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentPois.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},l[u.language].recommendations),this.currentOutdoorSite.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{part:"icon",class:"icon",innerHTML:ze}),i("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilites-title",class:"accessibilities-title"},l[u.language].accessibility),i("div",{part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),u.currentRelatedOutdoorSites&&u.currentRelatedOutdoorSites.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},i("div",{part:"related-outdoor-sites-title",class:"related-outdoor-sites-title",ref:function(e){return t.sitesRef=e}},l[u.language].relatedOutdoorSites(u.currentRelatedOutdoorSites.length)),i("div",{part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentRelatedOutdoorSites.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),u.currentRelatedOutdoorCourses&&u.currentRelatedOutdoorCourses.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},i("div",{part:"related-outdoor-courses-title",class:"related-outdoor-courses-title",ref:function(e){return t.coursesRef=e}},l[u.language].relatedOutdoorCourses(u.currentRelatedOutdoorCourses.length)),i("div",{part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentRelatedOutdoorCourses.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorCoursesSwiperScrollbar=e}})))),u.currentInformationDesks&&u.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"information-desks-container",class:"information-desks-container"},i("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},l[u.language].informationPlaces),i("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),u.trekTouristicContents&&u.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},l[u.language].touristicContents(u.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicContents.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),u.trekTouristicEvents&&u.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},l[u.language].touristicEvents(u.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicEvents.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&s&&!this.offline&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(s.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weblinks-container",class:"weblinks-container"},i("div",{part:"weblinks-title",class:"weblinks-title"},l[u.language].learnMore),this.currentOutdoorSite.web_links.map((function(t){return i("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&i("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"source-container",class:"source-container"},i("div",{part:"source-title",class:"source-title"},l[u.language].sources),this.sources.map((function(t){return i("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram,alt:""}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:t.name}),i("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&i(c,null,this.showTouristicContentDetailsModal&&i("grw-touristic-content-provider",{api:u.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&i("grw-touristic-event-provider",{api:u.api,"touristic-event-id":this.modalDetailsId})))};return t}());qe.style=De;var Ve=t("grw_outdoor_site_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorSiteId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;this.handleOutdoorSite()};t.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,I("outdoorSites",this.outdoorSiteId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};t.prototype.handleOfflineOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,l,p,d,h,f,m,v,g,b,w,k,x,y,A,_,z;return __generator(this,(function(L){switch(L.label){case 0:e=u;return[4,H("cities")];case 1:e.cities=L.sent();i=u;return[4,H("sources")];case 2:i.sources=L.sent();r=u;return[4,H("districts")];case 3:r.districts=L.sent();n=u;return[4,H("themes")];case 4:n.themes=L.sent();o=u;return[4,H("outdoorSiteTypes")];case 5:o.outdoorSiteTypes=L.sent();s=u;return[4,H("outdoorPractices")];case 6:s.outdoorPractices=L.sent();a=u;return[4,H("outdoorRatings")];case 7:a.outdoorRatings=L.sent();c=u;return[4,H("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=L.sent();l=u;return[4,H("touristicContentCategories")];case 9:l.touristicContentCategories=L.sent();p=u;return[4,H("touristicEventTypes")];case 10:p.touristicEventTypes=L.sent();d=u;return[4,H("poiTypes")];case 11:d.poiTypes=L.sent();h=u;return[4,H("outdoorCourseTypes")];case 12:h.outdoorCourseTypes=L.sent();return[4,H("informationDesks")];case 13:f=L.sent();m=f.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));u.currentInformationDesks=m;return[4,H("pois",["url"])];case 14:v=L.sent();g=v.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));u.currentPois=g;return[4,H("touristicContents",["url"])];case 15:b=L.sent();w=b.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));u.trekTouristicContents=w;return[4,H("touristicEvents",["url"])];case 16:k=L.sent();x=k.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));u.trekTouristicEvents=x;return[4,H("outdoorSites",["url"])];case 17:y=L.sent();A=y.filter((function(e){return t.children.some((function(t){return t===e.id}))}));u.currentRelatedOutdoorSites=A;return[4,H("outdoorCourses",["url"])];case 18:_=L.sent();z=_.filter((function(e){return t.courses.some((function(t){return t===e.id}))}));u.currentRelatedOutdoorCourses=z;return[4,F(t,P,["url"])];case 19:L.sent();u.currentOutdoorSite=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSite=function(){var t=this;var e=[];e.push(!u.cities?V(u.api,u.language,this.init):new Response("null"));e.push(!u.sources?X(u.api,u.language,this.init):new Response("null"));e.push(!u.districts?Q(u.api,u.language,this.init):new Response("null"));e.push(!u.themes?U(u.api,u.language,this.portals,this.init):new Response("null"));e.push(!u.outdoorSiteTypes?Ye(u.api,u.language,this.init):new Response("null"));e.push(!u.outdoorPractices?Ie(u.api,u.language,this.init):new Response("null"));e.push(!u.outdoorRatings?fetch("".concat(u.api,"outdoor_rating/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!u.outdoorRatingsScale?fetch("".concat(u.api,"outdoor_ratingscale/?language=").concat(u.language,"&fields=id,name"),this.init):new Response("null"));e.push(J(u.api,u.language,this.init));e.push(bt(u.api,u.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(u.api,"touristiccontent_category/?language=").concat(u.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(wt(u.api,u.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(u.api,"touristicevent_type/?language=").concat(u.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init));e.push(He(u.api,u.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),this.init));e.push(!u.outdoorCourseTypes?Lt(u.api,u.language,this.init):new Response("null"));e.push(Ne(u.api,u.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],p=e[8],d=e[9],h=e[10],f=e[11],m=e[12],v=e[13],g=e[14],b=e[15],w=e[16];return __awaiter(t,void 0,void 0,(function(){var t,e,k,x,y,A;var _=this;return __generator(this,(function(z){switch(z.label){case 0:u.networkError=false;if(!(w&&w.children.length>0))return[3,2];t=[];t.push.apply(t,w.children);e=[];t.forEach((function(t){e.push(Ne(u.api,u.language,t,_.init))}));k=u;return[4,Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:k.currentRelatedOutdoorSites=z.sent();z.label=2;case 2:if(!(w&&w.courses.length>0))return[3,4];x=[];x.push.apply(x,w.courses);y=[];x.forEach((function(t){y.push(Mt(u.api,u.language,t,_.init))}));A=u;return[4,Promise.all(__spreadArray([],y,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:A.currentRelatedOutdoorCourses=z.sent();z.label=4;case 4:if(i){u.cities=i.results}if(r){u.sources=r.results}if(n){u.districts=n.results}if(o){u.themes=o.results}if(s){u.outdoorSiteTypes=s.results}if(a){u.outdoorPractices=a.results}if(c){u.outdoorRatings=c.results}if(l){u.outdoorRatingsScale=l.results}if(p){u.currentInformationDesks=p.results}if(d){u.trekTouristicContents=d.results}if(h){u.touristicContentCategories=h.results}if(f){u.trekTouristicEvents=f.results}if(m){u.touristicEventTypes=m.results}if(v){u.currentPois=v.results}if(g){u.poiTypes=g.results}if(b){u.outdoorCourseTypes=b.results}u.currentOutdoorSite=w;return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){u.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.render=function(){return i(r,{key:"5ebb92dda19aeacaca9299268455c989611dfcb3"})};return t}());var Qe=":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-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-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var Ue=Qe;var Xe=t("grw_outdoor_sites_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(u.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],u.currentOutdoorSites.slice(0,this.step),true)}p("currentOutdoorSites",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.currentOutdoorSites){t.outdoorSitesToDisplay=__spreadArray([],u.currentOutdoorSites.slice(0,t.step),true)}}));p("outdoorSitesWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.outdoorSitesWithinBounds){t.outdoorSitesToDisplay=__spreadArray([],u.outdoorSitesWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<u.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=u.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=u.outdoorSitesWithinBounds.length?u.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(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}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"bee368e2d6a322157ce586f2aa6caec9892da0d5",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.outdoorSitesWithinBounds&&i("div",{part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(u.outdoorSitesWithinBounds.length," ").concat(u.outdoorSitesWithinBounds.length>1?l[u.language].outdoorSites:l[u.language].outdoorSite)),i("div",{key:"3a67a6203aee1aa789e3af0836fccf424ec3a885",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(e){return i("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:"outdoorSite-".concat(e.id),"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"6688a1638e054127905a724cf489e600ca5b7e44",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());Xe.style=Ue;var Je=t("grw_outdoor_sites_provider",function(){function t(t){e(this,t);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.offline=false}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;u.inBboxFromProviders=this.inBbox;u.citiesFromProviders=this.cities;u.districtsFromProviders=this.districts;u.structuresFromProviders=this.structures;u.themesFromProviders=this.themes;this.handleOutdoorSites()};t.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o;return __generator(this,(function(s){switch(s.label){case 0:return[4,G("outdoorSites")];case 1:t=s.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(!(t&&t.length>0))return[3,8];e=u;return[4,H("cities")];case 2:e.cities=s.sent();i=u;return[4,H("districts")];case 3:i.districts=s.sent();r=u;return[4,H("themes")];case 4:r.themes=s.sent();n=u;return[4,H("outdoorSiteTypes")];case 5:n.outdoorSiteTypes=s.sent();o=u;return[4,H("outdoorPractices")];case 6:o.outdoorPractices=s.sent();return[4,H("outdoorSites")];case 7:t=s.sent();u.outdoorSites=t;u.currentOutdoorSites=t;return[3,9];case 8:u.networkError=true;s.label=9;case 9:return[2]}}))}))};t.prototype.handleOnlineOutdoorSites=function(){var t=this;var e=[];e.push(!u.cities?V(u.api,u.language,this.init):new Response("null"));e.push(!u.districts?Q(u.api,u.language,this.init):new Response("null"));e.push(!u.themes?U(u.api,u.language,this.portals,this.init):new Response("null"));e.push(!u.outdoorSiteTypes?Ye(u.api,u.language,this.init):new Response("null"));e.push(!u.outdoorPractices?Ie(u.api,u.language,this.init):new Response("null"));e.push(Se(u.api,u.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5];return __awaiter(t,void 0,void 0,(function(){var t,e,c;return __generator(this,(function(l){switch(l.label){case 0:u.networkError=false;if(i){u.cities=i.results}if(r){u.districts=r.results}if(n){u.themes=n.results}if(o){u.outdoorSiteTypes=o.results}if(s){u.outdoorPractices=s.results}t=[];e=0;l.label=1;case 1:if(!(e<a.results.length))return[3,4];return[4,Ge(a.results[e].id)];case 2:c=l.sent();t.push(Object.assign(Object.assign({},a.results[e]),{offline:c}));l.label=3;case 3:e++;return[3,1];case 4:u.outdoorSites=t;u.currentOutdoorSites=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineOutdoorSites()];case 1:t.sent();return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.render=function(){return i(r,{key:"50538523d43b534e2fe0de7663918b3a912ab95d"})};return t}());var We='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>';var Ke=":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);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:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}";var $e=Ke;var ti=t("grw_search",function(){function t(t){e(this,t);this.fontFamily="Roboto"}t.prototype.onSearchChange=function(t){u.searchValue=t.target.value;if(u.mode==="treks"){u.currentTreks=h()}else if(u.mode==="touristicContents"){u.currentTouristicContents=g()}else if(u.mode==="touristicEvents"){u.currentTouristicEvents=b()}else if(u.mode==="outdoor"){u.currentOutdoorSites=w()}};t.prototype.render=function(){var t=this;return i(r,{key:"16f5be92903a47127f23f924a5cfbe6a3f64c3fa",style:{"--font-family":this.fontFamily}},i("span",{key:"714dfed532c7f675f03bae2e447113a7460aaa51",part:"icon",class:"icon",innerHTML:We}),i("input",{key:"aedc4289d1524c0a8f088c6a08fb77982e19b4f5",part:"search-input",class:"search-input",onInput:function(e){return t.onSearchChange(e)},type:"search",placeholder:"Rechercher",value:u.searchValue}))};return t}());ti.style=$e;var ei=".segmented-buttons-container{font-family:var(--font-family);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:var(--border-radius, 20px);line-height:20px}.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);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%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";var ii=ei;var ri=t("grw_segmented_segment",function(){function t(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}t.prototype.changeMode=function(t){u.searchValue="";if(t==="treks"){d.forEach((function(t){u[t.property]&&u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.treks){u.currentTreks=__spreadArray([],h(),true)}}else if(t==="touristicContents"){f.forEach((function(t){u[t.property]&&u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.touristicContents){u.currentTouristicContents=__spreadArray([],g(),true)}}else if(t==="touristicEvents"){m.forEach((function(t){u[t.property]&&u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.touristicEvents){u.currentTouristicEvents=__spreadArray([],b(),true)}}else if(t==="outdoor"){v.forEach((function(t){u[t.property]&&u[t.property].forEach((function(t){return t.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.outdoorSites){u.currentOutdoorSites=__spreadArray([],w(),true)}}u.mode=t};t.prototype.render=function(){var t=this;return i(r,{key:"9c2cb06725baba18e729619923fe5db99962ed77",style:{"--font-family":this.fontFamily}},i("div",{key:"6b63e32975c790768a185bf37f4a0ed22a34f35d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&i("label",{part:"segment",class:"segment".concat(u.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},l[u.language].home.segment.treks),this.outdoor&&i("label",{part:"segment",class:"segment".concat(u.mode==="outdoor"?" selected-segment":""),onClick:function(){return t.changeMode("outdoor")}},l[u.language].home.segment.outdoorSites),this.touristicContents&&i("label",{part:"segment",class:"segment".concat(u.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},l[u.language].home.segment.touristicContents),this.touristicEvents&&i("label",{part:"segment",class:"segment".concat(u.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicEvents")}},l[u.language].home.segment.touristicEvents)))};return t}());ri.style=ii;var ni='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>';var oi=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";var si=oi;var ai=t("grw_select_language",function(){function t(t){e(this,t)}t.prototype.handleSelect=function(t){u.treks=null;u.currentTreks=null;u.currentTrek=null;u.language=t.target.value};t.prototype.render=function(){var t=this;return i(r,{key:"94cdba3dad86c8e343d7c78c61c733efb87e2c31"},i("span",{key:"70cd7e019fadd7ed95a3af40631a9034308373d4",part:"select-language-icon",class:"icon",innerHTML:ni}),i("select",{key:"ad2f4bcae397ae9c87083a7efa98202fcca8777f",part:"select-language-select",onInput:function(e){return t.handleSelect(e)},name:"languages",id:"language-select"},u.languages.map((function(t){return i("option",{part:"select-language-option",selected:t===u.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())}))))};return t}());ai.style=si;var ci='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>';var li='.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';var ui=li;var pi=t("grw_switch",function(){function t(t){e(this,t);this.action=undefined;this.fontFamily="Roboto";this.checked=undefined}t.prototype.render=function(){var t=this;return i(r,{key:"e301ad5ef9d7bb3d393d0d9d28580f3bcefae389",style:{"--font-family":this.fontFamily}},i("label",{key:"00e943e99e06f1d9db67c98e3d9f906c4123fbc7",class:"md3 switch"},i("input",{key:"a03eb811a5fa44d879929390665cbaf5efc3319d",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),i("span",{key:"112b77b294ce8b078b149574741be9d515a71da9",class:"slider"},i("span",{key:"91e64af80881bab4d345d8488216ad90a18363f8",part:"icon",class:"icon",innerHTML:ci}))))};return t}());pi.style=ui;var di=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.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-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var hi=di;var fi=t("grw_touristic_contents_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(u.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],u.currentTouristicContents.slice(0,this.step),true)}p("currentTouristicContents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.currentTouristicContents){t.touristicContentsToDisplay=__spreadArray([],u.currentTouristicContents.slice(0,t.step),true)}}));p("touristicContentsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.touristicContentsWithinBounds){t.touristicContentsToDisplay=__spreadArray([],u.touristicContentsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<u.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=u.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=u.touristicContentsWithinBounds.length?u.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(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}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"e0ee344092f60c20a56ccf6052d60015401a7f6e",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.touristicContentsWithinBounds&&i("div",{part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(u.touristicContentsWithinBounds.length," ").concat(u.touristicContentsWithinBounds.length>1?l[u.language].home.touristicContents:l[u.language].home.touristicContent)),i("div",{key:"57bdc926890c9b1f49f081a0fcf5959dbb2c3831",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,key:"touristic-content-".concat(e.id),touristicContent:e,"is-large-view":t.isLargeView,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"eb4269b384bc8a6643629dcd3d428d8bef5ee23f",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());fi.style=hi;var mi=t("grw_touristic_contents_provider",function(){function t(t){e(this,t);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}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t="".concat(u.api,"touristiccontent/?language=").concat(u.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var e=[];e.push(!u.cities?fetch("".concat(u.api,"city/?language=").concat(u.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!u.districts?fetch("".concat(u.api,"district/?language=").concat(u.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!u.touristicContentCategories?fetch("".concat(u.api,"touristiccontent_category/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];u.networkError=false;if(e){u.cities=e.results}if(i){u.districts=i.results}if(r){u.touristicContentCategories=r.results}u.touristicContents=n.results;u.currentTouristicContents=n.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){u.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.render=function(){return i(r,{key:"8ae3fe40968176999c99756f42f6fda279b2efd0"})};return t}());var vi=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.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-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var gi=vi;var bi=t("grw_touristic_events_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(u.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],u.currentTouristicEvents.slice(0,this.step),true)}p("currentTouristicEvents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.currentTouristicContents){t.touristicEventsToDisplay=__spreadArray([],u.currentTouristicEvents.slice(0,t.step),true)}}));p("touristicEventsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.touristicEventsWithinBounds){t.touristicEventsToDisplay=__spreadArray([],u.touristicEventsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<u.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=u.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=u.touristicEventsWithinBounds.length?u.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(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}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"96e2feda4a638591f01da5cceda53cf014a92312",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.touristicEventsWithinBounds&&i("div",{part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(u.touristicEventsWithinBounds.length," ").concat(u.touristicEventsWithinBounds.length>1?l[u.language].home.touristicEvents:l[u.language].home.touristicEvent)),i("div",{key:"f3e7b4260b9f1ce0aa290e2fc5f64856ec5acf97",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(e){return i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(e.id),touristicEvent:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"e3b5c1362aeb5efc52b40b9411c6dd7547db7f8d",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());bi.style=gi;var wi=t("grw_touristic_events_provider",function(){function t(t){e(this,t);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}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t="".concat(u.api,"touristicevent/?language=").concat(u.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var e=[];e.push(!u.cities?fetch("".concat(u.api,"city/?language=").concat(u.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!u.districts?fetch("".concat(u.api,"district/?language=").concat(u.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!u.touristicEventTypes?fetch("".concat(u.api,"touristicevent_type/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];u.networkError=false;if(e){u.cities=e.results}if(i){u.districts=i.results}if(r){u.touristicEventTypes=r.results}u.touristicEvents=n.results;u.currentTouristicEvents=n.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){u.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.render=function(){return i(r,{key:"0475c63d6aebc11cf0059dc2d3bf3bb7f48b1fa7"})};return t}());var ki='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>';var xi='@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}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.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:var(--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{z-index:9;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.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 .trek-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-detail-container{font-family:var(--font-family);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 .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.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;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-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 .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:var(--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;font-family:var(--font-family)}.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 .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.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:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);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 .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-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 .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,.trek-detail-container .weblinks-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 .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,.trek-detail-container .weblinks-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 .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,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.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 .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,.trek-detail-container .weblinks-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}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;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;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.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{color:var(--reference-point-color);background:var(--reference-point-background-color);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;border-radius:12px;font-weight:bold;font-size:0.8em;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom: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;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;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}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.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 div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.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,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.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:var(--border-radius, 8px);border-bottom-left-radius:var(--border-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:var(--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)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}';var yi=xi;var Ai=1;var _i={visible:true,indicator:false,ref:"presentationOptionRef"};var zi={visible:false,indicator:false,ref:"stepsOptionRef"};var Li={visible:false,indicator:false,ref:"descriptionOptionRef"};var Ci={visible:false,indicator:false,ref:"poisOptionRef"};var Mi={visible:false,indicator:false,ref:"recommendationsOptionRef"};var Fi={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var Pi={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var Bi={visible:false,indicator:false,ref:"accessibilityOptionRef"};var Oi={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var Ti={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var ji={presentation:_i,steps:zi,description:Li,pois:Ci,recommendations:Mi,sensitiveArea:Fi,informationPlaces:Pi,accessibility:Bi,touristicContents:Oi,touristicEvents:Ti};var Ei=t("grw_trek_detail",function(){function t(t){e(this,t);this.descriptionIsInViewport=n(this,"descriptionIsInViewport",7);this.parkingIsInViewport=n(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=n(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=n(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.stepsIsInViewport=n(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.parentTrekPress=n(this,"parentTrekPress",7);this.downloadConfirm=n(this,"downloadConfirm",7);this.downloadedSuccessConfirm=n(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=n(this,"downloadedErrorConfirm",7);this.deleteConfirm=n(this,"deleteConfirm",7);this.deleteSuccessConfirm=n(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=n(this,"deleteErrorConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};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.offline=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";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.rounded=true;this.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";u.currentTouristicContent=null;u.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,ut,pt,dt,ht],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new ct(this.swiperStepRef,{modules:[dt,ht,_e],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new ct(this.swiperPoisRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new ct(this.swiperInformationDesksRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new ct(this.swiperTouristicContentsRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new ct(this.swiperTouristicEventsRef,{modules:[dt,ht,_e],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}),{threshold:Ai});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{accessibility:Object.assign(Object.assign({},t.defaultOptions.accessibility),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ai});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(u.currentTrek){this.offline=u.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=u.difficulties.find((function(t){return t.id===u.currentTrek.difficulty}));this.route=u.routes.find((function(t){return t.id===u.currentTrek.route}));this.practice=u.practices.find((function(t){return t.id===u.currentTrek.practice}));this.themes=u.themes.filter((function(t){return u.currentTrek.themes.includes(t.id)}));this.labels=u.labels.filter((function(t){return u.currentTrek.labels.includes(t.id)}));this.sources=u.sources.filter((function(t){return u.currentTrek.source.includes(t.id)}));this.accessibilities=u.accessibilities.filter((function(t){return u.currentTrek.accessibilities.includes(t.id)}));if(u.accessibilitiesLevel){this.accessibilityLevel=u.accessibilitiesLevel.find((function(t){return u.currentTrek.accessibility_level===t.id}))}this.cities=u.currentTrek.cities.map((function(t){var e;return(e=u.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));this.hasStep=u.currentTrek.children.length>0;this.currentTrek=u.currentTrek}p("currentTrek",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(u.currentTrek){this.offline=u.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=u.difficulties.find((function(t){return t.id===u.currentTrek.difficulty}));this.route=u.routes.find((function(t){return t.id===u.currentTrek.route}));this.practice=u.practices.find((function(t){return t.id===u.currentTrek.practice}));this.themes=u.themes.filter((function(t){return u.currentTrek.themes.includes(t.id)}));this.labels=u.labels.filter((function(t){return u.currentTrek.labels.includes(t.id)}));this.sources=u.sources.filter((function(t){return u.currentTrek.source.includes(t.id)}));this.accessibilities=u.accessibilities.filter((function(t){return u.currentTrek.accessibilities.includes(t.id)}));if(u.accessibilitiesLevel){this.accessibilityLevel=u.accessibilitiesLevel.find((function(t){return u.currentTrek.accessibility_level===t.id}))}this.cities=u.currentTrek.cities.map((function(t){var e;return(e=u.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));this.hasStep=u.currentTrek.children.length>0;this.currentTrek=u.currentTrek}return[2]}))}))}));return[2]}))}))};t.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};t.prototype.handleOptions=function(){return Object.assign(Object.assign({},ji),{presentation:Object.assign({},_i),steps:Object.assign(Object.assign({},zi),{visible:Boolean(u.parentTrek)}),description:Object.assign(Object.assign({},Li),{visible:Boolean(u.currentTrek.description)}),pois:Object.assign(Object.assign({},Ci),{visible:Boolean(u.currentPois&&u.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},Mi),{visible:Boolean(u.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Fi),{visible:Boolean(u.currentSensitiveAreas&&u.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Pi),{visible:Boolean(u.currentInformationDesks&&u.currentInformationDesks.filter((function(t){return u.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},Bi),{visible:Boolean(u.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||u.currentTrek.accessibility_level||u.currentTrek.accessibility_slope||u.currentTrek.accessibility_width||u.currentTrek.accessibility_signage||u.currentTrek.accessibility_covering||u.currentTrek.accessibility_exposure||u.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Oi),{visible:Boolean(u.trekTouristicContents&&u.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Ti),{visible:Boolean(u.trekTouristicEvents&&u.trekTouristicEvents.length>0)})})};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t;var e=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!t&&o<n.length){if(n[o].indicator){t=n[o]}else{if(n[o].visible){e+=1;i+=this[n[o].ref].clientWidth}}o++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*e-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:t.ref}}};t.prototype.handleScrollTo=function(t){var e=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(e){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}else{window.scrollTo({top:t.offsetTop-64})}};t.prototype.getCurrentStepIndex=function(){var t=this;return u.currentTrekSteps?u.currentTrekSteps.findIndex((function(e){return e.id===t.currentTrek.id})):0};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,s,a;return __generator(this,(function(c){switch(c.label){case 0:i=Y.exports.tileLayerOffline(t,{attribution:e});r=[];if(u.treks){for(n=0,o=u.treks;n<o.length;n++){s=o[n];r.push(s.departure_geom)}}a=N.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,R(i,a,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=Y.exports.tileLayerOffline(t,{attribution:e});r=N.latLngBounds(this.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));return[4,R(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:n.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s,a,c,l,p,d,h,f,m,v,g,b,w,k,x,y;var A=this;return __generator(this,(function(_){switch(_.label){case 0:_.trys.push([0,62,,63]);t=new AbortController;e=t.signal;i={cache:"default",signal:e};return[4,G("treks")];case 1:r=_.sent().filter((function(t){return t.offline===true}));n=void 0;if(!!u.treks)return[3,4];return[4,W(u.api,u.language,u.inBboxFromProviders,u.citiesFromProviders,u.districts,u.structuresFromProviders,u.themesFromProviders,u.portalsFromProviders,u.routesFromProviders,u.practicesFromProviders,u.labelsFromProviders,i)];case 2:o=_.sent();s=u;return[4,o.json()];case 3:s.treks=_.sent().results;_.label=4;case 4:n=u.treks;n=n.filter((function(t){return r.findIndex((function(e){return e.id===t.id}))===-1}));if(!!u.districts)return[3,7];return[4,Q(u.api,u.language,i)];case 5:a=_.sent();c=u;return[4,a.json()];case 6:c.districts=_.sent().results;_.label=7;case 7:return[4,Z("treks",n)];case 8:_.sent();return[4,Z("districts",u.districts)];case 9:_.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:_.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:_.sent();return[4,D(u.difficulties,P)];case 12:_.sent();return[4,D(u.routes,P)];case 13:_.sent();return[4,D(u.practices,P)];case 14:_.sent();return[4,D(u.themes,P)];case 15:_.sent();return[4,D(u.labels,P)];case 16:_.sent();return[4,D(u.districts,P)];case 17:_.sent();return[4,D(u.sources,P)];case 18:_.sent();return[4,D(u.accessibilities,P)];case 19:_.sent();return[4,D(u.poiTypes,P)];case 20:_.sent();return[4,D(u.currentInformationDesks,P)];case 21:_.sent();return[4,D(u.touristicContentCategories,P)];case 22:_.sent();return[4,D(u.touristicEventTypes,P)];case 23:_.sent();return[4,D(u.networks,P)];case 24:_.sent();return[4,D(this.currentTrek,P,true,["url"])];case 25:_.sent();return[4,Z("difficulties",u.difficulties)];case 26:_.sent();return[4,Z("routes",u.routes)];case 27:_.sent();return[4,Z("practices",u.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 28:_.sent();return[4,Z("themes",u.themes)];case 29:_.sent();return[4,Z("cities",u.cities)];case 30:_.sent();return[4,Z("accessibilities",u.accessibilities)];case 31:_.sent();return[4,Z("ratings",u.ratings)];case 32:_.sent();return[4,Z("ratingsScale",u.ratingsScale)];case 33:_.sent();return[4,Z("sensitiveAreas",u.currentSensitiveAreas)];case 34:_.sent();return[4,Z("labels",u.labels)];case 35:_.sent();return[4,Z("sources",u.sources)];case 36:_.sent();return[4,Z("accessibilitiesLevel",u.accessibilitiesLevel)];case 37:_.sent();return[4,Z("touristicContentCategories",u.touristicContentCategories)];case 38:_.sent();return[4,Z("touristicEventTypes",u.touristicEventTypes)];case 39:_.sent();return[4,Z("networks",u.networks)];case 40:_.sent();return[4,Z("pois",u.currentPois)];case 41:_.sent();return[4,Z("poiTypes",u.poiTypes)];case 42:_.sent();return[4,Z("signages",u.currentSignages)];case 43:_.sent();return[4,Z("informationDesks",u.currentInformationDesks)];case 44:_.sent();return[4,D(u.currentPois,P,true,["url"])];case 45:_.sent();return[4,D(u.currentInformationDesks,P,true)];case 46:_.sent();return[4,D(u.trekTouristicContents,P,true,["url"])];case 47:_.sent();u.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,Z("touristicContents",u.trekTouristicContents)];case 48:_.sent();return[4,D(u.trekTouristicEvents,P,true,["url"])];case 49:_.sent();u.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,Z("touristicEvents",u.trekTouristicEvents)];case 50:_.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,60];l=[];l.push.apply(l,this.currentTrek.children);p=[];d=[];h=[];f=[];m=[];l.forEach((function(t){p.push(K(u.api,u.language,t,i));d.push(kt(u.api,u.language,t,i));h.push(xt(u.api,u.language,t,i));f.push($(u.api,u.language,t,i));m.push(tt(u.api,u.language,t,i))}));return[4,Promise.all(__spreadArray([],p,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 51:v=_.sent();return[4,Promise.all(__spreadArray([],d,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 52:g=_.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 53:b=_.sent();return[4,Promise.all(__spreadArray([],f,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 54:w=_.sent();return[4,Promise.all(__spreadArray([],m,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 55:k=_.sent();x=0;_.label=56;case 56:if(!(x<v.length))return[3,60];v[x].offline=true;v[x].pois=w[x].results.map((function(t){return t.id}));v[x].touristicContents=g[x].results.map((function(t){return t.id}));v[x].touristicEvents=b[x].results.map((function(t){return t.id}));v[x].sensitiveAreas=k[x].results.map((function(t){return t.id}));return[4,Z("treks",[v[x]])];case 57:_.sent();return[4,D(v[x],P,true,["url"])];case 58:_.sent();_.label=59;case 59:x++;return[3,56];case 60:return[4,Z("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:u.currentPois.map((function(t){return t.id})),signages:u.currentSignages.map((function(t){return t.id})),touristicContents:u.trekTouristicContents.map((function(t){return t.id})),touristicEvents:u.trekTouristicEvents.map((function(t){return t.id})),sensitiveAreas:u.currentSensitiveAreas?u.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 61:_.sent();u.treks.find((function(t){return t.id===A.currentTrek.id})).offline=true;if(!u.currentTreks){u.currentTreks=u.treks}u.currentTreks.find((function(t){return t.id===A.currentTrek.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit(this.currentTrek.id);return[3,63];case 62:y=_.sent();this.downloadedErrorConfirm.emit(this.currentTrek.id);return[3,63];case 63:return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,7,,8]);t=[];return[4,I("treks",this.currentTrek.id)];case 1:e=s.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;s.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,I("treks",this.currentTrek.children[i])];case 3:r=s.sent();this.deleteOfflineTrekProperties(r);t.push(r);s.label=4;case 4:i++;return[3,2];case 5:return[4,Z("treks",t)];case 6:s.sent();if(u.treks){delete u.treks.find((function(t){return t.id===o.currentTrek.id})).offline;if(!u.currentTreks){u.currentTreks=u.treks}delete u.currentTreks.find((function(t){return t.id===o.currentTrek.id})).offline}if(u.parentTrek){delete u.parentTrek.offline}if(u.currentTrekSteps){u.currentTrekSteps.forEach((function(t){delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id);return[3,8];case 7:n=s.sent();this.deleteErrorConfirm.emit(this.currentTrek.id);return[3,8];case 8:return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.render=function(){var t=this;var e,n,s,a,p;var d=o("".concat("","assets/default-image.svg"));var h=this.currentTrek&&this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>1||this.offline;return i(r,{key:"908bd87bf1c95dcb47219f8c191692a176435873",style:{"--font-family":this.fontFamily,"--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?u.languages&&u.languages.length>1?"44px":"12px":u.languages&&u.languages.length>1?"164px":"124px"}},this.currentTrek&&i("div",{part:"trek-options",class:"trek-options"},i("a",{part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},l[u.language].options.presentation),this.options.steps.visible&&i("a",{part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},l[u.language].options.steps),this.options.description.visible&&i("a",{part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},l[u.language].options.description),this.options.pois.visible&&i("a",{part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},l[u.language].options.pois),this.options.recommendations.visible&&i("a",{part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},l[u.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},l[u.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},l[u.language].options.informationPlaces),this.options.accessibility.visible&&i("a",{part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},l[u.language].options.accessibility),this.options.touristicContents.visible&&i("a",{part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},l[u.language].options.touristicContents),this.options.touristicEvents.visible&&i("a",{part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},l[u.language].options.touristicEvents),this.presentationOptionRef&&i("span",{part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&i("div",{part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},i("div",{part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var r=[e.legend,e.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},i("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:ft})),i("div",{part:"trek-image-legend",class:"trek-image-legend"},r),i("img",{part:"trek-img",class:"trek-img",src:t.offline&&e.thumbnail!==""?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=d},alt:e.legend}))})):i("img",{part:"trek-img",class:"trek-img default-trek-img",src:d,loading:"lazy",alt:""})),i("div",{style:{display:"block",visibility:h?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{style:{display:"flex",visibility:h?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{style:{display:"flex",visibility:h?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),i("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&i("div",{part:"themes-container",class:"themes-container"},this.themes.map((function(t){return i("div",{part:"theme",class:"theme"},t.label)}))),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&i("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&i("img",{part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),i("span",{part:"label",class:"label"},this.difficulty.label)),i("div",{part:"icon-label",class:"icon-label duration"},i("span",{part:"icon",class:"icon",innerHTML:At}),i("span",{part:"label",class:"label"},z((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),i("div",{part:"icon-label",class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&i("img",{part:"icon",class:"icon",src:this.route.pictogram,alt:""}),i("span",{part:"label",class:"label"},(s=this.route)===null||s===void 0?void 0:s.route)),i("div",{part:"icon-label",class:"icon-label length"},i("span",{part:"icon",class:"icon",innerHTML:_t}),i("span",{part:"label",class:"label"},C(this.currentTrek.length_2d))),this.currentTrek.ascent&&i("div",{part:"icon-label",class:"icon-label ascent"},i("span",{part:"icon",class:"icon",innerHTML:zt}),i("span",{part:"label",class:"label"},M(this.currentTrek.ascent))),this.currentTrek.descent&&i("div",{part:"icon-label",class:"icon-label descent"},i("span",{part:"icon",class:"icon",innerHTML:zt}),i("span",{part:"label",class:"label"},B(this.currentTrek.descent))),i("div",{part:"icon-label",class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&i("img",{part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),i("span",{part:"label",class:"label"},(p=this.practice)===null||p===void 0?void 0:p.name)),i("div",{part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((function(t){var e=u.networks.find((function(e){return e.id===t}));return i("div",{part:"network",class:"network"},i("img",{part:"icon",class:"icon",src:e.pictogram,alt:""}),i("span",{part:"label",class:"label"},e.label))}))),this.currentTrek.ratings.map((function(t){return i("div",{part:"row",class:"row"},"".concat(u.ratingsScale.find((function(e){return e.id===u.ratings.find((function(e){return e.id===t})).scale})).name," : ").concat(u.ratings.find((function(e){return e.id===t})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&i("div",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},l[u.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},i("span",{part:"icon",class:"icon",innerHTML:je}),i("span",{part:"label",class:"label"},l[u.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},i("span",{part:"icon",class:"icon",innerHTML:Ee}),i("span",{part:"label",class:"label"},l[u.language].offline.deleteOffline)),i("div",{part:"links-container",class:"links-container"},i("a",{part:"download-gpx-button",href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:" icon",innerHTML:mt}),i("span",{part:"label",class:"label"},"GPX")),i("a",{part:"download-kml-button",href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:mt}),i("span",{part:"label",class:"label"},"KML")),i("a",{part:"download-pdf-button",href:"".concat(this.currentTrek.pdf).concat(u.portalsFromProviders&&u.portalsFromProviders.length===1?"?portal="+u.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:mt}),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&i("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),u.parentTrekId&&u.parentTrek&&this.currentTrek.id!==u.parentTrekId&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"parent-trek-container",class:"parent-trek-container"},i("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(u.parentTrekId)}},i("div",null,"<"),u.parentTrek.name))),u.currentTrekSteps&&i("div",{part:"step-container",class:"step-container"},i("div",{part:"step-title",class:"step-title",ref:function(e){return t.stepsRef=e}},"".concat(u.currentTrekSteps.length," ").concat(l[u.language].steps)),i("div",{part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentTrekSteps&&u.currentTrekSteps.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},l[u.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},l[u.language].departure," : "),i("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{part:"arrival-container",class:"arrival-container"},i("div",{part:"arrival-title",class:"arrival-title"},l[u.language].arrival," : "),i("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},l[u.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.cities.join(", ")})),u.currentPois&&u.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},l[u.language].pois(u.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentPois.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&this.currentTrek.departure_city&&!this.offline&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"access-container",class:"access-container"},i("div",{part:"access-title",class:"access-title"},l[u.language].roadAccessAndParking),i("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&i("div",null,i("div",{part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},l[u.language].recommendedParking),i("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"public-transport-container",class:"public-transport-container"},i("div",{part:"public-transport-title",class:"public-transport-title"},l[u.language].transport),i("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},l[u.language].recommendations),this.currentTrek.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{part:"icon",class:"icon",innerHTML:ze}),i("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&i("div",{part:"gear-container",class:"gear-container"},i("span",{part:"icon",class:"icon",innerHTML:ki}),i("div",{part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(t){return i("div",{part:"label-container",class:"label-container"},i("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&i("img",{src:t.pictogram,alt:""}),i("div",{part:"label-name",class:"label-name",innerHTML:t.name})),i("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice}))})))),u.currentSensitiveAreas&&u.currentSensitiveAreas.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},i("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(e){return t.sensitiveAreaRef=e}},l[u.language].environmentalSensitiveAreas),i("div",{part:"sensitive-areas-description",class:"sensitive-areas-description"},l[u.language].sensitiveAreasDescription),u.currentSensitiveAreas.map((function(t){return i("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value",sensitiveArea:t})})))),u.currentInformationDesks&&u.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"information-desks-container",class:"information-desks-container"},i("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},l[u.language].informationPlaces),i("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),(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||this.emergencyNumber)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilities-title",class:"accessibilities-title",ref:function(e){return t.accessibilityRef=e}},l[u.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&i("div",{part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(t){return i("div",{part:"accessibility-content-container",class:"accessibility-content-container"},i("img",{src:t.pictogram,alt:""}),i("div",{part:"accessibility-name",innerHTML:t.name}))}))),this.emergencyNumber&&i("div",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},i("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},l[u.language].emergencyNumber),i("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},i("a",{href:"tel:".concat(this.emergencyNumber.toString())},i("span",{part:"icon",class:"icon",innerHTML:yt}),i("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&i("div",{part:"accessibility-level-container",class:"accessibility-level-container"},i("div",{part:"accessibility-level-title",class:"accessibility-level-title"},l[u.language].accessibilityLevel),i("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},i("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},l[u.language].accessibilitySlope),i("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{part:"accessibility-width-container",class:"accessibility-width-container"},i("div",{part:"accessibility-width-title",class:"accessibility-width-title"},l[u.language].accessibilityWidth),i("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},i("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},l[u.language].accessibilitySignage),i("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},i("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},l[u.language].accessibilityCovering),i("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},i("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},l[u.language].accessibilityExposure),i("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},i("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},l[u.language].accessibilityAdvices),i("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),u.trekTouristicContents&&u.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},l[u.language].touristicContents(u.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicContents.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,"color-surface-container-low":t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),u.trekTouristicEvents&&u.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},l[u.language].touristicEvents(u.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicEvents.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weblinks-container",class:"weblinks-container"},i("div",{part:"weblinks-title",class:"weblinks-title"},l[u.language].learnMore),this.currentTrek.web_links.map((function(t){return i("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&i("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"source-container",class:"source-container"},i("div",{part:"source-title",class:"source-title"},l[u.language].sources),this.sources.map((function(t){return i("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram,alt:""}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:t.name}),i("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&i(c,null,this.showTouristicContentDetailsModal&&i("grw-touristic-content-provider",{api:u.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&i("grw-touristic-event-provider",{api:u.api,"touristic-event-id":this.modalDetailsId})))};return t}());Ei.style=yi;var Si=t("grw_trek_provider",function(){function t(t){e(this,t);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;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined;this.signages=false}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;u.inBboxFromProviders=this.inBbox;u.citiesFromProviders=this.cities;u.districtsFromProviders=this.districts;u.structuresFromProviders=this.structures;u.themesFromProviders=this.themes;u.routesFromProviders=this.routes;u.practicesFromProviders=this.practices;u.labelsFromProviders=this.labels;this.handleTrek()};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,I("treks",this.trekId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}return[2]}}))}))};t.prototype.handleOfflineTrek=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,l,p,d,h,f,m,v,g,b,w,k,x,y,A,_,z,L,C,M,B,O,T,j;return __generator(this,(function(E){switch(E.label){case 0:if(!(t&&t.children.length>0||u.parentTrekId))return[3,5];e=[];if(!(t.children.length>0))return[3,1];u.parentTrekId=t.id;u.parentTrek=t;e.push.apply(e,t.children);return[3,3];case 1:return[4,I("treks",u.parentTrekId)];case 2:i=E.sent();u.parentTrek=i;e.push.apply(e,i.children);E.label=3;case 3:r=[];e.forEach((function(t){r.push(I("treks",t))}));n=u;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:n.currentTrekSteps=E.sent();E.label=5;case 5:o=u;return[4,H("difficulties")];case 6:o.difficulties=E.sent();s=u;return[4,H("routes")];case 7:s.routes=E.sent();a=u;return[4,H("practices")];case 8:a.practices=E.sent();c=u;return[4,H("themes")];case 9:c.themes=E.sent();l=u;return[4,H("cities")];case 10:l.cities=E.sent();p=u;return[4,H("accessibilities")];case 11:p.accessibilities=E.sent();d=u;return[4,H("ratings")];case 12:d.ratings=E.sent();h=u;return[4,H("ratingsScale")];case 13:h.ratingsScale=E.sent();f=u;return[4,H("labels")];case 14:f.labels=E.sent();m=u;return[4,H("sources")];case 15:m.sources=E.sent();v=u;return[4,H("accessibilitiesLevel")];case 16:v.accessibilitiesLevel=E.sent();g=u;return[4,H("touristicContentCategories")];case 17:g.touristicContentCategories=E.sent();b=u;return[4,H("touristicEventTypes")];case 18:b.touristicEventTypes=E.sent();w=u;return[4,H("networks")];case 19:w.networks=E.sent();k=u;return[4,H("poiTypes")];case 20:k.poiTypes=E.sent();return[4,H("informationDesks")];case 21:x=E.sent();y=x.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));u.currentInformationDesks=y;return[4,H("pois",["url"])];case 22:A=E.sent();_=A.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));u.currentPois=_;return[4,H("touristicContents",["url"])];case 23:z=E.sent();L=z.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));u.trekTouristicContents=L;return[4,H("touristicEvents",["url"])];case 24:C=E.sent();M=C.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));u.trekTouristicEvents=M;return[4,H("sensitiveAreas")];case 25:B=E.sent();O=B.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));u.currentSensitiveAreas=O;return[4,H("signages")];case 26:T=E.sent();j=T.filter((function(e){return t.signages.some((function(t){return t===e.id}))}));u.currentSignages=j;return[4,F(t,P,["url"])];case 27:E.sent();u.currentTrek=t;return[2]}}))}))};t.prototype.handleOnlineTrek=function(){var t=this;var e=[];e.push(!u.difficulties?fetch("".concat(u.api,"trek_difficulty/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!u.routes?fetch("".concat(u.api,"trek_route/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!u.practices?fetch("".concat(u.api,"trek_practice/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!u.themes?fetch("".concat(u.api,"theme/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!u.cities?fetch("".concat(u.api,"city/?language=").concat(u.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!u.accessibilities?fetch("".concat(u.api,"trek_accessibility/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!u.ratings?fetch("".concat(u.api,"trek_rating/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!u.ratingsScale?fetch("".concat(u.api,"trek_ratingscale/?language=").concat(u.language,"&fields=id,name"),this.init):new Response("null"));e.push(this.signages?et(u.api,u.language,this.trekId,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[tt(u.api,u.language,this.trekId,this.init).then((function(t){if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(u.api,"label/?language=").concat(u.language,"&fields=id,name,advice,pictogram,filter"),this.init),X(u.api,u.language,this.init),fetch("".concat(u.api,"trek_accessibility_level/?language=").concat(u.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),$(u.api,u.language,this.trekId,this.init),fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),this.init),J(u.api,u.language,this.init),kt(u.api,u.language,this.trekId,this.init),fetch("".concat(u.api,"touristiccontent_category/?language=").concat(u.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),xt(u.api,u.language,this.trekId,this.init),fetch("".concat(u.api,"touristicevent_type/?language=").concat(u.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(u.api,"trek_network/?language=").concat(u.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),K(u.api,u.language,this.trekId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],p=e[8],d=e[9],h=e[10],f=e[11],m=e[12],v=e[13],g=e[14],b=e[15],w=e[16],k=e[17],x=e[18],y=e[19],A=e[20],_=e[21];return __awaiter(t,void 0,void 0,(function(){var t,e,z,L;var C=this;return __generator(this,(function(M){switch(M.label){case 0:u.networkError=false;if(!(_&&_.children.length>0||u.parentTrekId))return[3,5];t=[];if(!(_.children.length>0))return[3,1];u.parentTrekId=_.id;u.parentTrek=_;t.push.apply(t,_.children);return[3,3];case 1:return[4,fetch("".concat(u.api,"trek/").concat(u.parentTrekId,"/?language=").concat(u.language,"&published=true&fields=name,children")).then((function(t){return t.json()}))];case 2:e=M.sent();u.parentTrek=e;t.push.apply(t,e.children);M.label=3;case 3:z=[];t.forEach((function(t){z.push(K(u.api,u.language,t,C.init))}));L=u;return[4,Promise.all(__spreadArray([],z,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:L.currentTrekSteps=M.sent();M.label=5;case 5:if(i){u.difficulties=i.results}if(r){u.routes=r.results}if(n){u.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){u.themes=o.results}if(s){u.cities=s.results}if(a){u.accessibilities=a.results}if(c){u.ratings=c.results}if(l){u.ratingsScale=l.results}if(d){u.currentSensitiveAreas=d.results}if(h){u.labels=h.results}u.currentSignages=p?p.results:[];if(f){u.sources=f.results}if(m){u.accessibilitiesLevel=m.results}if(w){u.trekTouristicContents=w.results}if(k){u.touristicContentCategories=k.results}if(x){u.trekTouristicEvents=x.results}if(y){u.touristicEventTypes=y.results}if(A){u.networks=A.results}if(v){u.currentPois=v.results}if(g){u.poiTypes=g.results}if(b){u.currentInformationDesks=b.results}if(_){u.currentTrek=_}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){u.networkError=true}}};t.prototype.render=function(){return i(r,{key:"c9982dbc8d64b98d14607790ee063e7d970a0dd2"})};return t}());var Ni=":host{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 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.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-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var Yi=Ni;var Ii=t("grw_treks_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(u.currentTreks){this.treksToDisplay=__spreadArray([],u.currentTreks.slice(0,this.step),true)}p("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.currentTreks){t.treksToDisplay=__spreadArray([],u.currentTreks.slice(0,t.step),true)}}));p("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(u.treksWithinBounds){t.treksToDisplay=__spreadArray([],u.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<u.treksWithinBounds.length){this.treksToDisplay=u.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=u.treksWithinBounds.length?u.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(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}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"42ccb4ff982770a69a48c72234213480b27a80cd",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.treksWithinBounds.length," ").concat(u.treksWithinBounds.length>1?l[u.language].treks:l[u.language].trek)),i("div",{key:"6220810e74b1c49739f6a6630b155ad10f2c1f89",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(e){return i("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp})}))),i("div",{key:"0aa652a96daddf4a5189ade5c8ee15607aa92ae2",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());Ii.style=Yi;var Hi=t("grw_treks_provider",function(){function t(t){e(this,t);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;this.labels=undefined;this.offline=false}t.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;u.inBboxFromProviders=this.inBbox;u.citiesFromProviders=this.cities;u.districtsFromProviders=this.districts;u.structuresFromProviders=this.structures;u.themesFromProviders=this.themes;u.routesFromProviders=this.routes;u.practicesFromProviders=this.practices;u.labelsFromProviders=this.labels;this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};t.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}return[2]}))}))};t.prototype.handleOfflineTreks=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s,a,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,G("treks")];case 1:t=l.sent();if(!(t&&t.length>0))return[3,11];e=u;return[4,this.handleOfflineProperty("difficulties")];case 2:e.difficulties=l.sent();i=u;return[4,this.handleOfflineProperty("routes")];case 3:i.routes=l.sent();r=u;return[4,this.handleOfflineProperty("practices")];case 4:r.practices=l.sent();n=u;return[4,this.handleOfflineProperty("themes")];case 5:n.themes=l.sent();o=u;return[4,this.handleOfflineProperty("cities")];case 6:o.cities=l.sent();s=u;return[4,this.handleOfflineProperty("accessibilities")];case 7:s.accessibilities=l.sent();a=u;return[4,this.handleOfflineProperty("labels")];case 8:a.labels=l.sent();c=u;return[4,this.handleOfflineProperty("districts")];case 9:c.districts=l.sent();u.durations=O;u.lengths=T;u.elevations=j;return[4,this.handleOfflineProperty("treks")];case 10:t=l.sent();this.sortTreks(t);if(this.offline){t=t.filter((function(t){return t.offline}))}u.treks=t;u.currentTreks=t;return[3,12];case 11:u.networkError=true;l.label=12;case 12:return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t,e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:return[4,G(t)];case 1:i=r.sent();return[4,F(i,P,e)];case 2:r.sent();return[2,i]}}))}))};t.prototype.handleOnlineTreks=function(){var t=this;Promise.all([fetch("".concat(u.api,"trek_difficulty/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(u.api,"trek_route/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(u.api,"trek_practice/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(u.api,"theme/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(u.api,"city/?language=").concat(u.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(u.api,"trek_accessibility/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(u.api,"label/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram,filter&published=true&page_size=999"),this.init),Q(u.api,u.language,this.init),W(this.api,u.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(t){t.forEach((function(t){if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],p=e[8];return __awaiter(t,void 0,void 0,(function(){var t,e,d;return __generator(this,(function(h){switch(h.label){case 0:u.networkError=false;u.difficulties=i.results;u.routes=r.results;u.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));u.themes=o.results;u.cities=s.results;u.accessibilities=a.results;u.labels=c.results;u.districts=l.results;u.durations=O;u.lengths=T;u.elevations=j;t=[];e=0;h.label=1;case 1:if(!(e<p.results.length))return[3,4];return[4,it(p.results[e].id)];case 2:d=h.sent();t.push(Object.assign(Object.assign({},p.results[e]),{offline:d}));h.label=3;case 3:e++;return[3,1];case 4:this.sortTreks(t);u.treks=t;u.currentTreks=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineTreks()];case 1:t.sent();return[2]}}))}))}))};t.prototype.render=function(){return i(r,{key:"a9ce59fc3e6735c0353f6a4aad766cb3c8cd47f7"})};return t}())}}}));
|
|
4
|
+
//# sourceMappingURL=p-90ee8d15.system.entry.js.map
|