@geotrekce/geotrek-rando-widget 0.30.2 → 0.30.4
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/{call-422e2bf4.js → call-c5b389c7.js} +2 -2
- package/dist/cjs/call-c5b389c7.js.br +0 -0
- package/dist/cjs/call-c5b389c7.js.gz +0 -0
- package/dist/cjs/{call-422e2bf4.js.map → call-c5b389c7.js.map} +1 -1
- package/dist/cjs/grw-app.cjs.entry.js +2 -2
- 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 +83 -69
- 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-db.service-dde227e0.js → grw-db.service-51e2fba4.js} +2 -2
- package/dist/cjs/grw-db.service-51e2fba4.js.br +0 -0
- package/dist/cjs/grw-db.service-51e2fba4.js.gz +0 -0
- package/dist/cjs/{grw-db.service-dde227e0.js.map → grw-db.service-51e2fba4.js.map} +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js +25 -11
- 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-details-modal_8.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter.cjs.entry.js +2 -2
- package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +5 -5
- 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 +3 -3
- 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 +4 -4
- 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/{outdoor-courses.service-083411f5.js → outdoor-courses.service-9ba0da7e.js} +2 -2
- package/dist/cjs/outdoor-courses.service-9ba0da7e.js.br +0 -0
- package/dist/cjs/outdoor-courses.service-9ba0da7e.js.gz +0 -0
- package/dist/cjs/{outdoor-courses.service-083411f5.js.map → outdoor-courses.service-9ba0da7e.js.map} +1 -1
- package/dist/cjs/{store-65aa11bc.js → store-8c47b811.js} +2 -2
- package/dist/cjs/store-8c47b811.js.br +0 -0
- package/dist/cjs/store-8c47b811.js.gz +0 -0
- package/dist/cjs/{store-65aa11bc.js.map → store-8c47b811.js.map} +1 -1
- package/dist/cjs/{treks.service-14b5765a.js → treks.service-ae2960c8.js} +4 -4
- package/dist/cjs/treks.service-ae2960c8.js.br +0 -0
- package/dist/cjs/treks.service-ae2960c8.js.gz +0 -0
- package/dist/cjs/{treks.service-14b5765a.js.map → treks.service-ae2960c8.js.map} +1 -1
- package/dist/cjs/{utils-5c5c3fee.js → utils-fef97420.js} +3 -3
- package/dist/cjs/utils-fef97420.js.br +0 -0
- package/dist/cjs/utils-fef97420.js.gz +0 -0
- package/dist/cjs/{utils-5c5c3fee.js.map → utils-fef97420.js.map} +1 -1
- package/dist/cjs/{web-87e6d345.js → web-e27fac22.js} +3 -3
- package/dist/cjs/web-e27fac22.js.br +0 -0
- package/dist/cjs/web-e27fac22.js.gz +0 -0
- package/dist/cjs/{web-87e6d345.js.map → web-e27fac22.js.map} +1 -1
- package/dist/collection/components/grw-map/grw-map.js +62 -56
- 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/store/grw-outdoor-site-provider.js +4 -4
- package/dist/collection/store/grw-outdoor-site-provider.js.br +0 -0
- package/dist/collection/store/grw-outdoor-site-provider.js.gz +0 -0
- package/dist/collection/store/grw-outdoor-site-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-content-provider.js +11 -3
- package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +9 -3
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +11 -3
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/store.js +1 -1
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/esm/{call-c0c920b0.js → call-df62b17b.js} +2 -2
- package/dist/esm/call-df62b17b.js.br +0 -0
- package/dist/esm/call-df62b17b.js.gz +0 -0
- package/dist/esm/{call-c0c920b0.js.map → call-df62b17b.js.map} +1 -1
- package/dist/esm/grw-app.entry.js +2 -2
- 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 +83 -69
- 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-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
- package/dist/esm/grw-db.service-a2b2fc8e.js.br +0 -0
- package/dist/esm/grw-db.service-a2b2fc8e.js.gz +0 -0
- package/dist/esm/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +1 -1
- package/dist/esm/grw-details-modal_8.entry.js +25 -11
- 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-details-modal_8.entry.js.map +1 -1
- package/dist/esm/grw-filter.entry.js +2 -2
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js +5 -5
- 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 +3 -3
- 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 +4 -4
- 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/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
- package/dist/esm/outdoor-courses.service-c7fe26df.js.br +0 -0
- package/dist/esm/outdoor-courses.service-c7fe26df.js.gz +0 -0
- package/dist/esm/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +1 -1
- package/dist/esm/{store-882ab9be.js → store-aa921ea2.js} +2 -2
- package/dist/esm/store-aa921ea2.js.br +0 -0
- package/dist/esm/store-aa921ea2.js.gz +0 -0
- package/dist/esm/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
- package/dist/esm/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +4 -4
- package/dist/esm/treks.service-0b98455e.js.br +0 -0
- package/dist/esm/treks.service-0b98455e.js.gz +0 -0
- package/dist/esm/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +1 -1
- package/dist/esm/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
- package/dist/esm/utils-b1ca48b3.js.br +0 -0
- package/dist/esm/utils-b1ca48b3.js.gz +0 -0
- package/dist/esm/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +1 -1
- package/dist/esm/{web-9ea89c85.js → web-08ea09e6.js} +3 -3
- package/dist/esm/web-08ea09e6.js.br +0 -0
- package/dist/esm/web-08ea09e6.js.gz +0 -0
- package/dist/esm/{web-9ea89c85.js.map → web-08ea09e6.js.map} +1 -1
- package/dist/esm-es5/{call-c0c920b0.js → call-df62b17b.js} +2 -2
- package/dist/esm-es5/call-df62b17b.js.br +0 -0
- package/dist/esm-es5/{call-c0c920b0.js.gz → call-df62b17b.js.gz} +0 -0
- 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-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
- package/dist/esm-es5/grw-db.service-a2b2fc8e.js.br +0 -0
- package/dist/esm-es5/grw-db.service-a2b2fc8e.js.gz +0 -0
- 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-details-modal_8.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter.entry.js +1 -1
- package/dist/esm-es5/grw-filter.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
- package/dist/esm-es5/grw-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/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
- package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.br +0 -0
- package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.gz +0 -0
- package/dist/esm-es5/{store-882ab9be.js → store-aa921ea2.js} +2 -2
- package/dist/esm-es5/store-aa921ea2.js.br +0 -0
- package/dist/esm-es5/store-aa921ea2.js.gz +0 -0
- package/dist/esm-es5/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
- package/dist/esm-es5/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +2 -2
- package/dist/esm-es5/treks.service-0b98455e.js.br +0 -0
- package/dist/esm-es5/treks.service-0b98455e.js.gz +0 -0
- package/dist/esm-es5/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
- package/dist/esm-es5/utils-b1ca48b3.js.br +0 -0
- package/dist/esm-es5/utils-b1ca48b3.js.gz +0 -0
- package/dist/esm-es5/{web-9ea89c85.js → web-08ea09e6.js} +2 -2
- package/dist/esm-es5/web-08ea09e6.js.br +0 -0
- package/dist/esm-es5/web-08ea09e6.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js → p-06ec8b64.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-06ec8b64.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-06ec8b64.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6471529.system.js → p-0e29bbf9.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6471529.system.js.map → p-0e29bbf9.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js → p-11622ab2.system.js} +3 -3
- package/dist/geotrek-rando-widget/p-11622ab2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-11622ab2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js → p-28048cef.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-f0d965b9.system.entry.js → p-2939026a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js → p-35fa0752.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-35fa0752.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.gz → p-35fa0752.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-0dc681ee.system.js → p-3834a184.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-3834a184.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3834a184.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-111e4a10.entry.js → p-4450a6e3.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js +1 -1
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-c8f5ce61.js → p-5feca333.js} +2 -2
- package/dist/geotrek-rando-widget/p-5feca333.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5feca333.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js → p-643b34f4.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-844f4321.js → p-6d0668a6.js} +3 -3
- package/dist/geotrek-rando-widget/p-6d0668a6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d0668a6.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d95cfb6f.js → p-7207c87a.js} +2 -2
- package/dist/geotrek-rando-widget/p-7207c87a.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7207c87a.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d95cfb6f.js.map → p-7207c87a.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js → p-722468a0.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-722468a0.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-722468a0.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-91d62770.entry.js → p-83e76a62.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-83e76a62.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-83e76a62.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-38d31358.entry.js → p-9ac8e3ac.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-20fa1207.entry.js → p-9c461972.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9c461972.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9c461972.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6287495f.entry.js → p-ad644267.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ad644267.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad644267.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js → p-ad6e02a4.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-315f99d3.system.js → p-ae0a8dc1.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-fcbe4bb6.js → p-b0b7e072.js} +2 -2
- package/dist/geotrek-rando-widget/p-b0b7e072.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b0b7e072.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-b1ed0255.js → p-bc36f8a6.js} +2 -2
- package/dist/geotrek-rando-widget/p-bc36f8a6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bc36f8a6.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js → p-cf6d1b66.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js → p-d8126403.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-c61425f6.js → p-e5086616.js} +2 -2
- package/dist/geotrek-rando-widget/p-e5086616.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e5086616.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js → p-e9483fdf.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js → p-ec9a42ab.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js → p-f152b476.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-f152b476.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f152b476.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-76467e71.js → p-f92d0101.js} +2 -2
- package/dist/geotrek-rando-widget/p-f92d0101.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f92d0101.js.gz +0 -0
- package/package.json +1 -1
- package/dist/cjs/call-422e2bf4.js.br +0 -0
- package/dist/cjs/call-422e2bf4.js.gz +0 -0
- package/dist/cjs/grw-db.service-dde227e0.js.br +0 -0
- package/dist/cjs/grw-db.service-dde227e0.js.gz +0 -0
- package/dist/cjs/outdoor-courses.service-083411f5.js.br +0 -0
- package/dist/cjs/outdoor-courses.service-083411f5.js.gz +0 -0
- package/dist/cjs/store-65aa11bc.js.br +0 -0
- package/dist/cjs/store-65aa11bc.js.gz +0 -0
- package/dist/cjs/treks.service-14b5765a.js.br +0 -0
- package/dist/cjs/treks.service-14b5765a.js.gz +0 -0
- package/dist/cjs/utils-5c5c3fee.js.br +0 -0
- package/dist/cjs/utils-5c5c3fee.js.gz +0 -0
- package/dist/cjs/web-87e6d345.js.br +0 -0
- package/dist/cjs/web-87e6d345.js.gz +0 -0
- package/dist/esm/call-c0c920b0.js.br +0 -0
- package/dist/esm/call-c0c920b0.js.gz +0 -0
- package/dist/esm/grw-db.service-83da38c9.js.br +0 -0
- package/dist/esm/grw-db.service-83da38c9.js.gz +0 -0
- package/dist/esm/outdoor-courses.service-d2397066.js.br +0 -0
- package/dist/esm/outdoor-courses.service-d2397066.js.gz +0 -0
- package/dist/esm/store-882ab9be.js.br +0 -0
- package/dist/esm/store-882ab9be.js.gz +0 -0
- package/dist/esm/treks.service-a3ce33ef.js.br +0 -0
- package/dist/esm/treks.service-a3ce33ef.js.gz +0 -0
- package/dist/esm/utils-5feb9281.js.br +0 -0
- package/dist/esm/utils-5feb9281.js.gz +0 -0
- package/dist/esm/web-9ea89c85.js.br +0 -0
- package/dist/esm/web-9ea89c85.js.gz +0 -0
- package/dist/esm-es5/call-c0c920b0.js.br +0 -0
- package/dist/esm-es5/grw-db.service-83da38c9.js.br +0 -0
- package/dist/esm-es5/grw-db.service-83da38c9.js.gz +0 -0
- package/dist/esm-es5/outdoor-courses.service-d2397066.js.br +0 -0
- package/dist/esm-es5/outdoor-courses.service-d2397066.js.gz +0 -0
- package/dist/esm-es5/store-882ab9be.js.br +0 -0
- package/dist/esm-es5/store-882ab9be.js.gz +0 -0
- package/dist/esm-es5/treks.service-a3ce33ef.js.br +0 -0
- package/dist/esm-es5/treks.service-a3ce33ef.js.gz +0 -0
- package/dist/esm-es5/utils-5feb9281.js.br +0 -0
- package/dist/esm-es5/utils-5feb9281.js.gz +0 -0
- package/dist/esm-es5/web-9ea89c85.js.br +0 -0
- package/dist/esm-es5/web-9ea89c85.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0dc681ee.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0dc681ee.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-20fa1207.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-20fa1207.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-315f99d3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-315f99d3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6287495f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6287495f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-76467e71.js.br +0 -0
- package/dist/geotrek-rando-widget/p-76467e71.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-844f4321.js.br +0 -0
- package/dist/geotrek-rando-widget/p-844f4321.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-91d62770.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-91d62770.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b1ed0255.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b1ed0255.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c61425f6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c61425f6.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c8f5ce61.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c8f5ce61.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d95cfb6f.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d95cfb6f.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e6471529.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e6471529.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fcbe4bb6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fcbe4bb6.js.gz +0 -0
- /package/dist/esm-es5/{call-c0c920b0.js.map → call-df62b17b.js.map} +0 -0
- /package/dist/esm-es5/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +0 -0
- /package/dist/esm-es5/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +0 -0
- /package/dist/esm-es5/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +0 -0
- /package/dist/esm-es5/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +0 -0
- /package/dist/esm-es5/{web-9ea89c85.js.map → web-08ea09e6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js.map → p-06ec8b64.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js.map → p-11622ab2.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js.map → p-28048cef.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.map → p-35fa0752.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-0dc681ee.system.js.map → p-3834a184.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c8f5ce61.js.map → p-5feca333.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js.map → p-643b34f4.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-844f4321.js.map → p-6d0668a6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js.map → p-722468a0.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-91d62770.entry.js.map → p-83e76a62.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-38d31358.entry.js.map → p-9ac8e3ac.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-20fa1207.entry.js.map → p-9c461972.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6287495f.entry.js.map → p-ad644267.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js.map → p-ad6e02a4.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-315f99d3.system.js.map → p-ae0a8dc1.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-fcbe4bb6.js.map → p-b0b7e072.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-b1ed0255.js.map → p-bc36f8a6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js.map → p-cf6d1b66.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js.map → p-d8126403.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c61425f6.js.map → p-e5086616.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js.map → p-e9483fdf.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js.map → p-ec9a42ab.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js.map → p-f152b476.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-76467e71.js.map → p-f92d0101.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(i,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]};return t(i,n)};return function(i,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(i,n);function e(){this.constructor=i}i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++){i=arguments[n];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))t[s]=i[s]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,i,n,e){function s(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{u(e.next(t))}catch(t){r(t)}}function h(t){try{u(e["throw"](t))}catch(t){r(t)}}function u(t){t.done?n(t.value):s(t.value).then(o,h)}u((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,s,r,o;return o={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function h(t){return function(i){return u([t,i])}}function u(h){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,h[0]&&(n=0)),n)try{if(e=1,s&&(r=h[0]&2?s["return"]:h[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,h[1])).done)return r;if(s=0,r)h=[h[0]&2,r.value];switch(h[0]){case 0:case 1:r=h;break;case 4:n.label++;return{value:h[1],done:false};case 5:n.label++;s=h[1];h=[0];continue;case 7:h=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!r||h[1]>r[0]&&h[1]<r[3])){n.label=h[1];break}if(h[0]===6&&n.label<r[1]){n.label=r[1];r=h;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(h);break}if(r[2])n.ops.pop();n.trys.pop();continue}h=i.call(t,n)}catch(t){h=[6,t];s=0}finally{e=r=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};var __await=this&&this.__await||function(t){return this instanceof __await?(this.v=t,this):new __await(t)};var __asyncGenerator=this&&this.__asyncGenerator||function(t,i,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n.apply(t,i||[]),s,r=[];return s={},h("next"),h("throw"),h("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(t){return function(i){return Promise.resolve(i).then(t,c)}}function h(t,i){if(e[t]){s[t]=function(i){return new Promise((function(n,e){r.push([t,i,n,e])>1||u(t,i)}))};if(i)s[t]=i(s[t])}}function u(t,i){try{a(e[t](i))}catch(t){l(r[0][3],t)}}function a(t){t.value instanceof __await?Promise.resolve(t.value.v).then(f,c):l(r[0][2],t)}function f(t){u("next",t)}function c(t){u("throw",t)}function l(t,i){if(t(i),r.shift(),r.length)u(r[0][0],r[0][1])}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var e=0,s=i.length,r;e<s;e++){if(r||!(e in i)){if(!r)r=Array.prototype.slice.call(i,0,e);r[e]=i[e]}}return t.concat(r||Array.prototype.slice.call(i))};System.register(["./p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(i,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]};return t(i,n)};return function(i,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(i,n);function e(){this.constructor=i}i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++){i=arguments[n];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))t[s]=i[s]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,i,n,e){function s(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{u(e.next(t))}catch(t){r(t)}}function h(t){try{u(e["throw"](t))}catch(t){r(t)}}function u(t){t.done?n(t.value):s(t.value).then(o,h)}u((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,s,r,o;return o={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function h(t){return function(i){return u([t,i])}}function u(h){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,h[0]&&(n=0)),n)try{if(e=1,s&&(r=h[0]&2?s["return"]:h[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,h[1])).done)return r;if(s=0,r)h=[h[0]&2,r.value];switch(h[0]){case 0:case 1:r=h;break;case 4:n.label++;return{value:h[1],done:false};case 5:n.label++;s=h[1];h=[0];continue;case 7:h=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!r||h[1]>r[0]&&h[1]<r[3])){n.label=h[1];break}if(h[0]===6&&n.label<r[1]){n.label=r[1];r=h;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(h);break}if(r[2])n.ops.pop();n.trys.pop();continue}h=i.call(t,n)}catch(t){h=[6,t];s=0}finally{e=r=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};var __await=this&&this.__await||function(t){return this instanceof __await?(this.v=t,this):new __await(t)};var __asyncGenerator=this&&this.__asyncGenerator||function(t,i,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n.apply(t,i||[]),s,r=[];return s={},h("next"),h("throw"),h("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(t){return function(i){return Promise.resolve(i).then(t,c)}}function h(t,i){if(e[t]){s[t]=function(i){return new Promise((function(n,e){r.push([t,i,n,e])>1||u(t,i)}))};if(i)s[t]=i(s[t])}}function u(t,i){try{a(e[t](i))}catch(t){l(r[0][3],t)}}function a(t){t.value instanceof __await?Promise.resolve(t.value.v).then(f,c):l(r[0][2],t)}function f(t){u("next",t)}function c(t){u("throw",t)}function l(t,i){if(t(i),r.shift(),r.length)u(r[0][0],r[0][1])}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var e=0,s=i.length,r;e<s;e++){if(r||!(e in i)){if(!r)r=Array.prototype.slice.call(i,0,e);r[e]=i[e]}}return t.concat(r||Array.prototype.slice.call(i))};System.register(["./p-11622ab2.system.js"],(function(t){"use strict";var i,n,e,s,r,o,h,u;return{setters:[function(t){i=t.b;n=t.C;e=t.F;s=t.g;r=t.c;o=t.D;h=t.s;u=t.i}],execute:function(){t({a:kt,d:xt,e:It,g:Tt,h:St,w:Lt});var a=function(t,i){return i.some((function(i){return t instanceof i}))};var f;var c;function l(){return f||(f=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function v(){return c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var d=new WeakMap;var m=new WeakMap;var p=new WeakMap;function _(t){var i=new Promise((function(i,n){var e=function(){t.removeEventListener("success",s);t.removeEventListener("error",r)};var s=function(){i(P(t.result));e()};var r=function(){n(t.error);e()};t.addEventListener("success",s);t.addEventListener("error",r)}));p.set(i,t);return i}function w(t){if(d.has(t))return;var i=new Promise((function(i,n){var e=function(){t.removeEventListener("complete",s);t.removeEventListener("error",r);t.removeEventListener("abort",r)};var s=function(){i();e()};var r=function(){n(t.error||new DOMException("AbortError","AbortError"));e()};t.addEventListener("complete",s);t.addEventListener("error",r);t.addEventListener("abort",r)}));d.set(t,i)}var g={get:function(t,i,n){if(t instanceof IDBTransaction){if(i==="done")return d.get(t);if(i==="store"){return n.objectStoreNames[1]?undefined:n.objectStore(n.objectStoreNames[0])}}return P(t[i])},set:function(t,i,n){t[i]=n;return true},has:function(t,i){if(t instanceof IDBTransaction&&(i==="done"||i==="store")){return true}return i in t}};function y(t){g=t(g)}function b(t){if(v().includes(t)){return function(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}t.apply(k(this),i);return P(this.request)}}return function(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return P(t.apply(k(this),i))}}function M(t){if(typeof t==="function")return b(t);if(t instanceof IDBTransaction)w(t);if(a(t,l()))return new Proxy(t,g);return t}function P(t){if(t instanceof IDBRequest)return _(t);if(m.has(t))return m.get(t);var i=M(t);if(i!==t){m.set(t,i);p.set(i,t)}return i}var k=function(t){return p.get(t)};function T(t,i,n){var e=n===void 0?{}:n,s=e.blocked,r=e.upgrade,o=e.blocking,h=e.terminated;var u=indexedDB.open(t,i);var a=P(u);if(r){u.addEventListener("upgradeneeded",(function(t){r(P(u.result),t.oldVersion,t.newVersion,P(u.transaction),t)}))}if(s){u.addEventListener("blocked",(function(t){return s(t.oldVersion,t.newVersion,t)}))}a.then((function(t){if(h)t.addEventListener("close",(function(){return h()}));if(o){t.addEventListener("versionchange",(function(t){return o(t.oldVersion,t.newVersion,t)}))}})).catch((function(){}));return a}var x=["get","getKey","getAll","getAllKeys","count"];var I=["put","add","delete","clear"];var S=new Map;function z(t,i){if(!(t instanceof IDBDatabase&&!(i in t)&&typeof i==="string")){return}if(S.get(i))return S.get(i);var n=i.replace(/FromIndex$/,"");var e=i!==n;var s=I.includes(n);if(!(n in(e?IDBIndex:IDBObjectStore).prototype)||!(s||x.includes(n))){return}var r=function(t){var i=[];for(var r=1;r<arguments.length;r++){i[r-1]=arguments[r]}return __awaiter(this,void 0,void 0,(function(){var r,o;return __generator(this,(function(h){switch(h.label){case 0:r=this.transaction(t,s?"readwrite":"readonly");o=r.store;if(e)o=o.index(i.shift());return[4,Promise.all([o[n].apply(o,i),s&&r.done])];case 1:return[2,h.sent()[0]]}}))}))};S.set(i,r);return r}y((function(t){return __assign(__assign({},t),{get:function(i,n,e){return z(i,n)||t.get(i,n,e)},has:function(i,n){return!!z(i,n)||t.has(i,n)}})}));var B=["continue","continuePrimaryKey","advance"];var D={};var A=new WeakMap;var E=new WeakMap;var C={get:function(t,i){if(!B.includes(i))return t[i];var n=D[i];if(!n){n=D[i]=function(){var t;var n=[];for(var e=0;e<arguments.length;e++){n[e]=arguments[e]}A.set(this,(t=E.get(this))[i].apply(t,n))}}return n}};function O(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}return __asyncGenerator(this,arguments,(function i(){var n,e;return __generator(this,(function(i){switch(i.label){case 0:n=this;if(!!(n instanceof IDBCursor))return[3,2];return[4,__await(n.openCursor.apply(n,t))];case 1:n=i.sent();i.label=2;case 2:if(!!n)return[3,4];return[4,__await(void 0)];case 3:return[2,i.sent()];case 4:n=n;e=new Proxy(n,C);E.set(e,n);p.set(e,k(n));i.label=5;case 5:if(!n)return[3,9];return[4,__await(e)];case 6:return[4,i.sent()];case 7:i.sent();return[4,__await(A.get(e)||n.continue())];case 8:n=i.sent();A.delete(e);return[3,5];case 9:return[2]}}))}))}function j(t,i){return i===Symbol.asyncIterator&&a(t,[IDBIndex,IDBObjectStore,IDBCursor])||i==="iterate"&&a(t,[IDBIndex,IDBObjectStore])}y((function(t){return __assign(__assign({},t),{get:function(i,n,e){if(j(i,n))return O;return t.get(i,n,e)},has:function(i,n){return j(i,n)||t.has(i,n)}})}));var R=t("c",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function Z(t){if(t.__esModule)return t;var i=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(n){var e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(i,n,e.get?e:{enumerable:true,get:function(){return t[n]}})}));return i}var N=t("l",{exports:{}});
|
|
2
2
|
/* @preserve
|
|
3
3
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
4
4
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
5
5
|
*/(function(t,i){(function(t,n){n(i)})(R,(function(t){var i="1.9.4";function n(t){var i,n,e,s;for(n=1,e=arguments.length;n<e;n++){s=arguments[n];for(i in s){t[i]=s[i]}}return t}var e=Object.create||function(){function t(){}return function(i){t.prototype=i;return new t}}();function s(t,i){var n=Array.prototype.slice;if(t.bind){return t.bind.apply(t,n.call(arguments,1))}var e=n.call(arguments,2);return function(){return t.apply(i,e.length?e.concat(n.call(arguments)):arguments)}}var r=0;function o(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++r}return t._leaflet_id}function h(t,i,n){var e,s,r,o;o=function(){e=false;if(s){r.apply(n,s);s=false}};r=function(){if(e){s=arguments}else{t.apply(n,arguments);setTimeout(o,i);e=true}};return r}function u(t,i,n){var e=i[1],s=i[0],r=e-s;return t===e&&n?t:((t-s)%r+r)%r+s}function a(){return false}function f(t,i){if(i===false){return t}var n=Math.pow(10,i===undefined?6:i);return Math.round(t*n)/n}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function l(t){return c(t).split(/\s+/)}function v(t,i){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?e(t.options):{}}for(var n in i){t.options[n]=i[n]}return t.options}function d(t,i,n){var e=[];for(var s in t){e.push(encodeURIComponent(n?s.toUpperCase():s)+"="+encodeURIComponent(t[s]))}return(!i||i.indexOf("?")===-1?"?":"&")+e.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function p(t,i){return t.replace(m,(function(t,n){var e=i[n];if(e===undefined){throw new Error("No value provided for variable "+t)}else if(typeof e==="function"){e=e(i)}return e}))}var _=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function w(t,i){for(var n=0;n<t.length;n++){if(t[n]===i){return n}}return-1}var g="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function M(t){var i=+new Date,n=Math.max(0,16-(i-b));b=i+n;return window.setTimeout(t,n)}var P=window.requestAnimationFrame||y("RequestAnimationFrame")||M;var k=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,i,n){if(n&&P===M){t.call(i)}else{return P.call(window,s(t,i))}}function x(t){if(t){k.call(window,t)}}var I={__proto__:null,extend:n,create:e,bind:s,get lastId(){return r},stamp:o,throttle:h,wrapNum:u,falseFn:a,formatNum:f,trim:c,splitWords:l,setOptions:v,getParamString:d,template:p,isArray:_,indexOf:w,emptyImageUrl:g,requestFn:P,cancelFn:k,requestAnimFrame:T,cancelAnimFrame:x};function S(){}S.extend=function(t){var i=function(){v(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var s=i.__super__=this.prototype;var r=e(s);r.constructor=i;i.prototype=r;for(var o in this){if(Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"){i[o]=this[o]}}if(t.statics){n(i,t.statics)}if(t.includes){z(t.includes);n.apply(null,[r].concat(t.includes))}n(r,t);delete r.statics;delete r.includes;if(r.options){r.options=s.options?e(s.options):{};n(r.options,t.options)}r._initHooks=[];r.callInitHooks=function(){if(this._initHooksCalled){return}if(s.callInitHooks){s.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,i=r._initHooks.length;t<i;t++){r._initHooks[t].call(this)}};return i};S.include=function(t){var i=this.prototype.options;n(this.prototype,t);if(t.options){this.prototype.options=i;this.mergeOptions(t.options)}return this};S.mergeOptions=function(t){n(this.prototype.options,t);return this};S.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1);var n=typeof t==="function"?t:function(){this[t].apply(this,i)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(n);return this};function z(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=_(t)?t:[t];for(var i=0;i<t.length;i++){if(t[i]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var B={on:function(t,i,n){if(typeof t==="object"){for(var e in t){this._on(e,t[e],i)}}else{t=l(t);for(var s=0,r=t.length;s<r;s++){this._on(t[s],i,n)}}return this},off:function(t,i,n){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var e in t){this._off(e,t[e],i)}}else{t=l(t);var s=arguments.length===1;for(var r=0,o=t.length;r<o;r++){if(s){this._off(t[r])}else{this._off(t[r],i,n)}}}return this},_on:function(t,i,n,e){if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,n)!==false){return}if(n===this){n=undefined}var s={fn:i,ctx:n};if(e){s.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(s)},_off:function(t,i,n){var e,s,r;if(!this._events){return}e=this._events[t];if(!e){return}if(arguments.length===1){if(this._firingCount){for(s=0,r=e.length;s<r;s++){e[s].fn=a}}delete this._events[t];return}if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}var o=this._listens(t,i,n);if(o!==false){var h=e[o];if(this._firingCount){h.fn=a;this._events[t]=e=e.slice()}e.splice(o,1)}},fire:function(t,i,e){if(!this.listens(t,e)){return this}var s=n({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var o=0,h=r.length;o<h;o++){var u=r[o];var a=u.fn;if(u.once){this.off(t,a,u.ctx)}a.call(u.ctx||this,s)}this._firingCount--}}if(e){this._propagateEvent(s)}return this},listens:function(t,i,n,e){if(typeof t!=="string"){console.warn('"string" type argument expected')}var s=i;if(typeof i!=="function"){e=!!i;s=undefined;n=undefined}var r=this._events&&this._events[t];if(r&&r.length){if(this._listens(t,s,n)!==false){return true}}if(e){for(var o in this._eventParents){if(this._eventParents[o].listens(t,i,n,e)){return true}}}return false},_listens:function(t,i,n){if(!this._events){return false}var e=this._events[t]||[];if(!i){return!!e.length}if(n===this){n=undefined}for(var s=0,r=e.length;s<r;s++){if(e[s].fn===i&&e[s].ctx===n){return s}}return false},once:function(t,i,n){if(typeof t==="object"){for(var e in t){this._on(e,t[e],i,true)}}else{t=l(t);for(var s=0,r=t.length;s<r;s++){this._on(t[s],i,n,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[o(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[o(t)]}return this},_propagateEvent:function(t){for(var i in this._eventParents){this._eventParents[i].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),true)}}};B.addEventListener=B.on;B.removeEventListener=B.clearAllEventListeners=B.off;B.addOneTimeEventListener=B.once;B.fireEvent=B.fire;B.hasEventListeners=B.listens;var D=S.extend(B);function A(t,i,n){this.x=n?Math.round(t):t;this.y=n?Math.round(i):i}var E=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(C(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(C(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=E(this.x);this.y=E(this.y);return this},distanceTo:function(t){t=C(t);var i=t.x-this.x,n=t.y-this.y;return Math.sqrt(i*i+n*n)},equals:function(t){t=C(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=C(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}};function C(t,i,n){if(t instanceof A){return t}if(_(t)){return new A(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new A(t.x,t.y)}return new A(t,i,n)}function O(t,i){if(!t){return}var n=i?[t,i]:t;for(var e=0,s=n.length;e<s;e++){this.extend(n[e])}}O.prototype={extend:function(t){var i,n;if(!t){return this}if(t instanceof A||typeof t[0]==="number"||"x"in t){i=n=C(t)}else{t=j(t);i=t.min;n=t.max;if(!i||!n){return this}}if(!this.min&&!this.max){this.min=i.clone();this.max=n.clone()}else{this.min.x=Math.min(i.x,this.min.x);this.max.x=Math.max(n.x,this.max.x);this.min.y=Math.min(i.y,this.min.y);this.max.y=Math.max(n.y,this.max.y)}return this},getCenter:function(t){return C((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return C(this.min.x,this.max.y)},getTopRight:function(){return C(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,n;if(typeof t[0]==="number"||t instanceof A){t=C(t)}else{t=j(t)}if(t instanceof O){i=t.min;n=t.max}else{i=n=t}return i.x>=this.min.x&&n.x<=this.max.x&&i.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=j(t);var i=this.min,n=this.max,e=t.min,s=t.max,r=s.x>=i.x&&e.x<=n.x,o=s.y>=i.y&&e.y<=n.y;return r&&o},overlaps:function(t){t=j(t);var i=this.min,n=this.max,e=t.min,s=t.max,r=s.x>i.x&&e.x<n.x,o=s.y>i.y&&e.y<n.y;return r&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,n=this.max,e=Math.abs(i.x-n.x)*t,s=Math.abs(i.y-n.y)*t;return j(C(i.x-e,i.y-s),C(n.x+e,n.y+s))},equals:function(t){if(!t){return false}t=j(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function j(t,i){if(!t||t instanceof O){return t}return new O(t,i)}function R(t,i){if(!t){return}var n=i?[t,i]:t;for(var e=0,s=n.length;e<s;e++){this.extend(n[e])}}R.prototype={extend:function(t){var i=this._southWest,n=this._northEast,e,s;if(t instanceof N){e=t;s=t}else if(t instanceof R){e=t._southWest;s=t._northEast;if(!e||!s){return this}}else{return t?this.extend(F(t)||Z(t)):this}if(!i&&!n){this._southWest=new N(e.lat,e.lng);this._northEast=new N(s.lat,s.lng)}else{i.lat=Math.min(e.lat,i.lat);i.lng=Math.min(e.lng,i.lng);n.lat=Math.max(s.lat,n.lat);n.lng=Math.max(s.lng,n.lng)}return this},pad:function(t){var i=this._southWest,n=this._northEast,e=Math.abs(i.lat-n.lat)*t,s=Math.abs(i.lng-n.lng)*t;return new R(new N(i.lat-e,i.lng-s),new N(n.lat+e,n.lng+s))},getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof N||"lat"in t){t=F(t)}else{t=Z(t)}var i=this._southWest,n=this._northEast,e,s;if(t instanceof R){e=t.getSouthWest();s=t.getNorthEast()}else{e=s=t}return e.lat>=i.lat&&s.lat<=n.lat&&e.lng>=i.lng&&s.lng<=n.lng},intersects:function(t){t=Z(t);var i=this._southWest,n=this._northEast,e=t.getSouthWest(),s=t.getNorthEast(),r=s.lat>=i.lat&&e.lat<=n.lat,o=s.lng>=i.lng&&e.lng<=n.lng;return r&&o},overlaps:function(t){t=Z(t);var i=this._southWest,n=this._northEast,e=t.getSouthWest(),s=t.getNorthEast(),r=s.lat>i.lat&&e.lat<n.lat,o=s.lng>i.lng&&e.lng<n.lng;return r&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){if(!t){return false}t=Z(t);return this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)},isValid:function(){return!!(this._southWest&&this._northEast)}};function Z(t,i){if(t instanceof R){return t}return new R(t,i)}function N(t,i,n){if(isNaN(t)||isNaN(i)){throw new Error("Invalid LatLng object: ("+t+", "+i+")")}this.lat=+t;this.lng=+i;if(n!==undefined){this.alt=+n}}N.prototype={equals:function(t,i){if(!t){return false}t=F(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(i===undefined?1e-9:i)},toString:function(t){return"LatLng("+f(this.lat,t)+", "+f(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,F(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,n=i/Math.cos(Math.PI/180*this.lat);return Z([this.lat-i,this.lng-n],[this.lat+i,this.lng+n])},clone:function(){return new N(this.lat,this.lng,this.alt)}};function F(t,i,n){if(t instanceof N){return t}if(_(t)&&typeof t[0]!=="object"){if(t.length===3){return new N(t[0],t[1],t[2])}if(t.length===2){return new N(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new N(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(i===undefined){return null}return new N(t,i,n)}var H={latLngToPoint:function(t,i){var n=this.projection.project(t),e=this.scale(i);return this.transformation._transform(n,e)},pointToLatLng:function(t,i){var n=this.scale(i),e=this.transformation.untransform(t,n);return this.projection.unproject(e)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var i=this.projection.bounds,n=this.scale(t),e=this.transformation.transform(i.min,n),s=this.transformation.transform(i.max,n);return new O(e,s)},infinite:false,wrapLatLng:function(t){var i=this.wrapLng?u(t.lng,this.wrapLng,true):t.lng,n=this.wrapLat?u(t.lat,this.wrapLat,true):t.lat,e=t.alt;return new N(n,i,e)},wrapLatLngBounds:function(t){var i=t.getCenter(),n=this.wrapLatLng(i),e=i.lat-n.lat,s=i.lng-n.lng;if(e===0&&s===0){return t}var r=t.getSouthWest(),o=t.getNorthEast(),h=new N(r.lat-e,r.lng-s),u=new N(o.lat-e,o.lng-s);return new R(h,u)}};var W=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var n=Math.PI/180,e=t.lat*n,s=i.lat*n,r=Math.sin((i.lat-t.lat)*n/2),o=Math.sin((i.lng-t.lng)*n/2),h=r*r+Math.cos(e)*Math.cos(s)*o*o,u=2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h));return this.R*u}});var U=6378137;var G={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,n=this.MAX_LATITUDE,e=Math.max(Math.min(n,t.lat),-n),s=Math.sin(e*i);return new A(this.R*t.lng*i,this.R*Math.log((1+s)/(1-s))/2)},unproject:function(t){var i=180/Math.PI;return new N((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=U*Math.PI;return new O([-t,-t],[t,t])}()};function q(t,i,n,e){if(_(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=i;this._c=n;this._d=e}q.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){i=i||1;t.x=i*(this._a*t.x+this._b);t.y=i*(this._c*t.y+this._d);return t},untransform:function(t,i){i=i||1;return new A((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function V(t,i,n,e){return new q(t,i,n,e)}var K=n({},W,{code:"EPSG:3857",projection:G,transformation:function(){var t=.5/(Math.PI*G.R);return V(t,.5,-t,.5)}()});var J=n({},K,{code:"EPSG:900913"});function $(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,i){var n="",e,s,r,o,h,u;for(e=0,r=t.length;e<r;e++){h=t[e];for(s=0,o=h.length;s<o;s++){u=h[s];n+=(s?"L":"M")+u.x+" "+u.y}n+=i?Ot.svg?"z":"x":""}return n||"M0 0"}var Y=document.documentElement.style;var Q="ActiveXObject"in window;var tt=Q&&!document.addEventListener;var it="msLaunchUri"in navigator&&!("documentMode"in document);var nt=Ct("webkit");var et=Ct("android");var st=Ct("android 2")||Ct("android 3");var rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var ot=et&&Ct("Google")&&rt<537&&!("AudioNode"in window);var ht=!!window.opera;var ut=!it&&Ct("chrome");var at=Ct("gecko")&&!nt&&!ht&&!Q;var ft=!ut&&Ct("safari");var ct=Ct("phantom");var lt="OTransition"in Y;var vt=navigator.platform.indexOf("Win")===0;var dt=Q&&"transition"in Y;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st;var pt="MozPerspective"in Y;var _t=!window.L_DISABLE_3D&&(dt||mt||pt)&&!lt&&!ct;var wt=typeof orientation!=="undefined"||Ct("mobile");var gt=wt&&nt;var yt=wt&&mt;var bt=!window.PointerEvent&&window.MSPointerEvent;var Mt=!!(window.PointerEvent||bt);var Pt="ontouchstart"in window||!!window.TouchEvent;var kt=!window.L_NO_TOUCH&&(Pt||Mt);var Tt=wt&&ht;var Lt=wt&&at;var xt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var It=function(){var t=false;try{var i=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",a,i);window.removeEventListener("testPassiveEventSupport",a,i)}catch(t){}return t}();var St=function(){return!!document.createElement("canvas").getContext}();var zt=!!(document.createElementNS&&$("svg").createSVGRect);var Bt=!!zt&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var Dt=!zt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;i.style.behavior="url(#default#VML)";return i&&typeof i.adj==="object"}catch(t){return false}}();var At=navigator.platform.indexOf("Mac")===0;var Et=navigator.platform.indexOf("Linux")===0;function Ct(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot={ie:Q,ielt9:tt,edge:it,webkit:nt,android:et,android23:st,androidStock:ot,opera:ht,chrome:ut,gecko:at,safari:ft,phantom:ct,opera12:lt,win:vt,ie3d:dt,webkit3d:mt,gecko3d:pt,any3d:_t,mobile:wt,mobileWebkit:gt,mobileWebkit3d:yt,msPointer:bt,pointer:Mt,touch:kt,touchNative:Pt,mobileOpera:Tt,mobileGecko:Lt,retina:xt,passiveEvents:It,canvas:St,svg:zt,vml:Dt,inlineSvg:Bt,mac:At,linux:Et};var jt=Ot.msPointer?"MSPointerDown":"pointerdown";var Rt=Ot.msPointer?"MSPointerMove":"pointermove";var Zt=Ot.msPointer?"MSPointerUp":"pointerup";var Nt=Ot.msPointer?"MSPointerCancel":"pointercancel";var Ft={touchstart:jt,touchmove:Rt,touchend:Zt,touchcancel:Nt};var Ht={touchstart:Yt,touchmove:Xt,touchend:Xt,touchcancel:Xt};var Wt={};var Ut=false;function Gt(t,i,n){if(i==="touchstart"){$t()}if(!Ht[i]){console.warn("wrong event specified:",i);return a}n=Ht[i].bind(this,n);t.addEventListener(Ft[i],n,false);return n}function qt(t,i,n){if(!Ft[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(Ft[i],n,false)}function Vt(t){Wt[t.pointerId]=t}function Kt(t){if(Wt[t.pointerId]){Wt[t.pointerId]=t}}function Jt(t){delete Wt[t.pointerId]}function $t(){if(!Ut){document.addEventListener(jt,Vt,true);document.addEventListener(Rt,Kt,true);document.addEventListener(Zt,Jt,true);document.addEventListener(Nt,Jt,true);Ut=true}}function Xt(t,i){if(i.pointerType===(i.MSPOINTER_TYPE_MOUSE||"mouse")){return}i.touches=[];for(var n in Wt){i.touches.push(Wt[n])}i.changedTouches=[i];t(i)}function Yt(t,i){if(i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH){Vi(i)}Xt(t,i)}function Qt(t){var i={},n,e;for(e in t){n=t[e];i[e]=n&&n.bind?n.bind(t):n}t=i;i.type="dblclick";i.detail=2;i.isTrusted=false;i._simulated=true;return i}var ti=200;function ii(t,i){t.addEventListener("dblclick",i);var n=0,e;function s(t){if(t.detail!==1){e=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var s=Ji(t);if(s.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!s.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var r=Date.now();if(r-n<=ti){e++;if(e===2){i(Qt(t))}}else{e=1}n=r}t.addEventListener("click",s);return{dblclick:i,simDblclick:s}}function ni(t,i){t.removeEventListener("dblclick",i.dblclick);t.removeEventListener("click",i.simDblclick)}var ei=yi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var si=yi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var ri=si==="webkitTransition"||si==="OTransition"?si+"End":"transitionend";function oi(t){return typeof t==="string"?document.getElementById(t):t}function hi(t,i){var n=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!n||n==="auto")&&document.defaultView){var e=document.defaultView.getComputedStyle(t,null);n=e?e[i]:null}return n==="auto"?null:n}function ui(t,i,n){var e=document.createElement(t);e.className=i||"";if(n){n.appendChild(e)}return e}function ai(t){var i=t.parentNode;if(i){i.removeChild(t)}}function fi(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ci(t){var i=t.parentNode;if(i&&i.lastChild!==t){i.appendChild(t)}}function li(t){var i=t.parentNode;if(i&&i.firstChild!==t){i.insertBefore(t,i.firstChild)}}function vi(t,i){if(t.classList!==undefined){return t.classList.contains(i)}var n=_i(t);return n.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(n)}function di(t,i){if(t.classList!==undefined){var n=l(i);for(var e=0,s=n.length;e<s;e++){t.classList.add(n[e])}}else if(!vi(t,i)){var r=_i(t);pi(t,(r?r+" ":"")+i)}}function mi(t,i){if(t.classList!==undefined){t.classList.remove(i)}else{pi(t,c((" "+_i(t)+" ").replace(" "+i+" "," ")))}}function pi(t,i){if(t.className.baseVal===undefined){t.className=i}else{t.className.baseVal=i}}function _i(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function wi(t,i){if("opacity"in t.style){t.style.opacity=i}else if("filter"in t.style){gi(t,i)}}function gi(t,i){var n=false,e="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(e)}catch(t){if(i===1){return}}i=Math.round(i*100);if(n){n.Enabled=i!==100;n.Opacity=i}else{t.style.filter+=" progid:"+e+"(opacity="+i+")"}}function yi(t){var i=document.documentElement.style;for(var n=0;n<t.length;n++){if(t[n]in i){return t[n]}}return false}function bi(t,i,n){var e=i||new A(0,0);t.style[ei]=(Ot.ie3d?"translate("+e.x+"px,"+e.y+"px)":"translate3d("+e.x+"px,"+e.y+"px,0)")+(n?" scale("+n+")":"")}function Mi(t,i){t._leaflet_pos=i;if(Ot.any3d){bi(t,i)}else{t.style.left=i.x+"px";t.style.top=i.y+"px"}}function Pi(t){return t._leaflet_pos||new A(0,0)}var ki;var Ti;var Li;if("onselectstart"in document){ki=function(){ji(window,"selectstart",Vi)};Ti=function(){Zi(window,"selectstart",Vi)}}else{var xi=yi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ki=function(){if(xi){var t=document.documentElement.style;Li=t[xi];t[xi]="none"}};Ti=function(){if(xi){document.documentElement.style[xi]=Li;Li=undefined}}}function Ii(){ji(window,"dragstart",Vi)}function Si(){Zi(window,"dragstart",Vi)}var zi,Bi;function Di(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ai();zi=t;Bi=t.style.outlineStyle;t.style.outlineStyle="none";ji(window,"keydown",Ai)}function Ai(){if(!zi){return}zi.style.outlineStyle=Bi;zi=undefined;Bi=undefined;Zi(window,"keydown",Ai)}function Ei(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ci(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Oi={__proto__:null,TRANSFORM:ei,TRANSITION:si,TRANSITION_END:ri,get:oi,getStyle:hi,create:ui,remove:ai,empty:fi,toFront:ci,toBack:li,hasClass:vi,addClass:di,removeClass:mi,setClass:pi,getClass:_i,setOpacity:wi,testProp:yi,setTransform:bi,setPosition:Mi,getPosition:Pi,get disableTextSelection(){return ki},get enableTextSelection(){return Ti},disableImageDrag:Ii,enableImageDrag:Si,preventOutline:Di,restoreOutline:Ai,getSizedParentNode:Ei,getScale:Ci};function ji(t,i,n,e){if(i&&typeof i==="object"){for(var s in i){Hi(t,s,i[s],n)}}else{i=l(i);for(var r=0,o=i.length;r<o;r++){Hi(t,i[r],n,e)}}return this}var Ri="_leaflet_events";function Zi(t,i,n,e){if(arguments.length===1){Ni(t);delete t[Ri]}else if(i&&typeof i==="object"){for(var s in i){Wi(t,s,i[s],n)}}else{i=l(i);if(arguments.length===2){Ni(t,(function(t){return w(i,t)!==-1}))}else{for(var r=0,o=i.length;r<o;r++){Wi(t,i[r],n,e)}}}return this}function Ni(t,i){for(var n in t[Ri]){var e=n.split(/\d/)[0];if(!i||i(e)){Wi(t,e,null,null,n)}}}var Fi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Hi(t,i,n,e){var s=i+o(n)+(e?"_"+o(e):"");if(t[Ri]&&t[Ri][s]){return this}var r=function(i){return n.call(e||t,i||window.event)};var h=r;if(!Ot.touchNative&&Ot.pointer&&i.indexOf("touch")===0){r=Gt(t,i,r)}else if(Ot.touch&&i==="dblclick"){r=ii(t,r)}else if("addEventListener"in t){if(i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"){t.addEventListener(Fi[i]||i,r,Ot.passiveEvents?{passive:false}:false)}else if(i==="mouseenter"||i==="mouseleave"){r=function(i){i=i||window.event;if(Qi(t,i)){h(i)}};t.addEventListener(Fi[i],r,false)}else{t.addEventListener(i,h,false)}}else{t.attachEvent("on"+i,r)}t[Ri]=t[Ri]||{};t[Ri][s]=r}function Wi(t,i,n,e,s){s=s||i+o(n)+(e?"_"+o(e):"");var r=t[Ri]&&t[Ri][s];if(!r){return this}if(!Ot.touchNative&&Ot.pointer&&i.indexOf("touch")===0){qt(t,i,r)}else if(Ot.touch&&i==="dblclick"){ni(t,r)}else if("removeEventListener"in t){t.removeEventListener(Fi[i]||i,r,false)}else{t.detachEvent("on"+i,r)}t[Ri][s]=null}function Ui(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Gi(t){Hi(t,"wheel",Ui);return this}function qi(t){ji(t,"mousedown touchstart dblclick contextmenu",Ui);t["_leaflet_disable_click"]=true;return this}function Vi(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function Ki(t){Vi(t);Ui(t);return this}function Ji(t){if(t.composedPath){return t.composedPath()}var i=[];var n=t.target;while(n){i.push(n);n=n.parentNode}return i}function $i(t,i){if(!i){return new A(t.clientX,t.clientY)}var n=Ci(i),e=n.boundingClientRect;return new A((t.clientX-e.left)/n.x-i.clientLeft,(t.clientY-e.top)/n.y-i.clientTop)}var Xi=Ot.linux&&Ot.chrome?window.devicePixelRatio:Ot.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Yi(t){return Ot.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Xi:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Qi(t,i){var n=i.relatedTarget;if(!n){return true}try{while(n&&n!==t){n=n.parentNode}}catch(t){return false}return n!==t}var tn={__proto__:null,on:ji,off:Zi,stopPropagation:Ui,disableScrollPropagation:Gi,disableClickPropagation:qi,preventDefault:Vi,stop:Ki,getPropagationPath:Ji,getMousePosition:$i,getWheelDelta:Yi,isExternalTarget:Qi,addListener:ji,removeListener:Zi};var nn=D.extend({run:function(t,i,n,e){this.stop();this._el=t;this._inProgress=true;this._duration=n||.25;this._easeOutPower=1/Math.max(e||.5,.2);this._startPos=Pi(t);this._offset=i.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=T(this._animate,this);this._step()},_step:function(t){var i=+new Date-this._startTime,n=this._duration*1e3;if(i<n){this._runFrame(this._easeOut(i/n),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,i){var n=this._startPos.add(this._offset.multiplyBy(t));if(i){n._round()}Mi(this._el,n);this.fire("step")},_complete:function(){x(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var en=D.extend({options:{crs:K,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,i){i=v(this,i);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=s(this._onResize,this);this._initEvents();if(i.maxBounds){this.setMaxBounds(i.maxBounds)}if(i.zoom!==undefined){this._zoom=this._limitZoom(i.zoom)}if(i.center&&i.zoom!==undefined){this.setView(F(i.center),i.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=si&&Ot.any3d&&!Ot.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();ji(this._proxy,ri,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,i,e){i=i===undefined?this._zoom:this._limitZoom(i);t=this._limitCenter(F(t),i,this.options.maxBounds);e=e||{};this._stop();if(this._loaded&&!e.reset&&e!==true){if(e.animate!==undefined){e.zoom=n({animate:e.animate},e.zoom);e.pan=n({animate:e.animate,duration:e.duration},e.pan)}var s=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,e.zoom):this._tryAnimatedPan(t,e.pan);if(s){clearTimeout(this._sizeTimer);return this}}this._resetView(t,i,e.pan&&e.pan.noMoveStart);return this},setZoom:function(t,i){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:i})},zoomIn:function(t,i){t=t||(Ot.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){t=t||(Ot.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,n){var e=this.getZoomScale(i),s=this.getSize().divideBy(2),r=t instanceof A?t:this.latLngToContainerPoint(t),o=r.subtract(s).multiplyBy(1-1/e),h=this.containerPointToLatLng(s.add(o));return this.setView(h,i,{zoom:n})},_getBoundsCenterZoom:function(t,i){i=i||{};t=t.getBounds?t.getBounds():Z(t);var n=C(i.paddingTopLeft||i.padding||[0,0]),e=C(i.paddingBottomRight||i.padding||[0,0]),s=this.getBoundsZoom(t,false,n.add(e));s=typeof i.maxZoom==="number"?Math.min(i.maxZoom,s):s;if(s===Infinity){return{center:t.getCenter(),zoom:s}}var r=e.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),s),h=this.project(t.getNorthEast(),s),u=this.unproject(o.add(h).divideBy(2).add(r),s);return{center:u,zoom:s}},fitBounds:function(t,i){t=Z(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var n=this._getBoundsCenterZoom(t,i);return this.setView(n.center,n.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){t=C(t).round();i=i||{};if(!t.x&&!t.y){return this.fire("moveend")}if(i.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new nn;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!i.noMoveStart){this.fire("movestart")}if(i.animate!==false){di(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,i.duration||.25,i.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,i,n){n=n||{};if(n.animate===false||!Ot.any3d){return this.setView(t,i,n)}this._stop();var e=this.project(this.getCenter()),s=this.project(t),r=this.getSize(),o=this._zoom;t=F(t);i=i===undefined?o:i;var h=Math.max(r.x,r.y),u=h*this.getZoomScale(o,i),a=s.distanceTo(e)||1,f=1.42,c=f*f;function l(t){var i=t?-1:1,n=t?u:h,e=u*u-h*h+i*c*c*a*a,s=2*n*c*a,r=e/s,o=Math.sqrt(r*r+1)-r;var f=o<1e-9?-18:Math.log(o);return f}function v(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return v(t)/d(t)}var p=l(0);function _(t){return h*(d(p)/d(p+f*t))}function w(t){return h*(d(p)*m(p+f*t)-v(p))/c}function g(t){return 1-Math.pow(1-t,1.5)}var y=Date.now(),b=(l(1)-p)/f,M=n.duration?1e3*n.duration:1e3*b*.8;function P(){var n=(Date.now()-y)/M,r=g(n)*b;if(n<=1){this._flyToFrame=T(P,this);this._move(this.unproject(e.add(s.subtract(e).multiplyBy(w(r)/a)),o),this.getScaleZoom(h/_(r),o),{flyTo:true})}else{this._move(t,i)._moveEnd(true)}}this._moveStart(true,n.noMoveStart);P.call(this);return this},flyToBounds:function(t,i){var n=this._getBoundsCenterZoom(t,i);return this.flyTo(n.center,n.zoom,i)},setMaxBounds:function(t){t=Z(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var i=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var i=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,i){this._enforcingBounds=true;var n=this.getCenter(),e=this._limitCenter(n,this._zoom,Z(t));if(!n.equals(e)){this.panTo(e,i)}this._enforcingBounds=false;return this},panInside:function(t,i){i=i||{};var n=C(i.paddingTopLeft||i.padding||[0,0]),e=C(i.paddingBottomRight||i.padding||[0,0]),s=this.project(this.getCenter()),r=this.project(t),o=this.getPixelBounds(),h=j([o.min.add(n),o.max.subtract(e)]),u=h.getSize();if(!h.contains(r)){this._enforcingBounds=true;var a=r.subtract(h.getCenter());var f=h.extend(r).getSize().subtract(u);s.x+=a.x<0?-f.x:f.x;s.y+=a.y<0?-f.y:f.y;this.panTo(this.unproject(s),i);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=n({animate:false,pan:true},t===true?{animate:true}:t);var i=this.getSize();this._sizeChanged=true;this._lastCenter=null;var e=this.getSize(),r=i.divideBy(2).round(),o=e.divideBy(2).round(),h=r.subtract(o);if(!h.x&&!h.y){return this}if(t.animate&&t.pan){this.panBy(h)}else{if(t.pan){this._rawPanBy(h)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:i,newSize:e})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=n({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var i=s(this._handleGeolocationResponse,this),e=s(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(i,e,t)}else{navigator.geolocation.getCurrentPosition(i,e,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var i=t.code,n=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:i,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var i=t.coords.latitude,n=t.coords.longitude,e=new N(i,n),s=e.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(s);this.setView(e,r.maxZoom?Math.min(o,r.maxZoom):o)}var h={latlng:e,bounds:s,timestamp:t.timestamp};for(var u in t.coords){if(typeof t.coords[u]==="number"){h[u]=t.coords[u]}}this.fire("locationfound",h)},addHandler:function(t,i){if(!i){return this}var n=this[t]=new i(this);this._handlers.push(n);if(this.options[t]){n.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(t){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ai(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){x(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ai(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,i){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e=ui("div",n,i||this._mapPane);if(t){this._panes[t]=e}return e},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter.clone()}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new R(i,n)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,n){t=Z(t);n=C(n||[0,0]);var e=this.getZoom()||0,s=this.getMinZoom(),r=this.getMaxZoom(),o=t.getNorthWest(),h=t.getSouthEast(),u=this.getSize().subtract(n),a=j(this.project(h,e),this.project(o,e)).getSize(),f=Ot.any3d?this.options.zoomSnap:1,c=u.x/a.x,l=u.y/a.y,v=i?Math.max(c,l):Math.min(c,l);e=this.getScaleZoom(v,e);if(f){e=Math.round(e/(f/100))*(f/100);e=i?Math.ceil(e/f)*f:Math.floor(e/f)*f}return Math.max(s,Math.min(r,e))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,i){var n=this._getTopLeftPoint(t,i);return new O(n,n.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var n=this.options.crs;i=i===undefined?this._zoom:i;return n.scale(t)/n.scale(i)},getScaleZoom:function(t,i){var n=this.options.crs;i=i===undefined?this._zoom:i;var e=n.zoom(t*n.scale(i));return isNaN(e)?Infinity:e},project:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.latLngToPoint(F(t),i)},unproject:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.pointToLatLng(C(t),i)},layerPointToLatLng:function(t){var i=C(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(F(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(F(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Z(t))},distance:function(t,i){return this.options.crs.distance(F(t),F(i))},containerPointToLayerPoint:function(t){return C(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return C(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(C(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(t)))},mouseEventToContainerPoint:function(t){return $i(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=oi(t);if(!i){throw new Error("Map container not found.")}else if(i._leaflet_id){throw new Error("Map container is already initialized.")}ji(i,"scroll",this._onScroll,this);this._containerId=o(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ot.any3d;di(t,"leaflet-container"+(Ot.touch?" leaflet-touch":"")+(Ot.retina?" leaflet-retina":"")+(Ot.ielt9?" leaflet-oldie":"")+(Ot.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=hi(t,"position");if(i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);Mi(this._mapPane,new A(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){di(t.markerPane,"leaflet-zoom-hide");di(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,i,n){Mi(this._mapPane,new A(0,0));var e=!this._loaded;this._loaded=true;i=this._limitZoom(i);this.fire("viewprereset");var s=this._zoom!==i;this._moveStart(s,n)._move(t,i)._moveEnd(s);this.fire("viewreset");if(e){this.fire("load")}},_moveStart:function(t,i){if(t){this.fire("zoomstart")}if(!i){this.fire("movestart")}return this},_move:function(t,i,n,e){if(i===undefined){i=this._zoom}var s=this._zoom!==i;this._zoom=i;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!e){if(s||n&&n.pinch){this.fire("zoom",n)}this.fire("move",n)}else if(n&&n.pinch){this.fire("zoom",n)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){x(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){Mi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(t){this._targets={};this._targets[o(this._container)]=this;var i=t?Zi:ji;i(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){i(window,"resize",this._onResize,this)}if(Ot.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){x(this._resizeRequest);this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,i){var n=[],e,s=i==="mouseout"||i==="mouseover",r=t.target||t.srcElement,h=false;while(r){e=this._targets[o(r)];if(e&&(i==="click"||i==="preclick")&&this._draggableMoved(e)){h=true;break}if(e&&e.listens(i,true)){if(s&&!Qi(r,t)){break}n.push(e);if(s){break}}if(r===this._container){break}r=r.parentNode}if(!n.length&&!h&&!s&&this.listens(i,true)){n=[this]}return n},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!this._loaded||i["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(i)){return}var n=t.type;if(n==="mousedown"){Di(i)}this._fireDOMEvent(t,n)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,e){if(t.type==="click"){var s=n({},t);s.type="preclick";this._fireDOMEvent(s,s.type,e)}var r=this._findEventTargets(t,i);if(e){var o=[];for(var h=0;h<e.length;h++){if(e[h].listens(i,true)){o.push(e[h])}}r=o.concat(r)}if(!r.length){return}if(i==="contextmenu"){Vi(t)}var u=r[0];var a={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var f=u.getLatLng&&(!u._radius||u._radius<=10);a.containerPoint=f?this.latLngToContainerPoint(u.getLatLng()):this.mouseEventToContainerPoint(t);a.layerPoint=this.containerPointToLayerPoint(a.containerPoint);a.latlng=f?u.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(h=0;h<r.length;h++){r[h].fire(i,a,true);if(a.originalEvent._stopped||r[h].options.bubblingMouseEvents===false&&w(this._mouseEvents,i)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++){this._handlers[t].disable()}},whenReady:function(t,i){if(this._loaded){t.call(i||this,{target:this})}else{this.on("load",t,i)}return this},_getMapPanePos:function(){return Pi(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var n=t&&i!==undefined?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var n=this.getSize()._divideBy(2);return this.project(t,i)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,n){var e=this._getNewPixelOrigin(n,i);return this.project(t,i)._subtract(e)},_latLngBoundsToNewLayerBounds:function(t,i,n){var e=this._getNewPixelOrigin(n,i);return j([this.project(t.getSouthWest(),i)._subtract(e),this.project(t.getNorthWest(),i)._subtract(e),this.project(t.getSouthEast(),i)._subtract(e),this.project(t.getNorthEast(),i)._subtract(e)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,n){if(!n){return t}var e=this.project(t,i),s=this.getSize().divideBy(2),r=new O(e.subtract(s),e.add(s)),o=this._getBoundsOffset(r,n,i);if(Math.abs(o.x)<=1&&Math.abs(o.y)<=1){return t}return this.unproject(e.add(o),i)},_limitOffset:function(t,i){if(!i){return t}var n=this.getPixelBounds(),e=new O(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(e,i))},_getBoundsOffset:function(t,i,n){var e=j(this.project(i.getNorthEast(),n),this.project(i.getSouthWest(),n)),s=e.min.subtract(t.min),r=e.max.subtract(t.max),o=this._rebound(s.x,-r.x),h=this._rebound(s.y,-r.y);return new A(o,h)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),n=this.getMaxZoom(),e=Ot.any3d?this.options.zoomSnap:1;if(e){t=Math.round(t/e)*e}return Math.max(i,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mi(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,i){var n=this._getCenterOffset(t)._trunc();if((i&&i.animate)!==true&&!this.getSize().contains(n)){return false}this.panBy(n,i);return true},_createAnimProxy:function(){var t=this._proxy=ui("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var i=ei,n=this._proxy.style[i];bi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(n===this._proxy.style[i]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ai(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();bi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,n){if(this._animatingZoom){return true}n=n||{};if(!this._zoomAnimated||n.animate===false||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold){return false}var e=this.getZoomScale(i),s=this._getCenterOffset(t)._divideBy(1-1/e);if(n.animate!==true&&!this.getSize().contains(s)){return false}T((function(){this._moveStart(true,n.noMoveStart||false)._animateZoom(t,i,true)}),this);return true},_animateZoom:function(t,i,n,e){if(!this._mapPane){return}if(n){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=i;di(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:i,noUpdate:e});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(s(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){mi(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function sn(t,i){return new en(t,i)}var rn=S.extend({options:{position:"topright"},initialize:function(t){v(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;if(i){i.removeControl(this)}this.options.position=t;if(i){i.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var i=this._container=this.onAdd(t),n=this.getPosition(),e=t._controlCorners[n];di(i,"leaflet-control");if(n.indexOf("bottom")!==-1){e.insertBefore(i,e.firstChild)}else{e.appendChild(i)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ai(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var on=function(t){return new rn(t)};en.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",n=this._controlContainer=ui("div",i+"control-container",this._container);function e(e,s){var r=i+e+" "+i+s;t[e+s]=ui("div",r,n)}e("top","left");e("top","right");e("bottom","left");e("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ai(this._controlCorners[t])}ai(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var hn=rn.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,i,n,e){return n<e?-1:e<n?1:0}},initialize:function(t,i,n){v(this,n);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var e in t){this._addLayer(t[e],e)}for(e in i){this._addLayer(i[e],e,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++){this._layers[i].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){rn.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,i){this._addLayer(t,i);return this._map?this._update():this},addOverlay:function(t,i){this._addLayer(t,i,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(o(t));if(i){this._layers.splice(this._layers.indexOf(i),1)}return this._map?this._update():this},expand:function(){di(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){di(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{mi(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){mi(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ui("div",t),n=this.options.collapsed;i.setAttribute("aria-haspopup",true);qi(i);Gi(i);var e=this._section=ui("section",t+"-list");if(n){this._map.on("click",this.collapse,this);ji(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var s=this._layersLink=ui("a",t+"-toggle",i);s.href="#";s.title="Layers";s.setAttribute("role","button");ji(s,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){Vi(t);this._expandSafely()}},this);if(!n){this.expand()}this._baseLayersList=ui("div",t+"-base",e);this._separator=ui("div",t+"-separator",e);this._overlaysList=ui("div",t+"-overlays",e);i.appendChild(e)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++){if(this._layers[i]&&o(this._layers[i].layer)===t){return this._layers[i]}}},_addLayer:function(t,i,n){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:i,overlay:n});if(this.options.sortLayers){this._layers.sort(s((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}fi(this._baseLayersList);fi(this._overlaysList);this._layerControlInputs=[];var t,i,n,e,s=0;for(n=0;n<this._layers.length;n++){e=this._layers[n];this._addItem(e);i=i||e.overlay;t=t||!e.overlay;s+=!e.overlay?1:0}if(this.options.hideSingleBase){t=t&&s>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=i&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var i=this._getLayer(o(t.target));var n=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(n){this._map.fire(n,i)}},_createRadioElement:function(t,i){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>";var e=document.createElement("div");e.innerHTML=n;return e.firstChild},_addItem:function(t){var i=document.createElement("label"),n=this._map.hasLayer(t.layer),e;if(t.overlay){e=document.createElement("input");e.type="checkbox";e.className="leaflet-control-layers-selector";e.defaultChecked=n}else{e=this._createRadioElement("leaflet-base-layers_"+o(this),n)}this._layerControlInputs.push(e);e.layerId=o(t.layer);ji(e,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("span");i.appendChild(r);r.appendChild(e);r.appendChild(s);var h=t.overlay?this._overlaysList:this._baseLayersList;h.appendChild(i);this._checkDisabledLayers();return i},_onInputClick:function(){if(this._preventClick){return}var t=this._layerControlInputs,i,n;var e=[],s=[];this._handlingClick=true;for(var r=t.length-1;r>=0;r--){i=t[r];n=this._getLayer(i.layerId).layer;if(i.checked){e.push(n)}else if(!i.checked){s.push(n)}}for(r=0;r<s.length;r++){if(this._map.hasLayer(s[r])){this._map.removeLayer(s[r])}}for(r=0;r<e.length;r++){if(!this._map.hasLayer(e[r])){this._map.addLayer(e[r])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,i,n,e=this._map.getZoom();for(var s=t.length-1;s>=0;s--){i=t[s];n=this._getLayer(i.layerId).layer;i.disabled=n.options.minZoom!==undefined&&e<n.options.minZoom||n.options.maxZoom!==undefined&&e>n.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;this._preventClick=true;ji(t,"click",Vi);this.expand();var i=this;setTimeout((function(){Zi(t,"click",Vi);i._preventClick=false}))}});var un=function(t,i,n){return new hn(t,i,n)};var an=rn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",n=ui("div",i+" leaflet-bar"),e=this.options;this._zoomInButton=this._createButton(e.zoomInText,e.zoomInTitle,i+"-in",n,this._zoomIn);this._zoomOutButton=this._createButton(e.zoomOutText,e.zoomOutTitle,i+"-out",n,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,i,n,e,s){var r=ui("a",n,e);r.innerHTML=t;r.href="#";r.title=i;r.setAttribute("role","button");r.setAttribute("aria-label",i);qi(r);ji(r,"click",Ki);ji(r,"click",s,this);ji(r,"click",this._refocusOnMap,this);return r},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";mi(this._zoomInButton,i);mi(this._zoomOutButton,i);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){di(this._zoomOutButton,i);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){di(this._zoomInButton,i);this._zoomInButton.setAttribute("aria-disabled","true")}}});en.mergeOptions({zoomControl:true});en.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new an;this.addControl(this.zoomControl)}}));var fn=function(t){return new an(t)};var cn=rn.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var i="leaflet-control-scale",n=ui("div",i),e=this.options;this._addScales(e,i+"-line",n);t.on(e.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,n){if(t.metric){this._mScale=ui("div",i,n)}if(t.imperial){this._iScale=ui("div",i,n)}},_update:function(){var t=this._map,i=t.getSize().y/2;var n=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(n)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var i=this._getRoundNum(t),n=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,n,i/t)},_updateImperial:function(t){var i=t*3.2808399,n,e,s;if(i>5280){n=i/5280;e=this._getRoundNum(n);this._updateScale(this._iScale,e+" mi",e/n)}else{s=this._getRoundNum(i);this._updateScale(this._iScale,s+" ft",s/i)}},_updateScale:function(t,i,n){t.style.width=Math.round(this.options.maxWidth*n)+"px";t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),n=t/i;n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1;return i*n}});var ln=function(t){return new cn(t)};var vn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var dn=rn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ot.inlineSvg?vn+" ":"")+"Leaflet</a>"},initialize:function(t){v(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=ui("div","leaflet-control-attribution");qi(this._container);for(var i in t._layers){if(t._layers[i].getAttribution){this.addAttribution(t._layers[i].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var i in this._attributions){if(this._attributions[i]){t.push(i)}}var n=[];if(this.options.prefix){n.push(this.options.prefix)}if(t.length){n.push(t.join(", "))}this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}});en.mergeOptions({attributionControl:true});en.addInitHook((function(){if(this.options.attributionControl){(new dn).addTo(this)}}));var mn=function(t){return new dn(t)};rn.Layers=hn;rn.Zoom=an;rn.Scale=cn;rn.Attribution=dn;on.layers=un;on.zoom=fn;on.scale=ln;on.attribution=mn;var pn=S.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});pn.addTo=function(t,i){t.addHandler(i,this);return this};var _n={Events:B};var wn=Ot.touch?"touchstart mousedown":"mousedown";var gn=D.extend({options:{clickTolerance:3},initialize:function(t,i,n,e){v(this,e);this._element=t;this._dragStartTarget=i||t;this._preventOutline=n},enable:function(){if(this._enabled){return}ji(this._dragStartTarget,wn,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(gn._dragging===this){this.finishDrag(true)}Zi(this._dragStartTarget,wn,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(vi(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(gn._dragging===this){this.finishDrag()}return}if(gn._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}gn._dragging=this;if(this._preventOutline){Di(this._element)}Ii();ki();if(this._moving){return}this.fire("down");var i=t.touches?t.touches[0]:t,n=Ei(this._element);this._startPoint=new A(i.clientX,i.clientY);this._startPos=Pi(this._element);this._parentScale=Ci(n);var e=t.type==="mousedown";ji(document,e?"mousemove":"touchmove",this._onMove,this);ji(document,e?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,n=new A(i.clientX,i.clientY)._subtract(this._startPoint);if(!n.x&&!n.y){return}if(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance){return}n.x/=this._parentScale.x;n.y/=this._parentScale.y;Vi(t);if(!this._moved){this.fire("dragstart");this._moved=true;di(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}di(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(n);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);Mi(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){mi(document.body,"leaflet-dragging");if(this._lastTarget){mi(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Zi(document,"mousemove touchmove",this._onMove,this);Zi(document,"mouseup touchend touchcancel",this._onUp,this);Si();Ti();var i=this._moved&&this._moving;this._moving=false;gn._dragging=false;if(i){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}});function yn(t,i,n){var e,s=[1,4,2,8],r,o,h,u,a,f,c,l;for(r=0,f=t.length;r<f;r++){t[r]._code=An(t[r],i)}for(h=0;h<4;h++){c=s[h];e=[];for(r=0,f=t.length,o=f-1;r<f;o=r++){u=t[r];a=t[o];if(!(u._code&c)){if(a._code&c){l=Dn(a,u,c,i,n);l._code=An(l,i);e.push(l)}e.push(u)}else if(!(a._code&c)){l=Dn(a,u,c,i,n);l._code=An(l,i);e.push(l)}}t=e}return t}function bn(t,i){var n,e,s,r,o,h,u,a,f;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!On(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var c=F([0,0]);var l=Z(t);var v=l.getNorthWest().distanceTo(l.getSouthWest())*l.getNorthEast().distanceTo(l.getNorthWest());if(v<1700){c=Mn(t)}var d=t.length;var m=[];for(n=0;n<d;n++){var p=F(t[n]);m.push(i.project(F([p.lat-c.lat,p.lng-c.lng])))}h=u=a=0;for(n=0,e=d-1;n<d;e=n++){s=m[n];r=m[e];o=s.y*r.x-r.y*s.x;u+=(s.x+r.x)*o;a+=(s.y+r.y)*o;h+=o*3}if(h===0){f=m[0]}else{f=[u/h,a/h]}var _=i.unproject(C(f));return F([_.lat+c.lat,_.lng+c.lng])}function Mn(t){var i=0;var n=0;var e=0;for(var s=0;s<t.length;s++){var r=F(t[s]);i+=r.lat;n+=r.lng;e++}return F([i/e,n/e])}var Pn={__proto__:null,clipPolygon:yn,polygonCenter:bn,centroid:Mn};function kn(t,i){if(!i||!t.length){return t.slice()}var n=i*i;t=Sn(t,n);t=xn(t,n);return t}function Tn(t,i,n){return Math.sqrt(Cn(t,i,n,true))}function Ln(t,i,n){return Cn(t,i,n)}function xn(t,i){var n=t.length,e=typeof Uint8Array!==undefined+""?Uint8Array:Array,s=new e(n);s[0]=s[n-1]=1;In(t,s,i,0,n-1);var r,o=[];for(r=0;r<n;r++){if(s[r]){o.push(t[r])}}return o}function In(t,i,n,e,s){var r=0,o,h,u;for(h=e+1;h<=s-1;h++){u=Cn(t[h],t[e],t[s],true);if(u>r){o=h;r=u}}if(r>n){i[o]=1;In(t,i,n,e,o);In(t,i,n,o,s)}}function Sn(t,i){var n=[t[0]];for(var e=1,s=0,r=t.length;e<r;e++){if(En(t[e],t[s])>i){n.push(t[e]);s=e}}if(s<r-1){n.push(t[r-1])}return n}var zn;function Bn(t,i,n,e,s){var r=e?zn:An(t,n),o=An(i,n),h,u,a;zn=o;while(true){if(!(r|o)){return[t,i]}if(r&o){return false}h=r||o;u=Dn(t,i,h,n,s);a=An(u,n);if(h===r){t=u;r=a}else{i=u;o=a}}}function Dn(t,i,n,e,s){var r=i.x-t.x,o=i.y-t.y,h=e.min,u=e.max,a,f;if(n&8){a=t.x+r*(u.y-t.y)/o;f=u.y}else if(n&4){a=t.x+r*(h.y-t.y)/o;f=h.y}else if(n&2){a=u.x;f=t.y+o*(u.x-t.x)/r}else if(n&1){a=h.x;f=t.y+o*(h.x-t.x)/r}return new A(a,f,s)}function An(t,i){var n=0;if(t.x<i.min.x){n|=1}else if(t.x>i.max.x){n|=2}if(t.y<i.min.y){n|=4}else if(t.y>i.max.y){n|=8}return n}function En(t,i){var n=i.x-t.x,e=i.y-t.y;return n*n+e*e}function Cn(t,i,n,e){var s=i.x,r=i.y,o=n.x-s,h=n.y-r,u=o*o+h*h,a;if(u>0){a=((t.x-s)*o+(t.y-r)*h)/u;if(a>1){s=n.x;r=n.y}else if(a>0){s+=o*a;r+=h*a}}o=t.x-s;h=t.y-r;return e?o*o+h*h:new A(s,r)}function On(t){return!_(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function jn(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return On(t)}function Rn(t,i){var n,e,s,r,o,h,u,a;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!On(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var f=F([0,0]);var c=Z(t);var l=c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest());if(l<1700){f=Mn(t)}var v=t.length;var d=[];for(n=0;n<v;n++){var m=F(t[n]);d.push(i.project(F([m.lat-f.lat,m.lng-f.lng])))}for(n=0,e=0;n<v-1;n++){e+=d[n].distanceTo(d[n+1])/2}if(e===0){a=d[0]}else{for(n=0,r=0;n<v-1;n++){o=d[n];h=d[n+1];s=o.distanceTo(h);r+=s;if(r>e){u=(r-e)/s;a=[h.x-u*(h.x-o.x),h.y-u*(h.y-o.y)];break}}}var p=i.unproject(C(a));return F([p.lat+f.lat,p.lng+f.lng])}var Zn={__proto__:null,simplify:kn,pointToSegmentDistance:Tn,closestPointOnSegment:Ln,clipSegment:Bn,_getEdgeIntersection:Dn,_getBitCode:An,_sqClosestPointOnSegment:Cn,isFlat:On,_flat:jn,polylineCenter:Rn};var Nn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new O([-180,-90],[180,90])};var Fn={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,n=this.R,e=t.lat*i,s=this.R_MINOR/n,r=Math.sqrt(1-s*s),o=r*Math.sin(e);var h=Math.tan(Math.PI/4-e/2)/Math.pow((1-o)/(1+o),r/2);e=-n*Math.log(Math.max(h,1e-10));return new A(t.lng*i*n,e)},unproject:function(t){var i=180/Math.PI,n=this.R,e=this.R_MINOR/n,s=Math.sqrt(1-e*e),r=Math.exp(-t.y/n),o=Math.PI/2-2*Math.atan(r);for(var h=0,u=.1,a;h<15&&Math.abs(u)>1e-7;h++){a=s*Math.sin(o);a=Math.pow((1-a)/(1+a),s/2);u=Math.PI/2-2*Math.atan(r*a)-o;o+=u}return new N(o*i,t.x*i/n)}};var Hn={__proto__:null,LonLat:Nn,Mercator:Fn,SphericalMercator:G};var Wn=n({},W,{code:"EPSG:3395",projection:Fn,transformation:function(){var t=.5/(Math.PI*Fn.R);return V(t,.5,-t,.5)}()});var Un=n({},W,{code:"EPSG:4326",projection:Nn,transformation:V(1/180,1,-1/180,.5)});var Gn=n({},H,{projection:Nn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var n=i.lng-t.lng,e=i.lat-t.lat;return Math.sqrt(n*n+e*e)},infinite:true});H.Earth=W;H.EPSG3395=Wn;H.EPSG3857=K;H.EPSG900913=J;H.EPSG4326=Un;H.Simple=Gn;var qn=D.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[o(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[o(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(!i.hasLayer(this)){return}this._map=i;this._zoomAnimated=i._zoomAnimated;if(this.getEvents){var n=this.getEvents();i.on(n,this);this.once("remove",(function(){i.off(n,this)}),this)}this.onAdd(i);this.fire("add");i.fire("layeradd",{layer:this})}});en.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var i=o(t);if(this._layers[i]){return this}this._layers[i]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var i=o(t);if(!this._layers[i]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[i];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,i){for(var n in this._layers){t.call(i,this._layers[n])}return this},_addLayers:function(t){t=t?_(t)?t:[t]:[];for(var i=0,n=t.length;i<n;i++){this.addLayer(t[i])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[o(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var i=o(t);if(this._zoomBoundLayers[i]){delete this._zoomBoundLayers[i];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,i=-Infinity,n=this._getZoomSpan();for(var e in this._zoomBoundLayers){var s=this._zoomBoundLayers[e].options;t=s.minZoom===undefined?t:Math.min(t,s.minZoom);i=s.maxZoom===undefined?i:Math.max(i,s.maxZoom)}this._layersMaxZoom=i===-Infinity?undefined:i;this._layersMinZoom=t===Infinity?undefined:t;if(n!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Vn=qn.extend({initialize:function(t,i){v(this,i);this._layers={};var n,e;if(t){for(n=0,e=t.length;n<e;n++){this.addLayer(t[n])}}},addLayer:function(t){var i=this.getLayerId(t);this._layers[i]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[i]){this._map.removeLayer(this._layers[i])}delete this._layers[i];return this},hasLayer:function(t){var i=typeof t==="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),n,e;for(n in this._layers){e=this._layers[n];if(e[t]){e[t].apply(e,i)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var n in this._layers){t.call(i,this._layers[n])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}});var Kn=function(t,i){return new Vn(t,i)};var Jn=Vn.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Vn.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Vn.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var i in this._layers){var n=this._layers[i];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}});var $n=function(t,i){return new Jn(t,i)};var Xn=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){v(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var n=this._getIconUrl(t);if(!n){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var e=this._createImg(n,i&&i.tagName==="IMG"?i:null);this._setIconStyles(e,t);if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return e},_setIconStyles:function(t,i){var n=this.options;var e=n[i+"Size"];if(typeof e==="number"){e=[e,e]}var s=C(e),r=C(i==="shadow"&&n.shadowAnchor||n.iconAnchor||s&&s.divideBy(2,true));t.className="leaflet-marker-"+i+" "+(n.className||"");if(r){t.style.marginLeft=-r.x+"px";t.style.marginTop=-r.y+"px"}if(s){t.style.width=s.x+"px";t.style.height=s.y+"px"}},_createImg:function(t,i){i=i||document.createElement("img");i.src=t;return i},_getIconUrl:function(t){return Ot.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Yn(t){return new Xn(t)}var Qn=Xn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(typeof Qn.imagePath!=="string"){Qn.imagePath=this._detectIconPath()}return(this.options.imagePath||Qn.imagePath)+Xn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,n){var e=i.exec(t);return e&&e[n]};t=i(t,/^url\((['"])?(.+)\1\)$/,2);return t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ui("div","leaflet-default-icon-path",document.body);var i=hi(t,"background-image")||hi(t,"backgroundImage");document.body.removeChild(t);i=this._stripUrl(i);if(i){return i}var n=document.querySelector('link[href$="leaflet.css"]');if(!n){return""}return n.href.substring(0,n.href.length-"leaflet.css".length-1)}});var te=pn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new gn(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();di(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){mi(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,n=i._map,e=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,r=Pi(i._icon),o=n.getPixelBounds(),h=n.getPixelOrigin();var u=j(o.min._subtract(h).add(s),o.max._subtract(h).subtract(s));if(!u.contains(r)){var a=C((Math.max(u.max.x,r.x)-u.max.x)/(o.max.x-u.max.x)-(Math.min(u.min.x,r.x)-u.min.x)/(o.min.x-u.min.x),(Math.max(u.max.y,r.y)-u.max.y)/(o.max.y-u.max.y)-(Math.min(u.min.y,r.y)-u.min.y)/(o.min.y-u.min.y)).multiplyBy(e);n.panBy(a,{animate:false});this._draggable._newPos._add(a);this._draggable._startPos._add(a);Mi(i._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){x(this._panRequest);this._panRequest=T(this._adjustPan.bind(this,t))}},_onDrag:function(t){var i=this._marker,n=i._shadow,e=Pi(i._icon),s=i._map.layerPointToLatLng(e);if(n){Mi(n,e)}i._latlng=s;t.latlng=s;t.oldLatLng=this._oldLatLng;i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){x(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var ie=qn.extend({options:{icon:new Qn,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){v(this,i);this._latlng=F(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;this._latlng=F(t);this.update();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var n=t.icon.createIcon(this._icon),e=false;if(n!==this._icon){if(this._icon){this._removeIcon()}e=true;if(t.title){n.title=t.title}if(n.tagName==="IMG"){n.alt=t.alt||""}}di(n,i);if(t.keyboard){n.tabIndex="0";n.setAttribute("role","button")}this._icon=n;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){ji(n,"focus",this._panOnFocus,this)}var s=t.icon.createShadow(this._shadow),r=false;if(s!==this._shadow){this._removeShadow();r=true}if(s){di(s,i);s.alt=""}this._shadow=s;if(t.opacity<1){this._updateOpacity()}if(e){this.getPane().appendChild(this._icon)}this._initInteraction();if(s&&r){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Zi(this._icon,"focus",this._panOnFocus,this)}ai(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ai(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){Mi(this._icon,t)}if(this._shadow){Mi(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(!this.options.interactive){return}di(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(te){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new te(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){wi(this._icon,t)}if(this._shadow){wi(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var i=this.options.icon.options;var n=i.iconSize?C(i.iconSize):C(0,0);var e=i.iconAnchor?C(i.iconAnchor):C(0,0);t.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:n.subtract(e)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ne(t,i){return new ie(t,i)}var ee=qn.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){v(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var se=ee.extend({options:{fill:true,radius:10},initialize:function(t,i){v(this,i);this._latlng=F(t);this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;this._latlng=F(t);this.redraw();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;ee.prototype.setStyle.call(this,t);this.setRadius(i);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,n=this._clickTolerance(),e=[t+n,i+n];this._pxBounds=new O(this._point.subtract(e),this._point.add(e))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function re(t,i){return new se(t,i)}var oe=se.extend({initialize:function(t,i,e){if(typeof i==="number"){i=n({},e,{radius:i})}v(this,i);this._latlng=F(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ee.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,n=this._map,e=n.options.crs;if(e.distance===W.distance){var s=Math.PI/180,r=this._mRadius/W.R/s,o=n.project([i+r,t]),h=n.project([i-r,t]),u=o.add(h).divideBy(2),a=n.unproject(u).lat,f=Math.acos((Math.cos(r*s)-Math.sin(i*s)*Math.sin(a*s))/(Math.cos(i*s)*Math.cos(a*s)))/s;if(isNaN(f)||f===0){f=r/Math.cos(Math.PI/180*i)}this._point=u.subtract(n.getPixelOrigin());this._radius=isNaN(f)?0:u.x-n.project([a,t-f]).x;this._radiusY=u.y-o.y}else{var c=e.unproject(e.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng);this._radius=this._point.x-n.latLngToLayerPoint(c).x}this._updateBounds()}});function he(t,i,n){return new oe(t,i,n)}var ue=ee.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,i){v(this,i);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var i=Infinity,n=null,e=Cn,s,r;for(var o=0,h=this._parts.length;o<h;o++){var u=this._parts[o];for(var a=1,f=u.length;a<f;a++){s=u[a-1];r=u[a];var c=e(t,s,r,true);if(c<i){i=c;n=e(t,s,r)}}}if(n){n.distance=Math.sqrt(i)}return n},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Rn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){i=i||this._defaultShape();t=F(t);i.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return On(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var i=[],n=On(t);for(var e=0,s=t.length;e<s;e++){if(n){i[e]=F(t[e]);this._bounds.extend(i[e])}else{i[e]=this._convertLatLngs(t[e])}}return i},_project:function(){var t=new O;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),i=new A(t,t);if(!this._rawPxBounds){return}this._pxBounds=new O([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)])},_projectLatlngs:function(t,i,n){var e=t[0]instanceof N,s=t.length,r,o;if(e){o=[];for(r=0;r<s;r++){o[r]=this._map.latLngToLayerPoint(t[r]);n.extend(o[r])}i.push(o)}else{for(r=0;r<s;r++){this._projectLatlngs(t[r],i,n)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,n,e,s,r,o,h,u;for(n=0,s=0,r=this._rings.length;n<r;n++){u=this._rings[n];for(e=0,o=u.length;e<o-1;e++){h=Bn(u[e],u[e+1],t,e,true);if(!h){continue}i[s]=i[s]||[];i[s].push(h[0]);if(h[1]!==u[e+1]||e===o-2){i[s].push(h[1]);s++}}}},_simplifyPoints:function(){var t=this._parts,i=this.options.smoothFactor;for(var n=0,e=t.length;n<e;n++){t[n]=kn(t[n],i)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var n,e,s,r,o,h,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(n=0,r=this._parts.length;n<r;n++){h=this._parts[n];for(e=0,o=h.length,s=o-1;e<o;s=e++){if(!i&&e===0){continue}if(Tn(t,h[s],h[e])<=u){return true}}}return false}});function ae(t,i){return new ue(t,i)}ue._flat=jn;var fe=ue.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return bn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=ue.prototype._convertLatLngs.call(this,t),n=i.length;if(n>=2&&i[0]instanceof N&&i[0].equals(i[n-1])){i.pop()}return i},_setLatLngs:function(t){ue.prototype._setLatLngs.call(this,t);if(On(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return On(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,n=new A(i,i);t=new O(t.min.subtract(n),t.max.add(n));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var e=0,s=this._rings.length,r;e<s;e++){r=yn(this._rings[e],t,true);if(r.length){this._parts.push(r)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var i=false,n,e,s,r,o,h,u,a;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(r=0,u=this._parts.length;r<u;r++){n=this._parts[r];for(o=0,a=n.length,h=a-1;o<a;h=o++){e=n[o];s=n[h];if(e.y>t.y!==s.y>t.y&&t.x<(s.x-e.x)*(t.y-e.y)/(s.y-e.y)+e.x){i=!i}}}return i||ue.prototype._containsPoint.call(this,t,true)}});function ce(t,i){return new fe(t,i)}var le=Jn.extend({initialize:function(t,i){v(this,i);this._layers={};if(t){this.addData(t)}},addData:function(t){var i=_(t)?t:t.features,n,e,s;if(i){for(n=0,e=i.length;n<e;n++){s=i[n];if(s.geometries||s.geometry||s.features||s.coordinates){this.addData(s)}}return this}var r=this.options;if(r.filter&&!r.filter(t)){return this}var o=ve(t,r);if(!o){return this}o.feature=ye(t);o.defaultOptions=o.options;this.resetStyle(o);if(r.onEachFeature){r.onEachFeature(t,o)}return this.addLayer(o)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=n({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){if(t.setStyle){if(typeof i==="function"){i=i(t.feature)}t.setStyle(i)}}});function ve(t,i){var n=t.type==="Feature"?t.geometry:t,e=n?n.coordinates:null,s=[],r=i&&i.pointToLayer,o=i&&i.coordsToLatLng||me,h,u,a,f;if(!e&&!n){return null}switch(n.type){case"Point":h=o(e);return de(r,t,h,i);case"MultiPoint":for(a=0,f=e.length;a<f;a++){h=o(e[a]);s.push(de(r,t,h,i))}return new Jn(s);case"LineString":case"MultiLineString":u=pe(e,n.type==="LineString"?0:1,o);return new ue(u,i);case"Polygon":case"MultiPolygon":u=pe(e,n.type==="Polygon"?1:2,o);return new fe(u,i);case"GeometryCollection":for(a=0,f=n.geometries.length;a<f;a++){var c=ve({geometry:n.geometries[a],type:"Feature",properties:t.properties},i);if(c){s.push(c)}}return new Jn(s);case"FeatureCollection":for(a=0,f=n.features.length;a<f;a++){var l=ve(n.features[a],i);if(l){s.push(l)}}return new Jn(s);default:throw new Error("Invalid GeoJSON object.")}}function de(t,i,n,e){return t?t(i,n):new ie(n,e&&e.markersInheritOptions&&e)}function me(t){return new N(t[1],t[0],t[2])}function pe(t,i,n){var e=[];for(var s=0,r=t.length,o;s<r;s++){o=i?pe(t[s],i-1,n):(n||me)(t[s]);e.push(o)}return e}function _e(t,i){t=F(t);return t.alt!==undefined?[f(t.lng,i),f(t.lat,i),f(t.alt,i)]:[f(t.lng,i),f(t.lat,i)]}function we(t,i,n,e){var s=[];for(var r=0,o=t.length;r<o;r++){s.push(i?we(t[r],On(t[r])?0:i-1,n,e):_e(t[r],e))}if(!i&&n&&s.length>0){s.push(s[0].slice())}return s}function ge(t,i){return t.feature?n({},t.feature,{geometry:i}):ye(i)}function ye(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var be={toGeoJSON:function(t){return ge(this,{type:"Point",coordinates:_e(this.getLatLng(),t)})}};ie.include(be);oe.include(be);se.include(be);ue.include({toGeoJSON:function(t){var i=!On(this._latlngs);var n=we(this._latlngs,i?1:0,false,t);return ge(this,{type:(i?"Multi":"")+"LineString",coordinates:n})}});fe.include({toGeoJSON:function(t){var i=!On(this._latlngs),n=i&&!On(this._latlngs[0]);var e=we(this._latlngs,n?2:i?1:0,true,t);if(!i){e=[e]}return ge(this,{type:(n?"Multi":"")+"Polygon",coordinates:e})}});Vn.include({toMultiPoint:function(t){var i=[];this.eachLayer((function(n){i.push(n.toGeoJSON(t).geometry.coordinates)}));return ge(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint"){return this.toMultiPoint(t)}var n=i==="GeometryCollection",e=[];this.eachLayer((function(i){if(i.toGeoJSON){var s=i.toGeoJSON(t);if(n){e.push(s.geometry)}else{var r=ye(s);if(r.type==="FeatureCollection"){e.push.apply(e,r.features)}else{e.push(r)}}}}));if(n){return ge(this,{geometries:e,type:"GeometryCollection"})}return{type:"FeatureCollection",features:e}}});function Me(t,i){return new le(t,i)}var Pe=Me;var ke=qn.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,n){this._url=t;this._bounds=Z(i);v(this,n)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){di(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ai(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){ci(this._image)}return this},bringToBack:function(){if(this._map){li(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=Z(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var i=this._image=t?this._url:ui("img");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=a;i.onmousemove=a;i.onload=s(this.fire,this,"load");i.onerror=s(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=i.src;return}i.src=this._url;i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;bi(this._image,n,i)},_reset:function(){var t=this._image,i=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=i.getSize();Mi(t,i.min);t.style.width=n.x+"px";t.style.height=n.y+"px"},_updateOpacity:function(){wi(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var Te=function(t,i,n){return new ke(t,i,n)};var Le=ke.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var i=this._image=t?this._url:ui("video");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=a;i.onmousemove=a;i.onloadeddata=s(this.fire,this,"load");if(t){var n=i.getElementsByTagName("source");var e=[];for(var r=0;r<n.length;r++){e.push(n[r].src)}this._url=n.length>0?e:[i.src];return}if(!_(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")){i.style["objectFit"]="fill"}i.autoplay=!!this.options.autoplay;i.loop=!!this.options.loop;i.muted=!!this.options.muted;i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var h=ui("source");h.src=this._url[o];i.appendChild(h)}}});function xe(t,i,n){return new Le(t,i,n)}var Ie=ke.extend({_initImage:function(){var t=this._image=this._url;di(t,"leaflet-image-layer");if(this._zoomAnimated){di(t,"leaflet-zoom-animated")}if(this.options.className){di(t,this.options.className)}t.onselectstart=a;t.onmousemove=a}});function Se(t,i,n){return new Ie(t,i,n)}var ze=qn.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,i){if(t&&(t instanceof N||_(t))){this._latlng=F(t);v(this,i)}else{v(this,t);this._source=i}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){wi(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){wi(this._container,1)}this.bringToFront();if(this.options.interactive){di(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){wi(this._container,0);this._removeTimeout=setTimeout(s(ai,undefined,this._container),200)}else{ai(this._container)}if(this.options.interactive){mi(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=F(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ci(this._container)}return this},bringToBack:function(){if(this._map){li(this._container)}return this},_prepareOpen:function(t){var i=this._source;if(!i._map){return false}if(i instanceof Jn){i=null;var n=this._source._layers;for(var e in n){if(n[e]._map){i=n[e];break}}if(!i){return false}this._source=i}if(!t){if(i.getCenter){t=i.getCenter()}else if(i.getLatLng){t=i.getLatLng()}else if(i.getBounds){t=i.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var i=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof i==="string"){t.innerHTML=i}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(i)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),i=C(this.options.offset),n=this._getAnchor();if(this._zoomAnimated){Mi(this._container,t.add(n))}else{i=i.add(t).add(n)}var e=this._containerBottom=-i.y,s=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=e+"px";this._container.style.left=s+"px"},_getAnchor:function(){return[0,0]}});en.include({_initOverlay:function(t,i,n,e){var s=i;if(!(s instanceof t)){s=new t(e).setContent(i)}if(n){s.setLatLng(n)}return s}});qn.include({_initOverlay:function(t,i,n,e){var s=n;if(s instanceof t){v(s,e);s._source=this}else{s=i&&!e?i:new t(e,this);s.setContent(n)}return s}});var Be=ze.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return ze.prototype.openOn.call(this,t)},onAdd:function(t){ze.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof ee)){this._source.on("preclick",Ui)}}},onRemove:function(t){ze.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof ee)){this._source.off("preclick",Ui)}}},getEvents:function(){var t=ze.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",i=this._container=ui("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var n=this._wrapper=ui("div",t+"-content-wrapper",i);this._contentNode=ui("div",t+"-content",n);qi(i);Gi(this._contentNode);ji(i,"contextmenu",Ui);this._tipContainer=ui("div",t+"-tip-container",i);this._tip=ui("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var e=this._closeButton=ui("a",t+"-close-button",i);e.setAttribute("role","button");e.setAttribute("aria-label","Close popup");e.href="#close";e.innerHTML='<span aria-hidden="true">×</span>';ji(e,"click",(function(t){Vi(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="";i.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth);n=Math.max(n,this.options.minWidth);i.width=n+1+"px";i.whiteSpace="";i.height="";var e=t.offsetHeight,s=this.options.maxHeight,r="leaflet-popup-scrolled";if(s&&e>s){i.height=s+"px";di(t,r)}else{mi(t,r)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Mi(this._container,i.add(n))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,i=parseInt(hi(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+i,e=this._containerWidth,s=new A(this._containerLeft,-n-this._containerBottom);s._add(Pi(this._container));var r=t.layerPointToContainerPoint(s),o=C(this.options.autoPanPadding),h=C(this.options.autoPanPaddingTopLeft||o),u=C(this.options.autoPanPaddingBottomRight||o),a=t.getSize(),f=0,c=0;if(r.x+e+u.x>a.x){f=r.x+e-a.x+u.x}if(r.x-f-h.x<0){f=r.x-h.x}if(r.y+n+u.y>a.y){c=r.y+n-a.y+u.y}if(r.y-c-h.y<0){c=r.y-h.y}if(f||c){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([f,c])}},_getAnchor:function(){return C(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var De=function(t,i){return new Be(t,i)};en.mergeOptions({closePopupOnClick:true});en.include({openPopup:function(t,i,n){this._initOverlay(Be,t,i,n).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});qn.include({bindPopup:function(t,i){this._popup=this._initOverlay(Be,this._popup,t,i);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup){if(!(this instanceof Jn)){this._popup._source=this}if(this._popup._prepareOpen(t||this._latlng)){this._popup.openOn(this._map)}}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}Ki(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof ee)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=i;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var Ae=ze.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){ze.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){ze.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=ze.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ui("div",i);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,n,e=this._map,s=this._container,r=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),h=this.options.direction,u=s.offsetWidth,a=s.offsetHeight,f=C(this.options.offset),c=this._getAnchor();if(h==="top"){i=u/2;n=a}else if(h==="bottom"){i=u/2;n=0}else if(h==="center"){i=u/2;n=a/2}else if(h==="right"){i=0;n=a/2}else if(h==="left"){i=u;n=a/2}else if(o.x<r.x){h="right";i=0;n=a/2}else{h="left";i=u+(f.x+c.x)*2;n=a/2}t=t.subtract(C(i,n,true)).add(f).add(c);mi(s,"leaflet-tooltip-right");mi(s,"leaflet-tooltip-left");mi(s,"leaflet-tooltip-top");mi(s,"leaflet-tooltip-bottom");di(s,"leaflet-tooltip-"+h);Mi(s,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){wi(this._container,t)}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return C(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Ee=function(t,i){return new Ae(t,i)};en.include({openTooltip:function(t,i,n){this._initOverlay(Ae,t,i,n).openOn(this);return this},closeTooltip:function(t){t.close();return this}});qn.include({bindTooltip:function(t,i){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(Ae,this._tooltip,t,i);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var i=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){n.mouseover=this._openTooltip;n.mouseout=this.closeTooltip;n.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{n.add=this._addFocusListeners}}else{n.add=this._openTooltip}if(this._tooltip.options.sticky){n.mousemove=this._moveTooltip}this[i](n);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof Jn)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map);if(this.getElement){this._setAriaDescribedByOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._setAriaDescribedByOnLayer,this)}}}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){if(this.getElement){this._addFocusListenersOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._addFocusListenersOnLayer,this)}},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){ji(i,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);ji(i,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){i.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=false;i._openTooltip(t)}));return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var i=t.latlng,n,e;if(this._tooltip.options.sticky&&t.originalEvent){n=this._map.mouseEventToContainerPoint(t.originalEvent);e=this._map.containerPointToLayerPoint(n);i=this._map.layerPointToLatLng(e)}this._tooltip.setLatLng(i)}});var Ce=Xn.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),n=this.options;if(n.html instanceof Element){fi(i);i.appendChild(n.html)}else{i.innerHTML=n.html!==false?n.html:""}if(n.bgPos){var e=C(n.bgPos);i.style.backgroundPosition=-e.x+"px "+-e.y+"px"}this._setIconStyles(i,"icon");return i},createShadow:function(){return null}});function Oe(t){return new Ce(t)}Xn.Default=Qn;var je=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ot.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){v(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ai(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ci(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){li(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=h(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var i=this.getPane().children,n=-t(-Infinity,Infinity);for(var e=0,s=i.length,r;e<s;e++){r=i[e].style.zIndex;if(i[e]!==this._container&&r){n=t(n,+r)}}if(isFinite(n)){this.options.zIndex=n+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Ot.ielt9){return}wi(this._container,this.options.opacity);var t=+new Date,i=false,n=false;for(var e in this._tiles){var s=this._tiles[e];if(!s.current||!s.loaded){continue}var r=Math.min(1,(t-s.loaded)/200);wi(s.el,r);if(r<1){i=true}else{if(s.active){n=true}else{this._onOpaqueTile(s)}s.active=true}}if(n&&!this._noPrune){this._pruneTiles()}if(i){x(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}},_onOpaqueTile:a,_initContainer:function(){if(this._container){return}this._container=ui("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t===undefined){return undefined}for(var n in this._levels){n=Number(n);if(this._levels[n].el.children.length||n===t){this._levels[n].el.style.zIndex=i-Math.abs(t-n);this._onUpdateLevel(n)}else{ai(this._levels[n].el);this._removeTilesAtZoom(n);this._onRemoveLevel(n);delete this._levels[n]}}var e=this._levels[t],s=this._map;if(!e){e=this._levels[t]={};e.el=ui("div","leaflet-tile-container leaflet-zoom-animated",this._container);e.el.style.zIndex=i;e.origin=s.project(s.unproject(s.getPixelOrigin()),t).round();e.zoom=t;this._setZoomTransform(e,s.getCenter(),s.getZoom());this._onCreateLevel(e)}this._level=e;return e},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(!this._map){return}var t,i;var n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){i=this._tiles[t];i.retain=i.current}for(t in this._tiles){i=this._tiles[t];if(i.current&&!i.active){var e=i.coords;if(!this._retainParent(e.x,e.y,e.z,e.z-5)){this._retainChildren(e.x,e.y,e.z,e.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles){if(this._tiles[i].coords.z!==t){continue}this._removeTile(i)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ai(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,i,n,e){var s=Math.floor(t/2),r=Math.floor(i/2),o=n-1,h=new A(+s,+r);h.z=+o;var u=this._tileCoordsToKey(h),a=this._tiles[u];if(a&&a.active){a.retain=true;return true}else if(a&&a.loaded){a.retain=true}if(o>e){return this._retainParent(s,r,o,e)}return false},_retainChildren:function(t,i,n,e){for(var s=2*t;s<2*t+2;s++){for(var r=2*i;r<2*i+2;r++){var o=new A(s,r);o.z=n+1;var h=this._tileCoordsToKey(o),u=this._tiles[h];if(u&&u.active){u.retain=true;continue}else if(u&&u.loaded){u.retain=true}if(n+1<e){this._retainChildren(s,r,n+1,e)}}}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var i=this.options;if(undefined!==i.minNativeZoom&&t<i.minNativeZoom){return i.minNativeZoom}if(undefined!==i.maxNativeZoom&&i.maxNativeZoom<t){return i.maxNativeZoom}return t},_setView:function(t,i,n,e){var s=Math.round(i);if(this.options.maxZoom!==undefined&&s>this.options.maxZoom||this.options.minZoom!==undefined&&s<this.options.minZoom){s=undefined}else{s=this._clampZoom(s)}var r=this.options.updateWhenZooming&&s!==this._tileZoom;if(!e||r){this._tileZoom=s;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(s!==undefined){this._update(t)}if(!n){this._pruneTiles()}this._noPrune=!!n}this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var n in this._levels){this._setZoomTransform(this._levels[n],t,i)}},_setZoomTransform:function(t,i,n){var e=this._map.getZoomScale(n,t.zoom),s=t.origin.multiplyBy(e).subtract(this._map._getNewPixelOrigin(i,n)).round();if(Ot.any3d){bi(t.el,s,e)}else{Mi(t.el,s)}},_resetGrid:function(){var t=this._map,i=t.options.crs,n=this._tileSize=this.getTileSize(),e=this._tileZoom;var s=this._map.getPixelWorldBounds(this._tileZoom);if(s){this._globalTileRange=this._pxBoundsToTileRange(s)}this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],e).x/n.x),Math.ceil(t.project([0,i.wrapLng[1]],e).x/n.y)];this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],e).y/n.x),Math.ceil(t.project([i.wrapLat[1],0],e).y/n.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var i=this._map,n=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),e=i.getZoomScale(n,this._tileZoom),s=i.project(t,this._tileZoom).floor(),r=i.getSize().divideBy(e*2);return new O(s.subtract(r),s.add(r))},_update:function(t){var i=this._map;if(!i){return}var n=this._clampZoom(i.getZoom());if(t===undefined){t=i.getCenter()}if(this._tileZoom===undefined){return}var e=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(e),r=s.getCenter(),o=[],h=this.options.keepBuffer,u=new O(s.getBottomLeft().subtract([h,-h]),s.getTopRight().add([h,-h]));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var a in this._tiles){var f=this._tiles[a].coords;if(f.z!==this._tileZoom||!u.contains(new A(f.x,f.y))){this._tiles[a].current=false}}if(Math.abs(n-this._tileZoom)>1){this._setView(t,n);return}for(var c=s.min.y;c<=s.max.y;c++){for(var l=s.min.x;l<=s.max.x;l++){var v=new A(l,c);v.z=this._tileZoom;if(!this._isValidTile(v)){continue}var d=this._tiles[this._tileCoordsToKey(v)];if(d){d.current=true}else{o.push(v)}}}o.sort((function(t,i){return t.distanceTo(r)-i.distanceTo(r)}));if(o.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(l=0;l<o.length;l++){this._addTile(o[l],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var n=this._globalTileRange;if(!i.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!i.wrapLat&&(t.y<n.min.y||t.y>n.max.y)){return false}}if(!this.options.bounds){return true}var e=this._tileCoordsToBounds(t);return Z(this.options.bounds).overlaps(e)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,n=this.getTileSize(),e=t.scaleBy(n),s=e.add(n),r=i.unproject(e,t.z),o=i.unproject(s,t.z);return[r,o]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),n=new R(i[0],i[1]);if(!this.options.noWrap){n=this._map.wrapLatLngBounds(n)}return n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),n=new A(+i[0],+i[1]);n.z=+i[2];return n},_removeTile:function(t){var i=this._tiles[t];if(!i){return}ai(i.el);delete this._tiles[t];this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){di(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px";t.style.height=i.y+"px";t.onselectstart=a;t.onmousemove=a;if(Ot.ielt9&&this.options.opacity<1){wi(t,this.options.opacity)}},_addTile:function(t,i){var n=this._getTilePos(t),e=this._tileCoordsToKey(t);var r=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(r);if(this.createTile.length<2){T(s(this._tileReady,this,t,null,r))}Mi(r,n);this._tiles[e]={el:r,coords:t,current:true};i.appendChild(r);this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,i,n){if(i){this.fire("tileerror",{error:i,tile:n,coords:t})}var e=this._tileCoordsToKey(t);n=this._tiles[e];if(!n){return}n.loaded=+new Date;if(this._map._fadeAnimated){wi(n.el,0);x(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}else{n.active=true;this._pruneTiles()}if(!i){di(n.el,"leaflet-tile-loaded");this.fire("tileload",{tile:n.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Ot.ielt9||!this._map._fadeAnimated){T(this._pruneTiles,this)}else{setTimeout(s(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new A(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);i.z=t.z;return i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new O(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Re(t){return new je(t)}var Ze=je.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,i){this._url=t;i=v(this,i);if(i.detectRetina&&Ot.retina&&i.maxZoom>0){i.tileSize=Math.floor(i.tileSize/2);if(!i.zoomReverse){i.zoomOffset++;i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)}else{i.zoomOffset--;i.minZoom=Math.min(i.maxZoom,i.minZoom+1)}i.minZoom=Math.max(0,i.minZoom)}else if(!i.zoomReverse){i.maxZoom=Math.max(i.minZoom,i.maxZoom)}else{i.minZoom=Math.min(i.maxZoom,i.minZoom)}if(typeof i.subdomains==="string"){i.subdomains=i.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){if(this._url===t&&i===undefined){i=true}this._url=t;if(!i){this.redraw()}return this},createTile:function(t,i){var n=document.createElement("img");ji(n,"load",s(this._tileOnLoad,this,i,n));ji(n,"error",s(this._tileOnError,this,i,n));if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){n.referrerPolicy=this.options.referrerPolicy}n.alt="";n.src=this.getTileUrl(t);return n},getTileUrl:function(t){var i={r:Ot.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var e=this._globalTileRange.max.y-t.y;if(this.options.tms){i["y"]=e}i["-y"]=e}return p(this._url,n(i,this.options))},_tileOnLoad:function(t,i){if(Ot.ielt9){setTimeout(s(t,this,null,i),0)}else{t(null,i)}},_tileOnError:function(t,i,n){var e=this.options.errorTileUrl;if(e&&i.getAttribute("src")!==e){i.src=e}t(n,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,n=this.options.zoomReverse,e=this.options.zoomOffset;if(n){t=i-t}return t+e},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){i=this._tiles[t].el;i.onload=a;i.onerror=a;if(!i.complete){i.src=g;var n=this._tiles[t].coords;ai(i);delete this._tiles[t];this.fire("tileabort",{tile:i,coords:n})}}}},_removeTile:function(t){var i=this._tiles[t];if(!i){return}i.el.setAttribute("src",g);return je.prototype._removeTile.call(this,t)},_tileReady:function(t,i,n){if(!this._map||n&&n.getAttribute("src")===g){return}return je.prototype._tileReady.call(this,t,i,n)}});function Ne(t,i){return new Ze(t,i)}var Fe=Ze.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,i){this._url=t;var e=n({},this.defaultWmsParams);for(var s in i){if(!(s in this.options)){e[s]=i[s]}}i=v(this,i);var r=i.detectRetina&&Ot.retina?2:1;var o=this.getTileSize();e.width=o.x*r;e.height=o.y*r;this.wmsParams=e},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code;Ze.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),n=this._crs,e=j(n.project(i[0]),n.project(i[1])),s=e.min,r=e.max,o=(this._wmsVersion>=1.3&&this._crs===Un?[s.y,s.x,r.y,r.x]:[s.x,s.y,r.x,r.y]).join(","),h=Ze.prototype.getTileUrl.call(this,t);return h+d(this.wmsParams,h,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,i){n(this.wmsParams,t);if(!i){this.redraw()}return this}});function He(t,i){return new Fe(t,i)}Ze.WMS=Fe;Ne.wms=He;var We=qn.extend({options:{padding:.1},initialize:function(t){v(this,t);o(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();di(this._container,"leaflet-zoom-animated")}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var n=this._map.getZoomScale(i,this._zoom),e=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=e.multiplyBy(-n).add(s).subtract(this._map._getNewPixelOrigin(t,i));if(Ot.any3d){bi(this._container,r,n)}else{Mi(this._container,r)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,i=this._map.getSize(),n=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new O(n,n.add(i.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Ue=We.extend({options:{tolerance:0},getEvents:function(){var t=We.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){We.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ji(t,"mousemove",this._onMouseMove,this);ji(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);ji(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){x(this._redrawRequest);delete this._ctx;ai(this._container);Zi(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var i in this._layers){t=this._layers[i];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}We.prototype._update.call(this);var t=this._bounds,i=this._container,n=t.getSize(),e=Ot.retina?2:1;Mi(i,t.min);i.width=e*n.x;i.height=e*n.y;i.style.width=n.x+"px";i.style.height=n.y+"px";if(Ot.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){We.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[o(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=i}this._drawLast=i;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order;var n=i.next;var e=i.prev;if(n){n.prev=e}else{this._drawLast=e}if(e){e.next=n}else{this._drawFirst=n}delete t._order;delete this._layers[o(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var i=t.options.dashArray.split(/[, ]+/),n=[],e,s;for(s=0;s<i.length;s++){e=Number(i[s]);if(isNaN(e)){return}n.push(e)}t.options._dashArray=n}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||T(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O;this._redrawBounds.extend(t._pxBounds.min.subtract([i,i]));this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,i=this._redrawBounds;this._ctx.save();if(i){var n=i.getSize();this._ctx.beginPath();this._ctx.rect(i.min.x,i.min.y,n.x,n.y);this._ctx.clip()}this._drawing=true;for(var e=this._drawFirst;e;e=e.next){t=e.layer;if(!i||t._pxBounds&&t._pxBounds.intersects(i)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,i){if(!this._drawing){return}var n,e,s,r,o=t._parts,h=o.length,u=this._ctx;if(!h){return}u.beginPath();for(n=0;n<h;n++){for(e=0,s=o[n].length;e<s;e++){r=o[n][e];u[e?"lineTo":"moveTo"](r.x,r.y)}if(i){u.closePath()}}this._fillStroke(u,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var i=t._point,n=this._ctx,e=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||e)/e;if(s!==1){n.save();n.scale(1,s)}n.beginPath();n.arc(i.x,i.y/s,e,0,Math.PI*2,false);if(s!==1){n.restore()}this._fillStroke(n,t)},_fillStroke:function(t,i){var n=i.options;if(n.fill){t.globalAlpha=n.fillOpacity;t.fillStyle=n.fillColor||n.color;t.fill(n.fillRule||"evenodd")}if(n.stroke&&n.weight!==0){if(t.setLineDash){t.setLineDash(i.options&&i.options._dashArray||[])}t.globalAlpha=n.opacity;t.lineWidth=n.weight;t.strokeStyle=n.color;t.lineCap=n.lineCap;t.lineJoin=n.lineJoin;t.stroke()}},_onClick:function(t){var i=this._map.mouseEventToLayerPoint(t),n,e;for(var s=this._drawFirst;s;s=s.next){n=s.layer;if(n.options.interactive&&n._containsPoint(i)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(n)){e=n}}}this._fireEvent(e?[e]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)},_handleMouseOut:function(t){var i=this._hoveredLayer;if(i){mi(this._container,"leaflet-interactive");this._fireEvent([i],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,i){if(this._mouseHoverThrottled){return}var n,e;for(var r=this._drawFirst;r;r=r.next){n=r.layer;if(n.options.interactive&&n._containsPoint(i)){e=n}}if(e!==this._hoveredLayer){this._handleMouseOut(t);if(e){di(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseover");this._hoveredLayer=e}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(s((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,i,n){this._map._fireDOMEvent(i,n||i.type,t)},_bringToFront:function(t){var i=t._order;if(!i){return}var n=i.next;var e=i.prev;if(n){n.prev=e}else{return}if(e){e.next=n}else if(n){this._drawFirst=n}i.prev=this._drawLast;this._drawLast.next=i;i.next=null;this._drawLast=i;this._requestRedraw(t)},_bringToBack:function(t){var i=t._order;if(!i){return}var n=i.next;var e=i.prev;if(e){e.next=n}else{return}if(n){n.prev=e}else if(e){this._drawLast=e}i.prev=null;i.next=this._drawFirst;this._drawFirst.prev=i;this._drawFirst=i;this._requestRedraw(t)}});function Ge(t){return Ot.canvas?new Ue(t):null}var qe=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Ve={_initContainer:function(){this._container=ui("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}We.prototype._update.call(this);this.fire("update")},_initPath:function(t){var i=t._container=qe("shape");di(i,"leaflet-vml-shape "+(this.options.className||""));i.coordsize="1 1";t._path=qe("path");i.appendChild(t._path);this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i);if(t.options.interactive){t.addInteractiveTarget(i)}},_removePath:function(t){var i=t._container;ai(i);t.removeInteractiveTarget(i);delete this._layers[o(t)]},_updateStyle:function(t){var i=t._stroke,n=t._fill,e=t.options,s=t._container;s.stroked=!!e.stroke;s.filled=!!e.fill;if(e.stroke){if(!i){i=t._stroke=qe("stroke")}s.appendChild(i);i.weight=e.weight+"px";i.color=e.color;i.opacity=e.opacity;if(e.dashArray){i.dashStyle=_(e.dashArray)?e.dashArray.join(" "):e.dashArray.replace(/( *, *)/g," ")}else{i.dashStyle=""}i.endcap=e.lineCap.replace("butt","flat");i.joinstyle=e.lineJoin}else if(i){s.removeChild(i);t._stroke=null}if(e.fill){if(!n){n=t._fill=qe("fill")}s.appendChild(n);n.color=e.fillColor||e.color;n.opacity=e.fillOpacity}else if(n){s.removeChild(n);t._fill=null}},_updateCircle:function(t){var i=t._point.round(),n=Math.round(t._radius),e=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+n+","+e+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ci(t._container)},_bringToBack:function(t){li(t._container)}};var Ke=Ot.vml?qe:$;var Je=We.extend({_initContainer:function(){this._container=Ke("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Ke("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ai(this._container);Zi(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}We.prototype._update.call(this);var t=this._bounds,i=t.getSize(),n=this._container;if(!this._svgSize||!this._svgSize.equals(i)){this._svgSize=i;n.setAttribute("width",i.x);n.setAttribute("height",i.y)}Mi(n,t.min);n.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" "));this.fire("update")},_initPath:function(t){var i=t._path=Ke("path");if(t.options.className){di(i,t.options.className)}if(t.options.interactive){di(i,"leaflet-interactive")}this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ai(t._path);t.removeInteractiveTarget(t._path);delete this._layers[o(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var i=t._path,n=t.options;if(!i){return}if(n.stroke){i.setAttribute("stroke",n.color);i.setAttribute("stroke-opacity",n.opacity);i.setAttribute("stroke-width",n.weight);i.setAttribute("stroke-linecap",n.lineCap);i.setAttribute("stroke-linejoin",n.lineJoin);if(n.dashArray){i.setAttribute("stroke-dasharray",n.dashArray)}else{i.removeAttribute("stroke-dasharray")}if(n.dashOffset){i.setAttribute("stroke-dashoffset",n.dashOffset)}else{i.removeAttribute("stroke-dashoffset")}}else{i.setAttribute("stroke","none")}if(n.fill){i.setAttribute("fill",n.fillColor||n.color);i.setAttribute("fill-opacity",n.fillOpacity);i.setAttribute("fill-rule",n.fillRule||"evenodd")}else{i.setAttribute("fill","none")}},_updatePoly:function(t,i){this._setPath(t,X(t._parts,i))},_updateCircle:function(t){var i=t._point,n=Math.max(Math.round(t._radius),1),e=Math.max(Math.round(t._radiusY),1)||n,s="a"+n+","+e+" 0 1,0 ";var r=t._empty()?"M0 0":"M"+(i.x-n)+","+i.y+s+n*2+",0 "+s+-n*2+",0 ";this._setPath(t,r)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ci(t._path)},_bringToBack:function(t){li(t._path)}});if(Ot.vml){Je.include(Ve)}function $e(t){return Ot.svg||Ot.vml?new Je(t):null}en.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!i){i=this._renderer=this._createRenderer()}if(!this.hasLayer(i)){this.addLayer(i)}return i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var i=this._paneRenderers[t];if(i===undefined){i=this._createRenderer({pane:t});this._paneRenderers[t]=i}return i},_createRenderer:function(t){return this.options.preferCanvas&&Ge(t)||$e(t)}});var Xe=fe.extend({initialize:function(t,i){fe.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=Z(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Ye(t,i){return new Xe(t,i)}Je.create=Ke;Je.pointsToPath=X;le.geometryToLayer=ve;le.coordsToLatLng=me;le.coordsToLatLngs=pe;le.latLngToCoords=_e;le.latLngsToCoords=we;le.getFeature=ge;le.asFeature=ye;en.mergeOptions({boxZoom:true});var Qe=pn.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){ji(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Zi(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ai(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();ki();Ii();this._startPoint=this._map.mouseEventToContainerPoint(t);ji(document,{contextmenu:Ki,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=ui("div","leaflet-zoom-box",this._container);di(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var i=new O(this._point,this._startPoint),n=i.getSize();Mi(this._box,i.min);this._box.style.width=n.x+"px";this._box.style.height=n.y+"px"},_finish:function(){if(this._moved){ai(this._box);mi(this._container,"leaflet-crosshair")}Ti();Si();Zi(document,{contextmenu:Ki,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});en.addInitHook("addHandler","boxZoom",Qe);en.mergeOptions({doubleClickZoom:true});var ts=pn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,n=i.getZoom(),e=i.options.zoomDelta,s=t.originalEvent.shiftKey?n-e:n+e;if(i.options.doubleClickZoom==="center"){i.setZoom(s)}else{i.setZoomAround(t.containerPoint,s)}}});en.addInitHook("addHandler","doubleClickZoom",ts);en.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var is=pn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new gn(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}di(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){mi(this._map._container,"leaflet-grab");mi(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=Z(this._map.options.maxBounds);this._offsetLimit=j(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n);this._times.push(i);this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var i=this._offsetLimit;if(t.x<i.min.x){t.x=this._viscousLimit(t.x,i.min.x)}if(t.y<i.min.y){t.y=this._viscousLimit(t.y,i.min.y)}if(t.x>i.max.x){t.x=this._viscousLimit(t.x,i.max.x)}if(t.y>i.max.y){t.y=this._viscousLimit(t.y,i.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),n=this._initialWorldOffset,e=this._draggable._newPos.x,s=(e-i+n)%t+i-n,r=(e+i+n)%t-i-n,o=Math.abs(s+n)<Math.abs(r+n)?s:r;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,n=i.options,e=!n.inertia||t.noInertia||this._times.length<2;i.fire("dragend",t);if(e){i.fire("moveend")}else{this._prunePositions(+new Date);var s=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,h=s.multiplyBy(o/r),u=h.distanceTo([0,0]),a=Math.min(n.inertiaMaxSpeed,u),f=h.multiplyBy(a/u),c=a/(n.inertiaDeceleration*o),l=f.multiplyBy(-c/2).round();if(!l.x&&!l.y){i.fire("moveend")}else{l=i._limitOffset(l,i.options.maxBounds);T((function(){i.panBy(l,{duration:c,easeLinearity:o,noMoveStart:true,animate:true})}))}}}});en.addInitHook("addHandler","dragging",is);en.mergeOptions({keyboard:true,keyboardPanDelta:80});var ns=pn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}ji(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Zi(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,i=document.documentElement,n=t.scrollTop||i.scrollTop,e=t.scrollLeft||i.scrollLeft;this._map._container.focus();window.scrollTo(e,n)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},n=this.keyCodes,e,s;for(e=0,s=n.left.length;e<s;e++){i[n.left[e]]=[-1*t,0]}for(e=0,s=n.right.length;e<s;e++){i[n.right[e]]=[t,0]}for(e=0,s=n.down.length;e<s;e++){i[n.down[e]]=[0,t]}for(e=0,s=n.up.length;e<s;e++){i[n.up[e]]=[0,-1*t]}},_setZoomDelta:function(t){var i=this._zoomKeys={},n=this.keyCodes,e,s;for(e=0,s=n.zoomIn.length;e<s;e++){i[n.zoomIn[e]]=t}for(e=0,s=n.zoomOut.length;e<s;e++){i[n.zoomOut[e]]=-t}},_addHooks:function(){ji(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Zi(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var i=t.keyCode,n=this._map,e;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress){e=this._panKeys[i];if(t.shiftKey){e=C(e).multiplyBy(3)}if(n.options.maxBounds){e=n._limitOffset(C(e),n.options.maxBounds)}if(n.options.worldCopyJump){var s=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(s)}else{n.panBy(e)}}}else if(i in this._zoomKeys){n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i])}else if(i===27&&n._popup&&n._popup.options.closeOnEscapeKey){n.closePopup()}else{return}Ki(t)}});en.addInitHook("addHandler","keyboard",ns);en.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var es=pn.extend({addHooks:function(){ji(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Zi(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Yi(t);var n=this._map.options.wheelDebounceTime;this._delta+=i;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var e=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(s(this._performZoom,this),e);Ki(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var e=this._delta/(this._map.options.wheelPxPerZoomLevel*4),s=4*Math.log(2/(1+Math.exp(-Math.abs(e))))/Math.LN2,r=n?Math.ceil(s/n)*n:s,o=t._limitZoom(i+(this._delta>0?r:-r))-i;this._delta=0;this._startTime=null;if(!o){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(i+o)}else{t.setZoomAround(this._lastMousePos,i+o)}}});en.addInitHook("addHandler","scrollWheelZoom",es);var ss=600;en.mergeOptions({tapHold:Ot.touchNative&&Ot.safari&&Ot.mobile,tapTolerance:15});var rs=pn.extend({addHooks:function(){ji(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Zi(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var i=t.touches[0];this._startPos=this._newPos=new A(i.clientX,i.clientY);this._holdTimeout=setTimeout(s((function(){this._cancel();if(!this._isTapValid()){return}ji(document,"touchend",Vi);ji(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",i)}),this),ss);ji(document,"touchend touchcancel contextmenu",this._cancel,this);ji(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Zi(document,"touchend",Vi);Zi(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Zi(document,"touchend touchcancel contextmenu",this._cancel,this);Zi(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new A(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var n=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});n._simulated=true;i.target.dispatchEvent(n)}});en.addInitHook("addHandler","tapHold",rs);en.mergeOptions({touchZoom:Ot.touch,bounceAtZoomLimits:true});var os=pn.extend({addHooks:function(){di(this._map._container,"leaflet-touch-zoom");ji(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mi(this._map._container,"leaflet-touch-zoom");Zi(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming){return}var n=i.mouseEventToContainerPoint(t.touches[0]),e=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2);this._startLatLng=i.containerPointToLatLng(this._centerPoint);if(i.options.touchZoom!=="center"){this._pinchStartLatLng=i.containerPointToLatLng(n.add(e)._divideBy(2))}this._startDist=n.distanceTo(e);this._startZoom=i.getZoom();this._moved=false;this._zooming=true;i._stop();ji(document,"touchmove",this._onTouchMove,this);ji(document,"touchend touchcancel",this._onTouchEnd,this);Vi(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),e=i.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(e)/this._startDist;this._zoom=i.getScaleZoom(r,this._startZoom);if(!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&r<1||this._zoom>i.getMaxZoom()&&r>1)){this._zoom=i._limitZoom(this._zoom)}if(i.options.touchZoom==="center"){this._center=this._startLatLng;if(r===1){return}}else{var o=n._add(e)._divideBy(2)._subtract(this._centerPoint);if(r===1&&o.x===0&&o.y===0){return}this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}if(!this._moved){i._moveStart(true,false);this._moved=true}x(this._animRequest);var h=s(i._move,i,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=T(h,this,true);Vi(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;x(this._animRequest);Zi(document,"touchmove",this._onTouchMove,this);Zi(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});en.addInitHook("addHandler","touchZoom",os);en.BoxZoom=Qe;en.DoubleClickZoom=ts;en.Drag=is;en.Keyboard=ns;en.ScrollWheelZoom=es;en.TapHold=rs;en.TouchZoom=os;t.Bounds=O;t.Browser=Ot;t.CRS=H;t.Canvas=Ue;t.Circle=oe;t.CircleMarker=se;t.Class=S;t.Control=rn;t.DivIcon=Ce;t.DivOverlay=ze;t.DomEvent=tn;t.DomUtil=Oi;t.Draggable=gn;t.Evented=D;t.FeatureGroup=Jn;t.GeoJSON=le;t.GridLayer=je;t.Handler=pn;t.Icon=Xn;t.ImageOverlay=ke;t.LatLng=N;t.LatLngBounds=R;t.Layer=qn;t.LayerGroup=Vn;t.LineUtil=Zn;t.Map=en;t.Marker=ie;t.Mixin=_n;t.Path=ee;t.Point=A;t.PolyUtil=Pn;t.Polygon=fe;t.Polyline=ue;t.Popup=Be;t.PosAnimation=nn;t.Projection=Hn;t.Rectangle=Xe;t.Renderer=We;t.SVG=Je;t.SVGOverlay=Ie;t.TileLayer=Ze;t.Tooltip=Ae;t.Transformation=q;t.Util=I;t.VideoOverlay=Le;t.bind=s;t.bounds=j;t.canvas=Ge;t.circle=he;t.circleMarker=re;t.control=on;t.divIcon=Oe;t.extend=n;t.featureGroup=$n;t.geoJSON=Me;t.geoJson=Pe;t.gridLayer=Re;t.icon=Yn;t.imageOverlay=Te;t.latLng=F;t.latLngBounds=Z;t.layerGroup=Kn;t.map=sn;t.marker=ne;t.point=C;t.polygon=ce;t.polyline=ae;t.popup=De;t.rectangle=Ye;t.setOptions=v;t.stamp=o;t.svg=$e;t.svgOverlay=Se;t.tileLayer=Ne;t.tooltip=Ee;t.transformation=V;t.version=i;t.videoOverlay=xe;var hs=window.L;t.noConflict=function(){window.L=hs;return this};window.L=t}))})(N,N.exports);var F=t("L",N.exports);var H=t("b",{exports:{}});var W=function(t,i){return i.some((function(i){return t instanceof i}))};var U;var G;function q(){return U||(U=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function V(){return G||(G=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var K=new WeakMap;var J=new WeakMap;var $=new WeakMap;var X=new WeakMap;var Y=new WeakMap;function Q(t){var i=new Promise((function(i,n){var e=function(){t.removeEventListener("success",s);t.removeEventListener("error",r)};var s=function(){i(rt(t.result));e()};var r=function(){n(t.error);e()};t.addEventListener("success",s);t.addEventListener("error",r)}));i.then((function(i){if(i instanceof IDBCursor){K.set(i,t)}})).catch((function(){}));Y.set(i,t);return i}function tt(t){if(J.has(t))return;var i=new Promise((function(i,n){var e=function(){t.removeEventListener("complete",s);t.removeEventListener("error",r);t.removeEventListener("abort",r)};var s=function(){i();e()};var r=function(){n(t.error||new DOMException("AbortError","AbortError"));e()};t.addEventListener("complete",s);t.addEventListener("error",r);t.addEventListener("abort",r)}));J.set(t,i)}var it={get:function(t,i,n){if(t instanceof IDBTransaction){if(i==="done")return J.get(t);if(i==="objectStoreNames"){return t.objectStoreNames||$.get(t)}if(i==="store"){return n.objectStoreNames[1]?undefined:n.objectStore(n.objectStoreNames[0])}}return rt(t[i])},set:function(t,i,n){t[i]=n;return true},has:function(t,i){if(t instanceof IDBTransaction&&(i==="done"||i==="store")){return true}return i in t}};function nt(t){it=t(it)}function et(t){if(t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)){return function(i){var n=[];for(var e=1;e<arguments.length;e++){n[e-1]=arguments[e]}var s=t.call.apply(t,__spreadArray([ot(this),i],n,false));$.set(s,i.sort?i.sort():[i]);return rt(s)}}if(V().includes(t)){return function(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}t.apply(ot(this),i);return rt(K.get(this))}}return function(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return rt(t.apply(ot(this),i))}}function st(t){if(typeof t==="function")return et(t);if(t instanceof IDBTransaction)tt(t);if(W(t,q()))return new Proxy(t,it);return t}function rt(t){if(t instanceof IDBRequest)return Q(t);if(X.has(t))return X.get(t);var i=st(t);if(i!==t){X.set(t,i);Y.set(i,t)}return i}var ot=function(t){return Y.get(t)};function ht(t,i,n){var e=n===void 0?{}:n,s=e.blocked,r=e.upgrade,o=e.blocking,h=e.terminated;var u=indexedDB.open(t,i);var a=rt(u);if(r){u.addEventListener("upgradeneeded",(function(t){r(rt(u.result),t.oldVersion,t.newVersion,rt(u.transaction),t)}))}if(s){u.addEventListener("blocked",(function(t){return s(t.oldVersion,t.newVersion,t)}))}a.then((function(t){if(h)t.addEventListener("close",(function(){return h()}));if(o){t.addEventListener("versionchange",(function(t){return o(t.oldVersion,t.newVersion,t)}))}})).catch((function(){}));return a}function ut(t,i){var n=i===void 0?{}:i,e=n.blocked;var s=indexedDB.deleteDatabase(t);if(e){s.addEventListener("blocked",(function(t){return e(t.oldVersion,t)}))}return rt(s).then((function(){return undefined}))}var at=["get","getKey","getAll","getAllKeys","count"];var ft=["put","add","delete","clear"];var ct=new Map;function lt(t,i){if(!(t instanceof IDBDatabase&&!(i in t)&&typeof i==="string")){return}if(ct.get(i))return ct.get(i);var n=i.replace(/FromIndex$/,"");var e=i!==n;var s=ft.includes(n);if(!(n in(e?IDBIndex:IDBObjectStore).prototype)||!(s||at.includes(n))){return}var r=function(t){var i=[];for(var r=1;r<arguments.length;r++){i[r-1]=arguments[r]}return __awaiter(this,void 0,void 0,(function(){var r,o;return __generator(this,(function(h){switch(h.label){case 0:r=this.transaction(t,s?"readwrite":"readonly");o=r.store;if(e)o=o.index(i.shift());return[4,Promise.all([o[n].apply(o,i),s&&r.done])];case 1:return[2,h.sent()[0]]}}))}))};ct.set(i,r);return r}nt((function(t){return __assign(__assign({},t),{get:function(i,n,e){return lt(i,n)||t.get(i,n,e)},has:function(i,n){return!!lt(i,n)||t.has(i,n)}})}));var vt=Object.freeze({__proto__:null,deleteDB:ut,openDB:ht,unwrap:ot,wrap:rt});var dt=Z(vt);(function(t,i){(function(t,n){n(i,N.exports,dt)})(R,(function(t,i,n){var e="tileStore";var s="urlTemplate";var r;function o(){if(r){return r}r=n.openDB("leaflet.offline",2,{upgrade:function(t,i){n.deleteDB("leaflet_offline");n.deleteDB("leaflet_offline_areas");if(i<1){var r=t.createObjectStore(e,{keyPath:"key"});r.createIndex(s,"urlTemplate");r.createIndex("z","z")}}});return r}function h(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,o()];case 1:t=i.sent();return[2,t.count(e)]}}))}))}function u(t){return __awaiter(this,void 0,void 0,(function(){var i,n;return __generator(this,(function(r){switch(r.label){case 0:i=IDBKeyRange.only(t);return[4,o()];case 1:n=r.sent();return[2,n.getAllFromIndex(e,s,i)]}}))}))}function a(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,fetch(t)];case 1:i=n.sent();if(!i.ok){throw new Error("Request failed with status ".concat(i.statusText))}return[2,i.blob()]}}))}))}function f(t,i){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(s){switch(s.label){case 0:return[4,o()];case 1:n=s.sent();return[2,n.put(e,__assign({blob:i},t))]}}))}))}function c(t,n){return i.Util.template(t,__assign(__assign({},n),{r:i.Browser.retina?"@2x":""}))}function l(t,n){var e=[];if(!t.min||!t.max){return e}var s=t.min.divideBy(n.x).floor();var r=t.max.divideBy(n.x).floor();for(var o=s.y;o<=r.y;o+=1){for(var h=s.x;h<=r.x;h+=1){e.push(new i.Point(h,o))}}return e}function v(t,n){var e={type:"FeatureCollection",features:[]};for(var s=0;s<n.length;s+=1){var r=new i.Point(n[s].x*t.getTileSize().x,n[s].y*t.getTileSize().y);var o=new i.Point(r.x+t.getTileSize().x,r.y+t.getTileSize().y);var h=i.CRS.EPSG3857.pointToLatLng(r,n[s].z);var u=i.CRS.EPSG3857.pointToLatLng(o,n[s].z);e.features.push({type:"Feature",properties:n[s],geometry:{type:"Polygon",coordinates:[[[h.lng,h.lat],[u.lng,h.lat],[u.lng,u.lat],[h.lng,u.lat],[h.lng,h.lat]]]}})}return e}function d(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,o()];case 1:i=n.sent();return[2,i.delete(e,t)]}}))}))}function m(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:return[4,o()];case 1:return[2,i.sent().get(e,t).then((function(t){return t&&t.blob}))]}}))}))}function p(t){return __awaiter(this,void 0,void 0,(function(){var i,n;return __generator(this,(function(s){switch(s.label){case 0:return[4,o()];case 1:i=s.sent();return[4,i.getKey(e,t)];case 2:n=s.sent();return[2,n!==undefined]}}))}))}function _(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,o()];case 1:return[2,t.sent().clear(e)]}}))}))}var w=function(t){__extends(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}n.prototype.createTile=function(t,n){var e=this;var s=document.createElement("img");i.DomEvent.on(s,"load",i.Util.bind(this._tileOnLoad,this,n,s));i.DomEvent.on(s,"error",i.Util.bind(this._tileOnError,this,n,s));if(this.options.crossOrigin||this.options.crossOrigin===""){s.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}s.alt="";s.setAttribute("role","presentation");this.setDataUrl(t).then((function(t){return s.src=t})).catch((function(){return s.src=e.getTileUrl(t)}));return s};n.prototype.setDataUrl=function(t){return m(this._getStorageKey(t)).then((function(t){if(t&&typeof t==="object"){return URL.createObjectURL(t)}throw new Error("tile not found in storage")}))};n.prototype._getStorageKey=function(t){return c(this._url,__assign(__assign(__assign({},t),this.options),{s:this.options.subdomains["0"]}))};n.prototype.getTileUrls=function(t,i){var n;var e=[];var s=l(t,this.getTileSize());for(var r=0;r<s.length;r+=1){var o=s[r];var h=__assign(__assign({},this.options),{x:o.x,y:o.y,z:i+(this.options.zoomOffset||0)});e.push({key:c(this._url,__assign(__assign({},h),{s:(n=this.options.subdomains)===null||n===void 0?void 0:n[0]})),url:c(this._url,__assign(__assign({},h),{s:this._getSubdomain(o)})),z:i,x:o.x,y:o.y,urlTemplate:this._url,createdAt:Date.now()})}return e};return n}(i.TileLayer);function g(t,i){return new w(t,i)}if(window.L){window.L.tileLayer.offline=g}var y=function(t){__extends(n,t);function n(i,n){var e=t.call(this,n)||this;e.status={storagesize:0,lengthToBeSaved:0,lengthSaved:0,lengthLoaded:0,_tilesforSave:[]};e._baseLayer=i;e.setStorageSize();e.options=__assign({position:"topleft",saveText:"+",rmText:"-",maxZoom:19,saveWhatYouSee:false,bounds:null,confirm:null,confirmRemoval:null,parallel:50,zoomlevels:undefined,alwaysDownload:true},n);return e}n.prototype.setStorageSize=function(){var t=this;if(this.status.storagesize){return Promise.resolve(this.status.storagesize)}return h().then((function(i){t.status.storagesize=i;t._baseLayer.fire("storagesize",t.status);return i})).catch((function(){return 0}))};n.prototype.getStorageSize=function(t){this.setStorageSize().then((function(i){if(t){t(i)}}))};n.prototype.setLayer=function(t){this._baseLayer=t};n.prototype.onAdd=function(){var t=i.DomUtil.create("div","savetiles leaflet-bar");var n=this.options;this._createButton(n.saveText,"savetiles",t,this._saveTiles);this._createButton(n.rmText,"rmtiles",t,this._rmTiles);return t};n.prototype._createButton=function(t,n,e,s){var r=i.DomUtil.create("a",n,e);r.innerHTML=t;r.href="#";r.ariaRoleDescription="button";i.DomEvent.on(r,"mousedown dblclick",i.DomEvent.stopPropagation).on(r,"click",i.DomEvent.stop).on(r,"click",s,this).on(r,"click",this._refocusOnMap,this);return r};n.prototype._saveTiles=function(){var t=this;var i=this._calculateTiles();this._resetStatus(i);var n=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,e;var s=this;return __generator(this,(function(r){this._baseLayer.fire("savestart",this.status);t=function(){return __awaiter(s,void 0,void 0,(function(){var n,e;return __generator(this,(function(s){switch(s.label){case 0:n=i.shift();if(n===undefined){return[2,Promise.resolve()]}return[4,this._loadTile(n)];case 1:e=s.sent();if(!e)return[3,3];return[4,this._saveTile(n,e)];case 2:s.sent();s.label=3;case 3:return[2,t()]}}))}))};n=Math.min(i.length,this.options.parallel);for(e=0;e<n;e+=1){t()}return[2]}))}))};if(this.options.confirm){this.options.confirm(this.status,n)}else{n()}};n.prototype._calculateTiles=function(){var t=[];var n=5;var e=[];if(this.options.saveWhatYouSee){var s=this._map.getZoom();if(s<n){throw new Error("It's not possible to save with zoom below level ".concat(n,"."))}var r=this.options.maxZoom;for(var o=s;o<=r;o+=1){e.push(o)}}else{e=this.options.zoomlevels||[this._map.getZoom()]}var h=this.options.bounds||this._map.getBounds();for(var u=0;u<e.length;u+=1){var a=i.bounds(this._map.project(h.getNorthWest(),e[u]),this._map.project(h.getSouthEast(),e[u]));t=t.concat(this._baseLayer.getTileUrls(a,e[u]))}return t};n.prototype._resetStatus=function(t){this.status={lengthLoaded:0,lengthToBeSaved:t.length,lengthSaved:0,_tilesforSave:t,storagesize:this.status.storagesize}};n.prototype._loadTile=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n;return __generator(this,(function(e){switch(e.label){case 0:n=this.options.alwaysDownload===true;if(n)return[3,2];return[4,p(t.key)];case 1:n=e.sent()===false;e.label=2;case 2:if(!n)return[3,4];return[4,a(t.url)];case 3:i=e.sent();this.status.lengthLoaded+=1;e.label=4;case 4:this.status.lengthLoaded+=1;this._baseLayer.fire("loadtileend",this.status);if(this.status.lengthLoaded===this.status.lengthToBeSaved){this._baseLayer.fire("loadend",this.status)}return[2,i]}}))}))};n.prototype._saveTile=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,f(t,i)];case 1:n.sent();this.status.lengthSaved+=1;this._baseLayer.fire("savetileend",this.status);if(this.status.lengthSaved===this.status.lengthToBeSaved){this._baseLayer.fire("saveend",this.status);this.setStorageSize()}return[2]}}))}))};n.prototype._rmTiles=function(){var t=this;var i=function(){_().then((function(){t.status.storagesize=0;t._baseLayer.fire("tilesremoved");t._baseLayer.fire("storagesize",t.status)}))};if(this.options.confirmRemoval){this.options.confirmRemoval(this.status,i)}else{i()}};return n}(i.Control);function b(t,i){return new y(t,i)}if(window.L){window.L.control.savetiles=b}t.downloadTile=a;t.getBlobByKey=m;t.getStorageInfo=u;t.getStorageLength=h;t.getStoredTilesAsJson=v;t.removeTile=d;t.saveTile=f;t.savetiles=b;t.tileLayerOffline=g;t.truncate=_}))})(H,H.exports);var mt=i("BlobWriter");var pt=window.CapacitorWebFetch||window.fetch;function _t(t){return window.btoa(Array.from(new Uint8Array(t)).map((function(t){return String.fromCharCode(t)})).join(""))}function wt(t){var i=t.path,n=t.directory,s=t.blob,r=t.recursive;return e.writeFile({directory:n,path:i,recursive:r,data:""}).then((function(){return new Promise((function(t,e){function r(t){e(t.target.error)}var o=window.indexedDB.open("Disc");o.onerror=r;o.onsuccess=function(){var e=o.result;var h=e.transaction("FileStorage","readwrite");h.onerror=r;var u=h.objectStore("FileStorage");var a="/".concat(n,"/").concat(i.replace(/^\//,""));var f=u.get(a);f.onsuccess=function(){f.result.size=s.size;f.result.content=s;var i=u.put(f.result);i.onsuccess=function(){t(undefined)}}}}))}))}function gt(t){var i=t.path,n=t.directory,s=t.blob,r=t.recursive;return e.writeFile({directory:n,path:i,recursive:r,data:""}).then((function t(){if(s.size===0){return Promise.resolve()}var r=3*128*1024;var o=s.slice(0,r);s=s.slice(r);return new Response(o).arrayBuffer().then((function t(s){return e.appendFile({directory:n,path:i,data:_t(s)})})).then(t)}))}function yt(t){var i=t.path,s=t.directory,r=t.blob,o=t.fast_mode,h=o===void 0?false:o,u=t.recursive,a=t.on_fallback;if(!r||!Number.isSafeInteger(r.size)||typeof r.type!=="string"){return Promise.reject(new Error("Not a Blob."))}if(n.getPlatform()==="web"){return h?wt(t):gt(t)}return Promise.all([mt.get_config(),e.getUri({path:i,directory:s})]).then((function(t){var i=t[0],n=t[1];var e=n.uri.replace("file://","");return pt(i.base_url+e+(u?"?recursive=true":""),{headers:{authorization:i.auth_token},method:"put",body:r}).then((function(t){if(t.status!==204){throw new Error("Bad HTTP status: "+t.status)}return n.uri}))})).catch((function i(n){if(a!==undefined){a(n)}return gt(t)}))}var bt=Object.freeze(yt);var Mt=2;function Pt(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,T("grw",Mt,{upgrade:function(t,i){switch(i){case 0:{var n=[{name:"districts",keyPath:"id"},{name:"treks",keyPath:"id"},{name:"difficulties",keyPath:"id"},{name:"routes",keyPath:"id"},{name:"practices",keyPath:"id"},{name:"themes",keyPath:"id"},{name:"cities",keyPath:"id"},{name:"accessibilities",keyPath:"id"},{name:"ratings",keyPath:"id"},{name:"ratingsScale",keyPath:"id"},{name:"sensitiveAreas",keyPath:"id"},{name:"labels",keyPath:"id"},{name:"sources",keyPath:"id"},{name:"accessibilitiesLevel",keyPath:"id"},{name:"touristicContents",keyPath:"id"},{name:"touristicContentCategories",keyPath:"id"},{name:"touristicEvents",keyPath:"id"},{name:"touristicEventTypes",keyPath:"id"},{name:"networks",keyPath:"id"},{name:"pois",keyPath:"id"},{name:"poiTypes",keyPath:"id"},{name:"informationDesks",keyPath:"id"}];n.forEach((function(i){if(!t.objectStoreNames.contains(i.name)){t.createObjectStore(i.name,{keyPath:i.keyPath})}}))}case 1:{var n=[{name:"outdoorSites",keyPath:"id"},{name:"outdoorSiteTypes",keyPath:"id"},{name:"outdoorPractices",keyPath:"id"},{name:"outdoorCourses",keyPath:"id"},{name:"outdoorCourseTypes",keyPath:"id"},{name:"outdoorRatings",keyPath:"id"},{name:"outdoorRatingsScale",keyPath:"id"}];n.forEach((function(i){if(!t.objectStoreNames.contains(i.name)){t.createObjectStore(i.name,{keyPath:i.keyPath})}}))}case 2:{var n=[{name:"signages",keyPath:"id"}];n.forEach((function(i){if(!t.objectStoreNames.contains(i.name)){t.createObjectStore(i.name,{keyPath:i.keyPath})}}))}}}})];case 1:t=i.sent();return[2,t]}}))}))}function kt(t,i){return __awaiter(this,void 0,void 0,(function(){var n,e;return __generator(this,(function(s){switch(s.label){case 0:return[4,Pt()];case 1:n=s.sent();return[4,n.get(t,i)];case 2:e=s.sent();n.close();return[2,e]}}))}))}function Tt(t){return __awaiter(this,void 0,void 0,(function(){var i,n;return __generator(this,(function(e){switch(e.label){case 0:return[4,Pt()];case 1:i=e.sent();return[4,i.getAll(t)];case 2:n=e.sent();i.close();return[2,n]}}))}))}function Lt(t,i){return __awaiter(this,void 0,void 0,(function(){var n,e;return __generator(this,(function(s){switch(s.label){case 0:if(!i)return[3,3];return[4,Pt()];case 1:n=s.sent();e=n.transaction(t,"readwrite");return[4,Promise.all(__spreadArray(__spreadArray([],i.map((function(t){return e.store.put(t)})),true),[e.done],false))];case 2:s.sent();n.close();s.label=3;case 3:return[2]}}))}))}function xt(t,i){return __awaiter(this,arguments,void 0,(function(t,i,n,e){var h,u,a,f,c,l,v,d;if(n===void 0){n=false}if(e===void 0){e=[]}return __generator(this,(function(m){switch(m.label){case 0:h=s(t,i,n,e);u=[];a=0;m.label=1;case 1:if(!(a<h.length))return[3,4];return[4,r(h[a])];case 2:f=m.sent();if(!f){u.push(h[a])}m.label=3;case 3:a++;return[3,1];case 4:c=u.map((function(t){return fetch(t)}));return[4,Promise.all(c).catch((function(){return null}))];case 5:l=m.sent();if(!l)return[3,10];return[4,Promise.all(l.map((function(t){return t.blob()})))];case 6:v=m.sent();d=0;m.label=7;case 7:if(!(d<v.length))return[3,10];return[4,bt({path:l[d].url,directory:o.Data,blob:v[d],fast_mode:true,recursive:true})];case 8:m.sent();m.label=9;case 9:d++;return[3,7];case 10:return[2]}}))}))}function It(t,i,n,e){return __awaiter(this,void 0,void 0,(function(){var s,r,o,r,h,r;return __generator(this,(function(u){switch(u.label){case 0:s=[];for(r=n;r<=e;r++){s.push.apply(s,t.getTileUrls(F.bounds(F.CRS.EPSG3857.latLngToPoint(i.getNorthWest(),r),F.CRS.EPSG3857.latLngToPoint(i.getSouthEast(),r)),r))}o=[];r=0;u.label=1;case 1:if(!(r<s.length))return[3,4];return[4,H.exports.getBlobByKey(s[r].key)];case 2:if(!u.sent()){o.push(H.exports.downloadTile(s[r].url).catch((function(){return null})))}else{o.push(new Promise((function(t){return t(null)})))}u.label=3;case 3:r++;return[3,1];case 4:return[4,Promise.all(o).then((function(t){return t}))];case 5:h=u.sent();r=0;u.label=6;case 6:if(!(r<h.length))return[3,9];if(!h[r])return[3,8];return[4,H.exports.saveTile(s[r],h[r])];case 7:u.sent();u.label=8;case 8:r++;return[3,6];case 9:return[2]}}))}))}function St(t){return __awaiter(this,arguments,void 0,(function(t,i){var n;if(i===void 0){i=[]}return __generator(this,(function(e){switch(e.label){case 0:return[4,Tt(t)];case 1:n=e.sent();return[4,h(n,u,i)];case 2:e.sent();return[2,n]}}))}))}}}}));
|
|
6
|
-
//# sourceMappingURL=p-
|
|
6
|
+
//# sourceMappingURL=p-ae0a8dc1.system.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{W as t,x as e,E as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{W as t,x as e,E as i}from"./p-6d0668a6.js";import"./p-7207c87a.js";import"./p-421e9ebe.js";function r(t){const e=t.split("/").filter((t=>t!=="."));const i=[];e.forEach((t=>{if(t===".."&&i.length>0&&i[i.length-1]!==".."){i.pop()}else{i.push(t)}}));return i.join("/")}function o(t,e){t=r(t);e=r(e);const i=t.split("/");const o=e.split("/");return t!==e&&i.every(((t,e)=>t===o[e]))}class s extends t{constructor(){super(...arguments);this.DB_VERSION=1;this.DB_NAME="Disc";this._writeCmds=["add","put","delete"];this.downloadFile=async t=>{var i,r;const o=e(t,t.webFetchExtra);const s=await fetch(t.url,o);let n;if(!t.progress)n=await s.blob();else if(!(s===null||s===void 0?void 0:s.body))n=new Blob;else{const e=s.body.getReader();let i=0;const r=[];const o=s.headers.get("content-type");const a=parseInt(s.headers.get("content-length")||"0",10);while(true){const{done:o,value:s}=await e.read();if(o)break;r.push(s);i+=(s===null||s===void 0?void 0:s.length)||0;const n={url:t.url,bytes:i,contentLength:a};this.notifyListeners("progress",n)}const c=new Uint8Array(i);let d=0;for(const t of r){if(typeof t==="undefined")continue;c.set(t,d);d+=t.length}n=new Blob([c.buffer],{type:o||undefined})}const a=await this.writeFile({path:t.path,directory:(i=t.directory)!==null&&i!==void 0?i:undefined,recursive:(r=t.recursive)!==null&&r!==void 0?r:false,data:n});return{path:a.uri,blob:n}}}async initDb(){if(this._db!==undefined){return this._db}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return new Promise(((t,e)=>{const i=indexedDB.open(this.DB_NAME,this.DB_VERSION);i.onupgradeneeded=s.doUpgrade;i.onsuccess=()=>{this._db=i.result;t(i.result)};i.onerror=()=>e(i.error);i.onblocked=()=>{console.warn("db blocked")}}))}static doUpgrade(t){const e=t.target;const i=e.result;switch(t.oldVersion){case 0:case 1:default:{if(i.objectStoreNames.contains("FileStorage")){i.deleteObjectStore("FileStorage")}const t=i.createObjectStore("FileStorage",{keyPath:"path"});t.createIndex("by_folder","folder")}}}async dbRequest(t,e){const i=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return this.initDb().then((r=>new Promise(((o,s)=>{const n=r.transaction(["FileStorage"],i);const a=n.objectStore("FileStorage");const c=a[t](...e);c.onsuccess=()=>o(c.result);c.onerror=()=>s(c.error)}))))}async dbIndexRequest(t,e,i){const r=this._writeCmds.indexOf(e)!==-1?"readwrite":"readonly";return this.initDb().then((o=>new Promise(((s,n)=>{const a=o.transaction(["FileStorage"],r);const c=a.objectStore("FileStorage");const d=c.index(t);const h=d[e](...i);h.onsuccess=()=>s(h.result);h.onerror=()=>n(h.error)}))))}getPath(t,e){const i=e!==undefined?e.replace(/^[/]+|[/]+$/g,""):"";let r="";if(t!==undefined)r+="/"+t;if(e!=="")r+="/"+i;return r}async clear(){const t=await this.initDb();const e=t.transaction(["FileStorage"],"readwrite");const i=e.objectStore("FileStorage");i.clear()}async readFile(t){const e=this.getPath(t.directory,t.path);const i=await this.dbRequest("get",[e]);if(i===undefined)throw Error("File does not exist.");return{data:i.content?i.content:""}}async writeFile(t){const e=this.getPath(t.directory,t.path);let i=t.data;const r=t.encoding;const o=t.recursive;const s=await this.dbRequest("get",[e]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const n=e.substr(0,e.lastIndexOf("/"));const a=await this.dbRequest("get",[n]);if(a===undefined){const e=n.indexOf("/",1);if(e!==-1){const i=n.substr(e);await this.mkdir({path:i,directory:t.directory,recursive:o})}}if(!r&&!(i instanceof Blob)){i=i.indexOf(",")>=0?i.split(",")[1]:i;if(!this.isBase64String(i))throw Error("The supplied data is not valid base64 content.")}const c=Date.now();const d={path:e,folder:n,type:"file",size:i instanceof Blob?i.size:i.length,ctime:c,mtime:c,content:i};await this.dbRequest("put",[d]);return{uri:d.path}}async appendFile(t){const e=this.getPath(t.directory,t.path);let i=t.data;const r=t.encoding;const o=e.substr(0,e.lastIndexOf("/"));const s=Date.now();let n=s;const a=await this.dbRequest("get",[e]);if(a&&a.type==="directory")throw Error("The supplied path is a directory.");const c=await this.dbRequest("get",[o]);if(c===undefined){const e=o.indexOf("/",1);if(e!==-1){const i=o.substr(e);await this.mkdir({path:i,directory:t.directory,recursive:true})}}if(!r&&!this.isBase64String(i))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!r){i=btoa(atob(a.content)+atob(i))}else{i=a.content+i}n=a.ctime}const d={path:e,folder:o,type:"file",size:i.length,ctime:n,mtime:s,content:i};await this.dbRequest("put",[d])}async deleteFile(t){const e=this.getPath(t.directory,t.path);const i=await this.dbRequest("get",[e]);if(i===undefined)throw Error("File does not exist.");const r=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(e)]);if(r.length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[e])}async mkdir(t){const e=this.getPath(t.directory,t.path);const i=t.recursive;const r=e.substr(0,e.lastIndexOf("/"));const o=(e.match(/\//g)||[]).length;const s=await this.dbRequest("get",[r]);const n=await this.dbRequest("get",[e]);if(o===1)throw Error("Cannot create Root directory");if(n!==undefined)throw Error("Current directory does already exist.");if(!i&&o!==2&&s===undefined)throw Error("Parent directory must exist");if(i&&o!==2&&s===undefined){const e=r.substr(r.indexOf("/",1));await this.mkdir({path:e,directory:t.directory,recursive:i})}const a=Date.now();const c={path:e,folder:r,type:"directory",size:0,ctime:a,mtime:a};await this.dbRequest("put",[c])}async rmdir(t){const{path:e,directory:i,recursive:r}=t;const o=this.getPath(i,e);const s=await this.dbRequest("get",[o]);if(s===undefined)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const n=await this.readdir({path:e,directory:i});if(n.files.length!==0&&!r)throw Error("Folder is not empty");for(const t of n.files){const o=`${e}/${t.name}`;const s=await this.stat({path:o,directory:i});if(s.type==="file"){await this.deleteFile({path:o,directory:i})}else{await this.rmdir({path:o,directory:i,recursive:r})}}await this.dbRequest("delete",[o])}async readdir(t){const e=this.getPath(t.directory,t.path);const i=await this.dbRequest("get",[e]);if(t.path!==""&&i===undefined)throw Error("Folder does not exist.");const r=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(e)]);const o=await Promise.all(r.map((async t=>{let i=await this.dbRequest("get",[t]);if(i===undefined){i=await this.dbRequest("get",[t+"/"])}return{name:t.substring(e.length+1),type:i.type,size:i.size,ctime:i.ctime,mtime:i.mtime,uri:i.path}})));return{files:o}}async getUri(t){const e=this.getPath(t.directory,t.path);let i=await this.dbRequest("get",[e]);if(i===undefined){i=await this.dbRequest("get",[e+"/"])}return{uri:(i===null||i===void 0?void 0:i.path)||e}}async stat(t){const e=this.getPath(t.directory,t.path);let i=await this.dbRequest("get",[e]);if(i===undefined){i=await this.dbRequest("get",[e+"/"])}if(i===undefined)throw Error("Entry does not exist.");return{type:i.type,size:i.size,ctime:i.ctime,mtime:i.mtime,uri:i.path}}async rename(t){await this._copy(t,true);return}async copy(t){return this._copy(t,false)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(t,e=false){let{toDirectory:r}=t;const{to:s,from:n,directory:a}=t;if(!s||!n){throw Error("Both to and from must be provided")}if(!r){r=a}const c=this.getPath(a,n);const d=this.getPath(r,s);if(c===d){return{uri:d}}if(o(c,d)){throw Error("To path cannot contain the from path")}let h;try{h=await this.stat({path:s,directory:r})}catch(t){const e=s.split("/");e.pop();const i=e.join("/");if(e.length>0){const t=await this.stat({path:i,directory:r});if(t.type!=="directory"){throw new Error("Parent directory of the to path is a file")}}}if(h&&h.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}const f=await this.stat({path:n,directory:a});const l=async(t,e,i)=>{const o=this.getPath(r,t);const s=await this.dbRequest("get",[o]);s.ctime=e;s.mtime=i;await this.dbRequest("put",[s])};const u=f.ctime?f.ctime:Date.now();switch(f.type){case"file":{const t=await this.readFile({path:n,directory:a});if(e){await this.deleteFile({path:n,directory:a})}let o;if(!(t.data instanceof Blob)&&!this.isBase64String(t.data)){o=i.UTF8}const c=await this.writeFile({path:s,directory:r,data:t.data,encoding:o});if(e){await l(s,u,f.mtime)}return c}case"directory":{if(h){throw Error("Cannot move a directory over an existing object")}try{await this.mkdir({path:s,directory:r,recursive:false});if(e){await l(s,u,f.mtime)}}catch(t){}const t=(await this.readdir({path:n,directory:a})).files;for(const i of t){await this._copy({from:`${n}/${i.name}`,to:`${s}/${i.name}`,directory:a,toDirectory:r},e)}if(e){await this.rmdir({path:n,directory:a})}}}return{uri:d}}isBase64String(t){try{return btoa(atob(t))==t}catch(t){return false}}}s._debug=true;export{s as FilesystemWeb};
|
|
2
|
+
//# sourceMappingURL=p-b0b7e072.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{d as e}from"./p-6d0668a6.js";function t(t,i,r,s,n,a,o,c,u){let d=`${t}outdoor_course/?language=${i}&published=true`;r&&(d+=`&in_bbox=${r}`);s&&(d+=`&cities=${s}`);n&&(d+=`&districts=${n}`);a&&(d+=`&structures=${a}`);o&&(d+=`&themes=${o}`);c&&(d+=`&portals=${c}`);d+=`&fields=id,name,geometry,accessibility,advice,attachments,children,cities,description,districts,duration,equipment,gear,height,length,max_elevation,min_elevation,parents,pdf,points_reference,provider,ratings,ratings_description,sites,structure,type`;return e(d,u)}function i(e,t,i,r){let s=`${e}outdoor_course/${i}/?language=${t}&published=true`;s+=`&fields=id,name,geometry,accessibility,advice,attachments,children,cities,description,districts,duration,equipment,gear,height,length,max_elevation,min_elevation,parents,pdf,points_reference,provider,ratings,ratings_description,sites,structure,type`;return fetch(s,r)}function r(e,t,i){let r=`${e}outdoor_coursetype/?language=${t}&published=true`;return fetch(r,i)}function s(t,i,r,s){return e(`${t}poi/?language=${i}&courses=${r}&published=true&fields=id,name,description,attachments,type,geometry`,s)}export{r as a,s as b,i as c,t as g};
|
|
2
|
+
//# sourceMappingURL=p-bc36f8a6.js.map
|
|
Binary file
|
|
Binary file
|