@geotrekce/geotrek-rando-widget 0.29.2 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (592) hide show
  1. package/dist/cjs/{call-a8e7c8f6.js → call-422e2bf4.js} +10 -2
  2. package/dist/cjs/call-422e2bf4.js.br +0 -0
  3. package/dist/cjs/call-422e2bf4.js.gz +0 -0
  4. package/dist/cjs/call-422e2bf4.js.map +1 -0
  5. package/dist/cjs/grw-app.cjs.entry.js +20 -17
  6. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  8. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  9. package/dist/cjs/grw-common-button_23.cjs.entry.js +295 -159
  10. package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
  11. package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
  12. package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
  13. package/dist/cjs/{grw-db.service-0ad254f2.js → grw-db.service-dde227e0.js} +2 -2
  14. package/dist/cjs/grw-db.service-dde227e0.js.br +0 -0
  15. package/dist/cjs/grw-db.service-dde227e0.js.gz +0 -0
  16. package/dist/cjs/{grw-db.service-0ad254f2.js.map → grw-db.service-dde227e0.js.map} +1 -1
  17. package/dist/cjs/grw-details-modal_8.cjs.entry.js +50 -34
  18. package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
  19. package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/grw-details-modal_8.cjs.entry.js.map +1 -1
  21. package/dist/cjs/grw-filter.cjs.entry.js +2 -2
  22. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  23. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +6 -6
  25. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
  26. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/grw-poi_3.cjs.entry.js +34 -18
  28. package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
  29. package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/grw-poi_3.cjs.entry.js.map +1 -1
  31. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +11 -11
  32. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
  33. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +3 -3
  35. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
  36. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/{outdoor-courses.service-4f9e4549.js → outdoor-courses.service-083411f5.js} +2 -2
  38. package/dist/cjs/outdoor-courses.service-083411f5.js.br +0 -0
  39. package/dist/cjs/outdoor-courses.service-083411f5.js.gz +0 -0
  40. package/dist/cjs/{outdoor-courses.service-4f9e4549.js.map → outdoor-courses.service-083411f5.js.map} +1 -1
  41. package/dist/cjs/{store-ac1ed8ce.js → store-65aa11bc.js} +5 -2
  42. package/dist/cjs/store-65aa11bc.js.br +0 -0
  43. package/dist/cjs/store-65aa11bc.js.gz +0 -0
  44. package/dist/cjs/store-65aa11bc.js.map +1 -0
  45. package/dist/cjs/{treks.service-5d19ad5f.js → treks.service-14b5765a.js} +14 -6
  46. package/dist/cjs/treks.service-14b5765a.js.br +0 -0
  47. package/dist/cjs/treks.service-14b5765a.js.gz +0 -0
  48. package/dist/cjs/treks.service-14b5765a.js.map +1 -0
  49. package/dist/cjs/{utils-934a22f0.js → utils-5c5c3fee.js} +3 -3
  50. package/dist/cjs/utils-5c5c3fee.js.br +0 -0
  51. package/dist/cjs/utils-5c5c3fee.js.gz +0 -0
  52. package/dist/cjs/{utils-934a22f0.js.map → utils-5c5c3fee.js.map} +1 -1
  53. package/dist/cjs/{web-fdb6c665.js → web-87e6d345.js} +3 -3
  54. package/dist/cjs/web-87e6d345.js.br +0 -0
  55. package/dist/cjs/web-87e6d345.js.gz +0 -0
  56. package/dist/cjs/{web-fdb6c665.js.map → web-87e6d345.js.map} +1 -1
  57. package/dist/collection/components/grw-app/grw-app.css +1 -1
  58. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  59. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  60. package/dist/collection/components/grw-app/grw-app.js +17 -14
  61. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  62. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  63. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  64. package/dist/collection/components/grw-map/grw-map.css +29 -0
  65. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  66. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  67. package/dist/collection/components/grw-map/grw-map.js +108 -51
  68. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  69. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  70. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  71. package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js +3 -3
  72. package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.br +0 -0
  73. package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.gz +0 -0
  74. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.css +1 -1
  75. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.css.br +0 -0
  76. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.css.gz +0 -0
  77. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.js +5 -5
  78. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.js.br +0 -0
  79. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.js.gz +0 -0
  80. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +4 -4
  81. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
  82. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
  83. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.css +1 -1
  84. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.css.br +0 -0
  85. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.css.gz +0 -0
  86. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.js +6 -6
  87. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.js.br +0 -0
  88. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.js.gz +0 -0
  89. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +7 -7
  90. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
  91. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
  92. package/dist/collection/components/grw-outdoor-sites-list/grw-outdoor-sites-list.js +1 -1
  93. package/dist/collection/components/grw-outdoor-sites-list/grw-outdoor-sites-list.js.br +0 -0
  94. package/dist/collection/components/grw-outdoor-sites-list/grw-outdoor-sites-list.js.gz +0 -0
  95. package/dist/collection/components/grw-poi-detail/grw-poi.css +5 -1
  96. package/dist/collection/components/grw-poi-detail/grw-poi.css.br +0 -0
  97. package/dist/collection/components/grw-poi-detail/grw-poi.css.gz +0 -0
  98. package/dist/collection/components/grw-poi-detail/grw-poi.js +20 -4
  99. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  100. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  101. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
  102. package/dist/collection/components/grw-search/grw-search.js +2 -2
  103. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  104. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  105. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js +2 -2
  106. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.br +0 -0
  107. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.gz +0 -0
  108. package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
  109. package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
  110. package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
  111. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +3 -3
  112. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.br +0 -0
  113. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.gz +0 -0
  114. package/dist/collection/components/grw-switch/grw-switch.js +2 -2
  115. package/dist/collection/components/grw-switch/grw-switch.js.br +0 -0
  116. package/dist/collection/components/grw-switch/grw-switch.js.gz +0 -0
  117. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js +2 -2
  118. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.br +0 -0
  119. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.gz +0 -0
  120. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css +1 -1
  121. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.br +0 -0
  122. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.gz +0 -0
  123. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +4 -4
  124. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
  125. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
  126. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +4 -4
  127. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  128. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  129. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js +1 -1
  130. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.br +0 -0
  131. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.gz +0 -0
  132. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css +1 -1
  133. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.br +0 -0
  134. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.gz +0 -0
  135. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +4 -4
  136. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
  137. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
  138. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +3 -3
  139. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  140. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  141. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +1 -1
  142. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
  143. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
  144. package/dist/collection/components/grw-trek-card/grw-trek-card.js +4 -4
  145. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  146. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  147. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +27 -0
  148. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  149. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  150. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +56 -37
  151. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  152. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  153. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  154. package/dist/collection/components/grw-treks-list/grw-treks-list.js +1 -1
  155. package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
  156. package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
  157. package/dist/collection/services/touristic-contents.service.js +3 -0
  158. package/dist/collection/services/touristic-contents.service.js.br +0 -0
  159. package/dist/collection/services/touristic-contents.service.js.gz +0 -0
  160. package/dist/collection/services/touristic-contents.service.js.map +1 -1
  161. package/dist/collection/services/touristic-events.service.js +3 -0
  162. package/dist/collection/services/touristic-events.service.js.br +0 -0
  163. package/dist/collection/services/touristic-events.service.js.gz +0 -0
  164. package/dist/collection/services/touristic-events.service.js.map +1 -1
  165. package/dist/collection/services/treks.service.js +9 -2
  166. package/dist/collection/services/treks.service.js.br +0 -0
  167. package/dist/collection/services/treks.service.js.gz +0 -0
  168. package/dist/collection/services/treks.service.js.map +1 -1
  169. package/dist/collection/store/grw-outdoor-course-provider.js +1 -1
  170. package/dist/collection/store/grw-outdoor-course-provider.js.br +0 -0
  171. package/dist/collection/store/grw-outdoor-course-provider.js.gz +0 -0
  172. package/dist/collection/store/grw-outdoor-courses-provider.js +1 -1
  173. package/dist/collection/store/grw-outdoor-courses-provider.js.br +0 -0
  174. package/dist/collection/store/grw-outdoor-courses-provider.js.gz +0 -0
  175. package/dist/collection/store/grw-outdoor-site-provider.js +1 -1
  176. package/dist/collection/store/grw-outdoor-site-provider.js.br +0 -0
  177. package/dist/collection/store/grw-outdoor-site-provider.js.gz +0 -0
  178. package/dist/collection/store/grw-outdoor-sites-provider.js +1 -1
  179. package/dist/collection/store/grw-outdoor-sites-provider.js.br +0 -0
  180. package/dist/collection/store/grw-outdoor-sites-provider.js.gz +0 -0
  181. package/dist/collection/store/grw-touristic-content-provider.js +13 -5
  182. package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
  183. package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
  184. package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
  185. package/dist/collection/store/grw-touristic-contents-provider.js +1 -1
  186. package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
  187. package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
  188. package/dist/collection/store/grw-touristic-event-provider.js +13 -5
  189. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  190. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  191. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  192. package/dist/collection/store/grw-touristic-events-provider.js +1 -1
  193. package/dist/collection/store/grw-touristic-events-provider.js.br +0 -0
  194. package/dist/collection/store/grw-touristic-events-provider.js.gz +0 -0
  195. package/dist/collection/store/grw-trek-provider.js +98 -38
  196. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  197. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  198. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  199. package/dist/collection/store/grw-treks-provider.js +1 -1
  200. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  201. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  202. package/dist/collection/store/store.js +4 -1
  203. package/dist/collection/store/store.js.br +0 -0
  204. package/dist/collection/store/store.js.gz +0 -0
  205. package/dist/collection/store/store.js.map +1 -1
  206. package/dist/esm/{call-e7ca34e9.js → call-c0c920b0.js} +9 -3
  207. package/dist/esm/call-c0c920b0.js.br +0 -0
  208. package/dist/esm/call-c0c920b0.js.gz +0 -0
  209. package/dist/esm/call-c0c920b0.js.map +1 -0
  210. package/dist/esm/grw-app.entry.js +20 -17
  211. package/dist/esm/grw-app.entry.js.br +0 -0
  212. package/dist/esm/grw-app.entry.js.gz +0 -0
  213. package/dist/esm/grw-app.entry.js.map +1 -1
  214. package/dist/esm/grw-common-button_23.entry.js +296 -160
  215. package/dist/esm/grw-common-button_23.entry.js.br +0 -0
  216. package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
  217. package/dist/esm/grw-common-button_23.entry.js.map +1 -1
  218. package/dist/esm/{grw-db.service-37105839.js → grw-db.service-83da38c9.js} +2 -2
  219. package/dist/esm/grw-db.service-83da38c9.js.br +0 -0
  220. package/dist/esm/grw-db.service-83da38c9.js.gz +0 -0
  221. package/dist/esm/{grw-db.service-37105839.js.map → grw-db.service-83da38c9.js.map} +1 -1
  222. package/dist/esm/grw-details-modal_8.entry.js +50 -34
  223. package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
  224. package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
  225. package/dist/esm/grw-details-modal_8.entry.js.map +1 -1
  226. package/dist/esm/grw-filter.entry.js +2 -2
  227. package/dist/esm/grw-filter.entry.js.br +0 -0
  228. package/dist/esm/grw-filter.entry.js.gz +0 -0
  229. package/dist/esm/grw-outdoor-courses-provider.entry.js +6 -6
  230. package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
  231. package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
  232. package/dist/esm/grw-poi_3.entry.js +34 -18
  233. package/dist/esm/grw-poi_3.entry.js.br +0 -0
  234. package/dist/esm/grw-poi_3.entry.js.gz +0 -0
  235. package/dist/esm/grw-poi_3.entry.js.map +1 -1
  236. package/dist/esm/grw-sensitive-area-detail_2.entry.js +11 -11
  237. package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
  238. package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  239. package/dist/esm/grw-toggle-slot-visibility.entry.js +3 -3
  240. package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
  241. package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
  242. package/dist/esm/{outdoor-courses.service-add4d256.js → outdoor-courses.service-d2397066.js} +2 -2
  243. package/dist/esm/outdoor-courses.service-d2397066.js.br +0 -0
  244. package/dist/esm/outdoor-courses.service-d2397066.js.gz +0 -0
  245. package/dist/esm/{outdoor-courses.service-add4d256.js.map → outdoor-courses.service-d2397066.js.map} +1 -1
  246. package/dist/esm/{store-04f82731.js → store-882ab9be.js} +5 -2
  247. package/dist/esm/store-882ab9be.js.br +0 -0
  248. package/dist/esm/store-882ab9be.js.gz +0 -0
  249. package/dist/esm/store-882ab9be.js.map +1 -0
  250. package/dist/esm/{treks.service-01e48d12.js → treks.service-a3ce33ef.js} +14 -7
  251. package/dist/esm/treks.service-a3ce33ef.js.br +0 -0
  252. package/dist/esm/treks.service-a3ce33ef.js.gz +0 -0
  253. package/dist/esm/treks.service-a3ce33ef.js.map +1 -0
  254. package/dist/esm/{utils-c2e5c5b9.js → utils-5feb9281.js} +3 -3
  255. package/dist/esm/utils-5feb9281.js.br +0 -0
  256. package/dist/esm/utils-5feb9281.js.gz +0 -0
  257. package/dist/esm/{utils-c2e5c5b9.js.map → utils-5feb9281.js.map} +1 -1
  258. package/dist/esm/{web-fdc4d63f.js → web-9ea89c85.js} +3 -3
  259. package/dist/esm/web-9ea89c85.js.br +0 -0
  260. package/dist/esm/web-9ea89c85.js.gz +0 -0
  261. package/dist/esm/{web-fdc4d63f.js.map → web-9ea89c85.js.map} +1 -1
  262. package/dist/esm-es5/{call-e7ca34e9.js → call-c0c920b0.js} +2 -2
  263. package/dist/esm-es5/call-c0c920b0.js.br +0 -0
  264. package/dist/esm-es5/call-c0c920b0.js.gz +0 -0
  265. package/dist/esm-es5/call-c0c920b0.js.map +1 -0
  266. package/dist/esm-es5/grw-app.entry.js +1 -1
  267. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  268. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  269. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  270. package/dist/esm-es5/grw-common-button_23.entry.js +2 -2
  271. package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
  272. package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
  273. package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
  274. package/dist/esm-es5/{grw-db.service-37105839.js → grw-db.service-83da38c9.js} +2 -2
  275. package/dist/esm-es5/grw-db.service-83da38c9.js.br +0 -0
  276. package/dist/esm-es5/grw-db.service-83da38c9.js.gz +0 -0
  277. package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
  278. package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
  279. package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
  280. package/dist/esm-es5/grw-details-modal_8.entry.js.map +1 -1
  281. package/dist/esm-es5/grw-filter.entry.js +1 -1
  282. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  283. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  284. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js +1 -1
  285. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
  286. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
  287. package/dist/esm-es5/grw-poi_3.entry.js +1 -1
  288. package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
  289. package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
  290. package/dist/esm-es5/grw-poi_3.entry.js.map +1 -1
  291. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
  292. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
  293. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  294. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
  295. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
  296. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
  297. package/dist/esm-es5/{outdoor-courses.service-add4d256.js → outdoor-courses.service-d2397066.js} +2 -2
  298. package/dist/esm-es5/outdoor-courses.service-d2397066.js.br +0 -0
  299. package/dist/esm-es5/outdoor-courses.service-d2397066.js.gz +0 -0
  300. package/dist/esm-es5/{store-04f82731.js → store-882ab9be.js} +2 -2
  301. package/dist/esm-es5/store-882ab9be.js.br +0 -0
  302. package/dist/esm-es5/store-882ab9be.js.gz +0 -0
  303. package/dist/esm-es5/store-882ab9be.js.map +1 -0
  304. package/dist/esm-es5/treks.service-a3ce33ef.js +2 -0
  305. package/dist/esm-es5/treks.service-a3ce33ef.js.br +0 -0
  306. package/dist/esm-es5/treks.service-a3ce33ef.js.gz +0 -0
  307. package/dist/esm-es5/treks.service-a3ce33ef.js.map +1 -0
  308. package/dist/esm-es5/{utils-c2e5c5b9.js → utils-5feb9281.js} +3 -3
  309. package/dist/esm-es5/utils-5feb9281.js.br +0 -0
  310. package/dist/esm-es5/utils-5feb9281.js.gz +0 -0
  311. package/dist/esm-es5/{web-fdc4d63f.js → web-9ea89c85.js} +2 -2
  312. package/dist/esm-es5/web-9ea89c85.js.br +0 -0
  313. package/dist/esm-es5/web-9ea89c85.js.gz +0 -0
  314. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  315. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  316. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  317. package/dist/geotrek-rando-widget/{p-10adcbc3.system.entry.js → p-0213328a.system.entry.js} +2 -2
  318. package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.br +0 -0
  319. package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.gz +0 -0
  320. package/dist/geotrek-rando-widget/{p-c08abeee.system.js → p-0dc681ee.system.js} +2 -2
  321. package/dist/geotrek-rando-widget/p-0dc681ee.system.js.br +0 -0
  322. package/dist/geotrek-rando-widget/p-0dc681ee.system.js.gz +0 -0
  323. package/dist/geotrek-rando-widget/p-111e4a10.entry.js +2 -0
  324. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.br +0 -0
  325. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.gz +0 -0
  326. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.map +1 -0
  327. package/dist/geotrek-rando-widget/p-20fa1207.entry.js +2 -0
  328. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.br +0 -0
  329. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.gz +0 -0
  330. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.map +1 -0
  331. package/dist/geotrek-rando-widget/{p-d77c26bd.system.js → p-315f99d3.system.js} +2 -2
  332. package/dist/geotrek-rando-widget/p-315f99d3.system.js.br +0 -0
  333. package/dist/geotrek-rando-widget/{p-d77c26bd.system.js.gz → p-315f99d3.system.js.gz} +0 -0
  334. package/dist/geotrek-rando-widget/{p-9298fb48.system.js → p-31cd5fb6.system.js} +2 -2
  335. package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.br +0 -0
  336. package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.gz +0 -0
  337. package/dist/geotrek-rando-widget/{p-7e076c7f.system.entry.js → p-346b21fe.system.entry.js} +2 -2
  338. package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.br +0 -0
  339. package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.gz +0 -0
  340. package/dist/geotrek-rando-widget/{p-74250f1d.system.entry.js → p-46cbc796.system.entry.js} +2 -2
  341. package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.br +0 -0
  342. package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.gz +0 -0
  343. package/dist/geotrek-rando-widget/{p-e622139c.entry.js → p-51c64ff4.entry.js} +2 -2
  344. package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.br +0 -0
  345. package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.gz +0 -0
  346. package/dist/geotrek-rando-widget/p-5517eb99.system.js +1 -1
  347. package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
  348. package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
  349. package/dist/geotrek-rando-widget/{p-0e80aabf.system.js → p-5a1c21ad.system.js} +3 -3
  350. package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.br +0 -0
  351. package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.gz +0 -0
  352. package/dist/geotrek-rando-widget/{p-11caf88d.entry.js → p-6287495f.entry.js} +2 -2
  353. package/dist/geotrek-rando-widget/p-6287495f.entry.js.br +0 -0
  354. package/dist/geotrek-rando-widget/p-6287495f.entry.js.gz +0 -0
  355. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js +2 -0
  356. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.br +0 -0
  357. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.gz +0 -0
  358. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.map +1 -0
  359. package/dist/geotrek-rando-widget/{p-7102a4d3.system.entry.js → p-6a4d2050.system.entry.js} +2 -2
  360. package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.br +0 -0
  361. package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.gz +0 -0
  362. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js +2 -0
  363. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.br +0 -0
  364. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.gz +0 -0
  365. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.map +1 -0
  366. package/dist/geotrek-rando-widget/p-722e446c.entry.js +4 -0
  367. package/dist/geotrek-rando-widget/p-722e446c.entry.js.br +0 -0
  368. package/dist/geotrek-rando-widget/p-722e446c.entry.js.gz +0 -0
  369. package/dist/geotrek-rando-widget/p-722e446c.entry.js.map +1 -0
  370. package/dist/geotrek-rando-widget/{p-4ab5c85d.js → p-76467e71.js} +2 -2
  371. package/dist/geotrek-rando-widget/p-76467e71.js.br +0 -0
  372. package/dist/geotrek-rando-widget/p-76467e71.js.gz +0 -0
  373. package/dist/geotrek-rando-widget/{p-00654bc2.js → p-844f4321.js} +3 -3
  374. package/dist/geotrek-rando-widget/p-844f4321.js.br +0 -0
  375. package/dist/geotrek-rando-widget/p-844f4321.js.gz +0 -0
  376. package/dist/geotrek-rando-widget/p-91d62770.entry.js +2 -0
  377. package/dist/geotrek-rando-widget/p-91d62770.entry.js.br +0 -0
  378. package/dist/geotrek-rando-widget/p-91d62770.entry.js.gz +0 -0
  379. package/dist/geotrek-rando-widget/{p-1ef5158a.entry.js.map → p-91d62770.entry.js.map} +1 -1
  380. package/dist/geotrek-rando-widget/{p-a0d6a0dc.js → p-b1ed0255.js} +2 -2
  381. package/dist/geotrek-rando-widget/p-b1ed0255.js.br +0 -0
  382. package/dist/geotrek-rando-widget/p-b1ed0255.js.gz +0 -0
  383. package/dist/geotrek-rando-widget/p-c61425f6.js +2 -0
  384. package/dist/geotrek-rando-widget/p-c61425f6.js.br +0 -0
  385. package/dist/geotrek-rando-widget/p-c61425f6.js.gz +0 -0
  386. package/dist/geotrek-rando-widget/p-c61425f6.js.map +1 -0
  387. package/dist/geotrek-rando-widget/{p-806676e7.js → p-c8f5ce61.js} +2 -2
  388. package/dist/geotrek-rando-widget/p-c8f5ce61.js.br +0 -0
  389. package/dist/geotrek-rando-widget/p-c8f5ce61.js.gz +0 -0
  390. package/dist/geotrek-rando-widget/p-c8f5ce61.js.map +1 -0
  391. package/dist/geotrek-rando-widget/p-d95cfb6f.js +2 -0
  392. package/dist/geotrek-rando-widget/p-d95cfb6f.js.br +0 -0
  393. package/dist/geotrek-rando-widget/p-d95cfb6f.js.gz +0 -0
  394. package/dist/geotrek-rando-widget/p-d95cfb6f.js.map +1 -0
  395. package/dist/geotrek-rando-widget/p-de029003.entry.js +2 -0
  396. package/dist/geotrek-rando-widget/p-de029003.entry.js.br +0 -0
  397. package/dist/geotrek-rando-widget/p-de029003.entry.js.gz +0 -0
  398. package/dist/geotrek-rando-widget/p-de029003.entry.js.map +1 -0
  399. package/dist/geotrek-rando-widget/p-e6471529.system.js +2 -0
  400. package/dist/geotrek-rando-widget/p-e6471529.system.js.br +0 -0
  401. package/dist/geotrek-rando-widget/p-e6471529.system.js.gz +0 -0
  402. package/dist/geotrek-rando-widget/p-e6471529.system.js.map +1 -0
  403. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js +2 -0
  404. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.br +0 -0
  405. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.gz +0 -0
  406. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.map +1 -0
  407. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js +2 -0
  408. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.br +0 -0
  409. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.gz +0 -0
  410. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js +2 -0
  411. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.br +0 -0
  412. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.gz +0 -0
  413. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.map +1 -0
  414. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js +4 -0
  415. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.br +0 -0
  416. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.gz +0 -0
  417. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.map +1 -0
  418. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js +2 -0
  419. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.br +0 -0
  420. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.gz +0 -0
  421. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.map +1 -0
  422. package/dist/geotrek-rando-widget/{p-601c8983.js → p-fcbe4bb6.js} +2 -2
  423. package/dist/geotrek-rando-widget/p-fcbe4bb6.js.br +0 -0
  424. package/dist/geotrek-rando-widget/p-fcbe4bb6.js.gz +0 -0
  425. package/dist/types/components/grw-app/grw-app.d.ts +1 -0
  426. package/dist/types/components/grw-map/grw-map.d.ts +5 -1
  427. package/dist/types/components/grw-poi-detail/grw-poi.d.ts +1 -0
  428. package/dist/types/services/touristic-contents.service.d.ts +1 -0
  429. package/dist/types/services/touristic-events.service.d.ts +1 -0
  430. package/dist/types/services/treks.service.d.ts +2 -1
  431. package/dist/types/store/store.d.ts +6 -0
  432. package/package.json +1 -1
  433. package/readme.md +1 -1
  434. package/dist/cjs/call-a8e7c8f6.js.br +0 -0
  435. package/dist/cjs/call-a8e7c8f6.js.gz +0 -0
  436. package/dist/cjs/call-a8e7c8f6.js.map +0 -1
  437. package/dist/cjs/grw-db.service-0ad254f2.js.br +0 -0
  438. package/dist/cjs/grw-db.service-0ad254f2.js.gz +0 -0
  439. package/dist/cjs/outdoor-courses.service-4f9e4549.js.br +0 -0
  440. package/dist/cjs/outdoor-courses.service-4f9e4549.js.gz +0 -0
  441. package/dist/cjs/store-ac1ed8ce.js.br +0 -0
  442. package/dist/cjs/store-ac1ed8ce.js.gz +0 -0
  443. package/dist/cjs/store-ac1ed8ce.js.map +0 -1
  444. package/dist/cjs/treks.service-5d19ad5f.js.br +0 -0
  445. package/dist/cjs/treks.service-5d19ad5f.js.gz +0 -0
  446. package/dist/cjs/treks.service-5d19ad5f.js.map +0 -1
  447. package/dist/cjs/utils-934a22f0.js.br +0 -0
  448. package/dist/cjs/utils-934a22f0.js.gz +0 -0
  449. package/dist/cjs/web-fdb6c665.js.br +0 -0
  450. package/dist/cjs/web-fdb6c665.js.gz +0 -0
  451. package/dist/esm/call-e7ca34e9.js.br +0 -0
  452. package/dist/esm/call-e7ca34e9.js.gz +0 -0
  453. package/dist/esm/call-e7ca34e9.js.map +0 -1
  454. package/dist/esm/grw-db.service-37105839.js.br +0 -0
  455. package/dist/esm/grw-db.service-37105839.js.gz +0 -0
  456. package/dist/esm/outdoor-courses.service-add4d256.js.br +0 -0
  457. package/dist/esm/outdoor-courses.service-add4d256.js.gz +0 -0
  458. package/dist/esm/store-04f82731.js.br +0 -0
  459. package/dist/esm/store-04f82731.js.gz +0 -0
  460. package/dist/esm/store-04f82731.js.map +0 -1
  461. package/dist/esm/treks.service-01e48d12.js.br +0 -0
  462. package/dist/esm/treks.service-01e48d12.js.gz +0 -0
  463. package/dist/esm/treks.service-01e48d12.js.map +0 -1
  464. package/dist/esm/utils-c2e5c5b9.js.br +0 -0
  465. package/dist/esm/utils-c2e5c5b9.js.gz +0 -0
  466. package/dist/esm/web-fdc4d63f.js.br +0 -0
  467. package/dist/esm/web-fdc4d63f.js.gz +0 -0
  468. package/dist/esm-es5/call-e7ca34e9.js.br +0 -0
  469. package/dist/esm-es5/call-e7ca34e9.js.gz +0 -0
  470. package/dist/esm-es5/call-e7ca34e9.js.map +0 -1
  471. package/dist/esm-es5/grw-db.service-37105839.js.br +0 -0
  472. package/dist/esm-es5/grw-db.service-37105839.js.gz +0 -0
  473. package/dist/esm-es5/outdoor-courses.service-add4d256.js.br +0 -0
  474. package/dist/esm-es5/outdoor-courses.service-add4d256.js.gz +0 -0
  475. package/dist/esm-es5/store-04f82731.js.br +0 -0
  476. package/dist/esm-es5/store-04f82731.js.gz +0 -0
  477. package/dist/esm-es5/store-04f82731.js.map +0 -1
  478. package/dist/esm-es5/treks.service-01e48d12.js +0 -2
  479. package/dist/esm-es5/treks.service-01e48d12.js.br +0 -0
  480. package/dist/esm-es5/treks.service-01e48d12.js.gz +0 -0
  481. package/dist/esm-es5/treks.service-01e48d12.js.map +0 -1
  482. package/dist/esm-es5/utils-c2e5c5b9.js.br +0 -0
  483. package/dist/esm-es5/utils-c2e5c5b9.js.gz +0 -0
  484. package/dist/esm-es5/web-fdc4d63f.js.br +0 -0
  485. package/dist/esm-es5/web-fdc4d63f.js.gz +0 -0
  486. package/dist/geotrek-rando-widget/p-00654bc2.js.br +0 -0
  487. package/dist/geotrek-rando-widget/p-00654bc2.js.gz +0 -0
  488. package/dist/geotrek-rando-widget/p-0e80aabf.system.js.br +0 -0
  489. package/dist/geotrek-rando-widget/p-0e80aabf.system.js.gz +0 -0
  490. package/dist/geotrek-rando-widget/p-10adcbc3.system.entry.js.br +0 -0
  491. package/dist/geotrek-rando-widget/p-10adcbc3.system.entry.js.gz +0 -0
  492. package/dist/geotrek-rando-widget/p-11caf88d.entry.js.br +0 -0
  493. package/dist/geotrek-rando-widget/p-11caf88d.entry.js.gz +0 -0
  494. package/dist/geotrek-rando-widget/p-1ef5158a.entry.js +0 -2
  495. package/dist/geotrek-rando-widget/p-1ef5158a.entry.js.br +0 -0
  496. package/dist/geotrek-rando-widget/p-1ef5158a.entry.js.gz +0 -0
  497. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js +0 -2
  498. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js.br +0 -0
  499. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js.gz +0 -0
  500. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js.map +0 -1
  501. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js +0 -2
  502. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js.br +0 -0
  503. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js.gz +0 -0
  504. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js.map +0 -1
  505. package/dist/geotrek-rando-widget/p-4ab5c85d.js.br +0 -0
  506. package/dist/geotrek-rando-widget/p-4ab5c85d.js.gz +0 -0
  507. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js +0 -2
  508. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js.br +0 -0
  509. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js.gz +0 -0
  510. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js.map +0 -1
  511. package/dist/geotrek-rando-widget/p-5e1d038f.system.js +0 -2
  512. package/dist/geotrek-rando-widget/p-5e1d038f.system.js.br +0 -0
  513. package/dist/geotrek-rando-widget/p-5e1d038f.system.js.gz +0 -0
  514. package/dist/geotrek-rando-widget/p-5e1d038f.system.js.map +0 -1
  515. package/dist/geotrek-rando-widget/p-601c8983.js.br +0 -0
  516. package/dist/geotrek-rando-widget/p-601c8983.js.gz +0 -0
  517. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js +0 -2
  518. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js.br +0 -0
  519. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js.gz +0 -0
  520. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js.map +0 -1
  521. package/dist/geotrek-rando-widget/p-7102a4d3.system.entry.js.br +0 -0
  522. package/dist/geotrek-rando-widget/p-7102a4d3.system.entry.js.gz +0 -0
  523. package/dist/geotrek-rando-widget/p-74250f1d.system.entry.js.br +0 -0
  524. package/dist/geotrek-rando-widget/p-74250f1d.system.entry.js.gz +0 -0
  525. package/dist/geotrek-rando-widget/p-7a333892.system.js +0 -2
  526. package/dist/geotrek-rando-widget/p-7a333892.system.js.br +0 -0
  527. package/dist/geotrek-rando-widget/p-7a333892.system.js.gz +0 -0
  528. package/dist/geotrek-rando-widget/p-7a333892.system.js.map +0 -1
  529. package/dist/geotrek-rando-widget/p-7e076c7f.system.entry.js.br +0 -0
  530. package/dist/geotrek-rando-widget/p-7e076c7f.system.entry.js.gz +0 -0
  531. package/dist/geotrek-rando-widget/p-806676e7.js.br +0 -0
  532. package/dist/geotrek-rando-widget/p-806676e7.js.gz +0 -0
  533. package/dist/geotrek-rando-widget/p-806676e7.js.map +0 -1
  534. package/dist/geotrek-rando-widget/p-85aa6ae4.js +0 -2
  535. package/dist/geotrek-rando-widget/p-85aa6ae4.js.br +0 -0
  536. package/dist/geotrek-rando-widget/p-85aa6ae4.js.gz +0 -0
  537. package/dist/geotrek-rando-widget/p-85aa6ae4.js.map +0 -1
  538. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js +0 -2
  539. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js.br +0 -0
  540. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js.gz +0 -0
  541. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js.map +0 -1
  542. package/dist/geotrek-rando-widget/p-906264e3.entry.js +0 -4
  543. package/dist/geotrek-rando-widget/p-906264e3.entry.js.br +0 -0
  544. package/dist/geotrek-rando-widget/p-906264e3.entry.js.gz +0 -0
  545. package/dist/geotrek-rando-widget/p-906264e3.entry.js.map +0 -1
  546. package/dist/geotrek-rando-widget/p-9298fb48.system.js.br +0 -0
  547. package/dist/geotrek-rando-widget/p-9298fb48.system.js.gz +0 -0
  548. package/dist/geotrek-rando-widget/p-a0d6a0dc.js.br +0 -0
  549. package/dist/geotrek-rando-widget/p-a0d6a0dc.js.gz +0 -0
  550. package/dist/geotrek-rando-widget/p-a9faad14.entry.js +0 -2
  551. package/dist/geotrek-rando-widget/p-a9faad14.entry.js.br +0 -0
  552. package/dist/geotrek-rando-widget/p-a9faad14.entry.js.gz +0 -0
  553. package/dist/geotrek-rando-widget/p-a9faad14.entry.js.map +0 -1
  554. package/dist/geotrek-rando-widget/p-bb81fb52.js +0 -2
  555. package/dist/geotrek-rando-widget/p-bb81fb52.js.br +0 -0
  556. package/dist/geotrek-rando-widget/p-bb81fb52.js.gz +0 -0
  557. package/dist/geotrek-rando-widget/p-bb81fb52.js.map +0 -1
  558. package/dist/geotrek-rando-widget/p-c08abeee.system.js.br +0 -0
  559. package/dist/geotrek-rando-widget/p-c08abeee.system.js.gz +0 -0
  560. package/dist/geotrek-rando-widget/p-d77c26bd.system.js.br +0 -0
  561. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js +0 -2
  562. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js.br +0 -0
  563. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js.gz +0 -0
  564. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js.map +0 -1
  565. package/dist/geotrek-rando-widget/p-e4da40fc.entry.js +0 -2
  566. package/dist/geotrek-rando-widget/p-e4da40fc.entry.js.br +0 -0
  567. package/dist/geotrek-rando-widget/p-e4da40fc.entry.js.gz +0 -0
  568. package/dist/geotrek-rando-widget/p-e622139c.entry.js.br +0 -0
  569. package/dist/geotrek-rando-widget/p-e622139c.entry.js.gz +0 -0
  570. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js +0 -4
  571. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js.br +0 -0
  572. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js.gz +0 -0
  573. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js.map +0 -1
  574. /package/dist/esm-es5/{grw-db.service-37105839.js.map → grw-db.service-83da38c9.js.map} +0 -0
  575. /package/dist/esm-es5/{outdoor-courses.service-add4d256.js.map → outdoor-courses.service-d2397066.js.map} +0 -0
  576. /package/dist/esm-es5/{utils-c2e5c5b9.js.map → utils-5feb9281.js.map} +0 -0
  577. /package/dist/esm-es5/{web-fdc4d63f.js.map → web-9ea89c85.js.map} +0 -0
  578. /package/dist/geotrek-rando-widget/{p-10adcbc3.system.entry.js.map → p-0213328a.system.entry.js.map} +0 -0
  579. /package/dist/geotrek-rando-widget/{p-c08abeee.system.js.map → p-0dc681ee.system.js.map} +0 -0
  580. /package/dist/geotrek-rando-widget/{p-d77c26bd.system.js.map → p-315f99d3.system.js.map} +0 -0
  581. /package/dist/geotrek-rando-widget/{p-9298fb48.system.js.map → p-31cd5fb6.system.js.map} +0 -0
  582. /package/dist/geotrek-rando-widget/{p-7e076c7f.system.entry.js.map → p-346b21fe.system.entry.js.map} +0 -0
  583. /package/dist/geotrek-rando-widget/{p-74250f1d.system.entry.js.map → p-46cbc796.system.entry.js.map} +0 -0
  584. /package/dist/geotrek-rando-widget/{p-e622139c.entry.js.map → p-51c64ff4.entry.js.map} +0 -0
  585. /package/dist/geotrek-rando-widget/{p-0e80aabf.system.js.map → p-5a1c21ad.system.js.map} +0 -0
  586. /package/dist/geotrek-rando-widget/{p-11caf88d.entry.js.map → p-6287495f.entry.js.map} +0 -0
  587. /package/dist/geotrek-rando-widget/{p-7102a4d3.system.entry.js.map → p-6a4d2050.system.entry.js.map} +0 -0
  588. /package/dist/geotrek-rando-widget/{p-4ab5c85d.js.map → p-76467e71.js.map} +0 -0
  589. /package/dist/geotrek-rando-widget/{p-00654bc2.js.map → p-844f4321.js.map} +0 -0
  590. /package/dist/geotrek-rando-widget/{p-a0d6a0dc.js.map → p-b1ed0255.js.map} +0 -0
  591. /package/dist/geotrek-rando-widget/{p-e4da40fc.entry.js.map → p-eeedb77e.entry.js.map} +0 -0
  592. /package/dist/geotrek-rando-widget/{p-601c8983.js.map → p-fcbe4bb6.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,c as createEvent,e as getAssetPath,f as forceUpdate,g as getElement,F as Fragment}from"./index-83d78b30.js";import{t as translate}from"./i18n-d4785001.js";import{s as state,o as onChange}from"./store-04f82731.js";import{t as treksFilters,h as handleTreksFiltersAndSearch,e as touristicContentsFilters,f as touristicEventsFilters,o as outdoorSitesFilters,j as handleTouristicContentsFiltersAndSearch,k as handleTouristicEventsFiltersAndSearch,a as handleOutdoorSitesFiltersAndSearch,C as Capacitor,c as checkFileInStore,l as getFileInStore,F as Filesystem,D as Directory,m as formatDuration,n as formatLength,p as formatAscent,s as setFilesFromStore,i as imagesRegExp,d as getAllPaginatedResults,q as formatDescent,u as durations,v as lengths,w as elevations}from"./utils-c2e5c5b9.js";import{l as leafletSrc,c as commonjsGlobal,L as L$1,b as bundle,a as getDataInStore,h as handleOfflineProperty,g as getAllDataInStore,w as writeOrUpdateDataInStore,d as writeOrUpdateFilesInStore,e as writeOrUpdateTilesInStore}from"./grw-db.service-37105839.js";import{c as getTrekGeometry,g as getCities,a as getDistricts,b as getThemes,d as getSources,e as getInformationsDesks,f as getTreksList,h as getTrek,i as getPoisNearTrek,j as getSensitiveAreasNearTrek,k as getSignages,l as getTrekNetwork,m as getTrekAccessibility,n as getLabel,t as trekIsAvailableOffline}from"./treks.service-01e48d12.js";import{g as getDocument,c as createElementIfNotDefined,a as createElement,n as nextTick,e as elementOffset,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-1f55c22a.js";import{f as freeMode,M as Mousewheel,C as CloseIcon,D as DownloadIcon,g as getTouristicContentsNearOutdoorCourse,a as getTouristicContentCategory,b as getTouristicEventsNearOutdoorCourse,c as getTouristicEventType,d as getTouristicContentsNearOutdoorSite,e as getTouristicEventsNearOutdoorSite,h as getTouristicContentsList,i as getTouristicEventsList,j as getTouristicContentsNearTrek,k as getTouristicEventsNearTrek,l as CallIcon}from"./call-e7ca34e9.js";import{T as TimelapseIcon,O as OpenInFullIcon,M as MovingIcon}from"./moving-c644d077.js";import{a as getOutdoorCourseTypes,b as getPoisNearCourse,c as getOutdoorCourse}from"./outdoor-courses.service-add4d256.js";var RefreshIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"/></svg>';var FilterListIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>';var grwCommonButtonCss=".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;height:44px}.common-button .common-button-icon{font-size:18px}";var GrwCommonButtonStyle0=grwCommonButtonCss;var GrwCommonButton=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"20934a73599663dde31e5d2e44e7d4e07c6abb3a",style:{"--font-family":this.fontFamily}},h("button",{key:"10660a565bebc2e2d68197291b58e4f0f707439f",part:"common-button",class:"common-button",onClick:function(){return t.action()}},h("span",{key:"89ac4803284dec581c71da1622b5dea2f86254b0",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?RefreshIcon:FilterListIcon}),h("span",{key:"96d918bc3f3d02424acd7050131bf8ddedc12406",part:"common-button-label",class:"label"},this.name)))};return t}();GrwCommonButton.style=GrwCommonButtonStyle0;var grwFiltersCss='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container,.filters-container .filters-outdoor-sites-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';var GrwFiltersStyle0=grwFiltersCss;var GrwFilters=function(){function t(t){registerInstance(this,t);this.resetFilter=createEvent(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.fontFamily="Roboto"}t.prototype.handleEraseTreksFilters=function(){treksFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;state.currentTreks=handleTreksFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTreksFilters=function(){this.handleFilters()};t.prototype.handleSelectedSegment=function(t){this.selectedSegment=t};t.prototype.handleSegment=function(t){if(state.mode==="treks"){return treksFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="touristicContents"){return touristicContentsFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="touristicEvents"){return touristicEventsFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="outdoor"){return outdoorSitesFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}};t.prototype.handleEraseTouristicContentsFilters=function(){touristicContentsFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicContents=handleTouristicContentsFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};t.prototype.handleEraseTouristicEventsFilters=function(){touristicEventsFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};t.prototype.handleEraseOutdoorSitesFilters=function(){outdoorSitesFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkOutdoorSitesFilters=function(){this.handleFilters()};t.prototype.render=function(){var t=this;return h(Host,{key:"7cb0827af20aec71998635f772961892bae64782",style:{"--font-family":this.fontFamily}},h("div",{key:"7ca850687d5c240429364fce16a2e985f4d14a69",part:"options-container",class:"options-container"},h("div",{key:"0608d1e60c4e3a3466f16907ed1a87a1a0500cbf",part:"filters-container",class:"filters-container"},state.mode==="treks"&&h("div",{key:"bb266f50acbf0c404f7ac64dfde538f8327db50b",part:"filters-treks-container",class:"filters-treks-container"},h("div",{key:"68e8bffaf9784038487f1383e3c26d4a7e7ec8d6",part:"filters-options-container",class:"filters-options-container"},state.treksWithinBounds&&h("div",{key:"d22377ccd74aa51463270f5bd922bd15159aeff7",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"d99afb8765bb918f10d2662b4b525c3bccf94014",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"1e976bf1b4f85e33e5861653d19311e019a9534b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{key:"761793867f49f477f013946e1eaefd09e1d29a2a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{key:"ac29966072168933f7905845d255dcf058dcda82",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"0d8b89703a4286d2287b8a86c6bf7709faa8e615",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].home.segment.treks," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{key:"1c57830b534b5f2fe9e9a3d8c7fdb70840ccdb3a",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},translate[state.language].themes," ",state.selectedThemesFilters!==0&&"(".concat(state.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"3644ee38d8f452a6ec6f3a3a2fbdeb2278ed25f8",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"1c6468c5daf78faa0e1c81896896951f2d0d9d12",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},state["practices"].length>0&&h("div",{key:"0a63d2022609cabcd4811ba0a3465a6b62d1222b",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"99a5b02f8d81082d6fda024ea3cf9e943f5cb6e1",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderPractices})),state["difficulties"].length>0&&h("div",{key:"00867ddca97044ae17ff7f404d50116c7c7a1571",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"cfbcd5a30e22caa42708ff47fb868bd63a77c814",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderDifficulties})),state["durations"].length>0&&h("div",{key:"d1eec8a2747f52e7ab23d06a5317640904cb8932",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"6239dc492b7203c008d24a91faaa03b3d5234a82",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderDurations})),state["lengths"].length>0&&h("div",{key:"108e2a5a071b8b1d2407873efe5275a2b5548329",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"b0b25767deb8c55678e34be1d14677182b86e0ab",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderLengths})),state["elevations"].length>0&&h("div",{key:"23c722fa4f015a7d1e962b7e13a352770362c366",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"2a9bc4968ccb250ae43dc36d3064283e2ea631a8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderElevations})),state["routes"].length>0&&h("div",{key:"081b49faab7f24cd5444a5f3856d9a1ae75fae0e",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"9da94f9ce99386a1a3fa9938f85fcdea3cfccfe4",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderRoutes})),state["accessibilities"].length>0&&h("div",{key:"abc8b5530dbaaee862712b0400f9694504e225f7",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"b9dac8b1b9c93051920f5120f73f758c18ee2867",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderAccessibilities})),state["labels"].length>0&&h("div",{key:"b514da44c0a95b792d527e88c7d0e9a74cf70635",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"71be7fb25371586f1ad1b44f136be028582bd5f9",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},state["themes"].length>0&&h("div",{key:"0c0ae67b8266db5364a746edde0dd74b8c81535c",part:"",class:"filter-container"},h("grw-filter",{key:"39bec081b3ca8506378a7478f8d27a4d88589b8a",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},state["districts"].length>0&&h("div",{key:"d3832fe24e8925133b2e7044675b88b3a84668d4",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"7bd9147852d6d8e5b1aa4e407636dace41b45950",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"f798c02a9811f4726a6efdd20bb29e789c64a435",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"a2497727878f08ca6833c8b8cf14461984ea91e2",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicContents"&&h("div",{key:"7ff7afa469ec1f70a2c65891c40673b749d01f03",part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},h("div",{key:"d26d5e679ee89784aa7bfab9880733aea80cb25b",part:"filters-options-container",class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{key:"ffa578e5c8700a02f3532d7cfe73786adf99600c",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"3b2dd444be31e090a93a77884187533d706ac54d",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"22b85f396c036f1c53538cdbfb6cf4eb6bfed91a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{key:"6c3ceb7d89b206396b68c3a40be88b9056846ab7",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{key:"7775cc54df6aa5ddcffcc6b761c6cd1426d86821",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"e85dd1dc7601c99140285bf2dd5ed8a0d804888d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].services," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"3cdf68426f8722b260587e06e3b7029f22690e8d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"a5b816a3e56c04f7b3d80d9a58b0d96c64e87626",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["touristicContentCategories"].length>0&&h("div",{key:"2c39f1384e2b49599b7eb040a0a2f5e7dbeaf52a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"e26190a8d6d43872b041e6519919e069a2230ffb",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},state["districts"].length>0&&h("div",{key:"326e0471f4d065f86a4e799b0369490eb2c6089a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"1c6c2742d7f33f13c8fc9268096d1e5f54e44369",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"491dc0f4101c21f6b396a3e529826a104b1e5044",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"d1774b6bd54a39d60745f5e819d6a65ebbd76fac",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicEvents"&&h("div",{key:"c348864948b70fd86e2f787c8e4663bbcd7bd797",part:"filters-touristic-events-container",class:"filters-touristic-events-container"},h("div",{key:"164ab5e697e32fdc98b4ace8d04058e8fb2a29f0",part:"filters-options-container",class:"filters-options-container"},state.touristicEventsWithinBounds&&h("div",{key:"845d53b5e85f258d0ee7adc53810ad49fd73d93b",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"a103291d00f28cd1edec0be589ed968c123963cf",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"cd0084e1b079006aa84459517dd05d8360c805b1",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},translate[state.language].erase),h("button",{key:"90d9a9543e6d9543ec666b06d2eb072a71f6d7fc",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},translate[state.language].ok))),h("div",{key:"a028044dc52dc04d58663163fbccd742699ab31f",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"7d37a03878eea6fdfc7be4b8c84eabdf85e8023f",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].services," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"4cf188f9d3c50482d5cd515941929c4d7fb307cd",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"135f6b451a25254c81920a89ecb511834cbacda3",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["touristicEventTypes"].length>0&&h("div",{key:"9c62a23f0c9d70c9ec60a0ef1440c567a0df3b3c",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"5414ba2979bf112516d42fde4b2de23e3ed37936",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].type,filterPlaceholder:translate[state.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},state["districts"].length>0&&h("div",{key:"aa6e6933f9394e9448274f782cfa81a271510bd0",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"dac40ec18d9dc3f1c00e45f80c8150217c47d8bf",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"a80b5c285f00dcc89f131c048742b7c8f170a410",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"678695182e258c014b061fadf2f994c60f3a5b1e",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="outdoor"&&h("div",{key:"0aca784169b67e5f7bb08f427b7b9579d5c918b3",part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},h("div",{key:"59c1b969199440613d994dd04750fa248f5902a9",part:"filters-options-container",class:"filters-options-container"},state.outdoorSitesWithinBounds&&h("div",{key:"119faef0178c050e66b43ad2520aec585e77910c",part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].home.outdoorSites:translate[state.language].home.outdoorSite)),h("div",{key:"8638027f4f673ea2453a23e46e62d5a2030586eb",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"2ffd27a1bdc91be1bd328db313dc00b05a8cf85b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},translate[state.language].erase),h("button",{key:"c6a2adf9d00c0e2b112624942a6a4d6c80a6139a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},translate[state.language].ok))),h("div",{key:"8cc082dad59e4e304ab19d8303ee3b703faab76d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"ea4cef9ee95e5e19495d13767150a632a30e314d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].home.segment.outdoorSites," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{key:"3807ad0c400b66c30ae3cd7ae8483b4b16699df0",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},translate[state.language].themes," ",state.selectedThemesFilters!==0&&"(".concat(state.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"41833fbbe64154b7b8e8e9bdaec14f7cbdab6202",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"0d72e1572521e536593e9cf928b47664074febde",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["outdoorPractices"].length>0&&h("div",{key:"2d57106ff3c8a996927aa12f12485ac6e3667f5a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"34d61290f728c3bb89122f7bd39c52847f0c16a5",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].practice,filterPlaceholder:translate[state.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["outdoorSiteTypes"].length>0&&h("div",{key:"d624787d8a82df90196aa684d0ab314bcc454583",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"1f786587372e88148d3386585a6de96e3a44c121",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},state["themes"].length>0&&h("div",{key:"74df99c7f261902662125f04dfff5d58377735cf",part:"",class:"filter-container"},h("grw-filter",{key:"ab3055ff3652cfbd72a3020bd14f798385fafd57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},state["districts"].length>0&&h("div",{key:"e541bb845bb3df017711368796e7262fe6eec179",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"3b1266c88bbcad0a2953065c81ba12fff62defc8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"5d8f67bb98692023f243d151b6ec05244827155c",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"5beca62535975404d512fc7ebd9c7af320071b57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),h("div",{key:"83051ed904bf12db211d03a90576213d510d14aa",part:"back-filters-container",class:"back-filters-container",onClick:function(){return t.handleFilters()}})))};return t}();GrwFilters.style=GrwFiltersStyle0;var grwLoaderCss=".loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";var GrwLoaderStyle0=grwLoaderCss;var GrwLoader=function(){function t(t){registerInstance(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}t.prototype.render=function(){return h(Host,{key:"7bfffe55c6ad0d9e710d0ecac80eae6e1d2b82fb",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},h("span",{key:"ff3f0d45fde66ff7fe393bee41d8f74ca8e672d4",part:"loader",class:"loader"}))};return t}();GrwLoader.style=GrwLoaderStyle0;var Leaflet_i18n={exports:{}};(function(t,e){(function(e,i){{t.exports=e(leafletSrc.exports)}if(typeof i!=="undefined"&&i.L){e(i.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function e(i,r){t.locales[i]=t.Util.extend({},t.locales[i],r)};t.setLocale=function e(i){t.locale=i};return t.i18n=t._=function e(i,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][i]!=="undefined"){i=t.locales[t.locale][i]}try{i=t.Util.template(i,r)}catch(t){}return i}}),window)})(Leaflet_i18n);var leafletElevation_min={exports:{}};(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(leafletSrc.exports),void 0!==i&&i.L&&e(i.L)}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,i){t.locales[e]=t.Util.extend({},t.locales[e],i)},t.setLocale=function(e){t.locale=e},t.i18n=t._=function(e,i){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,i)}catch(t){}return e}}),window);var e=6e4,i=60*e,r=24*i;function a(t){var a=Math.floor(t/r),n=Math.floor((t-a*r)/i),o=Math.floor((t-a*r-n*i)/e),s=Math.round((t-a*r-n*i-o*e)/1e3);return 60===s&&(o++,s=0),60===o&&(n++,o=0),24===n&&(a++,n=0),(a?a+"d ":"")+n.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function n(t,e){var i=b("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function o(t,e,i){return!1===e?Promise.resolve():i instanceof Promise?i:new Promise((function(e,i){var r=document.createElement("script");r.addEventListener("load",e,{once:!0}),r.src=t,document.head.appendChild(r)}))}function s(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath()}function c(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function d(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function u(t,e,i){return(i?l:d).call(null,t,e)}function p(t,e,i){e&&d(t,e),i&&l(t,i)}function f(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function h(t,e,i,r){return f(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function b(t,e,i,r){var a=L.DomUtil.create(t,e||"");return i&&w(a,i),r&&v(r,a),a}function v(t,e){return t.appendChild(e)}function g(t,e,i){return t.insertAdjacentElement(i,e)}function w(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var y=L.DomEvent.on,x=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function z(t,e){for(var i in t)e(t[i],i)}var C=Object.freeze({__proto__:null,formatTime:a,saveFile:n,lazyLoader:o,drawCanvas:s,clamp:c,addClass:l,removeClass:d,toggleClass:u,replaceClass:p,style:f,toggleStyle:h,toggleEvent:m,create:b,append:v,insert:g,setAttributes:w,select:k,on:y,off:x,hasClass:A,randomId:_,each:z}),O={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},S=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,a=t.scaleX,n=t.scaleY,o=t.interpolation,s=void 0===o?"curveLinear":o;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(t){return t.xDiagCoord=a(t[i])})).y0(e).y1((function(t){return n(t[r])}))},F=function(t){var e=t.name,i=t.color,r=t.strokeColor,a=t.strokeOpacity,n=t.fillOpacity,o=d3.create("svg:path");return e&&o.classed(e,!0),o.style("pointer-events","none"),o.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",a||"1").attr("fill-opacity",n||"0.8"),o},P=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,a=void 0===r?6:r,n=t.tickPadding,o=void 0===n?3:n,s=t.position,c=t.height,l=t.width,d=t.axis,u=t.scale,p=t.ticks,f=t.tickFormat,h=t.label,m=t.labelX,b=t.labelY,v=t.name,g=void 0===v?"":v,w=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==s&&(r=c),"right"==s&&(e=l),"x"==d&&"grid"==i?a=-c:"y"==d&&"grid"==i&&(a=-l);var n=d3["axis"+s.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(u).ticks(p).tickPadding(o).tickSize(a).tickFormat(f),v=t.append("g").attr("class",[d,i,s,g].join(" ")).attr("transform","translate("+e+","+r+")").call(n);return h&&v.append("svg:text").attr("x",m).attr("y",b).text(h),w&&v.call(w),v}},M=function(t){return t.type="grid",P(t)},T=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,a=t.yCoord,n=void 0===a?0:a,o=t.labels,s=void 0===o?{}:o,c=t.item,l=void 0===c?{}:c,d=t.length,u=void 0===d?0:d;return function(t){t.attr("class","height-focus-group");var i,a=t.select(".height-focus.line"),o=t.select(".height-focus.circle-lower"),c=t.select(".height-focus-label");return a.node()||(a=t.append("svg:line")),o.node()||(o=t.append("svg:circle")),c.node()||(c=t.append("svg:text")),isNaN(r)||isNaN(n)||(o.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+n+")").attr("r",6).attr("cx",0).attr("cy",0),a.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",n).attr("y2",u),c.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(i=c.select(".height-focus-"+s[t].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+s[t].name).attr("dy","1.5em")),i.text("function"!=typeof s[t].value?s[t].value:s[t].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),t}},I=function(t){var e=t.name,i=t.label,r=t.width,a=t.height,n=t.margins,o=void 0===n?{}:n,s=t.color,c=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:c.node(),name:e,legend:t.node(),enabled:!c.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",a+o.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",a+o.bottom/2).attr("dy","0.75em"),t}},E=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,a=t.height,n=t.labels,o=void 0===n?{}:n,s=t.item,c=void 0===s?{}:s;return function(t){var n=t.select(".mouse-focus-line"),s=t.select(".mouse-focus-label");n.node()||(n=t.append("svg:line")),s.node()||(s=t.append("g"));var l=s.select(".mouse-focus-label-rect"),d=s.select(".mouse-focus-label-text");l.node()||(l=s.append("svg:rect")),d.node()||(d=s.append("svg:text"));var u,p=0,f=0,h={width:0,height:0};try{h=d.node().getBBox()}catch(e){return t}return e&&(p=e+(e<r/2?10:-h.width-10)),i&&(f=Math.max(i-h.height,L.Browser.webkit?0:-1/0)),n.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",a),s.attr("class","mouse-focus-label"),l.attr("class","mouse-focus-label-rect").attr("x",p-5).attr("y",f-5).attr("width",h.width+10).attr("height",h.height+10).attr("rx",3).attr("ry",3),d.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",f),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(u=d.select(".mouse-focus-label-"+o[t].name)).size()||(u=d.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+o[t].name).attr("dy","1.5em")),u.text("function"!=typeof o[t].value?o[t].value:o[t].value(c))})),d.select("tspan").attr("dy","1em"),d.selectAll("tspan").attr("x",p),t}},B=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),a=t.selectAll(".horizontal-drag-line").data([{w:i}]),n=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),o=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),a.exit().remove(),n.exit().remove(),o.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),a.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(a).attr("x2",(function(t){return t.w})),n.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(n).attr("x",(function(t){return t.w})),o.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(o).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return"translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},j=function(t){var e=t.point,i=t.height,r=t.width,a=t.x,n=t.y;return function(t){return isNaN(a)||isNaN(n)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:a,y:n}).attr("class",(function(t){return"point "+t.pos})).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-n,bottom:i-n}[e.position],x2:{left:-a,right:r-a}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},D=function(t){var e=t.min,i=t.max,r=t.attr,a=t.name,n=t.forceBounds,o=t.scale;return function(t){r=r||a,o&&o.attr&&(r=o.attr);var s=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<s[0]||n)&&(s[0]=e),void 0!==i&&(i>s[1]||n)&&(s[1]=i),s}},G=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},N=function(t){var e=t.data,i=t.attr,r=t.min,a=t.max,n=t.forceBounds,o=t.range;return d3.scaleLinear().range(o).domain(D({min:r,max:a,attr:i,forceBounds:n})(e))},R=function(t){var e=t.width,i=t.height,r=t.margins,a=void 0===r?{}:r,n=e-a.left-a.right,o=i-a.top-a.bottom,s=d3.create("svg:svg").attr("class","background"),c=s.append("g"),l={grid:c.append("g").attr("class","grid"),area:c.append("g").attr("class","area"),axis:c.append("g").attr("class","axis"),point:c.append("g").attr("class","point"),brush:c.append("g").attr("class","brush"),tooltip:c.append("g").attr("class","tooltip").attr("display","none"),ruler:c.append("g").attr("class","ruler"),legend:c.append("g").attr("class","legend")},d=l.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=d.append("svg:rect").attr("class","zoom").attr("fill","white"),p=l.area.append("svg:foreignObject").attr("mask","url(#"+d.attr("id")+")"),f=p.append("xhtml:canvas").attr("class","canvas-plot"),h=f.node().getContext("2d");l.tooltip.call(E({xCoord:0,yCoord:0,height:o,width:n,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return l.brush.select(".overlay").attr("cursor",null)})),b={mask:d,canvas:f,context:h,brush:m},v={svg:s,g:c,panes:l,utils:b,scale:function(t){return{x:N(t.x),y:N(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,a=void 0===r?{}:r,n=t.ruler,o=e-a.left-a.right,d=i-a.top-a.bottom;s.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),c.attr("transform","translate("+a.left+","+a.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&f.style("transform","translate("+a.left+"px,"+a.top+"px)"),u.attr("x",0).attr("y",0).attr("width",o).attr("height",d),p.attr("width",o).attr("height",d),f.attr("width",o).attr("height",d),n&&l.ruler.call(B({height:d,width:o})),l.brush.call(m.extent([[0,0],[o,d]])),l.brush.select(".overlay").attr("cursor",null),v._width=o,v._height=d,v.svg.dispatch("resize",{detail:{width:o,height:d}})},pane:function(t){return l[t]||(l[t]=c.append("g").attr("class",t)),l[t]},get:function(t){return b[t]}};return v._resize({width:e,height:i,margins:a}),v},Y=Object.freeze({__proto__:null,Colors:O,Area:S,Path:F,Axis:P,Grid:M,PositionMarker:T,LegendItem:I,Tooltip:E,Ruler:B,CheckPoint:j,Domain:D,Range:G,Scale:N,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,a=t.x,n=t.attr;return d3.bisector((function(t){return t[n]})).left(i,r.invert(a))},Chart:R}),H=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var i=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var r=this._chart=R(t);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){i._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return i._maskGaps.push(t.index)}))}))},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(t){var e=this._paths[t],i=this._props.areas[t];e.datum(this._data).attr("d",S(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?s(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],a=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:a,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),a=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[a]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,a=i.legend,n=i.name,o=i.enabled;if(r){var s=k("text",a),c=k("rect",a);h(s,"text-decoration-line","line-through",o),h(c,"fill-opacity","0",o),u(r,"leaflet-hidden",o),t._updateArea(),t.fire("elepath_toggle",{path:r,name:n,legend:a,enabled:o})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),a=t._ruler.data()[0].y;(a>=r||a<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var a=t._height(),n=d3.pointers(i,t._area.node())[0][1],o=n>0?n<a?n:a:0,s=t._y.invert(o),c=L.extend(t._ruler.data()[0],{y:o});t._ruler.data([c]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",o<a),t._container.select(".horizontal-drag-label").text(e(s)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:n<a&&n>0?t._findCoordsForY(n):[]})})),this._ruler.call(i)}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var i=F(t);this._paths[t.name]=i,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:i})},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,i=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:e.forceAxisBounds},i)).attr=i.attr||t.name;var r=this._domains[t.name]=D(t),a=this._ranges[t.name]=G(t);i.range=i.range||a(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=N(i)}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,i},_registerCheckPoint:function(t){var e,i,r;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],i=this._x(e.dist),r=this._y(e.z)):isNaN(t.dist)||(i=this._x(t.dist),e=this._data[this._findIndexForXCoord(i)],r=this._y(e.z)),this._point.call(j({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,a=this._props.grids,n=this._props.axes,o={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var c in a)e=L.extend({},o,a[c]),r=M(e),this._grid.call(r);for(var l in n)!1!==t[l]&&"summary"!==t[l]&&(e=L.extend({},s,n[l]),i=P(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),a=r.attr("transform"),n=a.substring(a.indexOf("(")+1,a.indexOf(")")).split(",");r.attr("transform","translate("+(+n[0]+40*e)+","+n[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],a=t._data[t._maskGaps[i+1]],n=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),o=t._x(t._data[t._findIndexForLatLng(a.latlng)].dist);t._mask.append("rect").attr("x",n).attr("y",0).attr("width",o-n).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)e=I(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var a=this._legend.selectAll(".legend-item"),n=a.nodes().length,o=Array(Math.floor(n/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(n%2))})),s=o.slice().reverse().map((function(t){return-t}));n%2!=0&&s.push(0),o=s.concat(o);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,d=30*n;n&&this.options.margins.right<d&&(this.options.margins.right=d,this.fire("margins_updated")),c&&this.options.margins.bottom<l&&(this.options.margins.bottom=l,this.fire("margins_updated")),a.each((function(e,i,r){var a=d3.select(r[i]),n=(a.select("rect"),a.attr("data-name")),s=t._paths[n],l=55*o[i],d=2*c;a.attr("transform","translate("+l+", "+d+")"),n in t.options&&"disabled"==t.options[n]&&(s.classed("leaflet-hidden",!0),a.select("text").style("text-decoration-line","line-through"),a.select("rect").style("fill-opacity","0")),t._mask&&s.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),a=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),n=0;return a.reduce((function(t,r,o){return a[e=o+1]===a[o]+1&&e!==a.length||(t.push(a.slice(n,e).map((function(t){return i[t].latlng}))),n=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,a){var n=t.distanceTo(r.latlng);n<i&&(i=n,e=a)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(E({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $,Z=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(T({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(T({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":d(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t}}),q=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},f(this._container=b("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"")},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML=""},append:function(t,e,i){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,i){return t.labels[e].order-t.labels[i].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info))}))},_registerSummary:function(t){for(var e in t){var i;t[e].order=null!==(i=t[e].order)&&void 0!==i?i:100,this.labels[e]=t[e]}}}),V={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},Q=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:V,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})}))},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||g(t.getContainer(),e,"afterend"),v(e,this.onAdd(t))}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){f(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(O,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":U(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":U(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==U(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=o(t,e,L.Control.Elevation[i])},load:function(t){var e=this;this._parseFromString(t).then((function(i){return i?e._loadLayer(i):e._loadFile(t)}))},onAdd:function(t){var e=this;this._map=t;var i=this._container=b("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),y(t.getContainer(),"mousewheel",e._resetDrag,e),y(t.getContainer(),"touchstart",e._resetDrag,e),y(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(t.getContainer(),"mousewheel",this._resetDrag,this),x(t.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){f(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":z(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&z(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var a,n,o,s,c;t.meta=null!==(a=t.meta)&&void 0!==a?a:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:l,id:r}),i._addPoint(null!==(n=t.lat)&&void 0!==n?n:t[1],null!==(o=t.lng)&&void 0!==o?o:t[0],null!==(s=null!==(c=t.alt)&&void 0!==c?c:t.meta.ele)&&void 0!==s?s:t[2]),i.fire("elepoint_added",{point:t,index:i._data.length-1})})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){if(this.options.reverseCoords){var r=[e,t];t=r[0],e=r[1]}this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}))},_addMarker:function(t){t&&this._markers.addLayer(t)},_initAlmostOverHandler:function(t,e){var i=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return i._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return i._mouseoutHandler(t)})))}))},_initDistanceMarkers:function(t,e){var i=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t))},_initElevationDiv:function(){var t=k(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+_(),t=b("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&p(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){p(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){p(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var a=e.options.theme.replace("-theme",""),n=O[a]||{},o=r.options;if(o.color=n.line||n.area||a,o.stroke=!!o.color,t.call(this,i,r),o.stroke&&0!==o.weight){var s=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=n.outline||"#FFF",i.lineWidth=1.75*o.weight,i.stroke(),i.globalCompositeOperation=s}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,a=i.offsetHeight;r>0&&(e.width=r),a>20&&(e.height=a-20)}else{var n=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>n&&(e.width=n-30)}var o=this._chart=new H(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer;u(i.getElement&&i.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),m(i,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),m(i,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type)}))},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new Z(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=b("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(y(t,"mouseover",this._expand,this),y(t,"mouseout",this._collapse,this)):(y(e,"click",L.DomEvent.stop),y(e,"click",this._toggle,this)),y(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new q({summary:this.options.summary},this),d3.select(t).call(this._summary.render())},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse()},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(i){e._downloadURL=t,e._parseFromString(i).then((function(t){return t&&e._loadLayer(t)}))})).catch((function(t){return console.warn(t)}))},_loadLayer:function(t){var e=this,i=e.options,r=i.wptIcons,a=i.wptLabels,n=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var i=L.extend({},e.options.polyline);return e.options.theme&&(i.className+=" "+e.options.theme),i},pointToLayer:function(t,i){var n,o,s;if(e.options.waypoints){var c=t.properties,l=null!==(n=c.desc)&&void 0!==n?n:"",d=null!==(o=c.name)&&void 0!==o?o:"",u=(null!==(s=c.sym)&&void 0!==s?s:d).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(a)?d:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=r){r.hasOwnProperty(u)||(r[u]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+u+'"></i>'})));var p=L.marker(i,{icon:r[u]});if([!0,"markers"].includes(a)&&(d||l)){var f=decodeURI("<b>"+d+"</b>"+(l.length>0?"<br>"+l:""));p.bindPopup(f,{className:"elevation-popup",keepInView:!0}).openPopup(),p.bindTooltip(f,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(p),e.fire("waypoint_added",{point:p,element:i,properties:c}),p}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,n),e._fireEvt("eledata_loaded",{data:t,layer:n,name:e.track_info.name,track_info:e.track_info})})),n},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(t){this.fire("elechart_enter")},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var i=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:i}),this.fire("elechart_hover",{data:e,xCoord:i})}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var i=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&d(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),a=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var n=toGeoJSON[r](i);return n.name=a.length>0?(null!==(e=Array.from(a).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:a[0]).textContent:"",n},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var a=e._data[r.index][t.name];if(r.index>0){var n=e._data[r.index-1][t.name];if(isNaN(n)){if(isNaN(i)||isNaN(a)?isNaN(i)?isNaN(a)||(n=a):n=i:n=(i+a)/2,!isNaN(n))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=n}}isNaN(a)||(i=a)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=f(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return u(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,c as createEvent,f as forceUpdate,e as getAssetPath,g as getElement,F as Fragment}from"./index-83d78b30.js";import{t as translate}from"./i18n-d4785001.js";import{s as state,o as onChange}from"./store-882ab9be.js";import{t as treksFilters,h as handleTreksFiltersAndSearch,e as touristicContentsFilters,f as touristicEventsFilters,o as outdoorSitesFilters,j as handleTouristicContentsFiltersAndSearch,k as handleTouristicEventsFiltersAndSearch,a as handleOutdoorSitesFiltersAndSearch,C as Capacitor,c as checkFileInStore,l as getFileInStore,F as Filesystem,D as Directory,m as formatDuration,n as formatLength,p as formatAscent,s as setFilesFromStore,i as imagesRegExp,d as getAllPaginatedResults,q as formatDescent,u as durations,v as lengths,w as elevations}from"./utils-5feb9281.js";import{l as leafletSrc,c as commonjsGlobal,L as L$1,b as bundle,a as getDataInStore,h as handleOfflineProperty,g as getAllDataInStore,w as writeOrUpdateDataInStore,d as writeOrUpdateFilesInStore,e as writeOrUpdateTilesInStore}from"./grw-db.service-83da38c9.js";import{c as getTrekGeometry,g as getCities,a as getDistricts,b as getThemes,d as getSources,e as getInformationsDesks,f as getTreksList,h as getPoisNearTrek,i as getTrek,j as getSensitiveAreasNearTrek,k as getSignages,l as getPoisNearTrekCount,m as getTrekNetwork,n as getTrekAccessibility,o as getLabel,t as trekIsAvailableOffline}from"./treks.service-a3ce33ef.js";import{g as getDocument,c as createElementIfNotDefined,a as createElement,n as nextTick,e as elementOffset,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-1f55c22a.js";import{f as freeMode,M as Mousewheel,C as CloseIcon,D as DownloadIcon,g as getTouristicContentsNearOutdoorCourse,a as getTouristicContentCategory,b as getTouristicEventsNearOutdoorCourse,c as getTouristicEventType,d as getTouristicContentsNearOutdoorSite,e as getTouristicEventsNearOutdoorSite,h as getTouristicContentsList,i as getTouristicEventsList,j as getTouristicContentsNearTrek,k as getTouristicEventsNearTrek,l as CallIcon,m as getTouristicContentsNearTrekCount,n as getTouristicEventsNearTrekCount}from"./call-c0c920b0.js";import{T as TimelapseIcon,O as OpenInFullIcon,M as MovingIcon}from"./moving-c644d077.js";import{a as getOutdoorCourseTypes,b as getPoisNearCourse,c as getOutdoorCourse}from"./outdoor-courses.service-d2397066.js";var RefreshIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"/></svg>';var FilterListIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>';var grwCommonButtonCss=".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;height:44px}.common-button .common-button-icon{font-size:18px}";var GrwCommonButtonStyle0=grwCommonButtonCss;var GrwCommonButton=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"20934a73599663dde31e5d2e44e7d4e07c6abb3a",style:{"--font-family":this.fontFamily}},h("button",{key:"10660a565bebc2e2d68197291b58e4f0f707439f",part:"common-button",class:"common-button",onClick:function(){return t.action()}},h("span",{key:"89ac4803284dec581c71da1622b5dea2f86254b0",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?RefreshIcon:FilterListIcon}),h("span",{key:"96d918bc3f3d02424acd7050131bf8ddedc12406",part:"common-button-label",class:"label"},this.name)))};return t}();GrwCommonButton.style=GrwCommonButtonStyle0;var grwFiltersCss='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container,.filters-container .filters-outdoor-sites-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';var GrwFiltersStyle0=grwFiltersCss;var GrwFilters=function(){function t(t){registerInstance(this,t);this.resetFilter=createEvent(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.fontFamily="Roboto"}t.prototype.handleEraseTreksFilters=function(){treksFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;state.currentTreks=handleTreksFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTreksFilters=function(){this.handleFilters()};t.prototype.handleSelectedSegment=function(t){this.selectedSegment=t};t.prototype.handleSegment=function(t){if(state.mode==="treks"){return treksFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="touristicContents"){return touristicContentsFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="touristicEvents"){return touristicEventsFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="outdoor"){return outdoorSitesFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}};t.prototype.handleEraseTouristicContentsFilters=function(){touristicContentsFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicContents=handleTouristicContentsFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};t.prototype.handleEraseTouristicEventsFilters=function(){touristicEventsFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};t.prototype.handleEraseOutdoorSitesFilters=function(){outdoorSitesFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkOutdoorSitesFilters=function(){this.handleFilters()};t.prototype.render=function(){var t=this;return h(Host,{key:"7cb0827af20aec71998635f772961892bae64782",style:{"--font-family":this.fontFamily}},h("div",{key:"7ca850687d5c240429364fce16a2e985f4d14a69",part:"options-container",class:"options-container"},h("div",{key:"0608d1e60c4e3a3466f16907ed1a87a1a0500cbf",part:"filters-container",class:"filters-container"},state.mode==="treks"&&h("div",{key:"bb266f50acbf0c404f7ac64dfde538f8327db50b",part:"filters-treks-container",class:"filters-treks-container"},h("div",{key:"68e8bffaf9784038487f1383e3c26d4a7e7ec8d6",part:"filters-options-container",class:"filters-options-container"},state.treksWithinBounds&&h("div",{key:"d22377ccd74aa51463270f5bd922bd15159aeff7",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"d99afb8765bb918f10d2662b4b525c3bccf94014",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"1e976bf1b4f85e33e5861653d19311e019a9534b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{key:"761793867f49f477f013946e1eaefd09e1d29a2a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{key:"ac29966072168933f7905845d255dcf058dcda82",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"0d8b89703a4286d2287b8a86c6bf7709faa8e615",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].home.segment.treks," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{key:"1c57830b534b5f2fe9e9a3d8c7fdb70840ccdb3a",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},translate[state.language].themes," ",state.selectedThemesFilters!==0&&"(".concat(state.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"3644ee38d8f452a6ec6f3a3a2fbdeb2278ed25f8",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"1c6468c5daf78faa0e1c81896896951f2d0d9d12",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},state["practices"].length>0&&h("div",{key:"0a63d2022609cabcd4811ba0a3465a6b62d1222b",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"99a5b02f8d81082d6fda024ea3cf9e943f5cb6e1",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderPractices})),state["difficulties"].length>0&&h("div",{key:"00867ddca97044ae17ff7f404d50116c7c7a1571",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"cfbcd5a30e22caa42708ff47fb868bd63a77c814",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderDifficulties})),state["durations"].length>0&&h("div",{key:"d1eec8a2747f52e7ab23d06a5317640904cb8932",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"6239dc492b7203c008d24a91faaa03b3d5234a82",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderDurations})),state["lengths"].length>0&&h("div",{key:"108e2a5a071b8b1d2407873efe5275a2b5548329",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"b0b25767deb8c55678e34be1d14677182b86e0ab",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderLengths})),state["elevations"].length>0&&h("div",{key:"23c722fa4f015a7d1e962b7e13a352770362c366",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"2a9bc4968ccb250ae43dc36d3064283e2ea631a8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderElevations})),state["routes"].length>0&&h("div",{key:"081b49faab7f24cd5444a5f3856d9a1ae75fae0e",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"9da94f9ce99386a1a3fa9938f85fcdea3cfccfe4",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderRoutes})),state["accessibilities"].length>0&&h("div",{key:"abc8b5530dbaaee862712b0400f9694504e225f7",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"b9dac8b1b9c93051920f5120f73f758c18ee2867",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderAccessibilities})),state["labels"].length>0&&h("div",{key:"b514da44c0a95b792d527e88c7d0e9a74cf70635",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"71be7fb25371586f1ad1b44f136be028582bd5f9",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},state["themes"].length>0&&h("div",{key:"0c0ae67b8266db5364a746edde0dd74b8c81535c",part:"",class:"filter-container"},h("grw-filter",{key:"39bec081b3ca8506378a7478f8d27a4d88589b8a",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},state["districts"].length>0&&h("div",{key:"d3832fe24e8925133b2e7044675b88b3a84668d4",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"7bd9147852d6d8e5b1aa4e407636dace41b45950",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"f798c02a9811f4726a6efdd20bb29e789c64a435",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"a2497727878f08ca6833c8b8cf14461984ea91e2",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicContents"&&h("div",{key:"7ff7afa469ec1f70a2c65891c40673b749d01f03",part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},h("div",{key:"d26d5e679ee89784aa7bfab9880733aea80cb25b",part:"filters-options-container",class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{key:"ffa578e5c8700a02f3532d7cfe73786adf99600c",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"3b2dd444be31e090a93a77884187533d706ac54d",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"22b85f396c036f1c53538cdbfb6cf4eb6bfed91a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{key:"6c3ceb7d89b206396b68c3a40be88b9056846ab7",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{key:"7775cc54df6aa5ddcffcc6b761c6cd1426d86821",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"e85dd1dc7601c99140285bf2dd5ed8a0d804888d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].services," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"3cdf68426f8722b260587e06e3b7029f22690e8d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"a5b816a3e56c04f7b3d80d9a58b0d96c64e87626",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["touristicContentCategories"].length>0&&h("div",{key:"2c39f1384e2b49599b7eb040a0a2f5e7dbeaf52a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"e26190a8d6d43872b041e6519919e069a2230ffb",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},state["districts"].length>0&&h("div",{key:"326e0471f4d065f86a4e799b0369490eb2c6089a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"1c6c2742d7f33f13c8fc9268096d1e5f54e44369",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"491dc0f4101c21f6b396a3e529826a104b1e5044",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"d1774b6bd54a39d60745f5e819d6a65ebbd76fac",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicEvents"&&h("div",{key:"c348864948b70fd86e2f787c8e4663bbcd7bd797",part:"filters-touristic-events-container",class:"filters-touristic-events-container"},h("div",{key:"164ab5e697e32fdc98b4ace8d04058e8fb2a29f0",part:"filters-options-container",class:"filters-options-container"},state.touristicEventsWithinBounds&&h("div",{key:"845d53b5e85f258d0ee7adc53810ad49fd73d93b",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"a103291d00f28cd1edec0be589ed968c123963cf",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"cd0084e1b079006aa84459517dd05d8360c805b1",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},translate[state.language].erase),h("button",{key:"90d9a9543e6d9543ec666b06d2eb072a71f6d7fc",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},translate[state.language].ok))),h("div",{key:"a028044dc52dc04d58663163fbccd742699ab31f",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"7d37a03878eea6fdfc7be4b8c84eabdf85e8023f",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].services," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"4cf188f9d3c50482d5cd515941929c4d7fb307cd",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"135f6b451a25254c81920a89ecb511834cbacda3",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["touristicEventTypes"].length>0&&h("div",{key:"9c62a23f0c9d70c9ec60a0ef1440c567a0df3b3c",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"5414ba2979bf112516d42fde4b2de23e3ed37936",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].type,filterPlaceholder:translate[state.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},state["districts"].length>0&&h("div",{key:"aa6e6933f9394e9448274f782cfa81a271510bd0",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"dac40ec18d9dc3f1c00e45f80c8150217c47d8bf",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"a80b5c285f00dcc89f131c048742b7c8f170a410",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"678695182e258c014b061fadf2f994c60f3a5b1e",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="outdoor"&&h("div",{key:"0aca784169b67e5f7bb08f427b7b9579d5c918b3",part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},h("div",{key:"59c1b969199440613d994dd04750fa248f5902a9",part:"filters-options-container",class:"filters-options-container"},state.outdoorSitesWithinBounds&&h("div",{key:"119faef0178c050e66b43ad2520aec585e77910c",part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].home.outdoorSites:translate[state.language].home.outdoorSite)),h("div",{key:"8638027f4f673ea2453a23e46e62d5a2030586eb",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"2ffd27a1bdc91be1bd328db313dc00b05a8cf85b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},translate[state.language].erase),h("button",{key:"c6a2adf9d00c0e2b112624942a6a4d6c80a6139a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},translate[state.language].ok))),h("div",{key:"8cc082dad59e4e304ab19d8303ee3b703faab76d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"ea4cef9ee95e5e19495d13767150a632a30e314d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].home.segment.outdoorSites," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{key:"3807ad0c400b66c30ae3cd7ae8483b4b16699df0",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},translate[state.language].themes," ",state.selectedThemesFilters!==0&&"(".concat(state.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"41833fbbe64154b7b8e8e9bdaec14f7cbdab6202",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"0d72e1572521e536593e9cf928b47664074febde",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["outdoorPractices"].length>0&&h("div",{key:"2d57106ff3c8a996927aa12f12485ac6e3667f5a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"34d61290f728c3bb89122f7bd39c52847f0c16a5",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].practice,filterPlaceholder:translate[state.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["outdoorSiteTypes"].length>0&&h("div",{key:"d624787d8a82df90196aa684d0ab314bcc454583",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"1f786587372e88148d3386585a6de96e3a44c121",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},state["themes"].length>0&&h("div",{key:"74df99c7f261902662125f04dfff5d58377735cf",part:"",class:"filter-container"},h("grw-filter",{key:"ab3055ff3652cfbd72a3020bd14f798385fafd57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},state["districts"].length>0&&h("div",{key:"e541bb845bb3df017711368796e7262fe6eec179",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"3b1266c88bbcad0a2953065c81ba12fff62defc8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"5d8f67bb98692023f243d151b6ec05244827155c",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"5beca62535975404d512fc7ebd9c7af320071b57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),h("div",{key:"83051ed904bf12db211d03a90576213d510d14aa",part:"back-filters-container",class:"back-filters-container",onClick:function(){return t.handleFilters()}})))};return t}();GrwFilters.style=GrwFiltersStyle0;var grwLoaderCss=".loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";var GrwLoaderStyle0=grwLoaderCss;var GrwLoader=function(){function t(t){registerInstance(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}t.prototype.render=function(){return h(Host,{key:"7bfffe55c6ad0d9e710d0ecac80eae6e1d2b82fb",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},h("span",{key:"ff3f0d45fde66ff7fe393bee41d8f74ca8e672d4",part:"loader",class:"loader"}))};return t}();GrwLoader.style=GrwLoaderStyle0;var Leaflet_i18n={exports:{}};(function(t,e){(function(e,i){{t.exports=e(leafletSrc.exports)}if(typeof i!=="undefined"&&i.L){e(i.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function e(i,r){t.locales[i]=t.Util.extend({},t.locales[i],r)};t.setLocale=function e(i){t.locale=i};return t.i18n=t._=function e(i,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][i]!=="undefined"){i=t.locales[t.locale][i]}try{i=t.Util.template(i,r)}catch(t){}return i}}),window)})(Leaflet_i18n);var leafletElevation_min={exports:{}};(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(leafletSrc.exports),void 0!==i&&i.L&&e(i.L)}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,i){t.locales[e]=t.Util.extend({},t.locales[e],i)},t.setLocale=function(e){t.locale=e},t.i18n=t._=function(e,i){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,i)}catch(t){}return e}}),window);var e=6e4,i=60*e,r=24*i;function a(t){var a=Math.floor(t/r),n=Math.floor((t-a*r)/i),o=Math.floor((t-a*r-n*i)/e),s=Math.round((t-a*r-n*i-o*e)/1e3);return 60===s&&(o++,s=0),60===o&&(n++,o=0),24===n&&(a++,n=0),(a?a+"d ":"")+n.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function n(t,e){var i=b("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function o(t,e,i){return!1===e?Promise.resolve():i instanceof Promise?i:new Promise((function(e,i){var r=document.createElement("script");r.addEventListener("load",e,{once:!0}),r.src=t,document.head.appendChild(r)}))}function s(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath()}function c(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function d(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function u(t,e,i){return(i?l:d).call(null,t,e)}function p(t,e,i){e&&d(t,e),i&&l(t,i)}function f(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function h(t,e,i,r){return f(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function b(t,e,i,r){var a=L.DomUtil.create(t,e||"");return i&&w(a,i),r&&v(r,a),a}function v(t,e){return t.appendChild(e)}function g(t,e,i){return t.insertAdjacentElement(i,e)}function w(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var y=L.DomEvent.on,x=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function C(t,e){for(var i in t)e(t[i],i)}var z=Object.freeze({__proto__:null,formatTime:a,saveFile:n,lazyLoader:o,drawCanvas:s,clamp:c,addClass:l,removeClass:d,toggleClass:u,replaceClass:p,style:f,toggleStyle:h,toggleEvent:m,create:b,append:v,insert:g,setAttributes:w,select:k,on:y,off:x,hasClass:A,randomId:_,each:C}),O={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},S=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,a=t.scaleX,n=t.scaleY,o=t.interpolation,s=void 0===o?"curveLinear":o;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(t){return t.xDiagCoord=a(t[i])})).y0(e).y1((function(t){return n(t[r])}))},F=function(t){var e=t.name,i=t.color,r=t.strokeColor,a=t.strokeOpacity,n=t.fillOpacity,o=d3.create("svg:path");return e&&o.classed(e,!0),o.style("pointer-events","none"),o.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",a||"1").attr("fill-opacity",n||"0.8"),o},P=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,a=void 0===r?6:r,n=t.tickPadding,o=void 0===n?3:n,s=t.position,c=t.height,l=t.width,d=t.axis,u=t.scale,p=t.ticks,f=t.tickFormat,h=t.label,m=t.labelX,b=t.labelY,v=t.name,g=void 0===v?"":v,w=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==s&&(r=c),"right"==s&&(e=l),"x"==d&&"grid"==i?a=-c:"y"==d&&"grid"==i&&(a=-l);var n=d3["axis"+s.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(u).ticks(p).tickPadding(o).tickSize(a).tickFormat(f),v=t.append("g").attr("class",[d,i,s,g].join(" ")).attr("transform","translate("+e+","+r+")").call(n);return h&&v.append("svg:text").attr("x",m).attr("y",b).text(h),w&&v.call(w),v}},T=function(t){return t.type="grid",P(t)},M=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,a=t.yCoord,n=void 0===a?0:a,o=t.labels,s=void 0===o?{}:o,c=t.item,l=void 0===c?{}:c,d=t.length,u=void 0===d?0:d;return function(t){t.attr("class","height-focus-group");var i,a=t.select(".height-focus.line"),o=t.select(".height-focus.circle-lower"),c=t.select(".height-focus-label");return a.node()||(a=t.append("svg:line")),o.node()||(o=t.append("svg:circle")),c.node()||(c=t.append("svg:text")),isNaN(r)||isNaN(n)||(o.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+n+")").attr("r",6).attr("cx",0).attr("cy",0),a.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",n).attr("y2",u),c.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(i=c.select(".height-focus-"+s[t].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+s[t].name).attr("dy","1.5em")),i.text("function"!=typeof s[t].value?s[t].value:s[t].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),t}},E=function(t){var e=t.name,i=t.label,r=t.width,a=t.height,n=t.margins,o=void 0===n?{}:n,s=t.color,c=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:c.node(),name:e,legend:t.node(),enabled:!c.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",a+o.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",a+o.bottom/2).attr("dy","0.75em"),t}},I=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,a=t.height,n=t.labels,o=void 0===n?{}:n,s=t.item,c=void 0===s?{}:s;return function(t){var n=t.select(".mouse-focus-line"),s=t.select(".mouse-focus-label");n.node()||(n=t.append("svg:line")),s.node()||(s=t.append("g"));var l=s.select(".mouse-focus-label-rect"),d=s.select(".mouse-focus-label-text");l.node()||(l=s.append("svg:rect")),d.node()||(d=s.append("svg:text"));var u,p=0,f=0,h={width:0,height:0};try{h=d.node().getBBox()}catch(e){return t}return e&&(p=e+(e<r/2?10:-h.width-10)),i&&(f=Math.max(i-h.height,L.Browser.webkit?0:-1/0)),n.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",a),s.attr("class","mouse-focus-label"),l.attr("class","mouse-focus-label-rect").attr("x",p-5).attr("y",f-5).attr("width",h.width+10).attr("height",h.height+10).attr("rx",3).attr("ry",3),d.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",f),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(u=d.select(".mouse-focus-label-"+o[t].name)).size()||(u=d.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+o[t].name).attr("dy","1.5em")),u.text("function"!=typeof o[t].value?o[t].value:o[t].value(c))})),d.select("tspan").attr("dy","1em"),d.selectAll("tspan").attr("x",p),t}},B=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),a=t.selectAll(".horizontal-drag-line").data([{w:i}]),n=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),o=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),a.exit().remove(),n.exit().remove(),o.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),a.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(a).attr("x2",(function(t){return t.w})),n.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(n).attr("x",(function(t){return t.w})),o.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(o).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return"translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},j=function(t){var e=t.point,i=t.height,r=t.width,a=t.x,n=t.y;return function(t){return isNaN(a)||isNaN(n)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:a,y:n}).attr("class",(function(t){return"point "+t.pos})).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-n,bottom:i-n}[e.position],x2:{left:-a,right:r-a}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},D=function(t){var e=t.min,i=t.max,r=t.attr,a=t.name,n=t.forceBounds,o=t.scale;return function(t){r=r||a,o&&o.attr&&(r=o.attr);var s=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<s[0]||n)&&(s[0]=e),void 0!==i&&(i>s[1]||n)&&(s[1]=i),s}},G=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},N=function(t){var e=t.data,i=t.attr,r=t.min,a=t.max,n=t.forceBounds,o=t.range;return d3.scaleLinear().range(o).domain(D({min:r,max:a,attr:i,forceBounds:n})(e))},R=function(t){var e=t.width,i=t.height,r=t.margins,a=void 0===r?{}:r,n=e-a.left-a.right,o=i-a.top-a.bottom,s=d3.create("svg:svg").attr("class","background"),c=s.append("g"),l={grid:c.append("g").attr("class","grid"),area:c.append("g").attr("class","area"),axis:c.append("g").attr("class","axis"),point:c.append("g").attr("class","point"),brush:c.append("g").attr("class","brush"),tooltip:c.append("g").attr("class","tooltip").attr("display","none"),ruler:c.append("g").attr("class","ruler"),legend:c.append("g").attr("class","legend")},d=l.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=d.append("svg:rect").attr("class","zoom").attr("fill","white"),p=l.area.append("svg:foreignObject").attr("mask","url(#"+d.attr("id")+")"),f=p.append("xhtml:canvas").attr("class","canvas-plot"),h=f.node().getContext("2d");l.tooltip.call(I({xCoord:0,yCoord:0,height:o,width:n,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return l.brush.select(".overlay").attr("cursor",null)})),b={mask:d,canvas:f,context:h,brush:m},v={svg:s,g:c,panes:l,utils:b,scale:function(t){return{x:N(t.x),y:N(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,a=void 0===r?{}:r,n=t.ruler,o=e-a.left-a.right,d=i-a.top-a.bottom;s.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),c.attr("transform","translate("+a.left+","+a.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&f.style("transform","translate("+a.left+"px,"+a.top+"px)"),u.attr("x",0).attr("y",0).attr("width",o).attr("height",d),p.attr("width",o).attr("height",d),f.attr("width",o).attr("height",d),n&&l.ruler.call(B({height:d,width:o})),l.brush.call(m.extent([[0,0],[o,d]])),l.brush.select(".overlay").attr("cursor",null),v._width=o,v._height=d,v.svg.dispatch("resize",{detail:{width:o,height:d}})},pane:function(t){return l[t]||(l[t]=c.append("g").attr("class",t)),l[t]},get:function(t){return b[t]}};return v._resize({width:e,height:i,margins:a}),v},Y=Object.freeze({__proto__:null,Colors:O,Area:S,Path:F,Axis:P,Grid:T,PositionMarker:M,LegendItem:E,Tooltip:I,Ruler:B,CheckPoint:j,Domain:D,Range:G,Scale:N,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,a=t.x,n=t.attr;return d3.bisector((function(t){return t[n]})).left(i,r.invert(a))},Chart:R}),H=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var i=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var r=this._chart=R(t);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){i._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return i._maskGaps.push(t.index)}))}))},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(t){var e=this._paths[t],i=this._props.areas[t];e.datum(this._data).attr("d",S(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?s(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],a=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:a,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),a=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[a]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,a=i.legend,n=i.name,o=i.enabled;if(r){var s=k("text",a),c=k("rect",a);h(s,"text-decoration-line","line-through",o),h(c,"fill-opacity","0",o),u(r,"leaflet-hidden",o),t._updateArea(),t.fire("elepath_toggle",{path:r,name:n,legend:a,enabled:o})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),a=t._ruler.data()[0].y;(a>=r||a<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var a=t._height(),n=d3.pointers(i,t._area.node())[0][1],o=n>0?n<a?n:a:0,s=t._y.invert(o),c=L.extend(t._ruler.data()[0],{y:o});t._ruler.data([c]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",o<a),t._container.select(".horizontal-drag-label").text(e(s)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:n<a&&n>0?t._findCoordsForY(n):[]})})),this._ruler.call(i)}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var i=F(t);this._paths[t.name]=i,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:i})},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,i=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:e.forceAxisBounds},i)).attr=i.attr||t.name;var r=this._domains[t.name]=D(t),a=this._ranges[t.name]=G(t);i.range=i.range||a(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=N(i)}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,i},_registerCheckPoint:function(t){var e,i,r;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],i=this._x(e.dist),r=this._y(e.z)):isNaN(t.dist)||(i=this._x(t.dist),e=this._data[this._findIndexForXCoord(i)],r=this._y(e.z)),this._point.call(j({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,a=this._props.grids,n=this._props.axes,o={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var c in a)e=L.extend({},o,a[c]),r=T(e),this._grid.call(r);for(var l in n)!1!==t[l]&&"summary"!==t[l]&&(e=L.extend({},s,n[l]),i=P(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),a=r.attr("transform"),n=a.substring(a.indexOf("(")+1,a.indexOf(")")).split(",");r.attr("transform","translate("+(+n[0]+40*e)+","+n[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],a=t._data[t._maskGaps[i+1]],n=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),o=t._x(t._data[t._findIndexForLatLng(a.latlng)].dist);t._mask.append("rect").attr("x",n).attr("y",0).attr("width",o-n).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)e=E(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var a=this._legend.selectAll(".legend-item"),n=a.nodes().length,o=Array(Math.floor(n/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(n%2))})),s=o.slice().reverse().map((function(t){return-t}));n%2!=0&&s.push(0),o=s.concat(o);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,d=30*n;n&&this.options.margins.right<d&&(this.options.margins.right=d,this.fire("margins_updated")),c&&this.options.margins.bottom<l&&(this.options.margins.bottom=l,this.fire("margins_updated")),a.each((function(e,i,r){var a=d3.select(r[i]),n=(a.select("rect"),a.attr("data-name")),s=t._paths[n],l=55*o[i],d=2*c;a.attr("transform","translate("+l+", "+d+")"),n in t.options&&"disabled"==t.options[n]&&(s.classed("leaflet-hidden",!0),a.select("text").style("text-decoration-line","line-through"),a.select("rect").style("fill-opacity","0")),t._mask&&s.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),a=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),n=0;return a.reduce((function(t,r,o){return a[e=o+1]===a[o]+1&&e!==a.length||(t.push(a.slice(n,e).map((function(t){return i[t].latlng}))),n=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,a){var n=t.distanceTo(r.latlng);n<i&&(i=n,e=a)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(I({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $,Z=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(M({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(M({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":d(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t}}),q=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},f(this._container=b("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"")},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML=""},append:function(t,e,i){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,i){return t.labels[e].order-t.labels[i].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info))}))},_registerSummary:function(t){for(var e in t){var i;t[e].order=null!==(i=t[e].order)&&void 0!==i?i:100,this.labels[e]=t[e]}}}),V={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},Q=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:V,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})}))},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||g(t.getContainer(),e,"afterend"),v(e,this.onAdd(t))}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){f(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(O,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":U(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":U(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==U(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=o(t,e,L.Control.Elevation[i])},load:function(t){var e=this;this._parseFromString(t).then((function(i){return i?e._loadLayer(i):e._loadFile(t)}))},onAdd:function(t){var e=this;this._map=t;var i=this._container=b("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),y(t.getContainer(),"mousewheel",e._resetDrag,e),y(t.getContainer(),"touchstart",e._resetDrag,e),y(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(t.getContainer(),"mousewheel",this._resetDrag,this),x(t.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){f(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":C(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&C(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var a,n,o,s,c;t.meta=null!==(a=t.meta)&&void 0!==a?a:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:l,id:r}),i._addPoint(null!==(n=t.lat)&&void 0!==n?n:t[1],null!==(o=t.lng)&&void 0!==o?o:t[0],null!==(s=null!==(c=t.alt)&&void 0!==c?c:t.meta.ele)&&void 0!==s?s:t[2]),i.fire("elepoint_added",{point:t,index:i._data.length-1})})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){if(this.options.reverseCoords){var r=[e,t];t=r[0],e=r[1]}this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}))},_addMarker:function(t){t&&this._markers.addLayer(t)},_initAlmostOverHandler:function(t,e){var i=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return i._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return i._mouseoutHandler(t)})))}))},_initDistanceMarkers:function(t,e){var i=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t))},_initElevationDiv:function(){var t=k(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+_(),t=b("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&p(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){p(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){p(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var a=e.options.theme.replace("-theme",""),n=O[a]||{},o=r.options;if(o.color=n.line||n.area||a,o.stroke=!!o.color,t.call(this,i,r),o.stroke&&0!==o.weight){var s=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=n.outline||"#FFF",i.lineWidth=1.75*o.weight,i.stroke(),i.globalCompositeOperation=s}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,a=i.offsetHeight;r>0&&(e.width=r),a>20&&(e.height=a-20)}else{var n=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>n&&(e.width=n-30)}var o=this._chart=new H(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer;u(i.getElement&&i.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),m(i,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),m(i,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type)}))},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new Z(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=b("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(y(t,"mouseover",this._expand,this),y(t,"mouseout",this._collapse,this)):(y(e,"click",L.DomEvent.stop),y(e,"click",this._toggle,this)),y(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new q({summary:this.options.summary},this),d3.select(t).call(this._summary.render())},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse()},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(i){e._downloadURL=t,e._parseFromString(i).then((function(t){return t&&e._loadLayer(t)}))})).catch((function(t){return console.warn(t)}))},_loadLayer:function(t){var e=this,i=e.options,r=i.wptIcons,a=i.wptLabels,n=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var i=L.extend({},e.options.polyline);return e.options.theme&&(i.className+=" "+e.options.theme),i},pointToLayer:function(t,i){var n,o,s;if(e.options.waypoints){var c=t.properties,l=null!==(n=c.desc)&&void 0!==n?n:"",d=null!==(o=c.name)&&void 0!==o?o:"",u=(null!==(s=c.sym)&&void 0!==s?s:d).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(a)?d:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=r){r.hasOwnProperty(u)||(r[u]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+u+'"></i>'})));var p=L.marker(i,{icon:r[u]});if([!0,"markers"].includes(a)&&(d||l)){var f=decodeURI("<b>"+d+"</b>"+(l.length>0?"<br>"+l:""));p.bindPopup(f,{className:"elevation-popup",keepInView:!0}).openPopup(),p.bindTooltip(f,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(p),e.fire("waypoint_added",{point:p,element:i,properties:c}),p}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,n),e._fireEvt("eledata_loaded",{data:t,layer:n,name:e.track_info.name,track_info:e.track_info})})),n},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(t){this.fire("elechart_enter")},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var i=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:i}),this.fire("elechart_hover",{data:e,xCoord:i})}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var i=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&d(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),a=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var n=toGeoJSON[r](i);return n.name=a.length>0?(null!==(e=Array.from(a).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:a[0]).textContent:"",n},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var a=e._data[r.index][t.name];if(r.index>0){var n=e._data[r.index-1][t.name];if(isNaN(n)){if(isNaN(i)||isNaN(a)?isNaN(i)?isNaN(a)||(n=a):n=i:n=(i+a)/2,!isNaN(n))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=n}}isNaN(a)||(i=a)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=f(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return u(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
2
2
  /*!this._data.length ||*/
3
- this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:n.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});Q.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+"&nbsp;"+i.label},order:10}})})),Q.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return a(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===U(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),a=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+a)}else e.meta.time=new Date(Date.now());var n=e.meta.time;return n.getTime()-60*n.getTimezoneOffset()*1e3==0&&(n=0),n},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+a(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return a(t.time||0)},order:20}}))})),Q.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),a=O[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,a=t.track_info;if(t.options.altitudeDeltaMax){var n=e-r[i>0?i-1:i].z,o=t.options.altitudeDeltaMax;Math.abs(n)>o&&(e=r[i-1].z+o*Math.sign(n))}return(e=c(e,t.options.altitudeRange))>a.elevation_max&&(a.elevation_max=e),e<a.elevation_min&&(a.elevation_min=e),a.elevation_avg=(e+a.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:a.area||r,strokeColor:e.detached?a.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?a.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+"&nbsp;"+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+"&nbsp;"+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+"&nbsp;"+i.label},order:30}})})),Q.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),a=i[e].z-i[e>0?e-1:e].z;return isNaN(a)||0===r?0:a/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,a=t._data,n=a[i].z-a[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var o=slop-a[i>0?i-1:i].slope,s=t.options.slopeDeltaMax;Math.abs(o)>s&&(e=a[i-1].slope+s*Math.sign(o))}return e=c(e,t.options.slopeRange),n>0?t.track_info.ascent+=n:n<0&&(t.track_info.descent-=n),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+"&nbsp;"+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+"&nbsp;"+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+"&nbsp;"+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+"&nbsp;"+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+"&nbsp;"+i.label},order:40}})}})),Q.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,a=1e3*(r[i].dist-r[i>0?i-1:i].dist),n=r[i].time-r[i>0?i-1:i].time;return n>0?Math.abs(a/n*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,a=t.track_info;if(t.options.speedDeltaMax){var n=e-r[i>0?i-1:i].speed,o=t.options.speedDeltaMax;Math.abs(n)>o&&(e=r[i-1].speed+o*Math.sign(n))}return(e=c(e,t.options.speedRange))>a.speed_max&&(a.speed_max=e),e<a.speed_min&&(a.speed_min=e),a.speed_avg=(e+a.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+"&nbsp;"+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+"&nbsp;"+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+"&nbsp;"+i.label},order:50}}))}})),Q.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,a=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),n=(r[i].time-r[i>0?i-1:i].time)/1e3;return n>0?Math.abs(a/n)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,a=t.track_info;if(t.options.accelerationDeltaMax){var n=e-r[i>0?i-1:i].acceleration,o=t.options.accelerationDeltaMax;Math.abs(n)>o&&(e=r[i-1].acceleration+o*Math.sign(n))}return(e=c(e,t.options.accelerationRange))>a.acceleration_max&&(a.acceleration_max=e),e<a.acceleration_min&&(a.acceleration_min=e),a.acceleration_avg=(e+a.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+"&nbsp;"+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+"&nbsp;"+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+"&nbsp;"+i.label},order:60}})}})),Q.Utils=C,Q.Components=Y,Q.Chart=H,$=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]="​"),$.call(null,t,e)},Q.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(t){return new Q(t)}}))})(leafletElevation_min);var leaflet_markercluster={exports:{}};(function(t,e){!function(t,i){i(e)}(commonjsGlobal,(function(t){var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,a=this._nonPointGroup,n=this.options.chunkedLoading,o=this.options.chunkInterval,s=this.options.chunkProgress,c=t.length,l=0,d=!0;if(this._map){var u=(new Date).getTime(),p=L.bind((function(){var f=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<c;l++){if(n&&l%200==0){var h=(new Date).getTime()-f;if(o<h)break}if((i=t[l])instanceof L.LayerGroup)d&&(t=t.slice(),d=!1),this._extractNonGroupLayers(i,t),c=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),b=m[0]===i?m[1]:m[0];r.removeLayer(b)}}else a.addLayer(i),e||this.fire("layeradd",{layer:i})}s&&s(l,c,(new Date).getTime()-u),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(p,this.options.chunkDelay)}),this);p()}else for(var f=this._needsClustering;l<c;l++)(i=t[l])instanceof L.LayerGroup?(d&&(t=t.slice(),d=!1),this._extractNonGroupLayers(i,t),c=t.length):i.getLatLng?this.hasLayer(i)||f.push(i):a.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,a=this._featureGroup,n=this._nonPointGroup,o=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),n.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var s=t.slice(),c=r;for(e=0;e<c;e++)(i=s[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),c=s.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),a.hasLayer(i)&&(a.removeLayer(i),i.clusterShow&&i.clusterShow())):(n.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,a,n=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),r=n.length-1;0<=r;r--){for(i=!0,a=o.length-1;0<=a;a--)if(o[a].layer===n[r]){i=!1;break}i&&t.call(e,n[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());a<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,a=this._gridUnclustered,n=this._featureGroup,o=this._map,s=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var c,l=t.__parent,d=l._markers;for(this._arraySplice(d,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<s));)e&&l._childCount<=1?(c=l._markers[0]===t?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,o.project(l._cLatLng,l._zoom)),a[l._zoom].addObject(c,o.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(n.removeLayer(l),i||n.addLayer(c))):l._iconNeedsUpdate=!0,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,a=this.options.spiderfyOnEveryZoom;(e||r||a)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,a=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),a.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var a=t;e<=a;a--)this._gridClusters[a]=new L.DistanceGrid(r(a)),this._gridUnclustered[a]=new L.DistanceGrid(r(a));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,a=this._gridClusters,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=e;e--){i=this._map.project(t.getLatLng(),e);var s=a[e].getNearObject(i);if(s)return s._addChild(t),void(t.__parent=s);if(s=n[e].getNearObject(i)){var c=s.__parent;c&&this._removeLayer(s,!1);var l=new this._markerCluster(this,e,s,t);a[e].addObject(l,this._map.project(l._cLatLng,e)),s.__parent=l;var d=t.__parent=l;for(r=e-1;r>c._zoom;r--)d=new this._markerCluster(this,r,d),a[r].addObject(d,this._map.project(s.getLatLng(),r));return c._addChild(d),void this._removeFromGridUnclustered(s,e)}n[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),a=0;for(e=e||[];a<r.length;a++)(i=r[a])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),a=this._featureGroup,n=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,n,(function(n){var o,s=n._latlng,c=n._markers;for(r.contains(s)||(s=null),n._isSingleParent()&&t+1===e?(a.removeLayer(n),n._recursivelyAddChildrenToMap(null,e,r)):(n.clusterHide(),n._recursivelyAddChildrenToMap(s,e,r)),i=c.length-1;0<=i;i--)o=c[i],r.contains(o._latlng)||a.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),a.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,n,(function(t){a.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),a=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,a,e+1,i);var n=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,i,a,(function(t){t._recursivelyRemoveChildrenFromMap(r,a,e+1)}));n._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,a=r.getBoundsZoom(this._bounds),n=this._zoom+1,o=r.getZoom();0<i.length&&n<a;){n++;var s=[];for(e=0;e<i.length;e++)s=s.concat(i[e]._childClusters);i=s}n<a?this._group._map.setView(this._latlng,n):a<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,a=this._markers,n=this._childClusters,o=0,s=0,c=this._childCount;if(0!==c){for(this._resetBounds(),t=0;t<a.length;t++)i=a[t]._latlng,this._bounds.extend(i),o+=i.lat,s+=i.lng;for(t=0;t<n.length;t++)(e=n[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,o+=i.lat*r,s+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/c,s/c),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,a=t._markers;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,a=t._childClusters;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(a){a._recursivelyAnimateChildrenIn(t,a._group._map.latLngToLayerPoint(a.getLatLng()).round(),i),a._isSingleParent()&&i-1===r?(a.clusterShow(),a._recursivelyRemoveChildrenFromMap(t,e,i)):a.clusterHide(),a._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var a=r._markers.length-1;0<=a;a--){var n=r._markers[a];i.contains(n._latlng)&&(t&&(n._backupLatlng=n.getLatLng(),n.setLatLng(t),n.clusterHide&&n.clusterHide()),r._group._featureGroup.addLayer(n))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var a=this._childClusters.length-1;0<=a;a--)this._childClusters[a]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var a,n;this._recursively(t,e-1,i-1,(function(t){for(n=t._markers.length-1;0<=n;n--)a=t._markers[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}),(function(t){for(n=t._childClusters.length-1;0<=n;n--)a=t._childClusters[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}))},_recursively:function(t,e,i,r,a){var n,o,s=this._childClusters,c=this._zoom;if(e<=c&&(r&&r(this),a&&c===i&&a(this)),c<e||c<i)for(n=s.length-1;0<=n;n--)(o=s[n])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,e,i,r,a)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),a=this._grid,n=a[r]=a[r]||{},o=n[i]=n[i]||[],s=L.Util.stamp(t);this._objectPoint[s]=e,o.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,a=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},c=s[a]=s[a]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=c.length;i<r;i++)if(c[i]===t)return c.splice(i,1),1===r&&delete s[a],!0},eachObject:function(t,e){var i,r,a,n,o,s,c=this._grid;for(i in c)for(r in o=c[i])for(a=0,n=(s=o[r]).length;a<n;a++)t.call(e,s[a])&&(a--,n--)},getNearObject:function(t){var e,i,r,a,n,o,s,c,l=this._getCoord(t.x),d=this._getCoord(t.y),u=this._objectPoint,p=this._sqCellSize,f=null;for(e=d-1;e<=d+1;e++)if(a=this._grid[e])for(i=l-1;i<=l+1;i++)if(n=a[i])for(r=0,o=n.length;r<o;r++)s=n[r],((c=this._sqDist(u[L.Util.stamp(s)],t))<p||c<=p&&null===f)&&(p=c,f=s);return f},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,a,n=0,o=null,s=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(a=this.getDistant(r,t))&&(s.push(r),n<a&&(n=a,o=r));return{maxPoint:o,newPoints:s}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,a=!1,n=!1,o=null,s=null,c=null,l=null,d=null,u=null;for(e=t.length-1;0<=e;e--){var p=t[e];(!1===i||p.lat>i)&&(i=(o=p).lat),(!1===r||p.lat<r)&&(r=(s=p).lat),(!1===a||p.lng>a)&&(a=(c=p).lng),(!1===n||p.lng<n)&&(n=(l=p).lng)}return d=r!==i?(u=s,o):(u=l,c),[].concat(this.buildConvexHull([u,d],t),this.buildConvexHull([d,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,n=this._2PI/t,o=[];for(a=Math.max(a,35),o.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*n,o[i]=new L.Point(e.x+a*Math.cos(r),e.y+a*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,a=r*this._spiralLengthStart,n=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,s=0,c=[];for(i=c.length=t;0<=i;i--)i<t&&(c[i]=new L.Point(e.x+a*Math.cos(s),e.y+a*Math.sin(s))._round()),a+=o/(s+=n/a+5e-4*i);return c},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,a=i._featureGroup,n=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=n.length-1;0<=e;e--)t=n[e],a.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:n}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,a,n,o=this._group,s=o._map,c=o._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,i=0;i<t.length;i++)n=s.layerPointToLatLng(e[i]),r=t[i],a=new L.Polyline([this._latlng,n],l),s.addLayer(a),r._spiderLeg=a,r._preSpiderfyLatlng=r._latlng,r.setLatLng(n),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,a,n,o,s,c=this,l=this._group,d=l._map,u=l._featureGroup,p=this._latlng,f=d.latLngToLayerPoint(p),h=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),b=m.opacity;for(void 0===b&&(b=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),h?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=b,l._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],s=d.layerPointToLatLng(e[i]),a=new L.Polyline([p,s],m),d.addLayer(a),r._spiderLeg=a,h&&(o=(n=a._path).getTotalLength()+.1,n.style.strokeDasharray=o,n.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=t.length-1;0<=i;i--)s=d.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.clusterShow&&r.clusterShow(),h&&((n=(a=r._spiderLeg)._path).style.strokeDashoffset=0,a.setStyle({opacity:b}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,a,n,o,s=this,c=this._group,l=c._map,d=c._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,!0),f=L.Path.SVG;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),i=p.length-1;0<=i;i--)(e=p[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,o=!0,e._setPos&&(e._setPos(u),o=!1),e.clusterHide&&(e.clusterHide(),o=!1),o&&d.removeLayer(e),f&&(n=(a=(r=e._spiderLeg)._path).getTotalLength()+.1,a.style.strokeDashoffset=n,r.setStyle({opacity:0})));c._ignoreMove=!1,setTimeout((function(){var t=0;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&t++;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&d.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:s,markers:p})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(leaflet_markercluster,leaflet_markercluster.exports);!function(t){if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("object"==typeof exports)module.exports=t(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=t(window.L)}}((function(t){var e=t.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:!0,zoomLevel:void 0,drawCircle:!0,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>',htmlSpinner:'\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>',htmlGeolocation:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>',htmlOrientation:'\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>',iconGeolocation:t.divIcon({html:'\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:t.divIcon({html:'\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(e){t.Util.setOptions(this,e),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(e){return this._map=e,this._button=t.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&t.DomUtil.addClass(this._button,this.options.className),t.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),t.DomEvent.on(this._button,"click",t.DomEvent.stopPropagation).on(this._button,"click",t.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(t){this.options.zoomLevel=t},_onClick:function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((function(){clearTimeout(t._clickTimeout),t._clickTimeout=void 0,t._map&&(t._clicked&&t.options.setViewAfterClick?t._setView():(t._clicked=!0,t._updateButton(),t._map.on("layeradd",t._onLayerAdd,t),t._checkGeolocation().then((function(e){t._geolocation=!0,t._onLocationFound(e.coords),t.options.setViewAfterClick&&t._setView(),t._watchGeolocation(),t._checkClickResult()})).catch((function(){t._geolocation=!1,t._checkClickResult()})),t._checkOrientation().then((function(){t._orientation=!0,t._watchOrientation(),t._checkClickResult()})).catch((function(){t._orientation=!1,t._checkClickResult()}))))}),this.options.clickTimeoutDelay);return[2]}))}))},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),!1===this._geolocation&&!1===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise((function(t,e){navigator.geolocation.getCurrentPosition(t,e,{maximumAge:0,enableHighAccuracy:!0})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((function(t){return"granted"===t||Promise.reject()})):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:!0,enableHighAccuracy:!0}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){t.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){t.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(t){this._latitude&&t.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*t.latitude)&&this._longitude&&t.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*t.longitude)&&this._accuracy&&t.accuracy&&Math.round(100*this._accuracy)===Math.round(100*t.accuracy)||(this._latitude=t.latitude,this._longitude=t.longitude,this._accuracy=t.accuracy,this._updateMarker())},_onOrientation:function(t){var e;e=t.webkitCompassHeading||360-t.alpha,this._angle&&Math.abs(e-this._angle)<this.options.minAngleChange||(this._angle=e,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(t){this.options.afterMarkerAdd&&t.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){var e=void 0;if(this._geolocation&&this._orientation&&this._angle)e="iconOrientation";else{if(!this._geolocation)return;e="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=t.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===e?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=t.marker([this._latitude,this._longitude],{icon:this.options[e]}),this._marker.icon_name=e,this._marker.addTo(this._map))}}});return t.control.simpleLocate=function(t){return new e(t)},e}));var earthRadius=6371008.8;var factors={centimeters:earthRadius*100,centimetres:earthRadius*100,degrees:earthRadius/111325,feet:earthRadius*3.28084,inches:earthRadius*39.37,kilometers:earthRadius/1e3,kilometres:earthRadius/1e3,meters:earthRadius,metres:earthRadius,miles:earthRadius/1609.344,millimeters:earthRadius*1e3,millimetres:earthRadius*1e3,nauticalmiles:earthRadius/1852,radians:1,yards:earthRadius*1.0936};function feature(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function point(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!isNumber(t[0])||!isNumber(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return feature(r,e,i)}function featureCollection(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function radiansToLength(t,e){if(e===void 0){e="kilometers"}var i=factors[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function degreesToRadians(t){var e=t%360;return e*Math.PI/180}function isNumber(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function coordEach(t,e,i){if(t===null)return;var r,a,n,o,s,c,l,d=0,u=0,p,f=t.type,h=f==="FeatureCollection",m=f==="Feature",b=h?t.features.length:1;for(var v=0;v<b;v++){l=h?t.features[v].geometry:m?t.geometry:t;p=l?l.type==="GeometryCollection":false;s=p?l.geometries.length:1;for(var g=0;g<s;g++){var w=0;var k=0;o=p?l.geometries[g]:l;if(o===null)continue;c=o.coordinates;var y=o.type;d=i&&(y==="Polygon"||y==="MultiPolygon")?1:0;switch(y){case null:break;case"Point":if(e(c,u,v,w,k)===false)return false;u++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(e(c[r],u,v,w,k)===false)return false;u++;if(y==="MultiPoint")w++}if(y==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(a=0;a<c[r].length-d;a++){if(e(c[r][a],u,v,w,k)===false)return false;u++}if(y==="MultiLineString")w++;if(y==="Polygon")k++}if(y==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<c.length;r++){k=0;for(a=0;a<c[r].length;a++){for(n=0;n<c[r][a].length-d;n++){if(e(c[r][a][n],u,v,w,k)===false)return false;u++}k++}w++}break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(coordEach(o.geometries[r],e,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function featureEach(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function explode(t){var e=[];if(t.type==="FeatureCollection"){featureEach(t,(function(t){coordEach(t,(function(i){e.push(point(i,t.properties))}))}))}else{coordEach(t,(function(i){e.push(point(i,t.properties))}))}return featureCollection(e)}function bbox(t){var e=[Infinity,Infinity,-Infinity,-Infinity];coordEach(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}bbox["default"]=bbox;function center(t,e){if(e===void 0){e={}}var i=bbox(t);var r=(i[0]+i[2])/2;var a=(i[1]+i[3])/2;return point([r,a],e.properties,e)}function clone(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return cloneFeature(t);case"FeatureCollection":return cloneFeatureCollection(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(t);default:throw new Error("unknown GeoJSON type")}}function cloneFeature(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=cloneProperties(t.properties);e.geometry=cloneGeometry(t.geometry);return e}function cloneProperties(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=cloneProperties(r)}}else{e[i]=r}}));return e}function cloneFeatureCollection(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return cloneFeature(t)}));return e}function cloneGeometry(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return cloneGeometry(t)}));return e}e.coordinates=deepSlice(t.coordinates);return e}function deepSlice(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return deepSlice(t)}))}function getCoord(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function getGeom(t){if(t.type==="Feature"){return t.geometry}return t}function distance(t,e,i){if(i===void 0){i={}}var r=getCoord(t);var a=getCoord(e);var n=degreesToRadians(a[1]-r[1]);var o=degreesToRadians(a[0]-r[0]);var s=degreesToRadians(r[1]);var c=degreesToRadians(a[1]);var l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(o/2),2)*Math.cos(s)*Math.cos(c);return radiansToLength(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function nearestPoint(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var a=0;featureEach(e,(function(e,i){var n=distance(t,e);if(n<r){a=i;r=n}}));i=clone(e.features[a]);i.properties.featureIndex=a;i.properties.distanceToPoint=r;return i}function booleanPointInPolygon(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=getCoord(t);var a=getGeom(e);var n=a.type;var o=e.bbox;var s=a.coordinates;if(o&&inBBox(r,o)===false){return false}if(n==="Polygon"){s=[s]}var c=false;for(var l=0;l<s.length&&!c;l++){if(inRing(r,s[l][0],i.ignoreBoundary)){var d=false;var u=1;while(u<s[l].length&&!d){if(inRing(r,s[l][u],!i.ignoreBoundary)){d=true}u++}if(!d){c=true}}}return c}function inRing(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var a=0,n=e.length-1;a<e.length;n=a++){var o=e[a][0];var s=e[a][1];var c=e[n][0];var l=e[n][1];var d=t[1]*(o-c)+s*(c-t[0])+l*(t[0]-o)===0&&(o-t[0])*(c-t[0])<=0&&(s-t[1])*(l-t[1])<=0;if(d){return!i}var u=s>t[1]!==l>t[1]&&t[0]<(c-o)*(t[1]-s)/(l-s)+o;if(u){r=!r}}return r}function inBBox(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function pointOnFeature(t){var e=normalize(t);var i=center(e);var r=false;var a=0;while(!r&&a<e.features.length){var n=e.features[a].geometry;var o,s,c,l,d,u,p;var f=false;if(n.type==="Point"){if(i.geometry.coordinates[0]===n.coordinates[0]&&i.geometry.coordinates[1]===n.coordinates[1]){r=true}}else if(n.type==="MultiPoint"){var h=false;p=0;while(!h&&p<n.coordinates.length){if(i.geometry.coordinates[0]===n.coordinates[p][0]&&i.geometry.coordinates[1]===n.coordinates[p][1]){r=true;h=true}p++}}else if(n.type==="LineString"){p=0;while(!f&&p<n.coordinates.length-1){o=i.geometry.coordinates[0];s=i.geometry.coordinates[1];c=n.coordinates[p][0];l=n.coordinates[p][1];d=n.coordinates[p+1][0];u=n.coordinates[p+1][1];if(pointOnSegment(o,s,c,l,d,u)){f=true;r=true}p++}}else if(n.type==="MultiLineString"){var m=0;while(m<n.coordinates.length){f=false;p=0;var b=n.coordinates[m];while(!f&&p<b.length-1){o=i.geometry.coordinates[0];s=i.geometry.coordinates[1];c=b[p][0];l=b[p][1];d=b[p+1][0];u=b[p+1][1];if(pointOnSegment(o,s,c,l,d,u)){f=true;r=true}p++}m++}}else if(n.type==="Polygon"||n.type==="MultiPolygon"){if(booleanPointInPolygon(i,n)){r=true}}a++}if(r){return i}else{var v=featureCollection([]);for(a=0;a<e.features.length;a++){v.features=v.features.concat(explode(e.features[a]).features)}return point(nearestPoint(i,v).geometry.coordinates)}}function normalize(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return featureCollection([feature(t)])}return featureCollection([t])}return t}function pointOnSegment(t,e,i,r,a,n){var o=Math.sqrt((a-i)*(a-i)+(n-r)*(n-r));var s=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var c=Math.sqrt((a-t)*(a-t)+(n-e)*(n-e));return o===s+c}(function(){var t=L.Polyline.prototype.onAdd,e=L.Polyline.prototype.onRemove,i=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront;var a={onAdd:function(e){t.call(this,e);this._textRedraw()},onRemove:function(t){t=t||this._map;if(t&&this._textNode&&this._renderer._container)this._renderer._container.removeChild(this._textNode);e.call(this,t)},bringToFront:function(){r.call(this);this._textRedraw()},_updatePath:function(){i.call(this);this._textRedraw()},_textRedraw:function(){var t=this._text,e=this._textOptions;if(t){this.setText(null).setText(t,e)}},setText:function(t,e){this._text=t;this._textOptions=e;if(!L.Browser.svg||typeof this._map==="undefined"){return this}var i={repeat:false,fillColor:"black",attributes:{},below:false};e=L.Util.extend(i,e);if(!t){if(this._textNode&&this._textNode.parentNode){this._renderer._container.removeChild(this._textNode);delete this._textNode}return this}t=t.replace(/ /g," ");var r="pathdef-"+L.Util.stamp(this);var a=this._renderer._container;this._path.setAttribute("id",r);if(e.repeat){if(e.repeat!=true&&e.repeat>=1){t=t.padStart(e.repeat," ")}var n=L.SVG.create("text");for(var o in e.attributes)n.setAttribute(o,e.attributes[o]);n.appendChild(document.createTextNode(t));a.appendChild(n);var s=n.getComputedTextLength();a.removeChild(n);t=new Array(Math.ceil(isNaN(this._path.getTotalLength()/s)?0:this._path.getTotalLength()/s)).join(t)}var c=L.SVG.create("text"),l=L.SVG.create("textPath");var d=e.offset||this._path.getAttribute("stroke-width");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+r);c.setAttribute("dy",d);for(var o in e.attributes)c.setAttribute(o,e.attributes[o]);l.appendChild(document.createTextNode(t));c.appendChild(l);this._textNode=c;if(e.below){a.insertBefore(c,a.firstChild)}else{a.appendChild(c)}if(e.center){var u=c.getComputedTextLength();var p=this._path.getTotalLength();c.setAttribute("dx",p/2-u/2)}if(e.orientation){var f=0;switch(e.orientation){case"flip":f=180;break;case"perpendicular":f=90;break;default:f=e.orientation}var h=c.getBBox().x+c.getBBox().width/2;var m=c.getBBox().y+c.getBBox().height/2;c.setAttribute("transform","rotate("+f+" "+h+" "+m+")")}if(this.options.interactive){if(L.Browser.svg||!L.Browser.vml){l.setAttribute("class","leaflet-interactive")}var b=["click","dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"];for(var v=0;v<b.length;v++){L.DomEvent.on(c,b[v],this.fire,this)}}return this}};L.Polyline.include(a);L.LayerGroup.include({setText:function(t,e){for(var i in this._layers){if(typeof this._layers[i].setText==="function"){this._layers[i].setText(t,e)}}return this}})})();var grwMapCss='@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup,.outdoor-site-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img,.outdoor-site-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.poi-tooltip .signage-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.information-desks-tooltip .signage-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.sensitive-area-tooltip .signage-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-content-tooltip .signage-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.touristic-event-tooltip .signage-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.signage-marker{overflow:hidden;border-radius:0%}.signage-marker img{width:30% !important;margin-right:8px}.signage-marker .signage-name{color:white;white-space:nowrap;max-width:50%}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}.leaflet-simple-locate-icon{fill:#1e90ff}';var GrwMapStyle0=grwMapCss;var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.touristicEventCardPress=createEvent(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=createEvent(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=createEvent(this,"outdoorCourseCardPress",7);this.maxZoom=19;this.mapIsReady=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.arrowRepeat=20;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this)}t.prototype.onCenterOnMap=function(t){this.map.setView(new L$1.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){if(this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){if(this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){if(this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationPlacesIsInViewport=function(t){if(this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){if(this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){if(this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}};t.prototype.touristicContentsIsInViewport=function(t){if(this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}};t.prototype.touristicEventsIsInViewport=function(t){if(this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer)}};t.prototype.sitesIsInViewport=function(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}};t.prototype.coursesIsInViewport=function(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}};t.prototype.onCardTrekMouseOver=function(t){if(!state.parentTrek&&(!state.selectedTrekId||state.selectedTrekId!==t.detail)){state.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(state.parentTrek){this.stepPopupIsOpen=false;state.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}};t.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&state.selectedTrekId){this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};t.prototype.onTouristicContentMouseOver=function(t){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)};t.prototype.onTouristicContentMouseLeave=function(){state.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};t.prototype.onTouristicEventMouseOver=function(t){this.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)};t.prototype.onTouristicEventMouseLeave=function(){state.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};t.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};t.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};t.prototype.onOutdoorSiteMouseOver=function(t){this.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)};t.prototype.onOutdoorSiteMouseLeave=function(){state.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};t.prototype.componentDidLoad=function(){var t=this;this.map=L$1.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,a){t.tileLayer.push({key:"".concat(e[a]),value:bundle.exports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[a]&&r[a]!==""?r[a].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=L$1.control.layers(this.tileLayer.reduce((function(t,e){var i;return Object.assign(t,(i={},i[e.key]=e.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}L$1.control.zoom({zoomInTitle:translate[state.language].zoomIn,zoomOutTitle:translate[state.language].zoomOut}).addTo(this.map);L$1.control.scale({metric:true,imperial:false}).addTo(this.map);L$1.Control.Contract=L$1.Control.extend({onAdd:function(){var e=L$1.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(L$1.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";e.onclick=function(e){t.bounds&&t.map.fitBounds(t.bounds);e.preventDefault()};i.title=translate[state.language].contract;return e}});L$1.control.contract=function(t){return new L$1.Control.Contract(t)};L$1.control.contract({position:"topleft"}).addTo(this.map);new L$1.Control.SimpleLocate({position:"topleft",className:"button-locate",title:translate[state.language].locate}).addTo(this.map);if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}else if(state.currentTouristicContent){this.addTouristicContent()}else if(state.currentTouristicEvent){this.addTouristicEvent()}else if(state.currentOutdoorSite){this.addOutdoorSite()}else if(state.currentOutdoorCourse){this.addOutdoorCourse()}else if(state.touristicContents){this.addTouristicContents()}else if(state.touristicEvents){this.addTouristicEvents()}else if(state.outdoorSites){this.addOutdoorSites()}onChange("currentTreks",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));onChange("currentOutdoorSites",(function(){if(state.currentOutdoorSites){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.addOutdoorSites(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorSite){t.removeOutdoorCourse();t.removeOutdoorSites();t.addOutdoorSite()}else if(state.currentOutdoorSites){t.removeOutdoorSite();t.addOutdoorSites()}}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorCourse){t.removeOutdoorSite();t.addOutdoorCourse()}}));onChange("currentTouristicContent",(function(){if(t.grwApp){if(state.currentTouristicContent){t.removeTrek();t.removeTouristicContents();t.addTouristicContent()}else if(state.touristicContents){t.removeTouristicContent();t.addTouristicContents()}else if(state.currentTrek){t.removeTouristicContent();t.addTrek()}else if(state.currentTreks){t.removeTouristicContent();t.addTreks()}}}));onChange("currentTouristicEvent",(function(){if(t.grwApp){if(state.currentTouristicEvent){t.removeTrek();t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(state.currentTreks){t.removeTouristicEvent();t.addTreks()}}}));onChange("currentTouristicContents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(state.currentTouristicContents){t.removeTreks();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTouristicContent();t.addTouristicContents(true)}}));onChange("currentTouristicEvents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicEvent){t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTouristicEvents){t.removeTreks();t.removeTouristicContents();t.removeOutdoorSites();t.removeTouristicEvent();t.addTouristicEvents(true)}}))};t.prototype.handleLayerVisibility=function(t,e){if(t&&!this.map.hasLayer(e)){e.addTo(this.map)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()};t.prototype.addTreks=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s,c;var l=this;if(t===void 0){t=false}return __generator(this,(function(d){switch(d.label){case 0:state.treksWithinBounds=state.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTreks){a=function(t){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=state.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=state.currentTreks;n<o.length;n++){s=o[n];a(s)}}if(!!this.treksLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:c=d.sent();this.treksLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:c[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(c[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:l.mainMarkerSize,iconAnchor:[l.mainMarkerSize/2,l.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(l,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image-popup";n.src=r;a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){l.hideTrekLine();l.showTrekLine(t.properties.id);l.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:l.mainClusterSize})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);d.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){if(this.treksLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(state.currentTreks&&!state.currentMapBounds||state.currentTreks&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.handleTouristicContentsWithinBounds=function(){var t=this;if(state.currentTouristicContents&&!state.currentMapBounds||state.currentTouristicContents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicContentsWithinBounds=state.currentTouristicContents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleTouristicEventsWithinBounds=function(){var t=this;if(state.currentTouristicEvents&&!state.currentMapBounds||state.currentTouristicEvents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicEventsWithinBounds=state.currentTouristicEvents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleOutdoorSitesWithinBounds=function(){var t=this;if(state.currentOutdoorSites&&!state.currentMapBounds||state.currentOutdoorSites&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.outdoorSitesWithinBounds=state.currentOutdoorSites.filter((function(e){var i=pointOnFeature(e.geometry).geometry.coordinates;return t.map.getBounds().contains(L$1.latLng(i[1],i[0]))}))}};t.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A;var L=this;return __generator(this,(function(_){switch(_.label){case 0:return[4,getDataInStore("treks",state.currentTrek.id)];case 1:e=_.sent();if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(i,{style:function(){return{color:"transparent"}},onEachFeature:function(t,e){e.setText(">",{repeat:L.arrowRepeat,center:true,attributes:{fill:"#000000","font-weight":"bold","font-size":"16px"}})},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){r=getAssetPath("".concat("","assets/parking.svg"));a={type:"Feature",properties:{name:state.currentTrek.advised_parking},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:L.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){n={type:"FeatureCollection",features:[]};for(o=0,s=state.currentSensitiveAreas;o<s.length;o++){c=s[o];n.features.push({type:"Feature",properties:{name:c.name},geometry:c.geometry})}this.currentSensitiveAreasLayer=L$1.geoJSON(n,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:L.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(state.currentTrek)];case 2:_.sent();return[4,this.addCurrentPois()];case 3:_.sent();return[4,this.addCurrentSignages()];case 4:_.sent();return[4,this.addCurrentTouristicContents()];case 5:_.sent();return[4,this.addCurrentTouristicEvents()];case 6:_.sent();if(state.currentTrek.points_reference){l={type:"FeatureCollection",features:[]};l.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});d=0;this.currentReferencePointsLayer=L$1.geoJSON(l,{pointToLayer:function(t,e){d+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(d,"</div>"),className:"",iconSize:L.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){u={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){p=function(e){u.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=state.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(t){return t.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(f=0,h=state.currentTrekSteps;f<h.length;f++){m=h[f];p(m)}}b=0;this.currentStepsLayer=L$1.geoJSON(u,{pointToLayer:function(t,e){b+=1;return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(b,"</div></div></div>"),className:"",iconSize:L.mainMarkerSize,iconAnchor:[L.mainMarkerSize/2,L.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(L,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;a.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";a.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){L.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}v={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};L$1.registerLocale("fr",v);L$1.setLocale("fr");g=state.currentTrek.geometry.coordinates.map((function(t){return t[2]})).filter((function(t){return t!==undefined&&t!==null}));w={yAxisMin:g.length>0?Math.min.apply(Math,g)*.75:0,yAxisMax:g.length>0?Math.max.apply(Math,g)*1.25:0};k=Object.assign({elevationDiv:"#elevation-container",theme:"custom-theme use-theme-color",height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:false},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false},w);this.elevationControl=L$1.control.elevation(k).addTo(this.map);y=JSON.stringify({name:"".concat(state.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:state.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(y);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";forceUpdate(this.hostElement);x={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[state.currentTrek.geometry.coordinates.length-1]},properties:null}]};A=0;this.departureArrivalLayer=L$1.geoJSON(x,{pointToLayer:function(t,e){A+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="'.concat(A===1?"departure-marker":"arrival-marker",'" class="').concat(A===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:L.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=L$1.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.on("eledata_loaded",(function(){L.map.invalidateSize();L.bounds&&L.map.fitBounds(L.bounds);!L.mapIsReady&&(L.mapIsReady=!L.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;return __generator(this,(function(o){switch(o.label){case 0:i={};r=0;o.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];a=i;n=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:a[n]=o.sent();o.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!!Capacitor.isNativePlatform())return[3,5];return[4,checkFileInStore(t)];case 1:i=s.sent();if(!i)return[3,3];n=(a=window.URL).createObjectURL;return[4,getFileInStore(t)];case 2:r=n.apply(a,[s.sent().data]);return[3,4];case 3:r=t?t:null;s.label=4;case 4:e=r;return[3,7];case 5:return[4,Filesystem.getUri({path:t,directory:Directory.Data})];case 6:o=s.sent();if(o){e=Capacitor.convertFileSrc(o.uri)}s.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(state.currentTreks){a=state.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.departure_geom},properties:{id:a.id,name:a.name,practice:(i=state.practices.find((function(t){return t.id===a.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedCurrentTrek();state.selectedTrekId=t;return[4,this.getIcons(r,"practice")];case 1:n=s.sent();this.selectedCurrentTrekLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(n[t.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(o,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;n.part="trek-image";a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!o.trekPopupIsOpen){state.selectedTrekId=null;o.hideTrekLine();o.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){o.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){o.trekPopupIsOpen=false;state.selectedTrekId=null;o.hideTrekLine();o.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedCurrentTrek=function(){state.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};t.prototype.addSelectedCurrentStep=function(t,e){var i=this;var r;var a={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var n=state.currentTrekSteps.findIndex((function(e){return e.id===t}));a.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[n].departure_geom},properties:{id:state.currentTrekSteps[n].id,name:state.currentTrekSteps[n].name,practice:(r=state.practices.find((function(t){return t.id===state.currentTrekSteps[n].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[n].attachments&&state.currentTrekSteps[n].attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTrekSteps[n].attachments[0].thumbnail!==""?state.currentTrekSteps[n].attachments[0].thumbnail:state.currentTrekSteps[n].attachments[0].url:null,index:n+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(t.properties.index,"</div></div></div>"),className:"",iconSize:i.selectedMainMarkerSize,iconAnchor:[i.selectedMainMarkerSize/2,i.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image";n.src=r;a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-name";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!i.stepPopupIsOpen){state.selectedTrekId=null;i.removeSelectedCurrentStep()}}));e.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(state.selectedStepId)}));e.on("popupclose",(function(){if(state.selectedStepId){i.stepPopupIsOpen=false;state.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};t.prototype.removeSelectedCurrentStep=function(){if(state.selectedStepId){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};t.prototype.handleLayersControlEvent=function(){var t=this;if(this.layersControl){var e=this.layersControl._layerControlInputs;e.forEach((function(e){if(t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId})).overlay){e.onchange=function(i){t.userLayersState[e.layerId]=i.target.checked}}}))}};t.prototype.removeTrek=function(){this.handleLayersOnRemove()};t.prototype.showTrekLine=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:this.removeSelectedCurrentTrek();return[4,getTrekGeometry(t)];case 1:e=a.sent();i={type:"Feature",geometry:e.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(i,{style:function(){return{color:r.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};t.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();t={type:"FeatureCollection",features:[]};if(state.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicContent.geometry.coordinates},properties:{id:state.currentTouristicContent.id,name:state.currentTouristicContent.name,practice:state.touristicContentCategories.find((function(t){return t.id===state.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:e=r.sent();this.currentToutisticContentLayer=L$1.geoJSON(t,{pointToLayer:function(t,r){return L$1.marker(r,{icon:L$1.divIcon({html:e[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(e[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:i.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);r.label=2;case 2:this.map.setView([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s;var c=this;if(t===void 0){t=false}return __generator(this,(function(l){switch(l.label){case 0:state.touristicContentsWithinBounds=state.currentTouristicContents;e=[];i={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){r=function(t){e.push(t.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:state.touristicContentCategories.find((function(e){return e.id===t.category})).pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(a=0,n=state.currentTouristicContents;a<n.length;a++){o=n[a];r(o)}}if(!!this.toutisticContentsLayer)return[3,2];if(e.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(i,"practice")];case 1:s=l.sent();this.toutisticContentsLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:c.mainMarkerSize,iconAnchor:[c.mainMarkerSize/2,c.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;i.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return c.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){c.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:c.mainClusterSize})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(e.length>0){this.bounds=L$1.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);l.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};t.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){e=state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type}));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentToutisticEventLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);a.label=2;case 2:this.map.setView([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicContents){a=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicContentCategories.find((function(t){return t.id===a.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:n=s.sent();this.selectedTouristicContentLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return o.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;o.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){o.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){o.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;o.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};t.prototype.addTouristicEvents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s,c;var l=this;if(t===void 0){t=false}return __generator(this,(function(d){switch(d.label){case 0:state.touristicEventsWithinBounds=state.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){a=function(t){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=state.currentTouristicEvents;n<o.length;n++){s=o[n];a(s)}}if(!!this.touristicEventsLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"type")];case 1:c=d.sent();this.touristicEventsLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:c[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(c[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:l.mainMarkerSize,iconAnchor:[l.mainMarkerSize/2,l.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return l.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){l.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:l.mainClusterSize})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);d.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicEvents=function(){if(this.touristicEventsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};t.prototype.addOutdoorSites=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s,c,l;var d=this;if(t===void 0){t=false}return __generator(this,(function(u){switch(u.label){case 0:state.outdoorSitesWithinBounds=state.currentOutdoorSites;i=[];r={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){a=function(t){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(e=state.outdoorPractices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=state.currentOutdoorSites;n<o.length;n++){s=o[n];a(s)}}if(!!this.outdoorSitesLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){c=bbox(r);this.bounds=L$1.latLngBounds([c[1],c[0]],[c[3],c[2]])}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:l=u.sent();this.outdoorSitesLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(l[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:d.mainMarkerSize,iconAnchor:[d.mainMarkerSize/2,d.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="outdoor-site-button";n.className="outdoor-site-button";n.onclick=function(){return d.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){d.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:d.mainClusterSize})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(r);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);u.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind);return[2]}}))}))};t.prototype.removeOutdoorSites=function(){if(this.outdoorSitesLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};t.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorSite){e=state.outdoorPractices.find((function(t){return t.id===state.currentOutdoorSite.practice}));t.features.push({type:"Feature",geometry:state.currentOutdoorSite.geometry,properties:{id:state.currentOutdoorSite.id,name:state.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:i=a.sent();this.currentOutdoorSiteLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);a.label=2;case 2:return[4,this.addCurrentInformationDesks(state.currentOutdoorSite)];case 3:a.sent();return[4,this.addCurrentPois()];case 4:a.sent();return[4,this.addCurrentTouristicContents()];case 5:a.sent();return[4,this.addCurrentTouristicEvents()];case 6:a.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:a.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:a.sent();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorSites){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=state.outdoorPractices.find((function(t){return t.id===i.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorSites;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:o=c.sent();this.currentRelatedOutdoorSitesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:s.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorCourses){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=state.outdoorCourseTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorCourses;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:o=c.sent();this.currentRelatedOutdoorCoursesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.practice]?'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:s.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicEvents){a=state.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicEventTypes.find((function(t){return t.id===a.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:n=s.sent();this.selectedTouristicEventLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return o.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;o.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){o.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));e.on("popupclose",(function(){if(state.selectedTouristicEventId){o.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;o.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicEvent=function(){state.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};t.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){e=state.outdoorCourseTypes.find((function(t){return t.id===state.currentOutdoorCourse.type}));t.features.push({type:"Feature",geometry:state.currentOutdoorCourse.geometry,properties:{id:state.currentOutdoorCourse.id,name:state.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentOutdoorCourseLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);a.label=2;case 2:return[4,this.addCurrentPois()];case 3:a.sent();return[4,this.addCurrentTouristicContents()];case 4:a.sent();return[4,this.addCurrentTouristicEvents()];case 5:a.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){r=state.currentOutdoorSites.find((function(e){return e.id===t}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(e=state.outdoorPractices.find((function(t){return t.id===r.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();state.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:a=o.sent();this.selectedOutdoorSiteLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(a[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=function(){return n.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorSitePopupIsOpen){state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){n.outdoorSitePopupIsOpen=Boolean(state.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(state.selectedOutdoorSiteId){n.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorSite=function(){state.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};t.prototype.addSelectedOutdoorCourse=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){r=state.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(e=state.outdoorCourseTypes.find((function(t){return t.id===r.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();state.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:a=o.sent();this.selectedOutdoorCourseLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(a[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-course-name";a.className="outdoor-course-name";i.appendChild(a);var o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-course-button";o.className="outdoor-course-button";o.onclick=function(){return n.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorCoursePopupIsOpen){state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){n.outdoorCoursePopupIsOpen=Boolean(state.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(state.selectedOutdoorCourseId){n.outdoorCoursePopupIsOpen=false;state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorCourse=function(){state.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};t.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:if(!(state.currentPois&&state.currentPois.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=state.poiTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,a=state.currentPois;r<a.length;r++){n=a[r];i(n)}return[4,this.getIcons(e,"type_pictogram")];case 1:o=c.sent();this.currentPoisLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.type_pictogram]?'<div part="poi-marker" class="poi-marker"><img src='.concat(o[t.properties.type_pictogram]," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentSignages=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(o){if(state.currentSignages&&state.currentSignages.length>0){t=getAssetPath("".concat("","assets/signage.svg"));e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentSignages;i<r.length;i++){a=r[i];e.features.push({type:"Feature",properties:{name:a.name},geometry:a.geometry})}this.currentSignagesLayer=L$1.geoJSON(e,{pointToLayer:function(e,i){return L$1.marker(i,{icon:L$1.divIcon({html:'<div part="signage-marker" class="signage-marker"><img part="signage-img" src='.concat(t,' /><div part="signage-name" class="signage-name">').concat(e.properties.name,"</div></div>"),className:"",iconSize:[n.commonMarkerSize*1.2,n.commonMarkerSize*.8]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}return[2]}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:if(!(state.trekTouristicContents&&state.trekTouristicContents.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(t=state.touristicContentCategories.find((function(t){return t.id===i.category})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,a=state.trekTouristicContents;r<a.length;r++){n=a[r];i(n)}return[4,this.getIcons(e,"category_pictogram")];case 1:o=c.sent();this.currentToutisticContentsLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.category_pictogram]?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(o[t.properties.category_pictogram]," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:s.grwApp?"":"cursor-pointer",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.on("click",(function(){if(!s.grwApp){s.touristicContentCardPress.emit(t.properties.id)}}));e.on("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-tooltip";i.className="touristic-content-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:if(!(state.trekTouristicEvents&&state.trekTouristicEvents.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(t=state.touristicEventTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,a=state.trekTouristicEvents;r<a.length;r++){n=a[r];i(n)}return[4,this.getIcons(e,"type_pictogram")];case 1:o=c.sent();this.currentTouristicEventsLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.type_pictogram]?'\n <div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(o[t.properties.type_pictogram]," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:s.grwApp?"":"cursor-pointer",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.on("click",(function(){if(!s.grwApp){s.touristicEventCardPress.emit(t.properties.id)}}));e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-tooltip";i.className="touristic-event-tooltip";var r=L$1.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:if(!(state.currentInformationDesks&&state.currentInformationDesks.length>0))return[3,2];e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentInformationDesks.filter((function(e){return t.information_desks.includes(e.id)}));i<r.length;i++){a=r[i];if(a.latitude&&a.longitude){e.features.push({type:"Feature",properties:{name:a.name,type_pictogram:a.type.pictogram},geometry:{type:"Point",coordinates:[Number(a.longitude),Number(a.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:n=s.sent();this.currentInformationDesksLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:n[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(n[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:o.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=L$1.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});s.label=2;case 2:return[2]}}))}))};t.prototype.handleLayersControl=function(){var t=this;var e={};if(this.currentStepsLayer){e[translate[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[translate[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[translate[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[translate[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[translate[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){e[translate[state.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){e[translate[state.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(this.currentToutisticContentsLayer){e[translate[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentTouristicEventsLayer){e[translate[state.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[translate[state.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[translate[state.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((function(i){t.layersControl.addOverlay(e[i],i)}))}else if(Object.keys(e).length>0){this.layersControl=L$1.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};t.prototype.handleLayersOnRemove=function(){var t=this;if(this.layersControl){if(!this.layersControl._layers.some((function(t){return!t.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(t){return t.overlay})).forEach((function(e){t.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=t;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}forceUpdate(this.hostElement)};t.prototype.handleElevation=function(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();forceUpdate(this.hostElement)};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat("","assets/layers.svg"));var i=getAssetPath("".concat("","assets/contract.svg"));return h(Host,{key:"0cc05821812e1ba85bd063e4969f29664dbc38de",ref:function(e){return t.hostElement=e},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(i,")"),"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},h("div",{key:"d4b25ee54001d8a1b0ad9bb412648200d8dafddb",id:"map",part:"map",class:(state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSite||state.currentOutdoorCourse)&&this.grwApp?"common-map":state.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}},state.currentTrek&&h("div",{key:"ae3c4068d5442a05a15ee987002f81f5d279e5dd",class:"grw-elevation-visibility-button-container"},h("grw-fab",{key:"18d8cf804e1da3c53af38828d7968e634be340ff",exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleElevation()},icon:function(){return t.elevationControl&&t.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation"},showTitle:translate[state.language].showElevation,hideTitle:translate[state.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&h("div",{key:"f1de8f52f5aa7351fb54f10bf500247ee9f83601",part:"map-loader-container",class:"map-loader-container"},h("span",{key:"9347b4ba495d468a47d0422ba0bbbe5a6ec9bec7",part:"loader",class:"loader"})))};Object.defineProperty(t.prototype,"mapElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwMap.style=GrwMapStyle0;var grwOfflineConfirmModalCss=":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}";var GrwOfflineConfirmModalStyle0=grwOfflineConfirmModalCss;var GrwOfflineConfirmModal=function(){function t(t){registerInstance(this,t);this.downloadPress=createEvent(this,"downloadPress",7);this.deletePress=createEvent(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showErrorModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.downloadedErrorConfirm=function(){this.showLoaderModal=false;this.showErrorModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.deleteErrorConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){document.body.style.overflow="visible";this.showOfflineModal=false};t.prototype.render=function(){var t=this;return h(Host,{key:"045ef2fbe3d25fdc9035ff73cfab0f3a3808b8cf"},this.showOfflineModal&&h("div",{key:"a8c74039ed07f671edcf6e3c25d1222807b812a4",class:"modal-container"},h("div",{key:"0db285570b2cb6d758a715dd63e48d1bfb5f662f",class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,{key:"676e7ba2759d5422e619df3e4e196f3f67bb987f"},h("div",{key:"d134626c541aed0369ae741a0704a942c9a4da3e",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.downloadRouteQuestion:translate[state.language].offline.downloadOutdoorQuestion)),h("div",{key:"1f215e5a03fa7ec7c8cba2f0392d8f6f91b7b799",class:"modal-buttons-container"},h("button",{key:"09794b5296ec67f030cb05c2ed462ba5c02f4cad",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"6b9866239217b996bd661648c0550a663ef03db6",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},translate[state.language].offline.ok))),this.showConfirmDeleteModal&&h(Fragment,{key:"cbc9c9b34e3f4656ed1adee9b8cf1d2c529c6793"},h("div",{key:"25ddd2dbb2e7b3337096dbd2db3575afd3f1e4c5",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.deleteRouteQuestion:translate[state.language].offline.deleteRouteQuestion)),h("div",{key:"1cf5713c277e1f78d9a1541aa5af2c7ca4b315f1",class:"modal-buttons-container"},h("button",{key:"f422c2cb9a34cd98ffdb171c90a96e11d64c1e93",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"81249e379809c77acd16133de68176bc9e1372ab",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},translate[state.language].offline.ok))),this.showLoaderModal&&h(Fragment,{key:"3c2ea94b5e08845dada2d9a49ae6db2b99bb1bf1"},h("div",{key:"ee15ef40f8f1f7acbfaa6783fbf8ce8199664e93",class:"modal-message-container"},h("div",{key:"e5f3c1a34526901cbf69f99d2c86794ce2644a1e",class:"modal-loader"}),this.showDeletingMessage?translate[state.language].offline.deleting:translate[state.language].offline.downloading)),this.showSuccessModal&&h(Fragment,{key:"6210a63e9340b529000ee24b9a512b7d0b8ebf9a"},h("div",{key:"f48edd108ac7b872a644d4a515e614a04a410482",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.offlineRouteDeleted:translate[state.language].offline.offlineOutdoorDeleted:this.mode==="treks"?translate[state.language].offline.routeAvailableOffline:translate[state.language].offline.outdoorAvailableOffline),h("div",{key:"04bfe6d7c668ce078882aeff09900537b1d0d62f",class:"modal-button-container"},h("button",{key:"e0655f8785794a55d5a007a6ae950182aaae28f7",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))),this.showErrorModal&&h(Fragment,{key:"5231e280e60452ca20534b3beb9ff38d6a2aa9c5"},h("div",{key:"cfdc61f88cfdfa85f882a37b4c7a3a5d5f255ec2",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.deleteRouteError:translate[state.language].offline.deleteOutdoorError:this.mode==="treks"?translate[state.language].offline.downloadRouteError:translate[state.language].offline.downloadOutdoorError),h("div",{key:"09ccda66fe6b5f02670853e2103ac0e9e25aa576",class:"modal-button-container"},h("button",{key:"4ac3f93953794386ec525d3365737f5c05eb173e",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))))))};return t}();GrwOfflineConfirmModal.style=GrwOfflineConfirmModalStyle0;function Scrollbar(t){var e=t.swiper,i=t.extendParams,r=t.on,a=t.emit;var n=getDocument();var o=false;var s=null;var c=null;var l;var d;var u;var p;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,a=t.el;var n=e.params.scrollbar;var o=e.params.loop?e.progressLoop:e.progress;var c=d;var l=(u-d)*o;if(i){l=-l;if(l>0){c=d-l;l=0}else if(-l+d>u){c=u+l}}else if(l<0){c=d+l;l=0}else if(l+d>u){c=u-l}if(e.isHorizontal()){r.style.transform="translate3d(".concat(l,"px, 0, 0)");r.style.width="".concat(c,"px")}else{r.style.transform="translate3d(0px, ".concat(l,"px, 0)");r.style.height="".concat(c,"px")}if(n.hide){clearTimeout(s);a.style.opacity=1;s=setTimeout((function(){a.style.opacity=0;a.style.transitionDuration="400ms"}),1e3)}}function h(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){d=u*p}else{d=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(d,"px")}else{i.style.height="".concat(d,"px")}if(p>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function b(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){var i=e.scrollbar,r=e.rtlTranslate;var a=i.el;var n;n=(b(t)-elementOffset(a)[e.isHorizontal()?"left":"top"]-(l!==null?l:d/2))/(u-d);n=Math.max(Math.min(n,1),0);if(r){n=1-n}var o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*n;e.updateProgress(o);e.setTranslate(o);e.updateActiveIndex();e.updateSlidesClasses()}function g(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var s=r.el,d=r.dragEl;o=true;l=t.target===d?b(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();n.style.transitionDuration="100ms";d.style.transitionDuration="100ms";v(t);clearTimeout(c);s.style.transitionDuration="0ms";if(i.hide){s.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}a("scrollbarDragStart",t)}function w(t){var i=e.scrollbar,r=e.wrapperEl;var n=i.el,s=i.dragEl;if(!o)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;v(t);r.style.transitionDuration="0ms";n.style.transitionDuration="0ms";s.style.transitionDuration="0ms";a("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var s=r.el;if(!o)return;o=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";n.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=nextTick((function(){s.style.opacity=0;s.style.transitionDuration="400ms"}),1e3)}a("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function y(t){var i=e.scrollbar,r=e.params;var a=i.el;if(!a)return;var o=a;var s=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!o)return;var l=t==="on"?"addEventListener":"removeEventListener";o[l]("pointerdown",g,s);n[l]("pointermove",w,s);n[l]("pointerup",k,c)}function x(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("off")}function L(){var t=e.scrollbar,i=e.el;e.params.scrollbar=createElementIfNotDefined(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});var r=e.params.scrollbar;if(!r.el)return;var a;if(typeof r.el==="string"&&e.isElement){a=e.el.shadowRoot.querySelector(r.el)}if(!a&&typeof r.el==="string"){a=n.querySelectorAll(r.el)}else if(!a){a=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&a.length>1&&i.querySelectorAll(r.el).length===1){a=i.querySelector(r.el)}if(a.length>0)a=a[0];a.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var o;if(a){o=a.querySelector(".".concat(e.params.scrollbar.dragClass));if(!o){o=createElement("div",e.params.scrollbar.dragClass);a.append(o)}}Object.assign(t,{el:a,dragEl:o});if(r.draggable){x()}if(a){a.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function _(){var t=e.params.scrollbar;var i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}A()}r("init",(function(){if(e.params.scrollbar.enabled===false){C()}else{L();m();f()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){f()}));r("setTransition",(function(t,e){h(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){_()}));var z=function(){e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}L();m();f()};var C=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}_()};Object.assign(e.scrollbar,{enable:z,disable:C,updateSize:m,setTranslate:f,init:L,destroy:_})}var WarningIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>';var grwOutdoorCourseDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}';var GrwOutdoorCourseDetailStyle0=grwOutdoorCourseDetailCss;var threshold$2=1;var GrwOutdoorCourseDetail=function(){function t(t){registerInstance(this,t);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.offline=false}t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:threshold$2});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:threshold$2});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:threshold$2});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}onChange("currentOutdoorCourse",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat("","assets/default-image.svg"));var i=state.outdoorCourseTypes&&this.currentOutdoorCourse&&state.outdoorCourseTypes.find((function(e){return e.id===t.currentOutdoorCourse.type}));var r=state.cities&&state.cities.find((function(e){return e.id===t.currentOutdoorCourse.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorCourse&&state.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var o=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"dbdfcf8ff6076873ef5bd8465d21771a887ac45d",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&h("div",{key:"9c4b14199a3d0b7bd66fce405f6f8612f301fdc4",part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},h("div",{key:"98f0099f949596c19891ba07b2c6699ae2b15072",part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"856c04eb4076c1a9733dfb049b570d86edb11775",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"cac4988577f65303e5cb9f23cc9dbff66fb0c00b",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},r),h("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),h("div",{key:"2f6252b779b30d6ab20e198681cb4a7476266bb6"},h("div",{key:"8d011143a440d327d4372d8292e129e83167d593",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"b60177af168834e2b711d180c6a8280fe07f8918",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"8acf033d5ebc86581eaedad4f4b66fe72a128d24",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"c666f98fa3e3d23736970b857b139d64ee7e568d",part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),h("div",{key:"9b2b2f84198bf5ae140fda491a1d092613e185f7",part:"sub-container",class:"sub-container"},h("div",{key:"7083069100978db3567339745de408b02bdfdeb5",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"1e34a41439c489b527305c7c41aa0e4646af5671",part:"icon-label",class:"icon-label type"},i.pictogram&&h("img",{key:"0c804630f75d972f849426a37806cc504b0f3541",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"43a5a0ce43048a18506bcb74f2ee18a3e8da1630",part:"label",class:"label"},i.name)),h("div",{key:"6c8a9d5a156312c0341222c90a480e545290a600",part:"icon-label",class:"icon-label duration"},h("span",{key:"e52c486fd2646375c55c7a4f9c6ef4d4f0b14b32",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"6810313448d95aa713c26d6214ad19e86e7eee07",part:"label",class:"label"},formatDuration(this.currentOutdoorCourse.duration))),h("div",{key:"0b9356b0e02bef210326b31cf2e9ae9659c828c4",part:"icon-label",class:"icon-label length"},h("span",{key:"bc5c63266fd45de935b65464c20fa795c5a5741b",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"09435af637c6f1a9182dc036eaee7413c1a605b8",part:"label",class:"label"},formatLength(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&h("div",{key:"d8b2873a48dd431bab6e83d6ee7be3952644f14b",part:"icon-label",class:"icon-label ascent"},h("span",{key:"f50935976e7d994f123cf966e8b6e1f0fa34f0ce",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"b6625e4660bb3e4bface9b4fb0d52c089a280fe1",part:"label",class:"label"},formatAscent(this.currentOutdoorCourse.max_elevation))),a&&o.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"71afd7a0be84ced76d73336610b926c1d50314b6",part:"divider",class:"divider"}),h("div",{key:"9e9932514cbc033d9b4e5a995605e6674a168687",part:"downloads-container",class:"downloads-container"},h("div",{key:"7c8f614b2281f6b0f05ed466efea389cbe7596e1",part:"download-title",class:"download-title"},translate[state.language].downloads),h("div",{key:"fee98f9e2a3e78ce0627a2440dbd07222f75a0b6",part:"links-container",class:"links-container"},h("a",{key:"02b081b499b2542edbc494bb0eccb3ed1eb6f220",href:"".concat(this.currentOutdoorCourse.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"19a496d4fca900a436c83379acb5b65d16866e3c",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"77907f6eb002fbf46cf59fbed160b05fc858345a",part:"label",class:"label"},"PDF")))),h("div",{key:"de467489d1214356b3626a63680db5c82c68db49",part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&h("div",{key:"29dbff319546e791d8173ab67e82ee08d35362bb",part:"description-container",class:"description-container"},h("div",{key:"ba663ee5b741133c4e562fcc3a6929e075eaebbc",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"f1a8335a96c1ca95514b2ace707ff6a7bad1d314",part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"6068ab7d7847ad8e055a439a632f29ce7948ee41",part:"departure-container",class:"departure-container"},h("div",{key:"b1eb9cb02566ff9a56b858f1fe70c4afd5ae72b6",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"fe59558aebf469c0a3399db0d208e1f08b5616bf",part:"departure",innerHTML:r.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"eea583c74b87b187b4eec9a9526452a48b74f06d",part:"cities-container",class:"cities-container"},h("div",{key:"66549f9b5103e7afe7d4fb807d323135990dd49c",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"d197d8556780f2b68fcdcbd53b3ece39ffbd4bd9",part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&h("div",{key:"fd2438bc105555872715e1a7c70933ca9eca4890"},h("div",{key:"4fbe2690449f27267a64b3908e3624ed25bf3ccf",part:"divider",class:"divider"}),h("div",{key:"8e115ecd164a002a4e71ee00d22df311f88d7e32",part:"advice-container",class:"advice-container"},h("div",{key:"a588119be55de9e5261bce45a561401feaac2590",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorCourse.advice&&h("div",{key:"91ca02934bd747c6036ab3611e770c8fad43a017",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"e352a3503df28e15a7c746c5c3ab3c5c8e8edb94",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"7e4ce727635ace28a1dd55198614c574175bd44a",part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&h("div",{key:"364901298c0ef9e6b5ad79a1e0021dea40c8a6de"},h("div",{key:"46b19538478f72fbebfa246d3faa05160d217486",part:"divider",class:"divider"}),h("div",{key:"f9bdb0f84f7a99653da4623a14ddfffa5b2a960f",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"ee547fc034f3f5f75d1397e2cb31a8fbb16c8698",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"3074e16ac2d77cdc753b063ae4efd47adc41e5fc",part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"398e2ca87a0f5a113d129d5015aa7c568a2a4403"},h("div",{key:"3f8cbab48db164fa70407192ab34bb8412f1eae1",part:"divider",class:"divider"}),h("div",{key:"1f5f7fa191e9dbc08767b2b7f2415b3ce14fc88a",part:"touristic-content-container",class:"touristic-content-container"},h("div",{key:"9dfd9670077365b07cf1342ce9d49852acc8a3f9",part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"94182a9699fca44156c4df9ae2402525a117384b",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"35fb4baed824f0f7d0821a97e9e12728be78911c",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),h("div",{key:"f3edfec70d96f4e0912f038c681addf10cb5ebf3",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"f8ae447f5f3e7d5fd52c497f7c0bd73e6066344d"},h("div",{key:"b73c46f229de0437801adbced789d749793fd789",part:"divider",class:"divider"}),h("div",{key:"a541d453111bfbe7643c336972feb6d1e1484292",part:"touristic-event-container",class:"touristic-event-container"},h("div",{key:"269462df4bfb929b7a353d923fecdde9dbddef50",part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"84c1f460b409ca9148fb5aa4c3f4c261af0460c2",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"75993e35548e55ff5b22e004bd29e90fc79335eb",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),h("div",{key:"56186f95b9e6e162d019fb04375a453872483b7d",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),state.currentPois&&state.currentPois.length>0&&h("div",{key:"7833225c7e0c5368e00187edb80b0a3e528e4ee9"},h("div",{key:"7bc6dbb4efd37623abdff1fb32f39a07c47f2efc",part:"divider",class:"divider"}),h("div",{key:"2c8b5ac75fcde8dd86723bf8b0c36ff95166c302",part:"pois-container",class:"pois-container"},h("div",{key:"5299c4f0bc8cec6693829f07a74fa951660c2089",part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),h("div",{key:"c3da4eb23a0a5d2e64cb92458f3901a6215c0583",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"ef6fc5d16bd21cd36f1eac0cd30e5a2c61919685",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"c8606375d4a8882365c0736cd89d744bce39ac13",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"1fab70d4b82b2915aef831112e308455ec2f2215"},h("div",{key:"ba94e43868a08e1365721def5c3b409567c317a4",part:"divider",class:"divider"}),h("div",{key:"2169fe7703d73e09da530ef7e03a669d14e893be",part:"weather-container",class:"weather-container"},h("iframe",{key:"347f59a88d8e8005c5b35f9e3c69daebdc9ad1cc",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.grwApp&&h("div",{key:"79f42d82cd0b315c93b6f758e15a6a1953347335",part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorCourseDetail.style=GrwOutdoorCourseDetailStyle0;var GrwOutdoorCourseProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleOutdoorCourse()};t.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorCourses",this.outdoorCourseId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};t.prototype.handleOfflineOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,d,u,p,f;return __generator(this,(function(h){switch(h.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=h.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=h.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=h.sent();a=state;return[4,handleOfflineProperty("touristicContentCategories")];case 4:a.touristicContentCategories=h.sent();n=state;return[4,handleOfflineProperty("touristicEventTypes")];case 5:n.touristicEventTypes=h.sent();o=state;return[4,handleOfflineProperty("poiTypes")];case 6:o.poiTypes=h.sent();s=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 7:s.outdoorCourseTypes=h.sent();return[4,handleOfflineProperty("pois",["url"])];case 8:c=h.sent();l=c.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=l;return[4,handleOfflineProperty("touristicContents",["url"])];case 9:d=h.sent();u=d.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=u;return[4,handleOfflineProperty("touristicEvents",["url"])];case 10:p=h.sent();f=p.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=f;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 11:h.sent();state.currentOutdoorCourse=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourse=function(){var t=this;var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getTouristicContentsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(getOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e=t[0],i=t[1],r=t[2],a=t[3],n=t[4],o=t[5],s=t[6],c=t[7],l=t[8],d=t[9],u=t[10];return __generator(this,(function(t){state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.themes=r.results}if(a){state.outdoorCourseTypes=a.results}if(n){state.trekTouristicContents=n.results}if(o){state.touristicContentCategories=o.results}if(s){state.trekTouristicEvents=s.results}if(c){state.touristicEventTypes=c.results}if(l){state.currentPois=l.results}if(d){state.poiTypes=d.results}state.currentOutdoorCourse=u;return[2]}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"7be3a5582c615180b407432b42486f585593b0ff"})};return t}();var EventIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>';var AirIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>';var ExploreIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DownloadForOfflineIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DeleteIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>';function getOutdoorSites(t,e,i,r,a,n,o,s,c){var l="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));a&&(l+="&districts=".concat(a));n&&(l+="&structures=".concat(n));o&&(l+="&themes=".concat(o));s&&(l+="&portals=".concat(s));l+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind";return getAllPaginatedResults(l,c)}function getOutdoorSite(t,e,i,r){var a="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");a+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents";return fetch(a,r)}function getOutdoorSiteTypes(t,e,i){var r="".concat(t,"outdoor_sitetype/?language=").concat(e,"&published=true");return fetch(r,i)}function getOutdoorPractices(t,e,i){var r="".concat(t,"outdoor_practice/?language=").concat(e,"&published=true");return fetch(r,i)}function getPoisNearSite(t,e,i,r){return getAllPaginatedResults("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function outdoorSiteIsAvailableOffline(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,getDataInStore("outdoorSites",t)];case 1:e=i.sent();return[2,e&&e.offline]}}))}))}var grwOutdoorSiteDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{display:none}.outdoor-site-options .outdoor-site-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.outdoor-site-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}';var GrwOutdoorSiteDetailStyle0=grwOutdoorSiteDetailCss;var threshold$1=1;var GrwOutdoorSiteDetail=function(){function t(t){registerInstance(this,t);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=createEvent(this,"sitesIsInViewport",7);this.coursesIsInViewport=createEvent(this,"coursesIsInViewport",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.handleObservers=function(){var t=this;if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i)}),{threshold:threshold$1});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:threshold$1});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:threshold$1});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:threshold$1});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sitesIsInViewport.emit(i)}),{threshold:threshold$1});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),{threshold:threshold$1});this.courseObserver.observe(this.coursesRef)}};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new Swiper(this.swiperRelatedOutdoorSitesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new Swiper(this.swiperRelatedOutdoorCoursesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}onChange("currentOutdoorSite",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c,s,l;var d=this;return __generator(this,(function(u){switch(u.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};if(!!state.outdoorSites)return[3,3];return[4,getOutdoorSites(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districtsFromProviders,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,i)];case 1:r=u.sent();a=state;return[4,r.json()];case 2:a.outdoorSites=u.sent().results;state.currentOutdoorSites=state.outdoorSites;u.label=3;case 3:return[4,getAllDataInStore("outdoorSites")];case 4:n=u.sent().filter((function(t){return t.offline===true}));o=state.outdoorSites;o=o.filter((function(t){return n.findIndex((function(e){return e.id===t.id}))===-1}));return[4,writeOrUpdateDataInStore("outdoorSites",o)];case 5:u.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:u.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:u.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 8:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorSiteTypes,imagesRegExp)];case 9:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorPractices,imagesRegExp)];case 10:u.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 11:u.sent();return[4,writeOrUpdateFilesInStore(this.currentOutdoorSite,imagesRegExp,true,["url"])];case 12:u.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 13:u.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 14:u.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 15:u.sent();return[4,writeOrUpdateDataInStore("outdoorSiteTypes",state.outdoorSiteTypes)];case 16:u.sent();return[4,writeOrUpdateDataInStore("outdoorPractices",state.outdoorPractices)];case 17:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatings",state.outdoorRatings)];case 18:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatingsScale",state.outdoorRatingsScale)];case 19:u.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 20:u.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 21:u.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 22:u.sent();return[4,writeOrUpdateDataInStore("outdoorCourseTypes",state.outdoorCourseTypes)];case 23:u.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 24:u.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 25:u.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 26:u.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 27:u.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 28:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorCourseTypes,imagesRegExp,true)];case 29:u.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp,true)];case 30:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 31:u.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 32:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 33:u.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 34:u.sent();if(!(state.currentOutdoorSite.courses&&state.currentOutdoorSite.courses.length>0))return[3,38];s=0;u.label=35;case 35:if(!(s<state.currentOutdoorSite.courses.length))return[3,38];c=state.currentOutdoorSite.courses[s];return[4,this.downloadOutdoorCourse(c)];case 36:u.sent();u.label=37;case 37:s++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];s=0;u.label=39;case 39:if(!(s<this.currentOutdoorSite.children.length))return[3,42];l=this.currentOutdoorSite.children[s];return[4,this.downloadOutdoorSite(l)];case 40:u.sent();u.label=41;case 41:s++;return[3,39];case 42:return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:state.currentPois.map((function(t){return t.id})),touristicContents:state.trekTouristicContents.map((function(t){return t.id})),touristicEvents:state.trekTouristicEvents.map((function(t){return t.id}))})])];case 43:u.sent();state.outdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;state.currentOutdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,22,,23]);e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,getOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=p.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:p.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:p.sent();return[4,getPoisNearSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=p.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:p.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:p.sent();return[4,getTouristicContentsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:o=p.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 8:p.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",o)];case 9:p.sent();return[4,getTouristicEventsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:s=p.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 11:p.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",s)];case 12:p.sent();return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:o.map((function(t){return t.id})),touristicEvents:s.map((function(t){return t.id}))})])];case 13:p.sent();if(!(a.courses&&a.courses.length>0))return[3,17];c=0;p.label=14;case 14:if(!(c<a.courses.length))return[3,17];l=a.courses[c];return[4,this.downloadOutdoorCourse(l)];case 15:p.sent();p.label=16;case 16:c++;return[3,14];case 17:if(!(a.children&&a.children.length>0))return[3,21];c=0;p.label=18;case 18:if(!(c<a.children.length))return[3,21];d=a.children[c];return[4,this.downloadOutdoorSite(d)];case 19:p.sent();p.label=20;case 20:c++;return[3,18];case 21:return[3,23];case 22:u=p.sent();this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id);return[3,23];case 23:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s;return __generator(this,(function(c){switch(c.label){case 0:e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,getOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:c.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:c.sent();return[4,getPoisNearCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=c.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:c.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:c.sent();return[4,getTouristicContentsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:o=c.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 8:c.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",o)];case 9:c.sent();return[4,getTouristicEventsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:s=c.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 11:c.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",s)];case 12:c.sent();return[4,writeOrUpdateDataInStore("outdoorCourses",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:o.map((function(t){return t.id})),touristicEvents:s.map((function(t){return t.id}))})])];case 13:c.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);t=[];return[4,getDataInStore("outdoorSites",this.currentOutdoorSite.id)];case 1:e=a.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,writeOrUpdateDataInStore("outdoorSites",t)];case 2:a.sent();if(state.outdoorSites){delete state.outdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline;if(!state.currentOutdoorSites){state.currentOutdoorSites=state.outdoorSites}delete state.currentOutdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[3,4];case 3:i=a.sent();this.deleteErrorConfirm.emit(this.currentOutdoorSite.id);return[3,4];case 4:return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,o,s;return __generator(this,(function(c){switch(c.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.outdoorSites){for(a=0,n=state.outdoorSites;a<n.length;a++){o=n[a];r.push(pointOnFeature(o.geometry).geometry.coordinates)}}s=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,a,n;return __generator(this,(function(o){switch(o.label){case 0:r=bundle.exports.tileLayerOffline(t,{attribution:e});a=bbox(i);n=L$1.latLngBounds([a[1],a[0]],[a[3],a[2]]);return[4,writeOrUpdateTilesInStore(r,n,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:o.sent();return[2]}}))}))};t.prototype.deleteOfflineOutdoorSiteProperties=function(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat("","assets/default-image.svg"));var i=state.outdoorPractices&&this.currentOutdoorSite&&state.outdoorPractices.find((function(e){return e.id===t.currentOutdoorSite.practice}));var r=state.cities&&this.currentOutdoorSite&&state.cities.find((function(e){return e.id===t.currentOutdoorSite.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorSite&&state.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var o=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"0cdee71f91c7e298ac2b9889d39de71dcfa15298",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&h("div",{key:"04e952c7e8d91ce2096934dcc4d226c2dcfdd459",part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},h("div",{key:"b9b4436c86fb8880e705c7f8117f342bce9e17f2",part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"e9cd5e57fe5cb84c1cc9ef53f0551d302d467012",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"a7bbc3e0fc54be9bd80f7b50618dd3a67545ad08",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},r),h("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),h("div",{key:"27715de2f022480af1268041fcf1c621df308191"},h("div",{key:"4f5a1d32262805851082d7d359afe701d2da3d9c",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"439302478cf403abfed0a83b057be3f7b556fe15",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"ffeda3d935bc880e61c15f96839163faf7d08140",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"442203eaaad8986e0dacd2aba1a94a6b211c881e",part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),state.themes&&state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).length>0&&h("div",{key:"dd8888676e1443cddd5f86b6f7775c2c514679d3",part:"themes-container",class:"themes-container"},state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"ba638428bb39b28cbc9692684f1e47298e5a3db1",part:"sub-container",class:"sub-container"},h("div",{key:"35403cc282f95520752f163fb49c521bcd66939a",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"5f76d17e7ce37b9a7af8136a929521202e8cb6af",part:"icon-label",class:"icon-label practice"},i.pictogram&&h("img",{key:"177d857a7f194fbef80880800b078bd429d664a3",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"8e472dbb8f3e1c0eb5e4539d95c54d247bec945a",part:"label",class:"label"},i.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&h("div",{key:"3c362c4fb78b2a484ec7a07855a77149e96e7482",part:"row",class:"row"},h("span",{key:"4b3431592f364dc8673ae0e592f6245c17145175",part:"icon",class:"icon",innerHTML:ExploreIcon}),h("span",{key:"98e968f7312d8b237b06254940751dfb0d417c57",part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&h("div",{key:"5505e0cb2cf54514eef2a7add479b0f8514683e0",part:"row",class:"row"},h("span",{key:"616285b705f5908fce771db2fbe187ffbe884edb",part:"icon",class:"icon",innerHTML:AirIcon}),h("span",{key:"9d3eec597867d628290ebf95f3f9516d0f90f260",part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&h("div",{key:"86ca2d639398126aec30fdbdd1e4848298a9e5a9",part:"row",class:"row"},h("span",{key:"735d4ecb132f6b0bd785cd8d702035ad80658a67",part:"icon",class:"icon",innerHTML:EventIcon}),h("span",{key:"d38d4ebb95d0feea9532f94139b210737d4828e8",part:"label",class:"label"},this.currentOutdoorSite.period)),a&&o.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"652b95efcf8eb2bb7b0479655a5fc2dcb46731bb",part:"divider",class:"divider"}),h("div",{key:"d5c98ed84d2001a35f73367e24e78a18cf3df1d2",part:"downloads-container",class:"downloads-container"},h("div",{key:"327c6255e833879e60e01245cc7f59946f2bda98",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"97b4bec6cd4c8ca2da4b265246eaa40e24ce253b",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"780e3338cd690dc87d1d210c55adb3f7a2cb392c",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"9ee71ba86dec9ea4e389c2eb708629c70b44402b",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"7a9bd50c68d6eb931a576a33d8cab2054b02af9e",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"2f6bc5abd5c0f6bf5f0f17ed32a89f17b5fbc9e9",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"177addc548aabd8a43ce32ccf6c86b68ee1b6ab8",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"0f67afcffc333881f1afbdbec0f920b62b200dbb",part:"links-container",class:"links-container"},h("a",{key:"471fcf4b3a4994a08aa588bb7088430e3ac4680d",href:"".concat(this.currentOutdoorSite.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"1d4ef893d3ca6abeadbe803e9e8382ae2bb120fd",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"9e5054d9495a602c2352ba8821a9922a13372089",part:"label",class:"label"},"PDF")))),h("div",{key:"b7763d6d350b0953d6f8e6e2d10f1f2801031eb6",part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&h("div",{key:"60d74e82633b40bb86446f055fdc42308c73c698",part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&h("div",{key:"2af1a0e8335beb5aca165ecfd772fecfce17f0f2",part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),h("div",{key:"c180ff25dd9864527bb5bd12f18447b60e06d8d5",part:"divider",class:"divider"}),this.currentOutdoorSite.description&&h("div",{key:"b091b16a710c24ee920b98f05b0e8737700bafac",part:"description-container",class:"description-container"},h("div",{key:"22e87787319c08844f257bc9e1aa1749406c726b",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"65dc44a0601f7473106d3e261097a3323a50532d",part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"e005e05aa79f56a1f683e0e4203af65d7de062e1",part:"departure-container",class:"departure-container"},h("div",{key:"bdafb5d2e24633426ba4a7b7714e39359c3ca63f",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"eb03e66164805f557f490a9c494999c34d56672e",part:"departure",innerHTML:r.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"26cfdf6976418dcf2f61d79eddc88802381229fd",part:"cities-container",class:"cities-container"},h("div",{key:"554cb041142c855cda2bc2ecb70680e14c60e2d8",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"b910c3b0214bf2486cdcdd30ac7aa87afcdd5fc7",part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",{key:"9d7e4932000d8f17248ed9e5a873d724da932284"},h("div",{key:"4a0055371cf2a378e5fd7cbb94be24051b460fb2",part:"divider",class:"divider"}),h("div",{key:"4a62640422e695b95fe8744f4c3057485094ac95",part:"pois-container",class:"pois-container"},h("div",{key:"c08c1bd33193c070953be6d18df430603d088693",part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),h("div",{key:"e0b4fc5f42526433e703b63121a0b65b1b6592ce",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"674c5796d16e3d36cf88639dcfac3f0d4b4cc4a0",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"8f87eb4e026843d719b2de358ee79a707254aa2e",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&h("div",{key:"3cb7cdda39fd1f9f3e47a0e40de99cbaed81f652"},h("div",{key:"388bc6ff4c3101bf49b53e14899f9794bd3f85b2",part:"divider",class:"divider"}),h("div",{key:"ad910fefeae9c1fd8ca83be46e1eda5f7014746d",part:"advice-container",class:"advice-container"},h("div",{key:"35f5b5df910abf5598da869b380a16303ee2b97d",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorSite.advice&&h("div",{key:"26bc8e43cd701f299367fbd594c39b1f821a2d5b",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"ee524bb0709c67db29b5f6cd7540bbaf6616303d",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"e609e00ba0758e23b212b7b4795d1bec7aabf8c0",part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&h("div",{key:"46b760354dd8dec3994cdc46839bbff59da2f896"},h("div",{key:"93e6796d5b5085962cf7696727958e3814275c25",part:"divider",class:"divider"}),h("div",{key:"763dfd09a9c43fd7d206fa7457d37beca3908d54",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"42ffa66ba1071e315ea95bf76ed26681db760463",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"0a23fbf64b2191df7f05d8879bb7596d71258cb1",part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),state.currentRelatedOutdoorSites&&state.currentRelatedOutdoorSites.length>0&&h("div",{key:"98721e55689187b1d1429cb31d2120b21102369a"},h("div",{key:"f8570f44731a899cb5acf6eebf7bab827a11efad",part:"divider",class:"divider"}),h("div",{key:"a2e9cb7742255101b33606889de0839f42a43c31",part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},h("div",{key:"e9401e595dd7435719d77d528929085553f364fc",part:"related-outdoor-sites-title",class:"related-outdoor-sites-title",ref:function(e){return t.sitesRef=e}},translate[state.language].relatedOutdoorSites(state.currentRelatedOutdoorSites.length)),h("div",{key:"3ed7fa5ae8b595c2d0adec5a48fc4e2579928079",part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},h("div",{key:"8bf35d45aa9ecb3de82e6be950b5c75ead443e0a",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorSites.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))}))),h("div",{key:"aa783cbc57c9f3787037728f9351c721a34e5c77",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),state.currentRelatedOutdoorCourses&&state.currentRelatedOutdoorCourses.length>0&&h("div",{key:"53600ed1968b041a6c5fefa09c0a36a205d01061"},h("div",{key:"5f9ada4c9e38a08fdef331b6e63acfb3f4f0d904",part:"divider",class:"divider"}),h("div",{key:"c53b22f25f64bf12edb804174b5554b4a9d71961",part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},h("div",{key:"28ae5b2f956d7667b0d3caf2adaa46855e98051d",part:"related-outdoor-courses-title",class:"related-outdoor-courses-title",ref:function(e){return t.coursesRef=e}},translate[state.language].relatedOutdoorCourses(state.currentRelatedOutdoorCourses.length)),h("div",{key:"9caf7bf0f9aabd60e0f5ddd2ebdaece5b000a94d",part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},h("div",{key:"301365af8638c32a94b7babe71a1b41e90a24468",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorCourses.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))}))),h("div",{key:"b61107d2ba27fcf63d3ce5e9f0d27c242798c414",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorCoursesSwiperScrollbar=e}})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).length>0&&h("div",{key:"e014c3d32ccb7b450bfb419537877b10e39d34ec"},h("div",{key:"8aecd68c6c64394ae4dca847d2cb33a7d7f4952f",part:"divider",class:"divider"}),h("div",{key:"12c38d48b9e086ab462975ae02dfad4a2d779829",part:"information-desks-container",class:"information-desks-container"},h("div",{key:"e230436bbe1c21aac20c533488ab68087c4ab63c",part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{key:"b70bf8effa284a7f9423f1ef1f84577605fd5a96",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"c56f2a9f3843a81d4a66b849de8fa38eff2743d8",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t}))}))),h("div",{key:"793f59391b7999fe66499b508b47b422032cfce1",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"6a8b8ec27d96daa65a68db426b20cd48bee06737"},h("div",{key:"4cd6ed8a3938a421f236b2cd8e7a5e2d711831ff",part:"divider",class:"divider"}),h("div",{key:"68362202d9527952400aaeb6fdcca5b4c9f975d3",part:"touristic-content-container",class:"touristic-content-container"},h("div",{key:"15e9dd89e682912f7946c813c808008c209046b8",part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"fca2221365aab376a8b432b815701ef6a6971a6d",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"9dc4f01210ad4a7648ff29741125d3d935a76f68",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"a1b93c57ff52060dc3219c8902b1fe55f0fd2a56",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"224012405d07eb8f0794bed1ab4f4750d57e2686"},h("div",{key:"6fccf71aa818a85f91f4753c624d38846bca1ee1",part:"divider",class:"divider"}),h("div",{key:"91b848b6c391589d909c8c91c372454e0dc3e4af",part:"touristic-event-container",class:"touristic-event-container"},h("div",{key:"166cac2704fe13b4ea52df7937df29770e86198d",part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"e0017188b1e3d5910db7423898736536e6bb75ef",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"1782b53cda0ca5e6e308c9b9566d3dee07985ebc",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"e89e2747987e34f702098811cb6e1f99ed2dc42e",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"38001dce175d1b0792fb21de72707918de229cd3"},h("div",{key:"17c5c0e2cef403d9d74042883cea6696035b42e2",part:"divider",class:"divider"}),h("div",{key:"d10b24dce4110b84717f5b41d04ceee9c6fe3c78",part:"weather-container",class:"weather-container"},h("iframe",{key:"bdbe835b449aa708bf2f8b08e21cfdee03f57917",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&h("div",{key:"8c60ce5fddc39ee6119fa260325e534e28b88273"},h("div",{key:"5d6391f229808f1bfddd9ff32f97750080e373df",part:"divider",class:"divider"}),h("div",{key:"7c170217103dc9c5d9b1218c7d458e4584a96a94",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"68bb3e5da872fa99e9da2b4b3b52f156188c7188",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentOutdoorSite.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&h("div",{key:"e1730623b73a7a0ee5b70fdae290581bfa9f7a3e"},h("div",{key:"d96cbff005bb25003f6baf0a33d9ea9ad1a790b7",part:"divider",class:"divider"}),h("div",{key:"ca4bbaf0943c0bf7957780b610cf4ce552d7228f",part:"source-container",class:"source-container"},h("div",{key:"284853b197ff2967171128d173595dc3be686571",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"c5c84340b28e2fc4b879b63fb5290028fc1da72e",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"19b9b864972340798e384e4429e84f3d9785296c"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"a8645950f9b18d79a7bac445f40045e0f613b27d",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"30dc0a00c0e29fe3a5e37fc2f75e64b4ba5b7a9c",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwOutdoorSiteDetail.style=GrwOutdoorSiteDetailStyle0;var GrwOutdoorSiteProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;this.handleOutdoorSite()};t.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorSites",this.outdoorSiteId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};t.prototype.handleOfflineOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,L;return __generator(this,(function(_){switch(_.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=_.sent();i=state;return[4,handleOfflineProperty("sources")];case 2:i.sources=_.sent();r=state;return[4,handleOfflineProperty("districts")];case 3:r.districts=_.sent();a=state;return[4,handleOfflineProperty("themes")];case 4:a.themes=_.sent();n=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:n.outdoorSiteTypes=_.sent();o=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:o.outdoorPractices=_.sent();s=state;return[4,handleOfflineProperty("outdoorRatings")];case 7:s.outdoorRatings=_.sent();c=state;return[4,handleOfflineProperty("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=_.sent();l=state;return[4,handleOfflineProperty("touristicContentCategories")];case 9:l.touristicContentCategories=_.sent();d=state;return[4,handleOfflineProperty("touristicEventTypes")];case 10:d.touristicEventTypes=_.sent();u=state;return[4,handleOfflineProperty("poiTypes")];case 11:u.poiTypes=_.sent();p=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 12:p.outdoorCourseTypes=_.sent();return[4,handleOfflineProperty("informationDesks")];case 13:f=_.sent();h=f.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=h;return[4,handleOfflineProperty("pois",["url"])];case 14:m=_.sent();b=m.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=b;return[4,handleOfflineProperty("touristicContents",["url"])];case 15:v=_.sent();g=v.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=g;return[4,handleOfflineProperty("touristicEvents",["url"])];case 16:w=_.sent();k=w.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=k;return[4,handleOfflineProperty("outdoorSites",["url"])];case 17:y=_.sent();x=y.filter((function(e){return t.children.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorSites=x;return[4,handleOfflineProperty("outdoorCourses",["url"])];case 18:A=_.sent();L=A.filter((function(e){return t.courses.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorCourses=L;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 19:_.sent();state.currentOutdoorSite=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSite=function(){var t=this;var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.sources?getSources(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorRatings?fetch("".concat(state.api,"outdoor_rating/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!state.outdoorRatingsScale?fetch("".concat(state.api,"outdoor_ratingscale/?language=").concat(state.language,"&fields=id,name"),this.init):new Response("null"));e.push(getInformationsDesks(state.api,state.language,this.init));e.push(getTouristicContentsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,o;var s=this;var c=t[0],l=t[1],d=t[2],u=t[3],p=t[4],f=t[5],h=t[6],m=t[7],b=t[8],v=t[9],g=t[10],w=t[11],k=t[12],y=t[13],x=t[14],A=t[15],L=t[16];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(L&&L.children.length>0))return[3,2];e=[];e.push.apply(e,L.children);i=[];e.forEach((function(t){i.push(getOutdoorSite(state.api,state.language,t,s.init))}));r=state;return[4,Promise.all(__spreadArray([],i,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:r.currentRelatedOutdoorSites=t.sent();t.label=2;case 2:if(!(L&&L.courses.length>0))return[3,4];a=[];a.push.apply(a,L.courses);n=[];a.forEach((function(t){n.push(getOutdoorCourse(state.api,state.language,t,s.init))}));o=state;return[4,Promise.all(__spreadArray([],n,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:o.currentRelatedOutdoorCourses=t.sent();t.label=4;case 4:if(c){state.cities=c.results}if(l){state.sources=l.results}if(d){state.districts=d.results}if(u){state.themes=u.results}if(p){state.outdoorSiteTypes=p.results}if(f){state.outdoorPractices=f.results}if(h){state.outdoorRatings=h.results}if(m){state.outdoorRatingsScale=m.results}if(b){state.currentInformationDesks=b.results}if(v){state.trekTouristicContents=v.results}if(g){state.touristicContentCategories=g.results}if(w){state.trekTouristicEvents=w.results}if(k){state.touristicEventTypes=k.results}if(y){state.currentPois=y.results}if(x){state.poiTypes=x.results}if(A){state.outdoorCourseTypes=A.results}state.currentOutdoorSite=L;return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"bd2cb1a39b45072e498a7b9ef2b77f26a2571255"})};return t}();var grwOutdoorSitesListCss=":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwOutdoorSitesListStyle0=grwOutdoorSitesListCss;var GrwOutdoorSitesList=function(){function t(t){registerInstance(this,t);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,this.step),true)}onChange("currentOutdoorSites",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentOutdoorSites){t.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,t.step),true)}}));onChange("outdoorSitesWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.outdoorSitesWithinBounds){t.outdoorSitesToDisplay=__spreadArray([],state.outdoorSitesWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<state.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=state.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=state.outdoorSitesWithinBounds.length?state.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"d73639ac0c2b8cd34eca33887c20cc4b6643b368",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.outdoorSitesWithinBounds&&h("div",{key:"db56a2cc5609ee55f023f5499e3cfe1bb6f14ed1",part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].outdoorSites:translate[state.language].outdoorSite)),h("div",{key:"3ddea3f52fb1aaf54344b878b4d4750033545d27",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(e){return h("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:"outdoorSite-".concat(e.id),"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"2814f5f1d376b624ec34242bbbe56f49089192b4",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwOutdoorSitesList.style=GrwOutdoorSitesListStyle0;var GrwOutdoorSitesProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;this.handleOutdoorSites()};t.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,getAllDataInStore("outdoorSites")];case 1:t=o.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(!(t&&t.length>0))return[3,8];e=state;return[4,handleOfflineProperty("cities")];case 2:e.cities=o.sent();i=state;return[4,handleOfflineProperty("districts")];case 3:i.districts=o.sent();r=state;return[4,handleOfflineProperty("themes")];case 4:r.themes=o.sent();a=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:a.outdoorSiteTypes=o.sent();n=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:n.outdoorPractices=o.sent();return[4,handleOfflineProperty("outdoorSites")];case 7:t=o.sent();state.outdoorSites=t;state.currentOutdoorSites=t;return[3,9];case 8:state.networkError=true;o.label=9;case 9:return[2]}}))}))};t.prototype.handleOnlineOutdoorSites=function(){var t=this;var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSites(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r;var a=t[0],n=t[1],o=t[2],s=t[3],c=t[4],l=t[5];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(a){state.cities=a.results}if(n){state.districts=n.results}if(o){state.themes=o.results}if(s){state.outdoorSiteTypes=s.results}if(c){state.outdoorPractices=c.results}e=[];i=0;t.label=1;case 1:if(!(i<l.results.length))return[3,4];return[4,outdoorSiteIsAvailableOffline(l.results[i].id)];case 2:r=t.sent();e.push(Object.assign(Object.assign({},l.results[i]),{offline:r}));t.label=3;case 3:i++;return[3,1];case 4:state.outdoorSites=e;state.currentOutdoorSites=e;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineOutdoorSites()];case 1:t.sent();return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"6fc1ba65ce398a3d859961ab1d1efd9c9fe475a4"})};return t}();var SearchIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>';var grwSearchCss=":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}";var GrwSearchStyle0=grwSearchCss;var GrwSearch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.onSearchChange=function(t){state.searchValue=t.target.value;if(state.mode==="treks"){state.currentTreks=handleTreksFiltersAndSearch()}else if(state.mode==="touristicContents"){state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(state.mode==="touristicEvents"){state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}else if(state.mode==="outdoor"){state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.render=function(){var t=this;return h(Host,{key:"bb95f6907ec643799650f05401b5e8172c297d1e",style:{"--font-family":this.fontFamily}},h("span",{key:"9de5f804af148a346caf76440ea268b9b6087b6d",part:"icon",class:"icon",innerHTML:SearchIcon}),h("input",{key:"9e2a246d21a575ee5123611a884179f986e66702",part:"search-input",class:"search-input",onInput:function(e){return t.onSearchChange(e)},type:"search",placeholder:"Rechercher",value:state.searchValue}))};return t}();GrwSearch.style=GrwSearchStyle0;var grwSegmentedSegmentCss=".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";var GrwSegmentedSegmentStyle0=grwSegmentedSegmentCss;var GrwSegmentedSegment=function(){function t(t){registerInstance(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}t.prototype.changeMode=function(t){state.searchValue="";if(t==="treks"){treksFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.treks){state.currentTreks=__spreadArray([],handleTreksFiltersAndSearch(),true)}}else if(t==="touristicContents"){touristicContentsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicContents){state.currentTouristicContents=__spreadArray([],handleTouristicContentsFiltersAndSearch(),true)}}else if(t==="touristicEvents"){touristicEventsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicEvents){state.currentTouristicEvents=__spreadArray([],handleTouristicEventsFiltersAndSearch(),true)}}else if(t==="outdoor"){outdoorSitesFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.outdoorSites){state.currentOutdoorSites=__spreadArray([],handleOutdoorSitesFiltersAndSearch(),true)}}state.mode=t};t.prototype.render=function(){var t=this;return h(Host,{key:"2c09849101505d5857d746ad084f29f2f794dbea",style:{"--font-family":this.fontFamily}},h("div",{key:"c8b43b44bc9417c968e10c2b9257333539d808dd",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&h("label",{key:"63faa946e56e433197429fa9052489c980f0d270",part:"segment",class:"segment".concat(state.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},translate[state.language].home.segment.treks),this.outdoor&&h("label",{key:"22b5772083118ba777c1ea9f48fe1fa5adb59ec9",part:"segment",class:"segment".concat(state.mode==="outdoor"?" selected-segment":""),onClick:function(){return t.changeMode("outdoor")}},translate[state.language].home.segment.outdoorSites),this.touristicContents&&h("label",{key:"a853a0db80f591e0219b7111531a09060812d5eb",part:"segment",class:"segment".concat(state.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},translate[state.language].home.segment.touristicContents),this.touristicEvents&&h("label",{key:"1300416ebc91bda0427349aaf52762609e02acfe",part:"segment",class:"segment".concat(state.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicEvents")}},translate[state.language].home.segment.touristicEvents)))};return t}();GrwSegmentedSegment.style=GrwSegmentedSegmentStyle0;var TranslateIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>';var grwSelectLanguageCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";var GrwSelectLanguageStyle0=grwSelectLanguageCss;var GrwSelectLanguage=function(){function t(t){registerInstance(this,t)}t.prototype.handleSelect=function(t){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=t.target.value};t.prototype.render=function(){var t=this;return h(Host,{key:"75e4700fa714c1ee11917f1668bff51528a395f9"},h("span",{key:"0f4d3d31d5ced42364012e2c7058d65c699b7a0e",part:"select-language-icon",class:"icon",innerHTML:TranslateIcon}),h("select",{key:"ded97cd62b15c50fbfa7bf7df0f76143cc4c5e80",part:"select-language-select",onInput:function(e){return t.handleSelect(e)},name:"languages",id:"language-select"},state.languages.map((function(t){return h("option",{part:"select-language-option",selected:t===state.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())}))))};return t}();GrwSelectLanguage.style=GrwSelectLanguageStyle0;var DoneIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>';var grwSwitchCss='.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';var GrwSwitchStyle0=grwSwitchCss;var GrwSwitch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"ec87635ad6f2dd01fa3ed14901cfd46fd3b101f3",style:{"--font-family":this.fontFamily}},h("label",{key:"222ec6da08d8ebb77ef96fca63210bbb2affb789",class:"md3 switch"},h("input",{key:"881369de604ebbbd4e6d1505fd11f84587d69419",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),h("span",{key:"d96a73c9427ecf72b96f5258dd1f9f5b4a54b4b7",class:"slider"},h("span",{key:"f61351c5e8b041e3c49fe94e44ec1b21713ed8fa",part:"icon",class:"icon",innerHTML:DoneIcon}))))};return t}();GrwSwitch.style=GrwSwitchStyle0;var grwTouristicContentsListCss=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwTouristicContentsListStyle0=grwTouristicContentsListCss;var GrwTouristicContentsList$1=function(){function t(t){registerInstance(this,t);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,this.step),true)}onChange("currentTouristicContents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,t.step),true)}}));onChange("touristicContentsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicContentsWithinBounds){t.touristicContentsToDisplay=__spreadArray([],state.touristicContentsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<state.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=state.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=state.touristicContentsWithinBounds.length?state.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"69462a8f267ca2d2ef80f5f794b361b737aa1232",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{key:"f325ff917a37266e7b969607c1140a1976821cb8",part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"2562db2942f93ae9a4a4cead753e350088ce053a",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,key:"touristic-content-".concat(e.id),touristicContent:e,"is-large-view":t.isLargeView,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"44c54e3b6e83181156fb5df7f6a3688aa7b1a16c",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList$1.style=GrwTouristicContentsListStyle0;var GrwTouristicContentsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t=getTouristicContentsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.touristicContentCategories?getTouristicContentCategory(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[t],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],a=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicContentCategories=r.results}state.touristicContents=a.results;state.currentTouristicContents=a.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"8ca60425699d172bba94b0d9b23e55b2a514fbc3"})};return t}();var grwTouristicEventsListCss=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwTouristicEventsListStyle0=grwTouristicEventsListCss;var GrwTouristicContentsList=function(){function t(t){registerInstance(this,t);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,this.step),true)}onChange("currentTouristicEvents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,t.step),true)}}));onChange("touristicEventsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicEventsWithinBounds){t.touristicEventsToDisplay=__spreadArray([],state.touristicEventsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<state.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=state.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=state.touristicEventsWithinBounds.length?state.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"8e6b8319007edf8ae3cab1884eb42ba69172dcb6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{key:"d27053249c1edecced01a5582ab83c409e66baf8",part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"f24233718570b1062ef569dff7c56f1599c22f07",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(e){return h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(e.id),touristicEvent:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"f6b824484ef9437135239a94b3211a913631cff1",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList.style=GrwTouristicEventsListStyle0;var GrwTouristicEventsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t=getTouristicEventsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.touristicEventTypes?getTouristicEventType(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[t],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],a=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicEventTypes=r.results}state.touristicEvents=a.results;state.currentTouristicEvents=a.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"406c19ec431292ecd87d56768fc32cd15ba6295a"})};return t}();var BackpackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>';var grwTrekDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{z-index:9;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{color:var(--reference-point-color);background:var(--reference-point-background-color);position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;border-radius:12px;font-weight:bold;font-size:0.8em;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}';var GrwTrekDetailStyle0=grwTrekDetailCss;var threshold=1;var presentation={visible:true,indicator:false,ref:"presentationOptionRef"};var steps={visible:false,indicator:false,ref:"stepsOptionRef"};var description={visible:false,indicator:false,ref:"descriptionOptionRef"};var pois={visible:false,indicator:false,ref:"poisOptionRef"};var recommendations={visible:false,indicator:false,ref:"recommendationsOptionRef"};var sensitiveArea={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var informationPlaces={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var accessibility={visible:false,indicator:false,ref:"accessibilityOptionRef"};var touristicContents={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var touristicEvents={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var options={presentation:presentation,steps:steps,description:description,pois:pois,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,accessibility:accessibility,touristicContents:touristicContents,touristicEvents:touristicEvents};var GrwTrekDetail=function(){function t(t){registerInstance(this,t);this.descriptionIsInViewport=createEvent(this,"descriptionIsInViewport",7);this.parkingIsInViewport=createEvent(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=createEvent(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.stepsIsInViewport=createEvent(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.parentTrekPress=createEvent(this,"parentTrekPress",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.rounded=true;this.weather=false;this.isLargeView=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel,Scrollbar],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}),{threshold:threshold});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{accessibility:Object.assign(Object.assign({},t.defaultOptions.accessibility),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}onChange("currentTrek",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}return[2]}))}))}));return[2]}))}))};t.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};t.prototype.handleOptions=function(){return Object.assign(Object.assign({},options),{presentation:Object.assign({},presentation),steps:Object.assign(Object.assign({},steps),{visible:Boolean(state.parentTrek)}),description:Object.assign(Object.assign({},description),{visible:Boolean(state.currentTrek.description)}),pois:Object.assign(Object.assign({},pois),{visible:Boolean(state.currentPois&&state.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(state.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},sensitiveArea),{visible:Boolean(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},informationPlaces),{visible:Boolean(state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return state.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},accessibility),{visible:Boolean(state.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||state.currentTrek.accessibility_level||state.currentTrek.accessibility_slope||state.currentTrek.accessibility_width||state.currentTrek.accessibility_signage||state.currentTrek.accessibility_covering||state.currentTrek.accessibility_exposure||state.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:Boolean(state.trekTouristicContents&&state.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:Boolean(state.trekTouristicEvents&&state.trekTouristicEvents.length>0)})})};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t;var e=0;var i=0;var r=0;var a=Object.values(this.options);var n=0;while(!t&&n<a.length){if(a[n].indicator){t=a[n]}else{if(a[n].visible){e+=1;i+=this[a[n].ref].clientWidth}}n++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*e-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:t.ref}}};t.prototype.handleScrollTo=function(t){var e=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(e){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}else{window.scrollTo({top:t.offsetTop-64})}};t.prototype.getCurrentStepIndex=function(){var t=this;return state.currentTrekSteps?state.currentTrekSteps.findIndex((function(e){return e.id===t.currentTrek.id})):0};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,o,s;return __generator(this,(function(c){switch(c.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.treks){for(a=0,n=state.treks;a<n.length;a++){o=n[a];r.push(o.departure_geom)}}s=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(a){switch(a.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=L$1.latLngBounds(this.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y;var x=this;return __generator(this,(function(A){switch(A.label){case 0:A.trys.push([0,62,,63]);t=new AbortController;e=t.signal;i={cache:"default",signal:e};return[4,getAllDataInStore("treks")];case 1:r=A.sent().filter((function(t){return t.offline===true}));a=void 0;if(!!state.treks)return[3,4];return[4,getTreksList(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districts,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,state.routesFromProviders,state.practicesFromProviders,state.labelsFromProviders,i)];case 2:n=A.sent();o=state;return[4,n.json()];case 3:o.treks=A.sent().results;A.label=4;case 4:a=state.treks;a=a.filter((function(t){return r.findIndex((function(e){return e.id===t.id}))===-1}));if(!!state.districts)return[3,7];return[4,getDistricts(state.api,state.language,i)];case 5:s=A.sent();c=state;return[4,s.json()];case 6:c.districts=A.sent().results;A.label=7;case 7:return[4,writeOrUpdateDataInStore("treks",a)];case 8:A.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 9:A.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:A.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:A.sent();return[4,writeOrUpdateFilesInStore(state.difficulties,imagesRegExp)];case 12:A.sent();return[4,writeOrUpdateFilesInStore(state.routes,imagesRegExp)];case 13:A.sent();return[4,writeOrUpdateFilesInStore(state.practices,imagesRegExp)];case 14:A.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 15:A.sent();return[4,writeOrUpdateFilesInStore(state.labels,imagesRegExp)];case 16:A.sent();return[4,writeOrUpdateFilesInStore(state.districts,imagesRegExp)];case 17:A.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 18:A.sent();return[4,writeOrUpdateFilesInStore(state.accessibilities,imagesRegExp)];case 19:A.sent();return[4,writeOrUpdateFilesInStore(state.poiTypes,imagesRegExp)];case 20:A.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp)];case 21:A.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp)];case 22:A.sent();return[4,writeOrUpdateFilesInStore(state.touristicEventTypes,imagesRegExp)];case 23:A.sent();return[4,writeOrUpdateFilesInStore(state.networks,imagesRegExp)];case 24:A.sent();return[4,writeOrUpdateFilesInStore(this.currentTrek,imagesRegExp,true,["url"])];case 25:A.sent();return[4,writeOrUpdateDataInStore("difficulties",state.difficulties)];case 26:A.sent();return[4,writeOrUpdateDataInStore("routes",state.routes)];case 27:A.sent();return[4,writeOrUpdateDataInStore("practices",state.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 28:A.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 29:A.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 30:A.sent();return[4,writeOrUpdateDataInStore("accessibilities",state.accessibilities)];case 31:A.sent();return[4,writeOrUpdateDataInStore("ratings",state.ratings)];case 32:A.sent();return[4,writeOrUpdateDataInStore("ratingsScale",state.ratingsScale)];case 33:A.sent();return[4,writeOrUpdateDataInStore("sensitiveAreas",state.currentSensitiveAreas)];case 34:A.sent();return[4,writeOrUpdateDataInStore("labels",state.labels)];case 35:A.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 36:A.sent();return[4,writeOrUpdateDataInStore("accessibilitiesLevel",state.accessibilitiesLevel)];case 37:A.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 38:A.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 39:A.sent();return[4,writeOrUpdateDataInStore("networks",state.networks)];case 40:A.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 41:A.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 42:A.sent();return[4,writeOrUpdateDataInStore("signages",state.currentSignages)];case 43:A.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 44:A.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 45:A.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 46:A.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 47:A.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 48:A.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 49:A.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 50:A.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,60];l=[];l.push.apply(l,this.currentTrek.children);d=[];u=[];p=[];f=[];h=[];l.forEach((function(t){d.push(getTrek(state.api,state.language,t,i));u.push(getTouristicContentsNearTrek(state.api,state.language,t,i));p.push(getTouristicEventsNearTrek(state.api,state.language,t,i));f.push(getPoisNearTrek(state.api,state.language,t,i));h.push(getSensitiveAreasNearTrek(state.api,state.language,t,i))}));return[4,Promise.all(__spreadArray([],d,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 51:m=A.sent();return[4,Promise.all(__spreadArray([],u,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 52:b=A.sent();return[4,Promise.all(__spreadArray([],p,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 53:v=A.sent();return[4,Promise.all(__spreadArray([],f,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 54:g=A.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 55:w=A.sent();k=0;A.label=56;case 56:if(!(k<m.length))return[3,60];m[k].offline=true;m[k].pois=g[k].results.map((function(t){return t.id}));m[k].touristicContents=b[k].results.map((function(t){return t.id}));m[k].touristicEvents=v[k].results.map((function(t){return t.id}));m[k].sensitiveAreas=w[k].results.map((function(t){return t.id}));return[4,writeOrUpdateDataInStore("treks",[m[k]])];case 57:A.sent();return[4,writeOrUpdateFilesInStore(m[k],imagesRegExp,true,["url"])];case 58:A.sent();A.label=59;case 59:k++;return[3,56];case 60:return[4,writeOrUpdateDataInStore("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:state.currentPois.map((function(t){return t.id})),signages:state.currentSignages.map((function(t){return t.id})),touristicContents:state.trekTouristicContents.map((function(t){return t.id})),touristicEvents:state.trekTouristicEvents.map((function(t){return t.id})),sensitiveAreas:state.currentSensitiveAreas?state.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 61:A.sent();state.treks.find((function(t){return t.id===x.currentTrek.id})).offline=true;if(!state.currentTreks){state.currentTreks=state.treks}state.currentTreks.find((function(t){return t.id===x.currentTrek.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit(this.currentTrek.id);return[3,63];case 62:y=A.sent();this.downloadedErrorConfirm.emit(this.currentTrek.id);return[3,63];case 63:return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,7,,8]);t=[];return[4,getDataInStore("treks",this.currentTrek.id)];case 1:e=o.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;o.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,getDataInStore("treks",this.currentTrek.children[i])];case 3:r=o.sent();this.deleteOfflineTrekProperties(r);t.push(r);o.label=4;case 4:i++;return[3,2];case 5:return[4,writeOrUpdateDataInStore("treks",t)];case 6:o.sent();if(state.treks){delete state.treks.find((function(t){return t.id===n.currentTrek.id})).offline;if(!state.currentTreks){state.currentTreks=state.treks}delete state.currentTreks.find((function(t){return t.id===n.currentTrek.id})).offline}if(state.parentTrek){delete state.parentTrek.offline}if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id);return[3,8];case 7:a=o.sent();this.deleteErrorConfirm.emit(this.currentTrek.id);return[3,8];case 8:return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.getDepartureCityCode=function(){var t;var e=state.cities.find((function(t){return t.id===state.currentTrek.departure_city}));return(t=e.code)!==null&&t!==void 0?t:e.id};t.prototype.render=function(){var t=this;var e,i,r,a,n;var o=getAssetPath("".concat("","assets/default-image.svg"));var s=this.currentTrek&&this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>1||this.offline;return h(Host,{key:"64171f774811c6f517dfda187c4ade2e98dc327d",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentTrek&&h("div",{key:"a548677a345a2bd8c1948a8fe4b3421b43a1b3b7",part:"trek-options",class:"trek-options"},h("a",{key:"189a5cc70ba0f2ccc17964937240a80d27437c9a",part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{key:"3856284f4f58b29b9891a8203757dd5fb10357a0",part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},translate[state.language].options.steps),this.options.description.visible&&h("a",{key:"bbd13184a020b3fbe6dd3983aee19f487ade8444",part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},translate[state.language].options.description),this.options.pois.visible&&h("a",{key:"59d45d513864e7ea0e75bd7b47de131b351b6da6",part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},translate[state.language].options.pois),this.options.recommendations.visible&&h("a",{key:"5b1fffb807b2e61c34e6489135dd5f6b3e7884f3",part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{key:"6abd5a0d353d4e8cf9178b3a34f4ea4b209b719e",part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{key:"26c5cc5534b00318c12b00af377db070f0de2815",part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},translate[state.language].options.informationPlaces),this.options.accessibility.visible&&h("a",{key:"fe99d7655d931f9e02a09d5ea1c8404ce063f8b8",part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},translate[state.language].options.accessibility),this.options.touristicContents.visible&&h("a",{key:"b78b060098d7073f0bf99f6e592806f47d49d4ea",part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{key:"4cf45360c9db0593135c8b9eec1722faea48a08e",part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},translate[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{key:"669da8ac92e154bbda5aa7e834eb574e01c3fb2c",part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{key:"1e05596cd28124aacee8e22872e0440330de8135",part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{key:"ba504423416e84c3f7ed4d78257f61a02e3fdbaf",part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"df6e828e2125d9e53e04dfb64c19a01cfd5af600",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"0d940c001ea90767dfd2596d36b4f6a6c2694bfa",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var i=[e.legend,e.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"trek-image-legend",class:"trek-image-legend"},i),h("img",{part:"trek-img",class:"trek-img",src:t.offline&&e.thumbnail!==""?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=o},alt:e.legend}))})):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:o,loading:"lazy",alt:""})),h("div",{key:"6ce0586904c93e929b17d469cace7c76d27ed620",style:{display:"block",visibility:s?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"9741e27b6ada4bde2362434e5badd86c5a17440d",style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"0f55ed995d2754b2088163143533d2e5c183fa9d",style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{key:"b9df78fcf64eaea35ae9dcc92f2c58a88e89d437",part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&h("div",{key:"c90eb34ad0d2cf11f0d580c65317176a148de3bb",part:"themes-container",class:"themes-container"},this.themes.map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"3d2a2f0eb6192ca7b5ceda65831e53ff1b620e4c",part:"sub-container",class:"sub-container"},h("div",{key:"4db0c5e1c52eebfb25f97c2ac0f58acd91b55622",part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&h("div",{key:"86535fb89403498663db6e3904b0f210713406e2",part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&h("img",{key:"d82c7b573671e1c13921f41e62749e6d00b4722c",part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),h("span",{key:"e706eb4096f4f1c49d660b28470978effbe1ac2c",part:"label",class:"label"},this.difficulty.label)),h("div",{key:"24a39ca603b365d9ffb7920d5556abe1ff8dd5a6",part:"icon-label",class:"icon-label duration"},h("span",{key:"6f7407c097cda2ce3471db925a2897f50fea2a4f",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"3bcc557bdd953553e2fcb661256697d6642e28ef",part:"label",class:"label"},formatDuration((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),h("div",{key:"26f57db9874bfa4e8e98c2aee91be9c1e7d1d006",part:"icon-label",class:"icon-label route"},((i=this.route)===null||i===void 0?void 0:i.pictogram)&&h("img",{key:"bc912af446afe0e441b954f116c42e0fb2fc4fae",part:"icon",class:"icon",src:this.route.pictogram,alt:""}),h("span",{key:"c7126c1419483b1bf14ddc9c56862fafb2a98d3e",part:"label",class:"label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{key:"bc66ebcc476e6071d0840f6b769e37a74757eef3",part:"icon-label",class:"icon-label length"},h("span",{key:"3b8f7114ebbb2421d1caf3fae62d9ab9ffac30b5",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"528b01af3f19af173ae0245d7970eb7c8d3914a6",part:"label",class:"label"},formatLength(this.currentTrek.length_2d))),this.currentTrek.ascent&&h("div",{key:"83bb2a6127d63d5693c8a372329cc4afb513ec58",part:"icon-label",class:"icon-label ascent"},h("span",{key:"160a977ab4476b19d427efa42c6e8cbd9f0aa5c2",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"aae24c4ea075f4092f222cdcc9eb41a1e568a67f",part:"label",class:"label"},formatAscent(this.currentTrek.ascent))),this.currentTrek.descent&&h("div",{key:"f6ee0c767f7c65204886801ff663a018ebd4a7bc",part:"icon-label",class:"icon-label descent"},h("span",{key:"2e14f4114cb05221414a1d59a26b7ca1981333fa",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"3ad8ca80de5b9ca148e7c0cbb58d86f65cc36f20",part:"label",class:"label"},formatDescent(this.currentTrek.descent))),h("div",{key:"f07ff69e07bc6cef0d30134eb78aca7112c7319e",part:"icon-label",class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&h("img",{key:"4d1f7abc5395624de7f1b5b249d1480faa15b671",part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),h("span",{key:"17c44692bd59a980071e3b5fce50283c1d1dba6b",part:"label",class:"label"},(n=this.practice)===null||n===void 0?void 0:n.name)),h("div",{key:"b53d2e87a7c39394cffa202fe1114ea5e7f00656",part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((function(t){var e=state.networks.find((function(e){return e.id===t}));return h("div",{part:"network",class:"network"},h("img",{part:"icon",class:"icon",src:e.pictogram,alt:""}),h("span",{part:"label",class:"label"},e.label))}))),this.currentTrek.ratings.map((function(t){return h("div",{part:"row",class:"row"},"".concat(state.ratingsScale.find((function(e){return e.id===state.ratings.find((function(e){return e.id===t})).scale})).name," : ").concat(state.ratings.find((function(e){return e.id===t})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&h("div",{key:"8ba779042ac51545eb88d4f78aac578443c7d217",part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),h("div",{key:"2e694add34197204fe3a0a74015d80aa574372da",part:"divider",class:"divider"}),h("div",{key:"b854ad1ad31573b80557d8c2b781648fcb4814d7",part:"downloads-container",class:"downloads-container"},h("div",{key:"20d88534f47c02e3264265e79a9636fe8a4786da",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"f18f5f307b01d0f073e64f9f88c82d5c069ead2a",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"1fb4bea2e0f3b87fec3ca5a44d3c9ae4d4525153",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"4f21e0d063c8e308b52f6a25053c8014a7d49488",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"49294517a1edef52d8ddefb2663d857725c3cb4e",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"326cd5d252c4b57499e41bd3a6c9a148728a1d9f",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"403ac55e18d7061ff4a586d4cfdb82a4aef21b87",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"71e4a76d2db3d65740e213292a6d82828a27849e",part:"links-container",class:"links-container"},h("a",{key:"e01b9ee13138838e15bd353a008c0a00ac6cdfc1",part:"download-gpx-button",href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"f1b3161aa80ca5fea89d2eeb91ed7d57d52961ac",part:"icon",class:" icon",innerHTML:DownloadIcon}),h("span",{key:"96d283c108d40dda3344a343c9defe81388d43a6",part:"label",class:"label"},"GPX")),h("a",{key:"2603c64e28bd792ca95452dd428e6056c4b660ed",part:"download-kml-button",href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"f470ccb56a2ebf377645f6cc782a28b69db3c237",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"4ee6595b053ac6cb0ba667b6ec6db324b7dc4cb2",part:"label",class:"label"},"KML")),h("a",{key:"4028ed31f831b34ec562ff80b6580322a1cb91a3",part:"download-pdf-button",href:"".concat(this.currentTrek.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"d0f4fc37ddddbed9100139299b52aced36e44aef",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"3e80cb4f551a02c6e4acd3c0bb3d8d927d802711",part:"label",class:"label"},"PDF")))),h("div",{key:"8336ed9e370674830ac6ab033d5e8f8f599d3ecb",part:"divider",class:"divider"}),this.currentTrek.description_teaser&&h("div",{key:"25947a4e69c5b6cc670e0a413ebe41aaf4a1764b",part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{key:"8237eb42811850976c5765579c179fd0bdd0c0cb",part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",{key:"2d6da2aff02d1152f5df5dc27c130ee019a728ad"},h("div",{key:"678eeb1dc6b1288ed64ba0a24db3145b4aba9ed9",part:"divider",class:"divider"}),h("div",{key:"c289d0e84c11e900bc3675e54a24e1bfce922b72",part:"parent-trek-container",class:"parent-trek-container"},h("button",{key:"53db2c2ce2a243a9f69024256d6375f8e6a5b026",part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",{key:"73051fb57b06a3d810de89579e10f2b97b53e811"},"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{key:"d802c6df1a81a31012601fe983900646e4ee31f9",part:"step-container",class:"step-container"},h("div",{key:"213141afc5f5f5564582213cda47d38681028694",part:"step-title",class:"step-title",ref:function(e){return t.stepsRef=e}},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{key:"2ecc1418f6d93e914ff7407cb61554244eb1122a",part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{key:"8677cbff72fe13840a0602320db43b753bcd3e32",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp}))}))),h("div",{key:"ed229480f672075e6b45fd7b62ec66450a8e95a5",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),h("div",{key:"b0ff4e89eb899962a8984a31e3111912d2af1c30",part:"divider",class:"divider"}),this.currentTrek.description&&h("div",{key:"42bbf236026dca099b11e931b59ffbfbb6a843d7",part:"description-container",class:"description-container"},h("div",{key:"8a12f83a4d1f4b96140b5429f981cad389416bb6",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"0bd3acbf362dcd382dc06e1952b497c249baa01e",part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{key:"09667b2e67d4fee307f454f3542317f8e0b23183",part:"departure-container",class:"departure-container"},h("div",{key:"99b7898bafd1ee92297036a1b2ae0992c6c0fed5",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"35af3698ff9582c31ae9554640a09424e5c356ce",part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{key:"d48983ae178ae72d5dc78e48f252e2cae6a8edb2",part:"arrival-container",class:"arrival-container"},h("div",{key:"8056cc5fc7f72384fb819c5c32399014aede624a",part:"arrival-title",class:"arrival-title"},translate[state.language].arrival," : "),h("div",{key:"d495453c91947421334e96cdf7bf3916058bcce5",part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{key:"649b9f8a4da4cec7e4b2b3a2c5970eda42c77864",part:"cities-container",class:"cities-container"},h("div",{key:"83c317ab625863769d0929f413e6beda5dc733b7",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"4993589280a286aceed4b81773075399fef41cdd",part:"cities",innerHTML:this.cities.join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",{key:"89a5ceb617520c046aed5768fd58ae8b0e314728",part:"divider-and-pois-container",class:"divider-and-pois-container"},h("div",{key:"0e9f58ca88421a3061ae2d826908d06db08a567c",part:"divider",class:"divider"}),h("div",{key:"6a3c123c6ae6fbaeda8cd33580eb76cd1ed7c6f7",part:"pois-container",class:"pois-container"},h("div",{key:"ac122ff3d8b328b5ca68277a3d64a3560747320b",part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),h("div",{key:"795718a23d2b959e58a1d095d2e7d3b09f571c6d",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"143354c95579bb780125ab0afaa2f48944fe07e9",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"7c803c88573456f57ee6bd573bf62f8370d34258",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&this.currentTrek.departure_city&&!this.offline&&h("div",{key:"48d2f6dddde225bf4738937b1ec6e3384b48cd60",part:"divider-and-weather-container",class:"divider-and-weather-container"},h("div",{key:"1c1f45046381767f151173c437344cec2032a2f0",part:"divider",class:"divider"}),h("div",{key:"9ff7aaacafa036678c5bd635a6bffbf12b24236c",part:"weather-container",class:"weather-container"},h("iframe",{key:"4b39305270e8100ae25ec8712ce4df68eedee3cc",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.getDepartureCityCode(),"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&h("div",{key:"485f5177f92cbd7dfcaa5d03220e9d5e4c728490",part:"divider-and-access-container",class:"divider-and-access-container"},h("div",{key:"c9a87d55121e2b595b8ee3a60cc19b2a4d18d9c5",part:"divider",class:"divider"}),h("div",{key:"53f2079f391c39accf12fcb979c6a316e18438e9",part:"access-container",class:"access-container"},h("div",{key:"24b31afdf2e07c6a37ce4a2fc0fea20c7cc9ff8b",part:"access-title",class:"access-title"},translate[state.language].roadAccessAndParking),h("div",{key:"bbfd8d73692e0f5de2d162129389ccfa232d481f",part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&h("div",{key:"9799ac93b8fdbf85a2042e2ce170359416e84d24"},h("div",{key:"34597bb45c50918d63bbbc24168066dfbaa81e7d",part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},translate[state.language].recommendedParking),h("div",{key:"0fce2e95d22fdc2470c54d5948e33ff46e16c346",part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&h("div",{key:"50166f9774e294418dabb9f8401a5fc978458be6",part:"divider-and-public-transport-container",class:"divider-and-public-transport-container"},h("div",{key:"b8deeb5d68e5d26a944e5e71533e77d886215126",part:"divider",class:"divider"}),h("div",{key:"2413c653cf90f43f8c0b195d8f8588f79f1abac4",part:"public-transport-container",class:"public-transport-container"},h("div",{key:"edda0d010f68380dcf6d9aeb33a95fa44211e1f1",part:"public-transport-title",class:"public-transport-title"},translate[state.language].transport),h("div",{key:"3e0f5496573968a10e0c1fb8323ec82d24638434",part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&h("div",{key:"ca784b84f5bcf47606c3db29af01f13efc5ca290",part:"divider-and-advice-container",class:"divider-and-advice-container"},h("div",{key:"1c476043573c92439220c214245148cd5c4c8e1b",part:"divider",class:"divider"}),h("div",{key:"331cf1fd3bf8484a6eb8b64c3c66bde39ae6515e",part:"advice-container",class:"advice-container"},h("div",{key:"fefd9d81f60144178e702a4c318ea644c5adc049",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{key:"5a2dec7be0e6f61a1c4513860fc695613e218647",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"7666b66fa8eff3816b1547d4334591a91c7ac4cc",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"ff217d00ed21f83cb31fc118ad89b9bed6da3b8b",part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&h("div",{key:"281f148701da9c4853acff2f455e503058531f2d",part:"gear-container",class:"gear-container"},h("span",{key:"e539f398cad42eb4ac7e62239e9977c7008bd858",part:"icon",class:"icon",innerHTML:BackpackIcon}),h("div",{key:"941802260c4fb5c569cedf01c2042152275b3d08",part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(t){return h("div",{part:"label-container",class:"label-container"},h("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",{part:"label-name",class:"label-name",innerHTML:t.name})),h("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice}))})))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",{key:"abe167c5c79333087359cb5dd41238d9bc56fc34",part:"divider-and-sensitive-areas-container",class:"divider-and-sensitive-areas-container"},h("div",{key:"e540941c6f52ef66ad05c64c04a5ed3937cd3626",part:"divider",class:"divider"}),h("div",{key:"697403fdcb791eedb8978e926060f1afcf098e22",part:"sensitive-areas-container",class:"sensitive-areas-container"},h("div",{key:"fdd6cbd274da0b602959479781ec051d6d6088d3",part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(e){return t.sensitiveAreaRef=e}},translate[state.language].environmentalSensitiveAreas),h("div",{key:"19157c6dcb4265642d1e9a90067634fb81d38eb7",part:"sensitive-areas-description",class:"sensitive-areas-description"},translate[state.language].sensitiveAreasDescription),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value",sensitiveArea:t})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&h("div",{key:"d63a2fc49383abfbc504fe399ab3efebfac5b36f",part:"divider-and-information-desks-container",class:"divider-and-information-desks-container"},h("div",{key:"631a03dfc13a01ca6fd37f9d71b8aa4666ba87a2",part:"divider",class:"divider"}),h("div",{key:"96906210f7f92481f8bdc560b044d60672844912",part:"information-desks-container",class:"information-desks-container"},h("div",{key:"152d496b0445cba586cf419349a353ea9ae00f39",part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{key:"874fe31576d049aed95107e6c43dbf5a1f366220",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"abd6d5e11080e00f45890661c08c327847abef71",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"85acc427ced541880fc66d0f6feb645cf10fea09",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&h("div",{key:"a5330b741c30f1079fb2d3c650a60fe13fbedd71",part:"divider-and-accessibilities-container",class:"divider-and-accessibilities-container"},h("div",{key:"6881d662c79a1b143427d3f383422115b2c1bf0f",part:"divider",class:"divider"}),h("div",{key:"661df0ef883209c7e0f35ba23a005c0fe2a1d6e0",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"c444c7251c3b356bcc4c1f587263c5e611485806",part:"accessibilities-title",class:"accessibilities-title",ref:function(e){return t.accessibilityRef=e}},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{key:"61f8dd967b0d9fd293588ac08cdb1d005dcab70f",part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&h("div",{key:"ddea684e5d65212a9a8445ada2b75fef8b937d5a",part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{part:"accessibility-content-container",class:"accessibility-content-container"},h("img",{src:t.pictogram,alt:""}),h("div",{part:"accessibility-name",innerHTML:t.name}))}))),this.emergencyNumber&&h("div",{key:"fc9fd33062e3e8dc78b203b02b9746d98aee59e6",part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},h("div",{key:"3ce0f480c39303ff9754864424016989db5bc8a3",part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},translate[state.language].emergencyNumber),h("div",{key:"ae761aaf615756891e81c3dd4ee21526705b7410",part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},h("a",{key:"60b1fefcf8602ef846a8dec97c2ee83a18880139",href:"tel:".concat(this.emergencyNumber.toString())},h("span",{key:"7c71ada87035065f720149cbc5947d4492a536d5",part:"icon",class:"icon",innerHTML:CallIcon}),h("span",{key:"9495d4466c7cafa2a6d2bb38b7440aff9dba6699",part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&h("div",{key:"152ce37946418d8f5653403b32e1f94c7292f034",part:"accessibility-level-container",class:"accessibility-level-container"},h("div",{key:"f58a7001234a92202fa6a02ee2266ac2adc87570",part:"accessibility-level-title",class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{key:"7d7b8e21800f43efaa42c3445ef72e5da55b043f",part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{key:"ab844bcd6853aa9a04eb77bf747dafb4d04d07fb",part:"accessibility-slope-container",class:"accessibility-slope-container"},h("div",{key:"9bf71efe837f9e30a94f4499b9a6a365547cf9a4",part:"accessibility-slope-title",class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{key:"10245e7a3d22f9a48ef8226fbae799cbffb79e46",part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{key:"c7d20910906c9334d3a1504432d9a73b7920fb10",part:"accessibility-width-container",class:"accessibility-width-container"},h("div",{key:"192f82d0d09a48b44df30ae17a44db318f9a1827",part:"accessibility-width-title",class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{key:"bb8f20e44d5bf790f2d9f359e5410c975d34fc0a",part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{key:"708ddf47dec8883c3e49c303bd575ede2489ea3d",part:"accessibility-signage-container",class:"accessibility-signage-container"},h("div",{key:"cc28b9fdad41e531bbcef396667048629184d2c1",part:"accessibility-signage-title",class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{key:"b26ab3f38f065b5aae2b58e351d105ea42ae0060",part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{key:"a3368ff2357e4dbe22e883c48e3e5679e6a0625c",part:"accessibility-covering-container",class:"accessibility-covering-container"},h("div",{key:"645f9dee0a49de3e3b8230b6bd165e410d17ad6f",part:"accessibility-covering-title",class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{key:"d820fd94ea0f086c569ec9ebaa1024c41fa749e3",part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{key:"088a81d2bbfc43865057e57aea00c02e1de238bb",part:"accessibility-exposure-container",class:"accessibility-exposure-container"},h("div",{key:"5b75b0f0d86ada935b4ebc5dc3d24df7505d915d",part:"accessibility-exposure-title",class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{key:"3c1c31aba42336b3f30c507ba3a716d2e350f236",part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{key:"e50d5a92dbc04c22017297b96c77788b001057ea",part:"accessibility-advice-container",class:"accessibility-advice-container"},h("div",{key:"2fbc202f02eb40042b0b8b99f2dcf19fb501c7df",part:"accessibility-advice-title",class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{key:"f45c17e27600db5c042b5cef7dc303e09c7dde54",part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"bce94f87ec3b7e8e4ed52f35b4f6b72e38950e72",part:"divider-and-touristic-content-container",class:"divider-and-touristic-content-container"},h("div",{key:"e79fd5d6c052b231937ef887df2f8201aafe6aff",part:"divider",class:"divider"}),h("div",{key:"335c70eb75cc727a3246f7366ef96a1c85f3eae1",part:"touristic-content-container",class:"touristic-content-container"},h("div",{key:"b3e18f219e629ed736e29da7014f7ce587a778b5",part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"3c90d22c79ae5161d9e33e5696d1e569785aed4f",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"87a42940555d9bfbc70e69760fe2aab8c392b337",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,"color-surface-container-low":t.colorSurfaceContainerLow}))}))),h("div",{key:"0c507d7617cc940873126e35a1f00e4745f43928",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"d5cad174934b41a78713da22acf6b895f8db6062",part:"divider-and-touristic-event-container",class:"divider-and-touristic-event-container"},h("div",{key:"74eee95574b301f8e1f4225d1ff4e031540057c0",part:"divider",class:"divider"}),h("div",{key:"2c345f70bdef03b5eecdf35bee51e4daa83586b0",part:"touristic-event-container",class:"touristic-event-container"},h("div",{key:"1b60223986fd21f9233613da89e0d2b4ea3a6172",part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"1d1c02762899777834ff55dca7551a1f590dbd40",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"0fa81f334ee14c3e30ea6741b089769bca8c6074",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"e3e4084ad06ca88a9fa0c42f29f4b0c965764111",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&h("div",{key:"e682fa0a17e5f71e05facb2ffbc1acecb13dd67a",part:"divider-and-weblinks-container",class:"divider-and-weblinks-container"},h("div",{key:"26184d951f99fb35f50da7b662674eed66a9fdd1",part:"divider",class:"divider"}),h("div",{key:"4629327f1ab973e6732e3964dd2fe0146d67aa47",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"47cbdb8232f3bcd91d4733bbe40c5c0de3666c52",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentTrek.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",{key:"44cc04d24a869bad89194c71e6248e8c34762198",part:"divider-and-source-container",class:"divider-and-source-container"},h("div",{key:"ff17a4126d5774e5f2c35a62d7dac71baac5df84",part:"divider",class:"divider"}),h("div",{key:"1c415ee348802194636341e62dcb778894a71e85",part:"source-container",class:"source-container"},h("div",{key:"72c5bc73580d9fb74d4264d5b2f46ee30eb0b389",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"9945450d102292fb05be14b45f1278569051c532",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"74f6a13e4e120cd15385a3f6749da841c286095b"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"929df87264b5c7b2ef9f61b262eff954f96475e1",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"3da8e576d4563188f4abd3f1f19cb8031d3fd1ec",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwTrekDetail.style=GrwTrekDetailStyle0;var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.signages=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTrek()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("treks",this.trekId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}return[2]}}))}))};t.prototype.handleOfflineTrek=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,L,_,z,C,O,S,F,P;return __generator(this,(function(M){switch(M.label){case 0:if(!(t&&t.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(t.children.length>0))return[3,1];state.parentTrekId=t.id;state.parentTrek=t;e.push.apply(e,t.children);return[3,3];case 1:return[4,getDataInStore("treks",state.parentTrekId)];case 2:i=M.sent();state.parentTrek=i;e.push.apply(e,i.children);M.label=3;case 3:r=[];e.forEach((function(t){r.push(getDataInStore("treks",t))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:a.currentTrekSteps=M.sent();M.label=5;case 5:n=state;return[4,handleOfflineProperty("difficulties")];case 6:n.difficulties=M.sent();o=state;return[4,handleOfflineProperty("routes")];case 7:o.routes=M.sent();s=state;return[4,handleOfflineProperty("practices")];case 8:s.practices=M.sent();c=state;return[4,handleOfflineProperty("themes")];case 9:c.themes=M.sent();l=state;return[4,handleOfflineProperty("cities")];case 10:l.cities=M.sent();d=state;return[4,handleOfflineProperty("accessibilities")];case 11:d.accessibilities=M.sent();u=state;return[4,handleOfflineProperty("ratings")];case 12:u.ratings=M.sent();p=state;return[4,handleOfflineProperty("ratingsScale")];case 13:p.ratingsScale=M.sent();f=state;return[4,handleOfflineProperty("labels")];case 14:f.labels=M.sent();h=state;return[4,handleOfflineProperty("sources")];case 15:h.sources=M.sent();m=state;return[4,handleOfflineProperty("accessibilitiesLevel")];case 16:m.accessibilitiesLevel=M.sent();b=state;return[4,handleOfflineProperty("touristicContentCategories")];case 17:b.touristicContentCategories=M.sent();v=state;return[4,handleOfflineProperty("touristicEventTypes")];case 18:v.touristicEventTypes=M.sent();g=state;return[4,handleOfflineProperty("networks")];case 19:g.networks=M.sent();w=state;return[4,handleOfflineProperty("poiTypes")];case 20:w.poiTypes=M.sent();return[4,handleOfflineProperty("informationDesks")];case 21:k=M.sent();y=k.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=y;return[4,handleOfflineProperty("pois",["url"])];case 22:x=M.sent();A=x.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=A;return[4,handleOfflineProperty("touristicContents",["url"])];case 23:L=M.sent();_=L.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=_;return[4,handleOfflineProperty("touristicEvents",["url"])];case 24:z=M.sent();C=z.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=C;return[4,handleOfflineProperty("sensitiveAreas")];case 25:O=M.sent();S=O.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));state.currentSensitiveAreas=S;return[4,handleOfflineProperty("signages")];case 26:F=M.sent();P=F.filter((function(e){return t.signages.some((function(t){return t===e.id}))}));state.currentSignages=P;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 27:M.sent();state.currentTrek=t;return[2]}}))}))};t.prototype.handleOnlineTrek=function(){var t=this;var e=[];e.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.accessibilities?fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.ratings?fetch("".concat(state.api,"trek_rating/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!state.ratingsScale?fetch("".concat(state.api,"trek_ratingscale/?language=").concat(state.language,"&fields=id,name"),this.init):new Response("null"));e.push(this.signages?getSignages(state.api,state.language,this.trekId,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[getSensitiveAreasNearTrek(state.api,state.language,this.trekId,this.init).then((function(t){if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram,filter"),this.init),getSources(state.api,state.language,this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),getPoisNearTrek(state.api,state.language,this.trekId,this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init),getInformationsDesks(state.api,state.language,this.init),getTouristicContentsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicContentCategory(state.api,state.language,null,this.init),getTouristicEventsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicEventType(state.api,state.language,null,this.init),getTrekNetwork(state.api,state.language,this.init),getTrek(state.api,state.language,this.trekId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=this;var o=t[0],s=t[1],c=t[2],l=t[3],d=t[4],u=t[5],p=t[6],f=t[7],h=t[8],m=t[9],b=t[10],v=t[11],g=t[12],w=t[13],k=t[14],y=t[15],x=t[16],A=t[17],L=t[18],_=t[19],z=t[20],C=t[21];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(C&&C.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(C.children.length>0))return[3,1];state.parentTrekId=C.id;state.parentTrek=C;e.push.apply(e,C.children);return[3,3];case 1:return[4,fetch("".concat(state.api,"trek/").concat(state.parentTrekId,"/?language=").concat(state.language,"&published=true&fields=name,children")).then((function(t){return t.json()}))];case 2:i=t.sent();state.parentTrek=i;e.push.apply(e,i.children);t.label=3;case 3:r=[];e.forEach((function(t){r.push(getTrek(state.api,state.language,t,n.init))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:a.currentTrekSteps=t.sent();t.label=5;case 5:if(o){state.difficulties=o.results}if(s){state.routes=s.results}if(c){state.practices=c.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(l){state.themes=l.results}if(d){state.cities=d.results}if(u){state.accessibilities=u.results}if(p){state.ratings=p.results}if(f){state.ratingsScale=f.results}if(m){state.currentSensitiveAreas=m.results}if(b){state.labels=b.results}state.currentSignages=h?h.results:[];if(v){state.sources=v.results}if(g){state.accessibilitiesLevel=g.results}if(x){state.trekTouristicContents=x.results}if(A){state.touristicContentCategories=A.results}if(L){state.trekTouristicEvents=L.results}if(_){state.touristicEventTypes=_.results}if(z){state.networks=z.results}if(w){state.currentPois=w.results}if(k){state.poiTypes=k.results}if(y){state.currentInformationDesks=y.results}if(C){state.currentTrek=C}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.render=function(){return h(Host,{key:"9f25aae6de080d43ab696d0b09d7fd7d7662d7d2"})};return t}();var grwTreksListCss=":host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwTreksListStyle0=grwTreksListCss;var GrwTreksList=function(){function t(t){registerInstance(this,t);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTreks){t.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,t.step),true)}}));onChange("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.treksWithinBounds){t.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"82171db5a6a0f358d3eaa11e323bae57f9616c46",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{key:"596412e88c54033b3062a643d791322689fc5954",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"626d25788c881b95af4e6904eeffd32765be28a3",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(e){return h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp})}))),h("div",{key:"1c9ad21fefbe05184a062b487f02933756da6f6c",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=GrwTreksListStyle0;var GrwTreksProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}return[2]}))}))};t.prototype.handleOfflineTreks=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,getAllDataInStore("treks")];case 1:t=l.sent();if(!(t&&t.length>0))return[3,11];e=state;return[4,this.handleOfflineProperty("difficulties")];case 2:e.difficulties=l.sent();i=state;return[4,this.handleOfflineProperty("routes")];case 3:i.routes=l.sent();r=state;return[4,this.handleOfflineProperty("practices")];case 4:r.practices=l.sent();a=state;return[4,this.handleOfflineProperty("themes")];case 5:a.themes=l.sent();n=state;return[4,this.handleOfflineProperty("cities")];case 6:n.cities=l.sent();o=state;return[4,this.handleOfflineProperty("accessibilities")];case 7:o.accessibilities=l.sent();s=state;return[4,this.handleOfflineProperty("labels")];case 8:s.labels=l.sent();c=state;return[4,this.handleOfflineProperty("districts")];case 9:c.districts=l.sent();state.durations=durations;state.lengths=lengths;state.elevations=elevations;return[4,this.handleOfflineProperty("treks")];case 10:t=l.sent();this.sortTreks(t);if(this.offline){t=t.filter((function(t){return t.offline}))}state.treks=t;state.currentTreks=t;return[3,12];case 11:state.networkError=true;l.label=12;case 12:return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t){return __awaiter(this,arguments,void 0,(function(t,e){var i;if(e===void 0){e=[]}return __generator(this,(function(r){switch(r.label){case 0:return[4,getAllDataInStore(t)];case 1:i=r.sent();return[4,setFilesFromStore(i,imagesRegExp,e)];case 2:r.sent();return[2,i]}}))}))};t.prototype.handleOnlineTreks=function(){var t=this;Promise.all([fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),getCities(state.api,state.language,this.init),getTrekAccessibility(state.api,state.language,this.portals,this.init),getLabel(state.api,state.language,this.portals,this.init),getDistricts(state.api,state.language,this.init),getTreksList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(t){t.forEach((function(t){if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r;var a=t[0],n=t[1],o=t[2],s=t[3],c=t[4],l=t[5],d=t[6],u=t[7],p=t[8];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;state.difficulties=a.results;state.routes=n.results;state.practices=o.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=s.results;state.cities=c.results;state.accessibilities=l.results;state.labels=d.results;state.districts=u.results;state.durations=durations;state.lengths=lengths;state.elevations=elevations;e=[];i=0;t.label=1;case 1:if(!(i<p.results.length))return[3,4];return[4,trekIsAvailableOffline(p.results[i].id)];case 2:r=t.sent();e.push(Object.assign(Object.assign({},p.results[i]),{offline:r}));t.label=3;case 3:i++;return[3,1];case 4:this.sortTreks(e);state.treks=e;state.currentTreks=e;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineTreks()];case 1:t.sent();return[2]}}))}))}))};t.prototype.render=function(){return h(Host,{key:"8a7e657bfb77bf50b6c20861ba5ff9b226c68bc8"})};return t}();export{GrwCommonButton as grw_common_button,GrwFilters as grw_filters,GrwLoader as grw_loader,GrwMap as grw_map,GrwOfflineConfirmModal as grw_offline_confirm_modal,GrwOutdoorCourseDetail as grw_outdoor_course_detail,GrwOutdoorCourseProvider as grw_outdoor_course_provider,GrwOutdoorSiteDetail as grw_outdoor_site_detail,GrwOutdoorSiteProvider as grw_outdoor_site_provider,GrwOutdoorSitesList as grw_outdoor_sites_list,GrwOutdoorSitesProvider as grw_outdoor_sites_provider,GrwSearch as grw_search,GrwSegmentedSegment as grw_segmented_segment,GrwSelectLanguage as grw_select_language,GrwSwitch as grw_switch,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicContentsList as grw_touristic_events_list,GrwTouristicEventsProvider as grw_touristic_events_provider,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
3
+ this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:n.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});Q.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+"&nbsp;"+i.label},order:10}})})),Q.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return a(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===U(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),a=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+a)}else e.meta.time=new Date(Date.now());var n=e.meta.time;return n.getTime()-60*n.getTimezoneOffset()*1e3==0&&(n=0),n},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+a(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return a(t.time||0)},order:20}}))})),Q.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),a=O[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,a=t.track_info;if(t.options.altitudeDeltaMax){var n=e-r[i>0?i-1:i].z,o=t.options.altitudeDeltaMax;Math.abs(n)>o&&(e=r[i-1].z+o*Math.sign(n))}return(e=c(e,t.options.altitudeRange))>a.elevation_max&&(a.elevation_max=e),e<a.elevation_min&&(a.elevation_min=e),a.elevation_avg=(e+a.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:a.area||r,strokeColor:e.detached?a.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?a.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+"&nbsp;"+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+"&nbsp;"+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+"&nbsp;"+i.label},order:30}})})),Q.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),a=i[e].z-i[e>0?e-1:e].z;return isNaN(a)||0===r?0:a/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,a=t._data,n=a[i].z-a[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var o=slop-a[i>0?i-1:i].slope,s=t.options.slopeDeltaMax;Math.abs(o)>s&&(e=a[i-1].slope+s*Math.sign(o))}return e=c(e,t.options.slopeRange),n>0?t.track_info.ascent+=n:n<0&&(t.track_info.descent-=n),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+"&nbsp;"+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+"&nbsp;"+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+"&nbsp;"+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+"&nbsp;"+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+"&nbsp;"+i.label},order:40}})}})),Q.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,a=1e3*(r[i].dist-r[i>0?i-1:i].dist),n=r[i].time-r[i>0?i-1:i].time;return n>0?Math.abs(a/n*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,a=t.track_info;if(t.options.speedDeltaMax){var n=e-r[i>0?i-1:i].speed,o=t.options.speedDeltaMax;Math.abs(n)>o&&(e=r[i-1].speed+o*Math.sign(n))}return(e=c(e,t.options.speedRange))>a.speed_max&&(a.speed_max=e),e<a.speed_min&&(a.speed_min=e),a.speed_avg=(e+a.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+"&nbsp;"+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+"&nbsp;"+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+"&nbsp;"+i.label},order:50}}))}})),Q.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,a=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),n=(r[i].time-r[i>0?i-1:i].time)/1e3;return n>0?Math.abs(a/n)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,a=t.track_info;if(t.options.accelerationDeltaMax){var n=e-r[i>0?i-1:i].acceleration,o=t.options.accelerationDeltaMax;Math.abs(n)>o&&(e=r[i-1].acceleration+o*Math.sign(n))}return(e=c(e,t.options.accelerationRange))>a.acceleration_max&&(a.acceleration_max=e),e<a.acceleration_min&&(a.acceleration_min=e),a.acceleration_avg=(e+a.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+"&nbsp;"+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+"&nbsp;"+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+"&nbsp;"+i.label},order:60}})}})),Q.Utils=z,Q.Components=Y,Q.Chart=H,$=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]="​"),$.call(null,t,e)},Q.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(t){return new Q(t)}}))})(leafletElevation_min);var leaflet_markercluster={exports:{}};(function(t,e){!function(t,i){i(e)}(commonjsGlobal,(function(t){var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,a=this._nonPointGroup,n=this.options.chunkedLoading,o=this.options.chunkInterval,s=this.options.chunkProgress,c=t.length,l=0,d=!0;if(this._map){var u=(new Date).getTime(),p=L.bind((function(){var f=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<c;l++){if(n&&l%200==0){var h=(new Date).getTime()-f;if(o<h)break}if((i=t[l])instanceof L.LayerGroup)d&&(t=t.slice(),d=!1),this._extractNonGroupLayers(i,t),c=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),b=m[0]===i?m[1]:m[0];r.removeLayer(b)}}else a.addLayer(i),e||this.fire("layeradd",{layer:i})}s&&s(l,c,(new Date).getTime()-u),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(p,this.options.chunkDelay)}),this);p()}else for(var f=this._needsClustering;l<c;l++)(i=t[l])instanceof L.LayerGroup?(d&&(t=t.slice(),d=!1),this._extractNonGroupLayers(i,t),c=t.length):i.getLatLng?this.hasLayer(i)||f.push(i):a.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,a=this._featureGroup,n=this._nonPointGroup,o=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),n.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var s=t.slice(),c=r;for(e=0;e<c;e++)(i=s[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),c=s.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),a.hasLayer(i)&&(a.removeLayer(i),i.clusterShow&&i.clusterShow())):(n.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,a,n=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),r=n.length-1;0<=r;r--){for(i=!0,a=o.length-1;0<=a;a--)if(o[a].layer===n[r]){i=!1;break}i&&t.call(e,n[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());a<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,a=this._gridUnclustered,n=this._featureGroup,o=this._map,s=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var c,l=t.__parent,d=l._markers;for(this._arraySplice(d,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<s));)e&&l._childCount<=1?(c=l._markers[0]===t?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,o.project(l._cLatLng,l._zoom)),a[l._zoom].addObject(c,o.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(n.removeLayer(l),i||n.addLayer(c))):l._iconNeedsUpdate=!0,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,a=this.options.spiderfyOnEveryZoom;(e||r||a)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,a=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),a.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var a=t;e<=a;a--)this._gridClusters[a]=new L.DistanceGrid(r(a)),this._gridUnclustered[a]=new L.DistanceGrid(r(a));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,a=this._gridClusters,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=e;e--){i=this._map.project(t.getLatLng(),e);var s=a[e].getNearObject(i);if(s)return s._addChild(t),void(t.__parent=s);if(s=n[e].getNearObject(i)){var c=s.__parent;c&&this._removeLayer(s,!1);var l=new this._markerCluster(this,e,s,t);a[e].addObject(l,this._map.project(l._cLatLng,e)),s.__parent=l;var d=t.__parent=l;for(r=e-1;r>c._zoom;r--)d=new this._markerCluster(this,r,d),a[r].addObject(d,this._map.project(s.getLatLng(),r));return c._addChild(d),void this._removeFromGridUnclustered(s,e)}n[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),a=0;for(e=e||[];a<r.length;a++)(i=r[a])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),a=this._featureGroup,n=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,n,(function(n){var o,s=n._latlng,c=n._markers;for(r.contains(s)||(s=null),n._isSingleParent()&&t+1===e?(a.removeLayer(n),n._recursivelyAddChildrenToMap(null,e,r)):(n.clusterHide(),n._recursivelyAddChildrenToMap(s,e,r)),i=c.length-1;0<=i;i--)o=c[i],r.contains(o._latlng)||a.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),a.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,n,(function(t){a.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),a=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,a,e+1,i);var n=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,i,a,(function(t){t._recursivelyRemoveChildrenFromMap(r,a,e+1)}));n._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,a=r.getBoundsZoom(this._bounds),n=this._zoom+1,o=r.getZoom();0<i.length&&n<a;){n++;var s=[];for(e=0;e<i.length;e++)s=s.concat(i[e]._childClusters);i=s}n<a?this._group._map.setView(this._latlng,n):a<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,a=this._markers,n=this._childClusters,o=0,s=0,c=this._childCount;if(0!==c){for(this._resetBounds(),t=0;t<a.length;t++)i=a[t]._latlng,this._bounds.extend(i),o+=i.lat,s+=i.lng;for(t=0;t<n.length;t++)(e=n[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,o+=i.lat*r,s+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/c,s/c),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,a=t._markers;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,a=t._childClusters;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(a){a._recursivelyAnimateChildrenIn(t,a._group._map.latLngToLayerPoint(a.getLatLng()).round(),i),a._isSingleParent()&&i-1===r?(a.clusterShow(),a._recursivelyRemoveChildrenFromMap(t,e,i)):a.clusterHide(),a._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var a=r._markers.length-1;0<=a;a--){var n=r._markers[a];i.contains(n._latlng)&&(t&&(n._backupLatlng=n.getLatLng(),n.setLatLng(t),n.clusterHide&&n.clusterHide()),r._group._featureGroup.addLayer(n))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var a=this._childClusters.length-1;0<=a;a--)this._childClusters[a]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var a,n;this._recursively(t,e-1,i-1,(function(t){for(n=t._markers.length-1;0<=n;n--)a=t._markers[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}),(function(t){for(n=t._childClusters.length-1;0<=n;n--)a=t._childClusters[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}))},_recursively:function(t,e,i,r,a){var n,o,s=this._childClusters,c=this._zoom;if(e<=c&&(r&&r(this),a&&c===i&&a(this)),c<e||c<i)for(n=s.length-1;0<=n;n--)(o=s[n])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,e,i,r,a)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),a=this._grid,n=a[r]=a[r]||{},o=n[i]=n[i]||[],s=L.Util.stamp(t);this._objectPoint[s]=e,o.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,a=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},c=s[a]=s[a]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=c.length;i<r;i++)if(c[i]===t)return c.splice(i,1),1===r&&delete s[a],!0},eachObject:function(t,e){var i,r,a,n,o,s,c=this._grid;for(i in c)for(r in o=c[i])for(a=0,n=(s=o[r]).length;a<n;a++)t.call(e,s[a])&&(a--,n--)},getNearObject:function(t){var e,i,r,a,n,o,s,c,l=this._getCoord(t.x),d=this._getCoord(t.y),u=this._objectPoint,p=this._sqCellSize,f=null;for(e=d-1;e<=d+1;e++)if(a=this._grid[e])for(i=l-1;i<=l+1;i++)if(n=a[i])for(r=0,o=n.length;r<o;r++)s=n[r],((c=this._sqDist(u[L.Util.stamp(s)],t))<p||c<=p&&null===f)&&(p=c,f=s);return f},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,a,n=0,o=null,s=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(a=this.getDistant(r,t))&&(s.push(r),n<a&&(n=a,o=r));return{maxPoint:o,newPoints:s}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,a=!1,n=!1,o=null,s=null,c=null,l=null,d=null,u=null;for(e=t.length-1;0<=e;e--){var p=t[e];(!1===i||p.lat>i)&&(i=(o=p).lat),(!1===r||p.lat<r)&&(r=(s=p).lat),(!1===a||p.lng>a)&&(a=(c=p).lng),(!1===n||p.lng<n)&&(n=(l=p).lng)}return d=r!==i?(u=s,o):(u=l,c),[].concat(this.buildConvexHull([u,d],t),this.buildConvexHull([d,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,n=this._2PI/t,o=[];for(a=Math.max(a,35),o.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*n,o[i]=new L.Point(e.x+a*Math.cos(r),e.y+a*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,a=r*this._spiralLengthStart,n=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,s=0,c=[];for(i=c.length=t;0<=i;i--)i<t&&(c[i]=new L.Point(e.x+a*Math.cos(s),e.y+a*Math.sin(s))._round()),a+=o/(s+=n/a+5e-4*i);return c},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,a=i._featureGroup,n=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=n.length-1;0<=e;e--)t=n[e],a.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:n}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,a,n,o=this._group,s=o._map,c=o._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,i=0;i<t.length;i++)n=s.layerPointToLatLng(e[i]),r=t[i],a=new L.Polyline([this._latlng,n],l),s.addLayer(a),r._spiderLeg=a,r._preSpiderfyLatlng=r._latlng,r.setLatLng(n),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,a,n,o,s,c=this,l=this._group,d=l._map,u=l._featureGroup,p=this._latlng,f=d.latLngToLayerPoint(p),h=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),b=m.opacity;for(void 0===b&&(b=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),h?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=b,l._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],s=d.layerPointToLatLng(e[i]),a=new L.Polyline([p,s],m),d.addLayer(a),r._spiderLeg=a,h&&(o=(n=a._path).getTotalLength()+.1,n.style.strokeDasharray=o,n.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=t.length-1;0<=i;i--)s=d.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.clusterShow&&r.clusterShow(),h&&((n=(a=r._spiderLeg)._path).style.strokeDashoffset=0,a.setStyle({opacity:b}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,a,n,o,s=this,c=this._group,l=c._map,d=c._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,!0),f=L.Path.SVG;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),i=p.length-1;0<=i;i--)(e=p[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,o=!0,e._setPos&&(e._setPos(u),o=!1),e.clusterHide&&(e.clusterHide(),o=!1),o&&d.removeLayer(e),f&&(n=(a=(r=e._spiderLeg)._path).getTotalLength()+.1,a.style.strokeDashoffset=n,r.setStyle({opacity:0})));c._ignoreMove=!1,setTimeout((function(){var t=0;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&t++;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&d.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:s,markers:p})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(leaflet_markercluster,leaflet_markercluster.exports);!function(t){if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("object"==typeof exports)module.exports=t(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=t(window.L)}}((function(t){var e=t.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:!0,zoomLevel:void 0,drawCircle:!0,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>',htmlSpinner:'\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>',htmlGeolocation:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>',htmlOrientation:'\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>',iconGeolocation:t.divIcon({html:'\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:t.divIcon({html:'\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(e){t.Util.setOptions(this,e),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(e){return this._map=e,this._button=t.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&t.DomUtil.addClass(this._button,this.options.className),t.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),t.DomEvent.on(this._button,"click",t.DomEvent.stopPropagation).on(this._button,"click",t.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(t){this.options.zoomLevel=t},_onClick:function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((function(){clearTimeout(t._clickTimeout),t._clickTimeout=void 0,t._map&&(t._clicked&&t.options.setViewAfterClick?t._setView():(t._clicked=!0,t._updateButton(),t._map.on("layeradd",t._onLayerAdd,t),t._checkGeolocation().then((function(e){t._geolocation=!0,t._onLocationFound(e.coords),t.options.setViewAfterClick&&t._setView(),t._watchGeolocation(),t._checkClickResult()})).catch((function(){t._geolocation=!1,t._checkClickResult()})),t._checkOrientation().then((function(){t._orientation=!0,t._watchOrientation(),t._checkClickResult()})).catch((function(){t._orientation=!1,t._checkClickResult()}))))}),this.options.clickTimeoutDelay);return[2]}))}))},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),!1===this._geolocation&&!1===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise((function(t,e){navigator.geolocation.getCurrentPosition(t,e,{maximumAge:0,enableHighAccuracy:!0})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((function(t){return"granted"===t||Promise.reject()})):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:!0,enableHighAccuracy:!0}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){t.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){t.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(t){this._latitude&&t.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*t.latitude)&&this._longitude&&t.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*t.longitude)&&this._accuracy&&t.accuracy&&Math.round(100*this._accuracy)===Math.round(100*t.accuracy)||(this._latitude=t.latitude,this._longitude=t.longitude,this._accuracy=t.accuracy,this._updateMarker())},_onOrientation:function(t){var e;e=t.webkitCompassHeading||360-t.alpha,this._angle&&Math.abs(e-this._angle)<this.options.minAngleChange||(this._angle=e,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(t){this.options.afterMarkerAdd&&t.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){var e=void 0;if(this._geolocation&&this._orientation&&this._angle)e="iconOrientation";else{if(!this._geolocation)return;e="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=t.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===e?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=t.marker([this._latitude,this._longitude],{icon:this.options[e]}),this._marker.icon_name=e,this._marker.addTo(this._map))}}});return t.control.simpleLocate=function(t){return new e(t)},e}));var earthRadius=6371008.8;var factors={centimeters:earthRadius*100,centimetres:earthRadius*100,degrees:earthRadius/111325,feet:earthRadius*3.28084,inches:earthRadius*39.37,kilometers:earthRadius/1e3,kilometres:earthRadius/1e3,meters:earthRadius,metres:earthRadius,miles:earthRadius/1609.344,millimeters:earthRadius*1e3,millimetres:earthRadius*1e3,nauticalmiles:earthRadius/1852,radians:1,yards:earthRadius*1.0936};function feature(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function point(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!isNumber(t[0])||!isNumber(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return feature(r,e,i)}function featureCollection(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function radiansToLength(t,e){if(e===void 0){e="kilometers"}var i=factors[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function degreesToRadians(t){var e=t%360;return e*Math.PI/180}function isNumber(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function coordEach(t,e,i){if(t===null)return;var r,a,n,o,s,c,l,d=0,u=0,p,f=t.type,h=f==="FeatureCollection",m=f==="Feature",b=h?t.features.length:1;for(var v=0;v<b;v++){l=h?t.features[v].geometry:m?t.geometry:t;p=l?l.type==="GeometryCollection":false;s=p?l.geometries.length:1;for(var g=0;g<s;g++){var w=0;var k=0;o=p?l.geometries[g]:l;if(o===null)continue;c=o.coordinates;var y=o.type;d=i&&(y==="Polygon"||y==="MultiPolygon")?1:0;switch(y){case null:break;case"Point":if(e(c,u,v,w,k)===false)return false;u++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(e(c[r],u,v,w,k)===false)return false;u++;if(y==="MultiPoint")w++}if(y==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(a=0;a<c[r].length-d;a++){if(e(c[r][a],u,v,w,k)===false)return false;u++}if(y==="MultiLineString")w++;if(y==="Polygon")k++}if(y==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<c.length;r++){k=0;for(a=0;a<c[r].length;a++){for(n=0;n<c[r][a].length-d;n++){if(e(c[r][a][n],u,v,w,k)===false)return false;u++}k++}w++}break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(coordEach(o.geometries[r],e,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function featureEach(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function explode(t){var e=[];if(t.type==="FeatureCollection"){featureEach(t,(function(t){coordEach(t,(function(i){e.push(point(i,t.properties))}))}))}else{coordEach(t,(function(i){e.push(point(i,t.properties))}))}return featureCollection(e)}function bbox(t){var e=[Infinity,Infinity,-Infinity,-Infinity];coordEach(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}bbox["default"]=bbox;function center(t,e){if(e===void 0){e={}}var i=bbox(t);var r=(i[0]+i[2])/2;var a=(i[1]+i[3])/2;return point([r,a],e.properties,e)}function clone(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return cloneFeature(t);case"FeatureCollection":return cloneFeatureCollection(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(t);default:throw new Error("unknown GeoJSON type")}}function cloneFeature(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=cloneProperties(t.properties);e.geometry=cloneGeometry(t.geometry);return e}function cloneProperties(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=cloneProperties(r)}}else{e[i]=r}}));return e}function cloneFeatureCollection(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return cloneFeature(t)}));return e}function cloneGeometry(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return cloneGeometry(t)}));return e}e.coordinates=deepSlice(t.coordinates);return e}function deepSlice(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return deepSlice(t)}))}function getCoord(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function getGeom(t){if(t.type==="Feature"){return t.geometry}return t}function distance(t,e,i){if(i===void 0){i={}}var r=getCoord(t);var a=getCoord(e);var n=degreesToRadians(a[1]-r[1]);var o=degreesToRadians(a[0]-r[0]);var s=degreesToRadians(r[1]);var c=degreesToRadians(a[1]);var l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(o/2),2)*Math.cos(s)*Math.cos(c);return radiansToLength(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function nearestPoint(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var a=0;featureEach(e,(function(e,i){var n=distance(t,e);if(n<r){a=i;r=n}}));i=clone(e.features[a]);i.properties.featureIndex=a;i.properties.distanceToPoint=r;return i}function booleanPointInPolygon(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=getCoord(t);var a=getGeom(e);var n=a.type;var o=e.bbox;var s=a.coordinates;if(o&&inBBox(r,o)===false){return false}if(n==="Polygon"){s=[s]}var c=false;for(var l=0;l<s.length&&!c;l++){if(inRing(r,s[l][0],i.ignoreBoundary)){var d=false;var u=1;while(u<s[l].length&&!d){if(inRing(r,s[l][u],!i.ignoreBoundary)){d=true}u++}if(!d){c=true}}}return c}function inRing(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var a=0,n=e.length-1;a<e.length;n=a++){var o=e[a][0];var s=e[a][1];var c=e[n][0];var l=e[n][1];var d=t[1]*(o-c)+s*(c-t[0])+l*(t[0]-o)===0&&(o-t[0])*(c-t[0])<=0&&(s-t[1])*(l-t[1])<=0;if(d){return!i}var u=s>t[1]!==l>t[1]&&t[0]<(c-o)*(t[1]-s)/(l-s)+o;if(u){r=!r}}return r}function inBBox(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function pointOnFeature(t){var e=normalize(t);var i=center(e);var r=false;var a=0;while(!r&&a<e.features.length){var n=e.features[a].geometry;var o,s,c,l,d,u,p;var f=false;if(n.type==="Point"){if(i.geometry.coordinates[0]===n.coordinates[0]&&i.geometry.coordinates[1]===n.coordinates[1]){r=true}}else if(n.type==="MultiPoint"){var h=false;p=0;while(!h&&p<n.coordinates.length){if(i.geometry.coordinates[0]===n.coordinates[p][0]&&i.geometry.coordinates[1]===n.coordinates[p][1]){r=true;h=true}p++}}else if(n.type==="LineString"){p=0;while(!f&&p<n.coordinates.length-1){o=i.geometry.coordinates[0];s=i.geometry.coordinates[1];c=n.coordinates[p][0];l=n.coordinates[p][1];d=n.coordinates[p+1][0];u=n.coordinates[p+1][1];if(pointOnSegment(o,s,c,l,d,u)){f=true;r=true}p++}}else if(n.type==="MultiLineString"){var m=0;while(m<n.coordinates.length){f=false;p=0;var b=n.coordinates[m];while(!f&&p<b.length-1){o=i.geometry.coordinates[0];s=i.geometry.coordinates[1];c=b[p][0];l=b[p][1];d=b[p+1][0];u=b[p+1][1];if(pointOnSegment(o,s,c,l,d,u)){f=true;r=true}p++}m++}}else if(n.type==="Polygon"||n.type==="MultiPolygon"){if(booleanPointInPolygon(i,n)){r=true}}a++}if(r){return i}else{var v=featureCollection([]);for(a=0;a<e.features.length;a++){v.features=v.features.concat(explode(e.features[a]).features)}return point(nearestPoint(i,v).geometry.coordinates)}}function normalize(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return featureCollection([feature(t)])}return featureCollection([t])}return t}function pointOnSegment(t,e,i,r,a,n){var o=Math.sqrt((a-i)*(a-i)+(n-r)*(n-r));var s=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var c=Math.sqrt((a-t)*(a-t)+(n-e)*(n-e));return o===s+c}(function(){var t=L.Polyline.prototype.onAdd,e=L.Polyline.prototype.onRemove,i=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront;var a={onAdd:function(e){t.call(this,e);this._textRedraw()},onRemove:function(t){t=t||this._map;if(t&&this._textNode&&this._renderer._container)this._renderer._container.removeChild(this._textNode);e.call(this,t)},bringToFront:function(){r.call(this);this._textRedraw()},_updatePath:function(){i.call(this);this._textRedraw()},_textRedraw:function(){var t=this._text,e=this._textOptions;if(t){this.setText(null).setText(t,e)}},setText:function(t,e){this._text=t;this._textOptions=e;if(!L.Browser.svg||typeof this._map==="undefined"){return this}var i={repeat:false,fillColor:"black",attributes:{},below:false};e=L.Util.extend(i,e);if(!t){if(this._textNode&&this._textNode.parentNode){this._renderer._container.removeChild(this._textNode);delete this._textNode}return this}t=t.replace(/ /g," ");var r="pathdef-"+L.Util.stamp(this);var a=this._renderer._container;this._path.setAttribute("id",r);if(e.repeat){if(e.repeat!=true&&e.repeat>=1){t=t.padStart(e.repeat," ")}var n=L.SVG.create("text");for(var o in e.attributes)n.setAttribute(o,e.attributes[o]);n.appendChild(document.createTextNode(t));a.appendChild(n);var s=n.getComputedTextLength();a.removeChild(n);t=new Array(Math.ceil(isNaN(this._path.getTotalLength()/s)?0:this._path.getTotalLength()/s)).join(t)}var c=L.SVG.create("text"),l=L.SVG.create("textPath");var d=e.offset||this._path.getAttribute("stroke-width");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+r);c.setAttribute("dy",d);for(var o in e.attributes)c.setAttribute(o,e.attributes[o]);l.appendChild(document.createTextNode(t));c.appendChild(l);this._textNode=c;if(e.below){a.insertBefore(c,a.firstChild)}else{a.appendChild(c)}if(e.center){var u=c.getComputedTextLength();var p=this._path.getTotalLength();c.setAttribute("dx",p/2-u/2)}if(e.orientation){var f=0;switch(e.orientation){case"flip":f=180;break;case"perpendicular":f=90;break;default:f=e.orientation}var h=c.getBBox().x+c.getBBox().width/2;var m=c.getBBox().y+c.getBBox().height/2;c.setAttribute("transform","rotate("+f+" "+h+" "+m+")")}if(this.options.interactive){if(L.Browser.svg||!L.Browser.vml){l.setAttribute("class","leaflet-interactive")}var b=["click","dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"];for(var v=0;v<b.length;v++){L.DomEvent.on(c,b[v],this.fire,this)}}return this}};L.Polyline.include(a);L.LayerGroup.include({setText:function(t,e){for(var i in this._layers){if(typeof this._layers[i].setText==="function"){this._layers[i].setText(t,e)}}return this}})})();var grwMapCss='@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup,.outdoor-site-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img,.outdoor-site-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.poi-tooltip .signage-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.information-desks-tooltip .signage-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.sensitive-area-tooltip .signage-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-content-tooltip .signage-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.touristic-event-tooltip .signage-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.signage-marker{overflow:hidden;border-radius:0%}.signage-marker img{width:30% !important;margin-right:8px}.signage-marker .signage-name{color:white;white-space:nowrap;max-width:50%}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}.leaflet-simple-locate-icon{fill:#1e90ff}.layer-loader-container{width:100%;height:100%;background-color:rgba(255, 255, 255, 0.8);position:absolute;z-index:8000;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.layer-loader-container .layer-loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';var GrwMapStyle0=grwMapCss;var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.touristicEventCardPress=createEvent(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=createEvent(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=createEvent(this,"outdoorCourseCardPress",7);this.maxZoom=19;this.mapIsReady=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.arrowRepeat=20;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this)}t.prototype.onCenterOnMap=function(t){this.map.setView(new L$1.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){if(this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){if(this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){if(this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationPlacesIsInViewport=function(t){if(this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){if(this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){if(this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer,!state.currentPois||state.currentPois.length===0)}};t.prototype.touristicContentsIsInViewport=function(t){if(this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer,!state.trekTouristicContents||state.trekTouristicContents.length===0)}};t.prototype.touristicEventsIsInViewport=function(t){if(this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer,!state.trekTouristicEvents||state.trekTouristicEvents.length===0)}};t.prototype.sitesIsInViewport=function(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}};t.prototype.coursesIsInViewport=function(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}};t.prototype.onCardTrekMouseOver=function(t){if(!state.parentTrek&&(!state.selectedTrekId||state.selectedTrekId!==t.detail)){state.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(state.parentTrek){this.stepPopupIsOpen=false;state.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}};t.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&state.selectedTrekId){this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};t.prototype.onTouristicContentMouseOver=function(t){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)};t.prototype.onTouristicContentMouseLeave=function(){state.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};t.prototype.onTouristicEventMouseOver=function(t){this.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)};t.prototype.onTouristicEventMouseLeave=function(){state.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};t.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};t.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};t.prototype.onOutdoorSiteMouseOver=function(t){this.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)};t.prototype.onOutdoorSiteMouseLeave=function(){state.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};t.prototype.componentDidLoad=function(){var t=this;this.map=L$1.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,a){t.tileLayer.push({key:"".concat(e[a]),value:bundle.exports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[a]&&r[a]!==""?r[a].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=L$1.control.layers(this.tileLayer.reduce((function(t,e){var i;return Object.assign(t,(i={},i[e.key]=e.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}L$1.control.zoom({zoomInTitle:translate[state.language].zoomIn,zoomOutTitle:translate[state.language].zoomOut}).addTo(this.map);L$1.control.scale({metric:true,imperial:false}).addTo(this.map);L$1.Control.Contract=L$1.Control.extend({onAdd:function(){var e=L$1.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(L$1.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";e.onclick=function(e){t.bounds&&t.map.fitBounds(t.bounds);e.preventDefault()};i.title=translate[state.language].contract;return e}});L$1.control.contract=function(t){return new L$1.Control.Contract(t)};L$1.control.contract({position:"topleft"}).addTo(this.map);new L$1.Control.SimpleLocate({position:"topleft",className:"button-locate",title:translate[state.language].locate}).addTo(this.map);if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}else if(state.currentTouristicContent){this.addTouristicContent()}else if(state.currentTouristicEvent){this.addTouristicEvent()}else if(state.currentOutdoorSite){this.addOutdoorSite()}else if(state.currentOutdoorCourse){this.addOutdoorCourse()}else if(state.touristicContents){this.addTouristicContents()}else if(state.touristicEvents){this.addTouristicEvents()}else if(state.outdoorSites){this.addOutdoorSites()}onChange("currentTreks",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));onChange("currentPois",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentPois();return[2]}))}))}));onChange("trekTouristicContents",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentTouristicContents();return[2]}))}))}));onChange("trekTouristicEvents",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentTouristicEvents();return[2]}))}))}));onChange("currentOutdoorSites",(function(){if(state.currentOutdoorSites){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.addOutdoorSites(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorSite){t.removeOutdoorCourse();t.removeOutdoorSites();t.addOutdoorSite()}else if(state.currentOutdoorSites){t.removeOutdoorSite();t.addOutdoorSites()}}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorCourse){t.removeOutdoorSite();t.addOutdoorCourse()}}));onChange("currentTouristicContent",(function(){if(t.grwApp){if(state.currentTouristicContent){t.removeTrek();t.removeTouristicContents();t.addTouristicContent()}else if(state.touristicContents){t.removeTouristicContent();t.addTouristicContents()}else if(state.currentTrek){t.removeTouristicContent();t.addTrek()}else if(state.currentTreks){t.removeTouristicContent();t.addTreks()}}}));onChange("currentTouristicEvent",(function(){if(t.grwApp){if(state.currentTouristicEvent){t.removeTrek();t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(state.currentTreks){t.removeTouristicEvent();t.addTreks()}}}));onChange("currentTouristicContents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(state.currentTouristicContents){t.removeTreks();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTouristicContent();t.addTouristicContents(true)}}));onChange("currentTouristicEvents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicEvent){t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTouristicEvents){t.removeTreks();t.removeTouristicContents();t.removeOutdoorSites();t.removeTouristicEvent();t.addTouristicEvents(true)}}))};t.prototype.handleLayerVisibility=function(t,e,i){if(i===void 0){i=false}if(t&&!this.map.hasLayer(e)){e.addTo(this.map);this.layerDataIsLoading=i;forceUpdate(this.hostElement)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()};t.prototype.addTreks=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s,c;var l=this;if(t===void 0){t=false}return __generator(this,(function(d){switch(d.label){case 0:state.treksWithinBounds=state.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTreks){a=function(t){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=state.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=state.currentTreks;n<o.length;n++){s=o[n];a(s)}}if(!!this.treksLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:c=d.sent();this.treksLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:c[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(c[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:l.mainMarkerSize,iconAnchor:[l.mainMarkerSize/2,l.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(l,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image-popup";n.src=r;a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){l.hideTrekLine();l.showTrekLine(t.properties.id);l.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:l.mainClusterSize})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);d.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){if(this.treksLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(state.currentTreks&&!state.currentMapBounds||state.currentTreks&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.handleTouristicContentsWithinBounds=function(){var t=this;if(state.currentTouristicContents&&!state.currentMapBounds||state.currentTouristicContents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicContentsWithinBounds=state.currentTouristicContents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleTouristicEventsWithinBounds=function(){var t=this;if(state.currentTouristicEvents&&!state.currentMapBounds||state.currentTouristicEvents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicEventsWithinBounds=state.currentTouristicEvents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleOutdoorSitesWithinBounds=function(){var t=this;if(state.currentOutdoorSites&&!state.currentMapBounds||state.currentOutdoorSites&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.outdoorSitesWithinBounds=state.currentOutdoorSites.filter((function(e){var i=pointOnFeature(e.geometry).geometry.coordinates;return t.map.getBounds().contains(L$1.latLng(i[1],i[0]))}))}};t.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A;var L=this;return __generator(this,(function(_){switch(_.label){case 0:return[4,getDataInStore("treks",state.currentTrek.id)];case 1:e=_.sent();if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(i,{style:function(){return{color:"transparent"}},onEachFeature:function(t,e){e.setText(">",{repeat:L.arrowRepeat,center:true,attributes:{fill:"#000000","font-weight":"bold","font-size":"16px"}})},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){r=getAssetPath("".concat("","assets/parking.svg"));a={type:"Feature",properties:{name:state.currentTrek.advised_parking},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:L.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){n={type:"FeatureCollection",features:[]};for(o=0,s=state.currentSensitiveAreas;o<s.length;o++){c=s[o];n.features.push({type:"Feature",properties:{name:c.name},geometry:c.geometry})}this.currentSensitiveAreasLayer=L$1.geoJSON(n,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:L.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(state.currentTrek)];case 2:_.sent();return[4,this.addCurrentPois()];case 3:_.sent();return[4,this.addCurrentSignages()];case 4:_.sent();return[4,this.addCurrentTouristicContents()];case 5:_.sent();return[4,this.addCurrentTouristicEvents()];case 6:_.sent();if(state.currentTrek.points_reference){l={type:"FeatureCollection",features:[]};l.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});d=0;this.currentReferencePointsLayer=L$1.geoJSON(l,{pointToLayer:function(t,e){d+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(d,"</div>"),className:"",iconSize:L.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){u={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){p=function(e){u.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=state.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(t){return t.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(f=0,h=state.currentTrekSteps;f<h.length;f++){m=h[f];p(m)}}b=0;this.currentStepsLayer=L$1.geoJSON(u,{pointToLayer:function(t,e){b+=1;return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(b,"</div></div></div>"),className:"",iconSize:L.mainMarkerSize,iconAnchor:[L.mainMarkerSize/2,L.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(L,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;a.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";a.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){L.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}v={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};L$1.registerLocale("fr",v);L$1.setLocale("fr");g=state.currentTrek.geometry.coordinates.map((function(t){return t[2]})).filter((function(t){return t!==undefined&&t!==null}));w={yAxisMin:g.length>0?Math.min.apply(Math,g)*.75:0,yAxisMax:g.length>0?Math.max.apply(Math,g)*1.25:0};k=Object.assign({elevationDiv:"#elevation-container",theme:"custom-theme use-theme-color",height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:false},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false},w);this.elevationControl=L$1.control.elevation(k).addTo(this.map);y=JSON.stringify({name:"".concat(state.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:state.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(y);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";forceUpdate(this.hostElement);x={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[state.currentTrek.geometry.coordinates.length-1]},properties:null}]};A=0;this.departureArrivalLayer=L$1.geoJSON(x,{pointToLayer:function(t,e){A+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="'.concat(A===1?"departure-marker":"arrival-marker",'" class="').concat(A===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:L.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=L$1.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.on("eledata_loaded",(function(){L.map.invalidateSize();L.bounds&&L.map.fitBounds(L.bounds);!L.mapIsReady&&(L.mapIsReady=!L.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;return __generator(this,(function(o){switch(o.label){case 0:i={};r=0;o.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];a=i;n=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:a[n]=o.sent();o.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!!Capacitor.isNativePlatform())return[3,5];return[4,checkFileInStore(t)];case 1:i=s.sent();if(!i)return[3,3];n=(a=window.URL).createObjectURL;return[4,getFileInStore(t)];case 2:r=n.apply(a,[s.sent().data]);return[3,4];case 3:r=t?t:null;s.label=4;case 4:e=r;return[3,7];case 5:return[4,Filesystem.getUri({path:t,directory:Directory.Data})];case 6:o=s.sent();if(o){e=Capacitor.convertFileSrc(o.uri)}s.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(state.currentTreks){a=state.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.departure_geom},properties:{id:a.id,name:a.name,practice:(i=state.practices.find((function(t){return t.id===a.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedCurrentTrek();state.selectedTrekId=t;return[4,this.getIcons(r,"practice")];case 1:n=s.sent();this.selectedCurrentTrekLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(n[t.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(o,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;n.part="trek-image";a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!o.trekPopupIsOpen){state.selectedTrekId=null;o.hideTrekLine();o.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){o.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){o.trekPopupIsOpen=false;state.selectedTrekId=null;o.hideTrekLine();o.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedCurrentTrek=function(){state.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};t.prototype.addSelectedCurrentStep=function(t,e){var i=this;var r;var a={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var n=state.currentTrekSteps.findIndex((function(e){return e.id===t}));a.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[n].departure_geom},properties:{id:state.currentTrekSteps[n].id,name:state.currentTrekSteps[n].name,practice:(r=state.practices.find((function(t){return t.id===state.currentTrekSteps[n].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[n].attachments&&state.currentTrekSteps[n].attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTrekSteps[n].attachments[0].thumbnail!==""?state.currentTrekSteps[n].attachments[0].thumbnail:state.currentTrekSteps[n].attachments[0].url:null,index:n+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(t.properties.index,"</div></div></div>"),className:"",iconSize:i.selectedMainMarkerSize,iconAnchor:[i.selectedMainMarkerSize/2,i.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,a,n,o,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image";n.src=r;a.appendChild(n)}o=L$1.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";a.appendChild(o);s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-name";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(s);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!i.stepPopupIsOpen){state.selectedTrekId=null;i.removeSelectedCurrentStep()}}));e.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(state.selectedStepId)}));e.on("popupclose",(function(){if(state.selectedStepId){i.stepPopupIsOpen=false;state.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};t.prototype.removeSelectedCurrentStep=function(){if(state.selectedStepId){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};t.prototype.handleLayersControlEvent=function(){var t=this;if(this.layersControl){var e=this.layersControl._layerControlInputs;e.forEach((function(e){if(t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId})).overlay){e.onchange=function(i){t.userLayersState[e.layerId]=i.target.checked;var r=t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId}));if(t.userLayersState[e.layerId]&&Object.keys(r.layer._layers).length===0){t.layerDataIsLoading=true;forceUpdate(t.hostElement)}}}}))}};t.prototype.removeTrek=function(){this.handleLayersOnRemove()};t.prototype.showTrekLine=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:this.removeSelectedCurrentTrek();return[4,getTrekGeometry(t)];case 1:e=a.sent();i={type:"Feature",geometry:e.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(i,{style:function(){return{color:r.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};t.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();t={type:"FeatureCollection",features:[]};if(state.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicContent.geometry.coordinates},properties:{id:state.currentTouristicContent.id,name:state.currentTouristicContent.name,practice:state.touristicContentCategories.find((function(t){return t.id===state.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:e=r.sent();this.currentToutisticContentLayer=L$1.geoJSON(t,{pointToLayer:function(t,r){return L$1.marker(r,{icon:L$1.divIcon({html:e[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(e[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:i.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);r.label=2;case 2:this.map.setView([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s;var c=this;if(t===void 0){t=false}return __generator(this,(function(l){switch(l.label){case 0:state.touristicContentsWithinBounds=state.currentTouristicContents;e=[];i={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){r=function(t){e.push(t.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:state.touristicContentCategories.find((function(e){return e.id===t.category})).pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(a=0,n=state.currentTouristicContents;a<n.length;a++){o=n[a];r(o)}}if(!!this.toutisticContentsLayer)return[3,2];if(e.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(i,"practice")];case 1:s=l.sent();this.toutisticContentsLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:c.mainMarkerSize,iconAnchor:[c.mainMarkerSize/2,c.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;i.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return c.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){c.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:c.mainClusterSize})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(e.length>0){this.bounds=L$1.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);l.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};t.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){e=state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type}));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentToutisticEventLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);a.label=2;case 2:this.map.setView([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicContents){a=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicContentCategories.find((function(t){return t.id===a.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:n=s.sent();this.selectedTouristicContentLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return o.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;o.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){o.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){o.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;o.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};t.prototype.addTouristicEvents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s,c;var l=this;if(t===void 0){t=false}return __generator(this,(function(d){switch(d.label){case 0:state.touristicEventsWithinBounds=state.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){a=function(t){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=state.currentTouristicEvents;n<o.length;n++){s=o[n];a(s)}}if(!!this.touristicEventsLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"type")];case 1:c=d.sent();this.touristicEventsLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:c[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(c[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:l.mainMarkerSize,iconAnchor:[l.mainMarkerSize/2,l.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return l.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){l.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:l.mainClusterSize})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);d.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicEvents=function(){if(this.touristicEventsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};t.prototype.addOutdoorSites=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,o,s,c,l;var d=this;if(t===void 0){t=false}return __generator(this,(function(u){switch(u.label){case 0:state.outdoorSitesWithinBounds=state.currentOutdoorSites;i=[];r={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){a=function(t){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(e=state.outdoorPractices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(n=0,o=state.currentOutdoorSites;n<o.length;n++){s=o[n];a(s)}}if(!!this.outdoorSitesLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){c=bbox(r);this.bounds=L$1.latLngBounds([c[1],c[0]],[c[3],c[2]])}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:l=u.sent();this.outdoorSitesLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(l[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:d.mainMarkerSize,iconAnchor:[d.mainMarkerSize/2,d.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="outdoor-site-button";n.className="outdoor-site-button";n.onclick=function(){return d.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){d.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:d.mainClusterSize})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=L$1.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(r);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);u.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind);return[2]}}))}))};t.prototype.removeOutdoorSites=function(){if(this.outdoorSitesLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};t.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorSite){e=state.outdoorPractices.find((function(t){return t.id===state.currentOutdoorSite.practice}));t.features.push({type:"Feature",geometry:state.currentOutdoorSite.geometry,properties:{id:state.currentOutdoorSite.id,name:state.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:i=a.sent();this.currentOutdoorSiteLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);a.label=2;case 2:return[4,this.addCurrentInformationDesks(state.currentOutdoorSite)];case 3:a.sent();return[4,this.addCurrentPois()];case 4:a.sent();return[4,this.addCurrentTouristicContents()];case 5:a.sent();return[4,this.addCurrentTouristicEvents()];case 6:a.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:a.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:a.sent();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorSites){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=state.outdoorPractices.find((function(t){return t.id===i.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorSites;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:o=c.sent();this.currentRelatedOutdoorSitesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:s.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o;var s=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorCourses){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=state.outdoorCourseTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorCourses;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:o=c.sent();this.currentRelatedOutdoorCoursesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[t.properties.practice]?'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:s.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicEvents){a=state.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicEventTypes.find((function(t){return t.id===a.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:n=s.sent();this.selectedTouristicEventLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return o.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;o.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){o.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));e.on("popupclose",(function(){if(state.selectedTouristicEventId){o.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;o.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicEvent=function(){state.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};t.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){e=state.outdoorCourseTypes.find((function(t){return t.id===state.currentOutdoorCourse.type}));t.features.push({type:"Feature",geometry:state.currentOutdoorCourse.geometry,properties:{id:state.currentOutdoorCourse.id,name:state.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentOutdoorCourseLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);a.label=2;case 2:return[4,this.addCurrentPois()];case 3:a.sent();return[4,this.addCurrentTouristicContents()];case 4:a.sent();return[4,this.addCurrentTouristicEvents()];case 5:a.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){r=state.currentOutdoorSites.find((function(e){return e.id===t}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(e=state.outdoorPractices.find((function(t){return t.id===r.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();state.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:a=o.sent();this.selectedOutdoorSiteLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(a[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=function(){return n.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorSitePopupIsOpen){state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){n.outdoorSitePopupIsOpen=Boolean(state.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(state.selectedOutdoorSiteId){n.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorSite=function(){state.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};t.prototype.addSelectedOutdoorCourse=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){r=state.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(e=state.outdoorCourseTypes.find((function(t){return t.id===r.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();state.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:a=o.sent();this.selectedOutdoorCourseLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(a[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-course-name";a.className="outdoor-course-name";i.appendChild(a);var o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-course-button";o.className="outdoor-course-button";o.onclick=function(){return n.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorCoursePopupIsOpen){state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){n.outdoorCoursePopupIsOpen=Boolean(state.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(state.selectedOutdoorCourseId){n.outdoorCoursePopupIsOpen=false;state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorCourse=function(){state.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};t.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.poisData>0){t={type:"FeatureCollection",features:[]};this.currentPoisLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.type_pictogram?'<div part="poi-marker" class="poi-marker"><img src='.concat(t.properties.type_pictogram," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});if(state.currentPois){this.setCurrentPois()}}return[2]}))}))};t.prototype.setCurrentPois=function(){var t;if(state.currentPois){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=state.poiTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.currentPois;r<a.length;r++){var n=a[r];i(n)}this.currentPoisLayer.clearLayers();this.currentPoisLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}};t.prototype.addCurrentSignages=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(o){if(state.currentSignages&&state.currentSignages.length>0){t=getAssetPath("".concat("","assets/signage.svg"));e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentSignages;i<r.length;i++){a=r[i];e.features.push({type:"Feature",properties:{name:a.name},geometry:a.geometry})}this.currentSignagesLayer=L$1.geoJSON(e,{pointToLayer:function(e,i){return L$1.marker(i,{icon:L$1.divIcon({html:'<div part="signage-marker" class="signage-marker"><img part="signage-img" src='.concat(t,' /><div part="signage-name" class="signage-name">').concat(e.properties.name,"</div></div>"),className:"",iconSize:[n.commonMarkerSize*1.2,n.commonMarkerSize*.8]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}return[2]}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.touristicContentsData>0){t={type:"FeatureCollection",features:[]};this.currentToutisticContentsLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.category_pictogram?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(t.properties.category_pictogram," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:e.grwApp?"":"cursor-pointer",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.on("click",(function(){if(!e.grwApp){e.touristicContentCardPress.emit(t.properties.id)}}));i.on("mouseover",(function(){var e=L$1.DomUtil.create("div");e.part="touristic-content-tooltip";e.className="touristic-content-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}});if(state.trekTouristicContents){this.setCurrentTouristicContents()}}return[2]}))}))};t.prototype.setCurrentTouristicContents=function(){var t;if(state.trekTouristicContents){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(t=state.touristicContentCategories.find((function(t){return t.id===i.category})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.trekTouristicContents;r<a.length;r++){var n=a[r];i(n)}this.currentToutisticContentsLayer.clearLayers();this.currentToutisticContentsLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.touristicEventsData>0){t={type:"FeatureCollection",features:[]};this.currentTouristicEventsLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.type_pictogram?'<div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(t.properties.type_pictogram," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:e.grwApp?"":"cursor-pointer",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.on("click",(function(){if(!e.grwApp){e.touristicEventCardPress.emit(t.properties.id)}}));i.once("mouseover",(function(){var e=L$1.DomUtil.create("div");e.part="touristic-event-tooltip";e.className="touristic-event-tooltip";var r=L$1.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}});if(state.trekTouristicEvents){this.setCurrentTouristicEvents()}}return[2]}))}))};t.prototype.setCurrentTouristicEvents=function(){var t;if(state.trekTouristicEvents){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(t=state.touristicEventTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.trekTouristicEvents;r<a.length;r++){var n=a[r];i(n)}this.currentTouristicEventsLayer.clearLayers();this.currentTouristicEventsLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:if(!(state.currentInformationDesks&&state.currentInformationDesks.length>0))return[3,2];e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentInformationDesks.filter((function(e){return t.information_desks.includes(e.id)}));i<r.length;i++){a=r[i];if(a.latitude&&a.longitude){e.features.push({type:"Feature",properties:{name:a.name,type_pictogram:a.type.pictogram},geometry:{type:"Point",coordinates:[Number(a.longitude),Number(a.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:n=s.sent();this.currentInformationDesksLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:n[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(n[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:o.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=L$1.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});s.label=2;case 2:return[2]}}))}))};t.prototype.handleLayersControl=function(){var t=this;var e={};if(this.currentStepsLayer){e[translate[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[translate[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[translate[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[translate[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[translate[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(state.poisData>0){e[translate[state.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){e[translate[state.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(state.touristicContentsData>0){e[translate[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(state.touristicEventsData>0){e[translate[state.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[translate[state.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[translate[state.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((function(i){t.layersControl.addOverlay(e[i],i)}))}else if(Object.keys(e).length>0){this.layersControl=L$1.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};t.prototype.handleLayersOnRemove=function(){var t=this;if(this.layersControl){if(!this.layersControl._layers.some((function(t){return!t.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(t){return t.overlay})).forEach((function(e){t.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=t;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}forceUpdate(this.hostElement)};t.prototype.handleElevation=function(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();forceUpdate(this.hostElement)};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat("","assets/layers.svg"));var i=getAssetPath("".concat("","assets/contract.svg"));return h(Host,{key:"d6bafc0d85bbb25a8733ea0bebed36373a75e0cf",ref:function(e){return t.hostElement=e},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(i,")"),"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},h("div",{key:"cb12465d93406aa97f5ec15eab84ef156b2109f1",id:"map",part:"map",class:(state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSite||state.currentOutdoorCourse)&&this.grwApp?"common-map":state.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}},this.layerDataIsLoading&&h("div",{key:"a7bf75702c28f2012dcf09a04b1cb3d86ecc0b2c",class:"layer-loader-container"},h("div",{key:"ff1fd373a393e5c88f6cf0ca8d8bf433136a679c",class:"layer-loader"})),state.currentTrek&&h("div",{key:"24dedf9427409f9e90a9a6f4f6b219df5545cfda",class:"grw-elevation-visibility-button-container"},h("grw-fab",{key:"cd2a05e163732576a5ad114939229a45060384a3",exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleElevation()},icon:function(){return t.elevationControl&&t.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation"},showTitle:translate[state.language].showElevation,hideTitle:translate[state.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&h("div",{key:"eec99e89a766209a1e61d5e4b9ae4dd8ed955cd7",part:"map-loader-container",class:"map-loader-container"},h("span",{key:"aefa757240ba9cefaf42847e413d13be9923a48f",part:"loader",class:"loader"})))};Object.defineProperty(t.prototype,"mapElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwMap.style=GrwMapStyle0;var grwOfflineConfirmModalCss=":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}";var GrwOfflineConfirmModalStyle0=grwOfflineConfirmModalCss;var GrwOfflineConfirmModal=function(){function t(t){registerInstance(this,t);this.downloadPress=createEvent(this,"downloadPress",7);this.deletePress=createEvent(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showErrorModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.downloadedErrorConfirm=function(){this.showLoaderModal=false;this.showErrorModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.deleteErrorConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){document.body.style.overflow="visible";this.showOfflineModal=false};t.prototype.render=function(){var t=this;return h(Host,{key:"7306b7a65560fcb9c4088b7c3a9a2ee160dd3a0b"},this.showOfflineModal&&h("div",{key:"14e0880950476ecc6d884fdca71df39f29f918e4",class:"modal-container"},h("div",{key:"43bc502d63bf2a70a3ca5bc1507f93955dae406f",class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,{key:"1f1f66df6b7cd679c047d628be3c0a1b44b508c8"},h("div",{key:"754600cafd576f889a663ec1559540f1ab7d4e10",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.downloadRouteQuestion:translate[state.language].offline.downloadOutdoorQuestion)),h("div",{key:"6c8b16285f711b6b950a0df205acdd6daf6b6a4d",class:"modal-buttons-container"},h("button",{key:"059d1cb25bcce42a1737b96607d60dcebd50a8a1",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"345f06cb86b5d4fa2677e828d34379dd6f65d38f",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},translate[state.language].offline.ok))),this.showConfirmDeleteModal&&h(Fragment,{key:"bbaf82b8f3ce83cc38394f5e9587ff7a3f90153e"},h("div",{key:"f64a7242bedeb2f5683f0d2f3348a2a723feac1d",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.deleteRouteQuestion:translate[state.language].offline.deleteRouteQuestion)),h("div",{key:"2127e7ea9f8f35baa54b57bf93ea04ee2ab81333",class:"modal-buttons-container"},h("button",{key:"276e45cfd48fb2f9cd492745f953fbc4353478f8",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"1f5c9d6eb92330e8f918b9e0418093141b2a3db4",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},translate[state.language].offline.ok))),this.showLoaderModal&&h(Fragment,{key:"f089931324dec141dd6cf0885296ac127305c99c"},h("div",{key:"7ed4f98632d3fd859413f02adb588ca37da95e05",class:"modal-message-container"},h("div",{key:"8d4afc461bf6c3c6ea4bd4682cf6a8cf88404f7e",class:"modal-loader"}),this.showDeletingMessage?translate[state.language].offline.deleting:translate[state.language].offline.downloading)),this.showSuccessModal&&h(Fragment,{key:"9615a88d554a05dacf036998fcfb68261f29c0fe"},h("div",{key:"beb9348cc5fc4513e02a1f518152de8f132b54a6",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.offlineRouteDeleted:translate[state.language].offline.offlineOutdoorDeleted:this.mode==="treks"?translate[state.language].offline.routeAvailableOffline:translate[state.language].offline.outdoorAvailableOffline),h("div",{key:"045530fbea8ae990ed78c61a5c2b7cf2519d6bfc",class:"modal-button-container"},h("button",{key:"a75df76a487c0658ff9a3e10f07a35285d619685",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))),this.showErrorModal&&h(Fragment,{key:"2ab6733b150331690c42aaeb8a5c2a96d73657fa"},h("div",{key:"35b0edde0866fa2cbe4b3e6a147a2b8f323fa579",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.deleteRouteError:translate[state.language].offline.deleteOutdoorError:this.mode==="treks"?translate[state.language].offline.downloadRouteError:translate[state.language].offline.downloadOutdoorError),h("div",{key:"d1785cfe79fae56a8f6ed61b6c39aca80cea887c",class:"modal-button-container"},h("button",{key:"b3f3dc1440a637492bc5c4bcaf0a3e786692608d",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))))))};return t}();GrwOfflineConfirmModal.style=GrwOfflineConfirmModalStyle0;function Scrollbar(t){var e=t.swiper,i=t.extendParams,r=t.on,a=t.emit;var n=getDocument();var o=false;var s=null;var c=null;var l;var d;var u;var p;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,a=t.el;var n=e.params.scrollbar;var o=e.params.loop?e.progressLoop:e.progress;var c=d;var l=(u-d)*o;if(i){l=-l;if(l>0){c=d-l;l=0}else if(-l+d>u){c=u+l}}else if(l<0){c=d+l;l=0}else if(l+d>u){c=u-l}if(e.isHorizontal()){r.style.transform="translate3d(".concat(l,"px, 0, 0)");r.style.width="".concat(c,"px")}else{r.style.transform="translate3d(0px, ".concat(l,"px, 0)");r.style.height="".concat(c,"px")}if(n.hide){clearTimeout(s);a.style.opacity=1;s=setTimeout((function(){a.style.opacity=0;a.style.transitionDuration="400ms"}),1e3)}}function h(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){d=u*p}else{d=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(d,"px")}else{i.style.height="".concat(d,"px")}if(p>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function b(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){var i=e.scrollbar,r=e.rtlTranslate;var a=i.el;var n;n=(b(t)-elementOffset(a)[e.isHorizontal()?"left":"top"]-(l!==null?l:d/2))/(u-d);n=Math.max(Math.min(n,1),0);if(r){n=1-n}var o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*n;e.updateProgress(o);e.setTranslate(o);e.updateActiveIndex();e.updateSlidesClasses()}function g(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var s=r.el,d=r.dragEl;o=true;l=t.target===d?b(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();n.style.transitionDuration="100ms";d.style.transitionDuration="100ms";v(t);clearTimeout(c);s.style.transitionDuration="0ms";if(i.hide){s.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}a("scrollbarDragStart",t)}function w(t){var i=e.scrollbar,r=e.wrapperEl;var n=i.el,s=i.dragEl;if(!o)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;v(t);r.style.transitionDuration="0ms";n.style.transitionDuration="0ms";s.style.transitionDuration="0ms";a("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var s=r.el;if(!o)return;o=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";n.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=nextTick((function(){s.style.opacity=0;s.style.transitionDuration="400ms"}),1e3)}a("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function y(t){var i=e.scrollbar,r=e.params;var a=i.el;if(!a)return;var o=a;var s=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!o)return;var l=t==="on"?"addEventListener":"removeEventListener";o[l]("pointerdown",g,s);n[l]("pointermove",w,s);n[l]("pointerup",k,c)}function x(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("off")}function L(){var t=e.scrollbar,i=e.el;e.params.scrollbar=createElementIfNotDefined(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});var r=e.params.scrollbar;if(!r.el)return;var a;if(typeof r.el==="string"&&e.isElement){a=e.el.shadowRoot.querySelector(r.el)}if(!a&&typeof r.el==="string"){a=n.querySelectorAll(r.el)}else if(!a){a=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&a.length>1&&i.querySelectorAll(r.el).length===1){a=i.querySelector(r.el)}if(a.length>0)a=a[0];a.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var o;if(a){o=a.querySelector(".".concat(e.params.scrollbar.dragClass));if(!o){o=createElement("div",e.params.scrollbar.dragClass);a.append(o)}}Object.assign(t,{el:a,dragEl:o});if(r.draggable){x()}if(a){a.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function _(){var t=e.params.scrollbar;var i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}A()}r("init",(function(){if(e.params.scrollbar.enabled===false){z()}else{L();m();f()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){f()}));r("setTransition",(function(t,e){h(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){_()}));var C=function(){e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}L();m();f()};var z=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}_()};Object.assign(e.scrollbar,{enable:C,disable:z,updateSize:m,setTranslate:f,init:L,destroy:_})}var WarningIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>';var grwOutdoorCourseDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}';var GrwOutdoorCourseDetailStyle0=grwOutdoorCourseDetailCss;var threshold$2=1;var GrwOutdoorCourseDetail=function(){function t(t){registerInstance(this,t);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.offline=false}t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:threshold$2});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:threshold$2});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:threshold$2});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}onChange("currentOutdoorCourse",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat("","assets/default-image.svg"));var i=state.outdoorCourseTypes&&this.currentOutdoorCourse&&state.outdoorCourseTypes.find((function(e){return e.id===t.currentOutdoorCourse.type}));var r=state.cities&&state.cities.find((function(e){return e.id===t.currentOutdoorCourse.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorCourse&&state.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var o=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"cb727db948fd46420494d5ec39daf25807c88ec1",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&h("div",{key:"af6745dd2a7bfb02357cc7541e3aad564db62dfa",part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},h("div",{key:"49ecb6fcba0366f7b393718c82cd6baadd009d0c",part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"d36e0f0c42036270f3c6f9a6f3659192de63792f",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"74b06043da7230a0a6f1bb3c042c6c776bc013b5",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},r),h("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),h("div",{key:"2174936e78378a8b8ec6f8092953f2e5f78fdded"},h("div",{key:"c8d0f8021965b7f8a1578cd6e840d132a8f540a8",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"f7e010e8dcca7136ccaeeda96aed2963a84995e5",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"ad93bf87548f8e7135e14ecfe610fa73c2a4d1b4",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"7be6b3215e2622104ddbc4856de349b9784f89b6",part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),h("div",{key:"ca6eca74819465958a8b4467eba7c11a837f5459",part:"sub-container",class:"sub-container"},h("div",{key:"dc8a66d4488ae551c19e001eb8abfabd6db51fa5",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"ad50d9ee51a2e423805b43de2327eb6f756a8a31",part:"icon-label",class:"icon-label type"},i.pictogram&&h("img",{key:"9cef7dcb073f957534d935d422731c34a4e09cdd",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"a081bb33d0a8c87a8a42bd7636f314d14f6543b7",part:"label",class:"label"},i.name)),h("div",{key:"a84cf94b91a4c0757b7fa5baf798da500a30f096",part:"icon-label",class:"icon-label duration"},h("span",{key:"811e67835e2a32cc4317fc1fd4db91198bdd4736",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"0cfa2867e1881357510bb18bc6e5399983487982",part:"label",class:"label"},formatDuration(this.currentOutdoorCourse.duration))),h("div",{key:"440a3ab57fc77d58151de55f7a1155ed9bdeebef",part:"icon-label",class:"icon-label length"},h("span",{key:"8867c6867698032161c9a894feb0a9d4eb707530",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"e59b89e7cda7f39794a2848a2303fe2062dc1039",part:"label",class:"label"},formatLength(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&h("div",{key:"f1c1ebb1997e097548b184d62ac9f28f5f67754e",part:"icon-label",class:"icon-label ascent"},h("span",{key:"881b6910293e5adc2eea559c96ed66d124dfea2f",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"eb0a0adc50c5882e24490847d9ea68e0639cb68a",part:"label",class:"label"},formatAscent(this.currentOutdoorCourse.max_elevation))),a&&o.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"0e0524de036514512473b3ae394046fb3f0e831d",part:"divider",class:"divider"}),h("div",{key:"d8e53e20a0752299d308776973cce0729f12c671",part:"downloads-container",class:"downloads-container"},h("div",{key:"6f4f012fb5d07fa93e1e18c385312e81d7394c81",part:"download-title",class:"download-title"},translate[state.language].downloads),h("div",{key:"1ffaf39904f0836b1dc81bf2a0eb9f39466a8096",part:"links-container",class:"links-container"},h("a",{key:"cd2bb29e9905ce2db4d2cead2e182db5849fa5d2",href:"".concat(this.currentOutdoorCourse.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"1e9ace4db9a517052689aa4f43a28717d7993835",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"7277b3c1f4b4d9721721b1e9a314a71b40685eb6",part:"label",class:"label"},"PDF")))),h("div",{key:"83ad24ce4f45f048c0c290f11f1858a979385162",part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&h("div",{key:"477d54e05f438fcc9cb1ea4004d611554bf29164",part:"description-container",class:"description-container"},h("div",{key:"af3cd192204ce8c40af0a84a22dd609119089172",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"45f43c5308498f22bb8b8c5e67e471dea6191066",part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"3c9953625ed21e5e3593d93a890ab11b1452b705",part:"departure-container",class:"departure-container"},h("div",{key:"191929247f4ea28b6e4acf324567ad40dcf2cff3",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"cd43ff27fb751c1e40f6da45cd9044fb2ed98a30",part:"departure",innerHTML:r.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"4dbb201aff8a6499824ef36bf98b8e168bdda3bb",part:"cities-container",class:"cities-container"},h("div",{key:"60da6a1322b637fe946273d30c33670524bc7bb7",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"b2fff5f092801ff5ebe3a2a6250031dbe2ed3b39",part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&h("div",{key:"2f397463892d518a563f033b0f6c7519c557d939"},h("div",{key:"e52272836948c272e7f18c4c697b0cfcd2e7a2c9",part:"divider",class:"divider"}),h("div",{key:"c796cdf86ce37f1dcf23bd36979c036cfc1d3d55",part:"advice-container",class:"advice-container"},h("div",{key:"2205d95bbaa515075afae1208426d910b965d30c",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorCourse.advice&&h("div",{key:"fe729c972bc13f37554d39a9a908999516b814c3",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"eca98deed7af67d580d508a42293217a7034295d",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"b542af2fc0d823b0efa78ea78900861d074b6b8f",part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&h("div",{key:"c7245648ea1116332b8af13262fcea619d97a601"},h("div",{key:"32eae0fb50b9ff70d307c890cf0e213f45eaa130",part:"divider",class:"divider"}),h("div",{key:"296abbafea44d84da495128e31a89e35b1c17bfc",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"e810f6dad85e289808df9758e50a2c148471c40b",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"030b465a06c2d06ec0f6c9400e2cae6edc464143",part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"79ae727defd6ea88f8f19772fb211d0a3d10c8f4"},h("div",{key:"4ec876c2c3a4e42d68c70914c1ae50800b0bb528",part:"divider",class:"divider"}),h("div",{key:"eceb9d26c49e5110d2649be69bc45eac2bd11bbe",part:"touristic-content-container",class:"touristic-content-container"},h("div",{key:"9f2eb8810b087faaf33fdfc4871b1781f0d08c99",part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"4f26659f7406c48034eca125139eda0ba6ca473a",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"d85ae07df70c39952ff4f7aaac31def12072af35",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),h("div",{key:"5bb540aa2b88edd051fc9ae9109a24a7d06606af",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"b1c70fe3c3ac99629395c3560da9ff3e15bbee4b"},h("div",{key:"cfeaf392485aef5fe8e87fed79b79e5d92990c12",part:"divider",class:"divider"}),h("div",{key:"74fbc6f5d6cfd5c293267af04bc7856fc24cdbdc",part:"touristic-event-container",class:"touristic-event-container"},h("div",{key:"7c3f6f614092b6f76914ba49e885570848bfd8c0",part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"3defb9c2f109c6d227e268d50b2164a3e05992b0",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"5be7d64f04969ef7a5a67af9113fb30219d66afe",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),h("div",{key:"1d97da44c7036163774f991f6dd55c2dc36c34c5",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),state.currentPois&&state.currentPois.length>0&&h("div",{key:"4862d90a059524e382b53d2d53a99e89444bba5b"},h("div",{key:"e3bfd211185933959a030cce856831d2980271ba",part:"divider",class:"divider"}),h("div",{key:"4a863f379085a679357b59815fbf3ff5d3018583",part:"pois-container",class:"pois-container"},h("div",{key:"be79bbcc2a4c8dff285d47618e4c7fa70be865f1",part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),h("div",{key:"9dc82acc4bb4d36c36dd49eee4caed25384d9e64",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"92a9c116ce5c79803a0f72671ec8e9d653eb78f0",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"67d3936095398a15103b3442aa6eb7864e058286",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"b0b52d6e041f40c11a37d96ec6f3dab13f814ff4"},h("div",{key:"4e2334496b4bf528abcac278cdc290c58ce292ec",part:"divider",class:"divider"}),h("div",{key:"d8ead57a9786f41e625f385bb789ed640636935c",part:"weather-container",class:"weather-container"},h("iframe",{key:"9cbbda1ed4428c11c207217f27f56704793a250e",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.grwApp&&h("div",{key:"a3ebfebb78f2d8687e1dcdf37ae6122b92fd211a",part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorCourseDetail.style=GrwOutdoorCourseDetailStyle0;var GrwOutdoorCourseProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleOutdoorCourse()};t.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorCourses",this.outdoorCourseId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};t.prototype.handleOfflineOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,d,u,p,f;return __generator(this,(function(h){switch(h.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=h.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=h.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=h.sent();a=state;return[4,handleOfflineProperty("touristicContentCategories")];case 4:a.touristicContentCategories=h.sent();n=state;return[4,handleOfflineProperty("touristicEventTypes")];case 5:n.touristicEventTypes=h.sent();o=state;return[4,handleOfflineProperty("poiTypes")];case 6:o.poiTypes=h.sent();s=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 7:s.outdoorCourseTypes=h.sent();return[4,handleOfflineProperty("pois",["url"])];case 8:c=h.sent();l=c.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=l;return[4,handleOfflineProperty("touristicContents",["url"])];case 9:d=h.sent();u=d.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=u;return[4,handleOfflineProperty("touristicEvents",["url"])];case 10:p=h.sent();f=p.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=f;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 11:h.sent();state.currentOutdoorCourse=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourse=function(){var t=this;var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getTouristicContentsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(getOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e=t[0],i=t[1],r=t[2],a=t[3],n=t[4],o=t[5],s=t[6],c=t[7],l=t[8],d=t[9],u=t[10];return __generator(this,(function(t){state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.themes=r.results}if(a){state.outdoorCourseTypes=a.results}if(n){state.trekTouristicContents=n.results}if(o){state.touristicContentCategories=o.results}if(s){state.trekTouristicEvents=s.results}if(c){state.touristicEventTypes=c.results}if(l){state.currentPois=l.results}if(d){state.poiTypes=d.results}state.currentOutdoorCourse=u;return[2]}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"73091001116ada99563f8374c5675971c533a7ab"})};return t}();var EventIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>';var AirIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>';var ExploreIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DownloadForOfflineIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DeleteIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>';function getOutdoorSites(t,e,i,r,a,n,o,s,c){var l="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));a&&(l+="&districts=".concat(a));n&&(l+="&structures=".concat(n));o&&(l+="&themes=".concat(o));s&&(l+="&portals=".concat(s));l+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind";return getAllPaginatedResults(l,c)}function getOutdoorSite(t,e,i,r){var a="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");a+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents";return fetch(a,r)}function getOutdoorSiteTypes(t,e,i){var r="".concat(t,"outdoor_sitetype/?language=").concat(e,"&published=true");return fetch(r,i)}function getOutdoorPractices(t,e,i){var r="".concat(t,"outdoor_practice/?language=").concat(e,"&published=true");return fetch(r,i)}function getPoisNearSite(t,e,i,r){return getAllPaginatedResults("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function outdoorSiteIsAvailableOffline(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,getDataInStore("outdoorSites",t)];case 1:e=i.sent();return[2,e&&e.offline]}}))}))}var grwOutdoorSiteDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{display:none}.outdoor-site-options .outdoor-site-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.outdoor-site-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}';var GrwOutdoorSiteDetailStyle0=grwOutdoorSiteDetailCss;var threshold$1=1;var GrwOutdoorSiteDetail=function(){function t(t){registerInstance(this,t);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=createEvent(this,"sitesIsInViewport",7);this.coursesIsInViewport=createEvent(this,"coursesIsInViewport",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.handleObservers=function(){var t=this;if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i)}),{threshold:threshold$1});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:threshold$1});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:threshold$1});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:threshold$1});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sitesIsInViewport.emit(i)}),{threshold:threshold$1});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),{threshold:threshold$1});this.courseObserver.observe(this.coursesRef)}};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new Swiper(this.swiperRelatedOutdoorSitesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new Swiper(this.swiperRelatedOutdoorCoursesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}onChange("currentOutdoorSite",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c,s,l;var d=this;return __generator(this,(function(u){switch(u.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};if(!!state.outdoorSites)return[3,3];return[4,getOutdoorSites(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districtsFromProviders,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,i)];case 1:r=u.sent();a=state;return[4,r.json()];case 2:a.outdoorSites=u.sent().results;state.currentOutdoorSites=state.outdoorSites;u.label=3;case 3:return[4,getAllDataInStore("outdoorSites")];case 4:n=u.sent().filter((function(t){return t.offline===true}));o=state.outdoorSites;o=o.filter((function(t){return n.findIndex((function(e){return e.id===t.id}))===-1}));return[4,writeOrUpdateDataInStore("outdoorSites",o)];case 5:u.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:u.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:u.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 8:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorSiteTypes,imagesRegExp)];case 9:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorPractices,imagesRegExp)];case 10:u.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 11:u.sent();return[4,writeOrUpdateFilesInStore(this.currentOutdoorSite,imagesRegExp,true,["url"])];case 12:u.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 13:u.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 14:u.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 15:u.sent();return[4,writeOrUpdateDataInStore("outdoorSiteTypes",state.outdoorSiteTypes)];case 16:u.sent();return[4,writeOrUpdateDataInStore("outdoorPractices",state.outdoorPractices)];case 17:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatings",state.outdoorRatings)];case 18:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatingsScale",state.outdoorRatingsScale)];case 19:u.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 20:u.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 21:u.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 22:u.sent();return[4,writeOrUpdateDataInStore("outdoorCourseTypes",state.outdoorCourseTypes)];case 23:u.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 24:u.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 25:u.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 26:u.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 27:u.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 28:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorCourseTypes,imagesRegExp,true)];case 29:u.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp,true)];case 30:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 31:u.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 32:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 33:u.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 34:u.sent();if(!(state.currentOutdoorSite.courses&&state.currentOutdoorSite.courses.length>0))return[3,38];s=0;u.label=35;case 35:if(!(s<state.currentOutdoorSite.courses.length))return[3,38];c=state.currentOutdoorSite.courses[s];return[4,this.downloadOutdoorCourse(c)];case 36:u.sent();u.label=37;case 37:s++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];s=0;u.label=39;case 39:if(!(s<this.currentOutdoorSite.children.length))return[3,42];l=this.currentOutdoorSite.children[s];return[4,this.downloadOutdoorSite(l)];case 40:u.sent();u.label=41;case 41:s++;return[3,39];case 42:return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:state.currentPois.map((function(t){return t.id})),touristicContents:state.trekTouristicContents.map((function(t){return t.id})),touristicEvents:state.trekTouristicEvents.map((function(t){return t.id}))})])];case 43:u.sent();state.outdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;state.currentOutdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,22,,23]);e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,getOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=p.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:p.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:p.sent();return[4,getPoisNearSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=p.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:p.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:p.sent();return[4,getTouristicContentsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:o=p.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 8:p.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",o)];case 9:p.sent();return[4,getTouristicEventsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:s=p.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 11:p.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",s)];case 12:p.sent();return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:o.map((function(t){return t.id})),touristicEvents:s.map((function(t){return t.id}))})])];case 13:p.sent();if(!(a.courses&&a.courses.length>0))return[3,17];c=0;p.label=14;case 14:if(!(c<a.courses.length))return[3,17];l=a.courses[c];return[4,this.downloadOutdoorCourse(l)];case 15:p.sent();p.label=16;case 16:c++;return[3,14];case 17:if(!(a.children&&a.children.length>0))return[3,21];c=0;p.label=18;case 18:if(!(c<a.children.length))return[3,21];d=a.children[c];return[4,this.downloadOutdoorSite(d)];case 19:p.sent();p.label=20;case 20:c++;return[3,18];case 21:return[3,23];case 22:u=p.sent();this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id);return[3,23];case 23:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s;return __generator(this,(function(c){switch(c.label){case 0:e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,getOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:c.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:c.sent();return[4,getPoisNearCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=c.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:c.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:c.sent();return[4,getTouristicContentsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:o=c.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 8:c.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",o)];case 9:c.sent();return[4,getTouristicEventsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:s=c.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 11:c.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",s)];case 12:c.sent();return[4,writeOrUpdateDataInStore("outdoorCourses",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:o.map((function(t){return t.id})),touristicEvents:s.map((function(t){return t.id}))})])];case 13:c.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);t=[];return[4,getDataInStore("outdoorSites",this.currentOutdoorSite.id)];case 1:e=a.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,writeOrUpdateDataInStore("outdoorSites",t)];case 2:a.sent();if(state.outdoorSites){delete state.outdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline;if(!state.currentOutdoorSites){state.currentOutdoorSites=state.outdoorSites}delete state.currentOutdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[3,4];case 3:i=a.sent();this.deleteErrorConfirm.emit(this.currentOutdoorSite.id);return[3,4];case 4:return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,o,s;return __generator(this,(function(c){switch(c.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.outdoorSites){for(a=0,n=state.outdoorSites;a<n.length;a++){o=n[a];r.push(pointOnFeature(o.geometry).geometry.coordinates)}}s=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,a,n;return __generator(this,(function(o){switch(o.label){case 0:r=bundle.exports.tileLayerOffline(t,{attribution:e});a=bbox(i);n=L$1.latLngBounds([a[1],a[0]],[a[3],a[2]]);return[4,writeOrUpdateTilesInStore(r,n,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:o.sent();return[2]}}))}))};t.prototype.deleteOfflineOutdoorSiteProperties=function(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat("","assets/default-image.svg"));var i=state.outdoorPractices&&this.currentOutdoorSite&&state.outdoorPractices.find((function(e){return e.id===t.currentOutdoorSite.practice}));var r=state.cities&&this.currentOutdoorSite&&state.cities.find((function(e){return e.id===t.currentOutdoorSite.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorSite&&state.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var o=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"46ed158a01b80339a5d1c69f479eda528fb77bb7",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&h("div",{key:"1abc144f54c7ac532e0ea3a0272e5e16f4abdc9d",part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},h("div",{key:"5949d52079afd09044c6f86a36eb7b318edc0643",part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"67ce02944771b873a6d5ac06ca653070de5ad000",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"c64f49273e15080cf77bbb14abc0324c418dc09a",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},r),h("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),h("div",{key:"75cecc54632c8ef4a8a6e355992d07ce2a4d9880"},h("div",{key:"c0b5e56f81e4f702219f86190f3fe0cc13775612",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"322cb3a62d321032874ab4a8e842f83368f03d95",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"2818fa9374baeeb415cc09ac98f9e2f5666c6425",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"c58a126fa3abaf117df8f066edf0a9436047e063",part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),state.themes&&state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).length>0&&h("div",{key:"1d33fc6b9df62590e86176ca765cb0b4ac266a92",part:"themes-container",class:"themes-container"},state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"23e87c9d2213bcb062a7459ded117e425cd8e63e",part:"sub-container",class:"sub-container"},h("div",{key:"67646ff2cf667de6224b570b2eee2c29f049b940",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"933aaf727911f432f45567e1e72ebd70ac87198d",part:"icon-label",class:"icon-label practice"},i.pictogram&&h("img",{key:"e5e641073e676d7bada15bb3beeef6c5c033e3f9",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"5bcf37f81a7416f3503c20dd00479feee8487266",part:"label",class:"label"},i.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&h("div",{key:"d38ca0f2cb179a0ba72a1f73cb6f162c89e83535",part:"row",class:"row"},h("span",{key:"8e0bde44a1fb5de5a98896ebb3aacd0014d391dd",part:"icon",class:"icon",innerHTML:ExploreIcon}),h("span",{key:"82606afff8c11567b9d2dfaa2766fd79aadae704",part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&h("div",{key:"4a6eeb275ec065cba2f1d0a7ce8a33df695b31e3",part:"row",class:"row"},h("span",{key:"abd9c3e4f83b9f60a15b1665097eef3849aae980",part:"icon",class:"icon",innerHTML:AirIcon}),h("span",{key:"70f82969917b052df5847670573407c655334fe6",part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&h("div",{key:"57ace76527e5534a5a5fe724e0f0ac3366dbf1fd",part:"row",class:"row"},h("span",{key:"badf7ef24a3a09e8ebc9ea48e6c1acacd5d12283",part:"icon",class:"icon",innerHTML:EventIcon}),h("span",{key:"013e7b362e84b6c34693154c2b0333ebcc82fa57",part:"label",class:"label"},this.currentOutdoorSite.period)),a&&o.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"6398e998e558bd3f12996e91220df6f8317dcf44",part:"divider",class:"divider"}),h("div",{key:"5990fc4353bba92cf45710c28d6d2a4fa3505071",part:"downloads-container",class:"downloads-container"},h("div",{key:"8df8c1e235a1896516c9416d8d7474c2f0f8c272",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"049f03d991ee27de86258d0bde298e53a7b44ab3",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"b8bdd8bd591188f993f65dbc48880c1a675cfe90",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"390b0b8d0a5805e6a94266bc31b2972898046ca0",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"5f8365592a9f0c5e949d7296256adeb965618d36",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"f8ef4475ea2f700a51f39095c15e7c70df610595",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"7c379f8ceb75530ece79c0708a114dbcddf0d361",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"478bdcf42e18aa5d533dc141b56838e1d1b75970",part:"links-container",class:"links-container"},h("a",{key:"7eb311a49b75bf34c1d8c8dd9ed3b6b0cb11c372",href:"".concat(this.currentOutdoorSite.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"9530928e6b6f91392b275b0f904fd649d3fd2d48",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"3e0cf2ae3cddebdd3d57e2bc423118b0874d36db",part:"label",class:"label"},"PDF")))),h("div",{key:"9d9b9cdd10521220c535d48b25f17a63e5155060",part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&h("div",{key:"053f476485782e01078d7f04e97cf5503bbb8ae5",part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&h("div",{key:"5c374be19ec6645b8020e7e50ab09206e9401033",part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),h("div",{key:"8b676c16245433f4758760f48a6465cee6746230",part:"divider",class:"divider"}),this.currentOutdoorSite.description&&h("div",{key:"9c982d428a9c346aafc3f282809d99069a138bb9",part:"description-container",class:"description-container"},h("div",{key:"ecee6dc9ac06cd08c3426a15417175a85d2bd9c6",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"98ae7864cd9987f164953b46caed1064b0eb28d4",part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"fef1a3f3e0cfb5496aac91a68dc314f119b7fcd0",part:"departure-container",class:"departure-container"},h("div",{key:"4eb4a20bace14cc03719337aa93af3040ee07fd2",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"0c4ac94a30c105198aff382917925191660a32bb",part:"departure",innerHTML:r.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"af670ae2950cca21d01736b77f445e3174fed09a",part:"cities-container",class:"cities-container"},h("div",{key:"5e9ee67fa3cd30b610e7b7115f0db60da56d465d",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"2699d0628e868e3846aeebc7da78c2bdaf3f378e",part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",{key:"ad0938b75cabb30cdfc793f9ae78b0594a7a3968"},h("div",{key:"651628fd429a33db543bf04f1d5f7bbfbf63a4ff",part:"divider",class:"divider"}),h("div",{key:"7641188bf16c54b229f74ff9739c770ce6abc26a",part:"pois-container",class:"pois-container"},h("div",{key:"829fb46fabf7c180928f4c30495ebe4145c98446",part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),h("div",{key:"99cd3bbff3e255d8b11adeebc696e336335c0796",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"b0b192f0d8fcebbed40d0294139024dfed3cf6e0",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"3ad5a1b92ef363dd152bbd80f1007c2f3fb55a0f",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&h("div",{key:"4d2699d2cff5754d82fd5a91a953234845a7a7d4"},h("div",{key:"cf229578181831e1d95e52548b7cf3be5e0798fb",part:"divider",class:"divider"}),h("div",{key:"03e237c5394b9105d17fe2f55cad79d8575dcee2",part:"advice-container",class:"advice-container"},h("div",{key:"9b46c7d36ddc76ef882a01c80177ea9fb04cc3da",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorSite.advice&&h("div",{key:"4f3c4e7947d034f4a758d9714cf551eb5431231c",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"441c9000ca7bbab6606ef5f4d0319486f44b9f45",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"bbdea7364590f05b16c7fb95abe972b8f92a8fea",part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&h("div",{key:"51972451372af79ece5d1e5e7fe3cc7b3e127333"},h("div",{key:"fe0168703c13e5719459a61c255d22f88cff294f",part:"divider",class:"divider"}),h("div",{key:"c77adcce324389e385e9237317dbd41a82a9cf04",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"f9d78bf17b4cc7daac918e9fc3686847eef938de",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"3f4d49081740f689565fd3fd26cd64726bf3203b",part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),state.currentRelatedOutdoorSites&&state.currentRelatedOutdoorSites.length>0&&h("div",{key:"2c68c81db9151eb8b261adbba83e8a6fb65aa949"},h("div",{key:"0bf638a87443f8cf9edd810e75beb28dcebc384f",part:"divider",class:"divider"}),h("div",{key:"1aeb0ab94a93aba1865c4b5af7229a9e71cbfed1",part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},h("div",{key:"b83d77d684d2c0e9f899236c3d4bfee811c721f2",part:"related-outdoor-sites-title",class:"related-outdoor-sites-title",ref:function(e){return t.sitesRef=e}},translate[state.language].relatedOutdoorSites(state.currentRelatedOutdoorSites.length)),h("div",{key:"6cf38c64b38609677aeaa1cf098b3fd158dfc8fc",part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},h("div",{key:"9d2d32c05b78e7960b7c915663573f4af9a3b272",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorSites.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))}))),h("div",{key:"daecd40c9cc68e30b693fdb8e5f2248b0e4dd6ff",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),state.currentRelatedOutdoorCourses&&state.currentRelatedOutdoorCourses.length>0&&h("div",{key:"b60d9bdc4c4c158e8e4e09f10803b7cbc44381a4"},h("div",{key:"9fc606fcc1c3800c3fc663834a98f52177b1739b",part:"divider",class:"divider"}),h("div",{key:"1ce55ea55de71fa0026530e43bbee978cc1f20dc",part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},h("div",{key:"bbb75049e5e8654799123d4c643a24cc2a0170f5",part:"related-outdoor-courses-title",class:"related-outdoor-courses-title",ref:function(e){return t.coursesRef=e}},translate[state.language].relatedOutdoorCourses(state.currentRelatedOutdoorCourses.length)),h("div",{key:"a3a0afa4b57c92eaef4bef26b47a44940886a3b5",part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},h("div",{key:"cd24d06f67c7a87ecdaa7d1a86a121a91a0185de",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorCourses.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))}))),h("div",{key:"e98fdd8768fc33bcf6685f5a70cc7a58f8be6d88",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorCoursesSwiperScrollbar=e}})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).length>0&&h("div",{key:"b1b8eb3bf0ae5ae3cf0d4fce133bdc79872166be"},h("div",{key:"2ebbe5080bcc09b78e8a01f11a09a99b8ba1e206",part:"divider",class:"divider"}),h("div",{key:"a4f3ee9ad205a45c485f1e3461f36087810e6497",part:"information-desks-container",class:"information-desks-container"},h("div",{key:"5c8ae57d5a36edf3e4914e244c08c495c73cdf83",part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{key:"53a0f8fb242c38188fb177461d1515f6e3fdf132",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"b8a5d6f9f9cef3dc8ed489c4f7ff1cb678567bf3",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t}))}))),h("div",{key:"602bc05dd08a1c089683583425c329b1e63e59a6",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"7a83f2b9d0e953ec59d55945bcf5a74fcb9cc860"},h("div",{key:"db0eaa6c81a4bef2fa760a4a562395f2c49b6d82",part:"divider",class:"divider"}),h("div",{key:"f1424ba7530be7eb04a3e544c5c78364b319241f",part:"touristic-content-container",class:"touristic-content-container"},h("div",{key:"45ba9b07f940d7e8249a247ee1fb70069374e69a",part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"c33df8251b6e9a52830ef4b2a9b89a0a102b3403",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"1f588823ecb53b3aae273697ef01991e1b244580",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"47504c36326a0f3c3bde27f198f6932a34196470",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"01c817c5f352057d9aa82790d4215925f8abf839"},h("div",{key:"2e5ef9b22c52fdea96be175870482508dfb725cc",part:"divider",class:"divider"}),h("div",{key:"787f611ba2bc0a551064ae7afbb412fcc9a00f22",part:"touristic-event-container",class:"touristic-event-container"},h("div",{key:"c961ae86983a337eafb18c66835a9851de92e0f7",part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"f7b39eb6875db9cfae2aaf976754d9d682488d24",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"d4335bec93612df54e34bec59e63a212afb2e5ec",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"ce5e3dc2144c250293221df69bf8a400cc46e8c7",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"915a2b687bd70448b3b94a1e2fb8170637784084"},h("div",{key:"d7f133cd81a058f942e399dca1f40d47c2f3f5ad",part:"divider",class:"divider"}),h("div",{key:"34b9f5dc3bcf4d99984216ac84a41b9525ac5831",part:"weather-container",class:"weather-container"},h("iframe",{key:"676a68892e90959bd828e71558a7e49fec8be560",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&h("div",{key:"0636dfca1e7cd88d7d69b2da1b51706472e7cd02"},h("div",{key:"a9e03f90f69c271e6723d0fa69c90ecd9c292387",part:"divider",class:"divider"}),h("div",{key:"d532e6b59047cf84c01b5b33012c16ee62efa61a",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"30182823c73239c6bdde32574753c8f0d4aa4e1c",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentOutdoorSite.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&h("div",{key:"0b90d8acb46feb8003fee366a074a977332661bc"},h("div",{key:"cc50d5bf38b44d8e9be76ad35bddce897707b9f1",part:"divider",class:"divider"}),h("div",{key:"49b1900a4c9975bc8eebd88ae2f556bdf4944453",part:"source-container",class:"source-container"},h("div",{key:"8576c4ac3e105683f47da12bea368c2a13382def",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"ae516726dd8fd7c36cc9b7ac555be96e0820af52",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"8a8835c7474fe8b7b64e2cc42a95e4321a03abbc"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"fbdcaf345222076f5d06f701808045249a55f422",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"a90ad19a21a1613d8d0a75b8db44ee5fa757c60c",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwOutdoorSiteDetail.style=GrwOutdoorSiteDetailStyle0;var GrwOutdoorSiteProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;this.handleOutdoorSite()};t.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorSites",this.outdoorSiteId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};t.prototype.handleOfflineOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,L;return __generator(this,(function(_){switch(_.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=_.sent();i=state;return[4,handleOfflineProperty("sources")];case 2:i.sources=_.sent();r=state;return[4,handleOfflineProperty("districts")];case 3:r.districts=_.sent();a=state;return[4,handleOfflineProperty("themes")];case 4:a.themes=_.sent();n=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:n.outdoorSiteTypes=_.sent();o=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:o.outdoorPractices=_.sent();s=state;return[4,handleOfflineProperty("outdoorRatings")];case 7:s.outdoorRatings=_.sent();c=state;return[4,handleOfflineProperty("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=_.sent();l=state;return[4,handleOfflineProperty("touristicContentCategories")];case 9:l.touristicContentCategories=_.sent();d=state;return[4,handleOfflineProperty("touristicEventTypes")];case 10:d.touristicEventTypes=_.sent();u=state;return[4,handleOfflineProperty("poiTypes")];case 11:u.poiTypes=_.sent();p=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 12:p.outdoorCourseTypes=_.sent();return[4,handleOfflineProperty("informationDesks")];case 13:f=_.sent();h=f.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=h;return[4,handleOfflineProperty("pois",["url"])];case 14:m=_.sent();b=m.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=b;return[4,handleOfflineProperty("touristicContents",["url"])];case 15:v=_.sent();g=v.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=g;return[4,handleOfflineProperty("touristicEvents",["url"])];case 16:w=_.sent();k=w.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=k;return[4,handleOfflineProperty("outdoorSites",["url"])];case 17:y=_.sent();x=y.filter((function(e){return t.children.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorSites=x;return[4,handleOfflineProperty("outdoorCourses",["url"])];case 18:A=_.sent();L=A.filter((function(e){return t.courses.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorCourses=L;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 19:_.sent();state.currentOutdoorSite=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSite=function(){var t=this;var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.sources?getSources(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorRatings?fetch("".concat(state.api,"outdoor_rating/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!state.outdoorRatingsScale?fetch("".concat(state.api,"outdoor_ratingscale/?language=").concat(state.language,"&fields=id,name"),this.init):new Response("null"));e.push(getInformationsDesks(state.api,state.language,this.init));e.push(getTouristicContentsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,o;var s=this;var c=t[0],l=t[1],d=t[2],u=t[3],p=t[4],f=t[5],h=t[6],m=t[7],b=t[8],v=t[9],g=t[10],w=t[11],k=t[12],y=t[13],x=t[14],A=t[15],L=t[16];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(L&&L.children.length>0))return[3,2];e=[];e.push.apply(e,L.children);i=[];e.forEach((function(t){i.push(getOutdoorSite(state.api,state.language,t,s.init))}));r=state;return[4,Promise.all(__spreadArray([],i,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:r.currentRelatedOutdoorSites=t.sent();t.label=2;case 2:if(!(L&&L.courses.length>0))return[3,4];a=[];a.push.apply(a,L.courses);n=[];a.forEach((function(t){n.push(getOutdoorCourse(state.api,state.language,t,s.init))}));o=state;return[4,Promise.all(__spreadArray([],n,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:o.currentRelatedOutdoorCourses=t.sent();t.label=4;case 4:if(c){state.cities=c.results}if(l){state.sources=l.results}if(d){state.districts=d.results}if(u){state.themes=u.results}if(p){state.outdoorSiteTypes=p.results}if(f){state.outdoorPractices=f.results}if(h){state.outdoorRatings=h.results}if(m){state.outdoorRatingsScale=m.results}if(b){state.currentInformationDesks=b.results}if(v){state.trekTouristicContents=v.results}if(g){state.touristicContentCategories=g.results}if(w){state.trekTouristicEvents=w.results}if(k){state.touristicEventTypes=k.results}if(y){state.currentPois=y.results}if(x){state.poiTypes=x.results}if(A){state.outdoorCourseTypes=A.results}state.currentOutdoorSite=L;return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"f1a99efffd574268daabd62e0e2aef2ccca4374e"})};return t}();var grwOutdoorSitesListCss=":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwOutdoorSitesListStyle0=grwOutdoorSitesListCss;var GrwOutdoorSitesList=function(){function t(t){registerInstance(this,t);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,this.step),true)}onChange("currentOutdoorSites",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentOutdoorSites){t.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,t.step),true)}}));onChange("outdoorSitesWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.outdoorSitesWithinBounds){t.outdoorSitesToDisplay=__spreadArray([],state.outdoorSitesWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<state.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=state.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=state.outdoorSitesWithinBounds.length?state.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"d2a7e0e67cacc332389c651147c46ccb1f8596bf",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.outdoorSitesWithinBounds&&h("div",{key:"57b94270379c56d42d77619e2c269a1e6b5bb6dc",part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].outdoorSites:translate[state.language].outdoorSite)),h("div",{key:"49e21b82ba74bb563afdd57b0eab48a3cff16c14",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(e){return h("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:"outdoorSite-".concat(e.id),"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"8d6b6380cf7302d1d50003dcb102275f78ff42b2",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwOutdoorSitesList.style=GrwOutdoorSitesListStyle0;var GrwOutdoorSitesProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;this.handleOutdoorSites()};t.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,getAllDataInStore("outdoorSites")];case 1:t=o.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(!(t&&t.length>0))return[3,8];e=state;return[4,handleOfflineProperty("cities")];case 2:e.cities=o.sent();i=state;return[4,handleOfflineProperty("districts")];case 3:i.districts=o.sent();r=state;return[4,handleOfflineProperty("themes")];case 4:r.themes=o.sent();a=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:a.outdoorSiteTypes=o.sent();n=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:n.outdoorPractices=o.sent();return[4,handleOfflineProperty("outdoorSites")];case 7:t=o.sent();state.outdoorSites=t;state.currentOutdoorSites=t;return[3,9];case 8:state.networkError=true;o.label=9;case 9:return[2]}}))}))};t.prototype.handleOnlineOutdoorSites=function(){var t=this;var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSites(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r;var a=t[0],n=t[1],o=t[2],s=t[3],c=t[4],l=t[5];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(a){state.cities=a.results}if(n){state.districts=n.results}if(o){state.themes=o.results}if(s){state.outdoorSiteTypes=s.results}if(c){state.outdoorPractices=c.results}e=[];i=0;t.label=1;case 1:if(!(i<l.results.length))return[3,4];return[4,outdoorSiteIsAvailableOffline(l.results[i].id)];case 2:r=t.sent();e.push(Object.assign(Object.assign({},l.results[i]),{offline:r}));t.label=3;case 3:i++;return[3,1];case 4:state.outdoorSites=e;state.currentOutdoorSites=e;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineOutdoorSites()];case 1:t.sent();return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"1387894c1915975763833720d75b3afb555fc289"})};return t}();var SearchIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>';var grwSearchCss=":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}";var GrwSearchStyle0=grwSearchCss;var GrwSearch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.onSearchChange=function(t){state.searchValue=t.target.value;if(state.mode==="treks"){state.currentTreks=handleTreksFiltersAndSearch()}else if(state.mode==="touristicContents"){state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(state.mode==="touristicEvents"){state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}else if(state.mode==="outdoor"){state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.render=function(){var t=this;return h(Host,{key:"e3d98b43edc220fd948553e50aed73ad3475aa9b",style:{"--font-family":this.fontFamily}},h("span",{key:"68ade2155e15c25161484dd9746a9ccb77ca4877",part:"icon",class:"icon",innerHTML:SearchIcon}),h("input",{key:"d4443be1fc756debe93a61bb8491be4fd41a4931",part:"search-input",class:"search-input",onInput:function(e){return t.onSearchChange(e)},type:"search",placeholder:"Rechercher",value:state.searchValue}))};return t}();GrwSearch.style=GrwSearchStyle0;var grwSegmentedSegmentCss=".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";var GrwSegmentedSegmentStyle0=grwSegmentedSegmentCss;var GrwSegmentedSegment=function(){function t(t){registerInstance(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}t.prototype.changeMode=function(t){state.searchValue="";if(t==="treks"){treksFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.treks){state.currentTreks=__spreadArray([],handleTreksFiltersAndSearch(),true)}}else if(t==="touristicContents"){touristicContentsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicContents){state.currentTouristicContents=__spreadArray([],handleTouristicContentsFiltersAndSearch(),true)}}else if(t==="touristicEvents"){touristicEventsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicEvents){state.currentTouristicEvents=__spreadArray([],handleTouristicEventsFiltersAndSearch(),true)}}else if(t==="outdoor"){outdoorSitesFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.outdoorSites){state.currentOutdoorSites=__spreadArray([],handleOutdoorSitesFiltersAndSearch(),true)}}state.mode=t};t.prototype.render=function(){var t=this;return h(Host,{key:"a2b16c24fbedec687122ed70258ff6543ee2f110",style:{"--font-family":this.fontFamily}},h("div",{key:"d24b1cfa8cf64efda81820f816db2ce13104f872",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&h("label",{key:"0bba2d05fbb3867cbd816eb2dbc16dada86e77f9",part:"segment",class:"segment".concat(state.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},translate[state.language].home.segment.treks),this.outdoor&&h("label",{key:"e2cb2ba38033b8100ea916aab9f4cb012f3ac039",part:"segment",class:"segment".concat(state.mode==="outdoor"?" selected-segment":""),onClick:function(){return t.changeMode("outdoor")}},translate[state.language].home.segment.outdoorSites),this.touristicContents&&h("label",{key:"65364c1a08a3e6faee2f53647c3eca17b40c0e99",part:"segment",class:"segment".concat(state.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},translate[state.language].home.segment.touristicContents),this.touristicEvents&&h("label",{key:"03afc47e263cb8a610f2694efdb8ab5b2f647401",part:"segment",class:"segment".concat(state.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicEvents")}},translate[state.language].home.segment.touristicEvents)))};return t}();GrwSegmentedSegment.style=GrwSegmentedSegmentStyle0;var TranslateIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>';var grwSelectLanguageCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";var GrwSelectLanguageStyle0=grwSelectLanguageCss;var GrwSelectLanguage=function(){function t(t){registerInstance(this,t)}t.prototype.handleSelect=function(t){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=t.target.value};t.prototype.render=function(){var t=this;return h(Host,{key:"c0d285e09423559c5824e64b7cacbcaa26c5c88b"},h("span",{key:"ef14fdec0f1f7df2d460def242d35459cc86d766",part:"select-language-icon",class:"icon",innerHTML:TranslateIcon}),h("select",{key:"96ae6cbaef672db97abfb2ce2bb92d8fcd526ad7",part:"select-language-select",onInput:function(e){return t.handleSelect(e)},name:"languages",id:"language-select"},state.languages.map((function(t){return h("option",{part:"select-language-option",selected:t===state.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())}))))};return t}();GrwSelectLanguage.style=GrwSelectLanguageStyle0;var DoneIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>';var grwSwitchCss='.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';var GrwSwitchStyle0=grwSwitchCss;var GrwSwitch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"be1067788aa08f160971a14116bb59e386b71189",style:{"--font-family":this.fontFamily}},h("label",{key:"84d92e6aa849b548b6c1b08d7ccb260de427cd83",class:"md3 switch"},h("input",{key:"546d7c472a271c137f239f3de8005521a88957ac",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),h("span",{key:"5ef7285ee06a61b5ee3a56ca802dad1b6a31e6e7",class:"slider"},h("span",{key:"4e2c4cafcdf68e30abe7395279fcd3eb446473c2",part:"icon",class:"icon",innerHTML:DoneIcon}))))};return t}();GrwSwitch.style=GrwSwitchStyle0;var grwTouristicContentsListCss=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwTouristicContentsListStyle0=grwTouristicContentsListCss;var GrwTouristicContentsList$1=function(){function t(t){registerInstance(this,t);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,this.step),true)}onChange("currentTouristicContents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,t.step),true)}}));onChange("touristicContentsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicContentsWithinBounds){t.touristicContentsToDisplay=__spreadArray([],state.touristicContentsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<state.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=state.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=state.touristicContentsWithinBounds.length?state.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"c74f4a338bebb69c0d593cc09569cc297f21464b",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{key:"20c659f69fd90e4dd491229870e697286af5ebd4",part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"440262bfd6e6455d95362c4f65c1ba640a5b610a",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,key:"touristic-content-".concat(e.id),touristicContent:e,"is-large-view":t.isLargeView,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"fdb0824279115510a1ea608666905f3abf3594cd",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList$1.style=GrwTouristicContentsListStyle0;var GrwTouristicContentsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t=getTouristicContentsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.touristicContentCategories?getTouristicContentCategory(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[t],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],a=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicContentCategories=r.results}state.touristicContents=a.results;state.currentTouristicContents=a.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"656daeff06e11d0c6dbfac8690ce86698fbd516d"})};return t}();var grwTouristicEventsListCss=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwTouristicEventsListStyle0=grwTouristicEventsListCss;var GrwTouristicContentsList=function(){function t(t){registerInstance(this,t);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,this.step),true)}onChange("currentTouristicEvents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,t.step),true)}}));onChange("touristicEventsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicEventsWithinBounds){t.touristicEventsToDisplay=__spreadArray([],state.touristicEventsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<state.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=state.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=state.touristicEventsWithinBounds.length?state.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"48345abc8fa8113a5bdead1a469412bf0f61febc",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{key:"d4384e6ebc553284fa042540e0ef07d3d03414a7",part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"831bd5192feb97ad30f5d4a2a29ce3fb453ff559",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(e){return h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(e.id),touristicEvent:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"71f5f63827879dd00fe71da37d568ed7c93b4a41",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList.style=GrwTouristicEventsListStyle0;var GrwTouristicEventsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t=getTouristicEventsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var e=[];e.push(!state.cities?getCities(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.touristicEventTypes?getTouristicEventType(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[t],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],a=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicEventTypes=r.results}state.touristicEvents=a.results;state.currentTouristicEvents=a.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"87f69d57d78c122968fc6953fd1ed1b9b30b204c"})};return t}();var BackpackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>';var grwTrekDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{z-index:9;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{color:var(--reference-point-color);background:var(--reference-point-background-color);position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;border-radius:12px;font-weight:bold;font-size:0.8em;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-height:120px}.loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';var GrwTrekDetailStyle0=grwTrekDetailCss;var threshold=1;var presentation={visible:true,indicator:false,ref:"presentationOptionRef"};var steps={visible:false,indicator:false,ref:"stepsOptionRef"};var description={visible:false,indicator:false,ref:"descriptionOptionRef"};var pois={visible:false,indicator:false,ref:"poisOptionRef"};var recommendations={visible:false,indicator:false,ref:"recommendationsOptionRef"};var sensitiveArea={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var informationPlaces={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var accessibility={visible:false,indicator:false,ref:"accessibilityOptionRef"};var touristicContents={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var touristicEvents={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var options={presentation:presentation,steps:steps,description:description,pois:pois,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,accessibility:accessibility,touristicContents:touristicContents,touristicEvents:touristicEvents};var GrwTrekDetail=function(){function t(t){registerInstance(this,t);this.descriptionIsInViewport=createEvent(this,"descriptionIsInViewport",7);this.parkingIsInViewport=createEvent(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=createEvent(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.stepsIsInViewport=createEvent(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.parentTrekPress=createEvent(this,"parentTrekPress",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.rounded=true;this.weather=false;this.isLargeView=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel,Scrollbar],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}),{threshold:threshold});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{accessibility:Object.assign(Object.assign({},t.defaultOptions.accessibility),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:threshold});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}if(state.cities){this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}))}this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}onChange("currentTrek",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}if(state.cities){this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}))}this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}return[2]}))}))}));return[2]}))}))};t.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};t.prototype.handleOptions=function(){return Object.assign(Object.assign({},options),{presentation:Object.assign({},presentation),steps:Object.assign(Object.assign({},steps),{visible:Boolean(state.parentTrek)}),description:Object.assign(Object.assign({},description),{visible:Boolean(state.currentTrek.description)}),pois:Object.assign(Object.assign({},pois),{visible:state.poisData>0}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(state.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},sensitiveArea),{visible:Boolean(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},informationPlaces),{visible:Boolean(state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return state.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},accessibility),{visible:Boolean(state.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||state.currentTrek.accessibility_level||state.currentTrek.accessibility_slope||state.currentTrek.accessibility_width||state.currentTrek.accessibility_signage||state.currentTrek.accessibility_covering||state.currentTrek.accessibility_exposure||state.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:state.touristicContentsData>0}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:state.touristicEventsData>0})})};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t;var e=0;var i=0;var r=0;var a=Object.values(this.options);var n=0;while(!t&&n<a.length){if(a[n].indicator){t=a[n]}else{if(a[n].visible){e+=1;i+=this[a[n].ref].clientWidth}}n++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*e-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:t.ref}}};t.prototype.handleScrollTo=function(t){var e=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(e){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}else{window.scrollTo({top:t.offsetTop-64})}};t.prototype.getCurrentStepIndex=function(){var t=this;return state.currentTrekSteps?state.currentTrekSteps.findIndex((function(e){return e.id===t.currentTrek.id})):0};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,o,s;return __generator(this,(function(c){switch(c.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.treks){for(a=0,n=state.treks;a<n.length;a++){o=n[a];r.push(o.departure_geom)}}s=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(a){switch(a.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=L$1.latLngBounds(this.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,L,_,C,z,O;var S=this;return __generator(this,(function(F){switch(F.label){case 0:F.trys.push([0,72,,73]);t=new AbortController;e=t.signal;i={cache:"default",signal:e};return[4,getAllDataInStore("treks")];case 1:r=F.sent().filter((function(t){return t.offline===true}));a=void 0;if(!!state.treks)return[3,4];return[4,getTreksList(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districts,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,state.routesFromProviders,state.practicesFromProviders,state.labelsFromProviders,i)];case 2:n=F.sent();o=state;return[4,n.json()];case 3:o.treks=F.sent().results;F.label=4;case 4:a=state.treks;a=a.filter((function(t){return r.findIndex((function(e){return e.id===t.id}))===-1}));if(!!state.districts)return[3,7];return[4,getDistricts(state.api,state.language,i)];case 5:s=F.sent();c=state;return[4,s.json()];case 6:c.districts=F.sent().results;F.label=7;case 7:return[4,writeOrUpdateDataInStore("treks",a)];case 8:F.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 9:F.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:F.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:F.sent();return[4,writeOrUpdateFilesInStore(state.difficulties,imagesRegExp)];case 12:F.sent();return[4,writeOrUpdateFilesInStore(state.routes,imagesRegExp)];case 13:F.sent();return[4,writeOrUpdateFilesInStore(state.practices,imagesRegExp)];case 14:F.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 15:F.sent();return[4,writeOrUpdateFilesInStore(state.labels,imagesRegExp)];case 16:F.sent();return[4,writeOrUpdateFilesInStore(state.districts,imagesRegExp)];case 17:F.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 18:F.sent();return[4,writeOrUpdateFilesInStore(state.accessibilities,imagesRegExp)];case 19:F.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp)];case 20:F.sent();return[4,writeOrUpdateFilesInStore(state.networks,imagesRegExp)];case 21:F.sent();return[4,writeOrUpdateFilesInStore(this.currentTrek,imagesRegExp,true,["url"])];case 22:F.sent();return[4,writeOrUpdateDataInStore("difficulties",state.difficulties)];case 23:F.sent();return[4,writeOrUpdateDataInStore("routes",state.routes)];case 24:F.sent();return[4,writeOrUpdateDataInStore("practices",state.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 25:F.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 26:F.sent();return[4,writeOrUpdateDataInStore("accessibilities",state.accessibilities)];case 27:F.sent();return[4,writeOrUpdateDataInStore("ratings",state.ratings)];case 28:F.sent();return[4,writeOrUpdateDataInStore("ratingsScale",state.ratingsScale)];case 29:F.sent();return[4,writeOrUpdateDataInStore("sensitiveAreas",state.currentSensitiveAreas)];case 30:F.sent();return[4,writeOrUpdateDataInStore("labels",state.labels)];case 31:F.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 32:F.sent();return[4,writeOrUpdateDataInStore("accessibilitiesLevel",state.accessibilitiesLevel)];case 33:F.sent();return[4,writeOrUpdateDataInStore("networks",state.networks)];case 34:F.sent();return[4,writeOrUpdateDataInStore("signages",state.currentSignages)];case 35:F.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 36:F.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 37:F.sent();return[4,getCities(state.api,state.language,i).then((function(t){return t.json()}))];case 38:l=F.sent().results;return[4,writeOrUpdateDataInStore("cities",l)];case 39:F.sent();d=[];u=[];p=[];if(!(state.poisData>0))return[3,46];return[4,getPoisNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 40:d=F.sent().results;return[4,fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),i).then((function(t){return t.json()}))];case 41:f=F.sent().results;return[4,writeOrUpdateDataInStore("pois",d)];case 42:F.sent();return[4,writeOrUpdateDataInStore("poiTypes",f)];case 43:F.sent();return[4,writeOrUpdateFilesInStore(d,imagesRegExp,true,["url"])];case 44:F.sent();return[4,writeOrUpdateFilesInStore(f,imagesRegExp)];case 45:F.sent();F.label=46;case 46:if(!(state.touristicContentsData>0))return[3,53];return[4,getTouristicContentsNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 47:u=F.sent().results;return[4,getTouristicContentCategory(state.api,state.language,null,i).then((function(t){return t.json()}))];case 48:h=F.sent().results;u.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",u)];case 49:F.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",h)];case 50:F.sent();return[4,writeOrUpdateFilesInStore(u,imagesRegExp,true,["url"])];case 51:F.sent();return[4,writeOrUpdateFilesInStore(h,imagesRegExp)];case 52:F.sent();F.label=53;case 53:if(!(state.touristicEventsData>0))return[3,60];return[4,getTouristicEventsNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 54:p=F.sent().results;return[4,getTouristicEventType(state.api,state.language,null,i).then((function(t){return t.json()}))];case 55:m=F.sent().results;p.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",p)];case 56:F.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",m)];case 57:F.sent();return[4,writeOrUpdateFilesInStore(m,imagesRegExp)];case 58:F.sent();return[4,writeOrUpdateFilesInStore(p,imagesRegExp,true,["url"])];case 59:F.sent();F.label=60;case 60:if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,70];b=[];b.push.apply(b,this.currentTrek.children);v=[];g=[];w=[];k=[];y=[];b.forEach((function(t){v.push(getTrek(state.api,state.language,t,i));g.push(getTouristicContentsNearTrek(state.api,state.language,t,i));w.push(getTouristicEventsNearTrek(state.api,state.language,t,i));k.push(getPoisNearTrek(state.api,state.language,t,i));y.push(getSensitiveAreasNearTrek(state.api,state.language,t,i))}));return[4,Promise.all(__spreadArray([],v,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 61:x=F.sent();return[4,Promise.all(__spreadArray([],g,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 62:A=F.sent();return[4,Promise.all(__spreadArray([],w,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 63:L=F.sent();return[4,Promise.all(__spreadArray([],k,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 64:_=F.sent();return[4,Promise.all(__spreadArray([],y,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 65:C=F.sent();z=0;F.label=66;case 66:if(!(z<x.length))return[3,70];x[z].offline=true;x[z].pois=_[z].results.map((function(t){return t.id}));x[z].touristicContents=A[z].results.map((function(t){return t.id}));x[z].touristicEvents=L[z].results.map((function(t){return t.id}));x[z].sensitiveAreas=C[z].results.map((function(t){return t.id}));return[4,writeOrUpdateDataInStore("treks",[x[z]])];case 67:F.sent();return[4,writeOrUpdateFilesInStore(x[z],imagesRegExp,true,["url"])];case 68:F.sent();F.label=69;case 69:z++;return[3,66];case 70:return[4,writeOrUpdateDataInStore("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:d.map((function(t){return t.id})),signages:state.currentSignages.map((function(t){return t.id})),touristicContents:u.map((function(t){return t.id})),touristicEvents:p.map((function(t){return t.id})),sensitiveAreas:state.currentSensitiveAreas?state.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 71:F.sent();state.treks.find((function(t){return t.id===S.currentTrek.id})).offline=true;if(!state.currentTreks){state.currentTreks=state.treks}state.currentTreks.find((function(t){return t.id===S.currentTrek.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit(this.currentTrek.id);return[3,73];case 72:O=F.sent();this.downloadedErrorConfirm.emit(this.currentTrek.id);return[3,73];case 73:return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,7,,8]);t=[];return[4,getDataInStore("treks",this.currentTrek.id)];case 1:e=o.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;o.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,getDataInStore("treks",this.currentTrek.children[i])];case 3:r=o.sent();this.deleteOfflineTrekProperties(r);t.push(r);o.label=4;case 4:i++;return[3,2];case 5:return[4,writeOrUpdateDataInStore("treks",t)];case 6:o.sent();if(state.treks){delete state.treks.find((function(t){return t.id===n.currentTrek.id})).offline;if(!state.currentTreks){state.currentTreks=state.treks}delete state.currentTreks.find((function(t){return t.id===n.currentTrek.id})).offline}if(state.parentTrek){delete state.parentTrek.offline}if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id);return[3,8];case 7:a=o.sent();this.deleteErrorConfirm.emit(this.currentTrek.id);return[3,8];case 8:return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.getDepartureCityCode=function(){var t;var e=state.cities.find((function(t){return t.id===state.currentTrek.departure_city}));return(t=e.code)!==null&&t!==void 0?t:e.id};t.prototype.render=function(){var t=this;var e,i,r,a,n;var o=getAssetPath("".concat("","assets/default-image.svg"));var s=this.currentTrek&&this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>1||this.offline;return h(Host,{key:"e5c8cf49e86af1161d419ecbbfd4b6e57185ba38",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentTrek&&h("div",{key:"3bb916150f6a7ceb4eb6c9a1707c514e977bb1bf",part:"trek-options",class:"trek-options"},h("a",{key:"554930f77265da01bd0132a7de56a27e1528d802",part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{key:"f5ce6c5c3655420be681d93990138b7afeda7b97",part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},translate[state.language].options.steps),this.options.description.visible&&h("a",{key:"d4564b615c5b742a46a7e7d8c9b7c248203d6f22",part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},translate[state.language].options.description),this.options.pois.visible&&h("a",{key:"94213eea2d830d2fa41cd4db810df03b45e2a775",part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},translate[state.language].options.pois),this.options.recommendations.visible&&h("a",{key:"19c2a08f9c2fa03943e128c870f983128bc98a29",part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{key:"b2ca20a787aaed003ce5a86bed29b9f684b94cef",part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{key:"459ab8020b395d8a529ea5d57d9e13ffc76df7bd",part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},translate[state.language].options.informationPlaces),this.options.accessibility.visible&&h("a",{key:"6b1f0d75ee967b2111a76cf8758be3132042987e",part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},translate[state.language].options.accessibility),this.options.touristicContents.visible&&h("a",{key:"a1cdae4f2097f51e86788b2d785e1c4a2a04f7fe",part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{key:"199a93b5e80e64a80a1910ae8525eec5adf41221",part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},translate[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{key:"9498855f928a8e4acd12ce719aac1d7a6f4a6258",part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{key:"2eca5c373ea6731e2a1d3510735713580227a254",part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{key:"332bf1c06fc3101036aaa3701fb8ac7fac8b29b7",part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"6d0ee988ff705b5330e9c4b4f58ea1524afc4526",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"b1a301550d2c7b06b12418a5f3300b1d753874c0",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var i=[e.legend,e.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"trek-image-legend",class:"trek-image-legend"},i),h("img",{part:"trek-img",class:"trek-img",src:t.offline&&e.thumbnail!==""?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=o},alt:e.legend}))})):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:o,loading:"lazy",alt:""})),h("div",{key:"648e3bbeb5fb7cfc2eb77fac91dd1457852fa15b",style:{display:"block",visibility:s?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"4b024243c43fc99b78e845dcf927d5cca8cfb94b",style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"3731cefe6ba83bfde62dac3196ef8cfc71980a69",style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{key:"c44797d20da6ed5f519ce2f5a063d0f0992110cd",part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&h("div",{key:"c8ee52b2e9bce36a8a20d37179b9f7aee92c15de",part:"themes-container",class:"themes-container"},this.themes.map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"f9285e105313901de906e96c951be904079da53f",part:"sub-container",class:"sub-container"},h("div",{key:"0dcce489b04489de8c4fe4a8c1986e6348815bdb",part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&h("div",{key:"530cc5497065eec8e9ff0630dd568b8b60ae5853",part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&h("img",{key:"93128f2d2e4a0e886a3214b261c1a396319b94b5",part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),h("span",{key:"c50e4d1000a23d04abc8faaec18fc728cfe5cf3e",part:"label",class:"label"},this.difficulty.label)),h("div",{key:"53cde85720262d3558f6126ec9adc8bb3bedd915",part:"icon-label",class:"icon-label duration"},h("span",{key:"4dd7e0c6f0c09709c02aa3f6a0d900a776a6852c",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"ec261877fec113fc4030d73745ef382995fe41bc",part:"label",class:"label"},formatDuration((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),h("div",{key:"ea96bb0d513f943f77505ae211ad49ede19497b3",part:"icon-label",class:"icon-label route"},((i=this.route)===null||i===void 0?void 0:i.pictogram)&&h("img",{key:"3d51d075862e791818212cd620b4f157e518cbef",part:"icon",class:"icon",src:this.route.pictogram,alt:""}),h("span",{key:"708739476d9898641ac2a95ed885191cd504811d",part:"label",class:"label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{key:"c0f9b249e9f8f1b12c14ad9847877dadf09f8efa",part:"icon-label",class:"icon-label length"},h("span",{key:"249cfdb424cf9d9eb73fbbbd3f982d8c80e3ff13",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"437d3503003fe3a64ff2ff784e65b0a61950a689",part:"label",class:"label"},formatLength(this.currentTrek.length_2d))),this.currentTrek.ascent&&h("div",{key:"ac5c6a68fa22fd433a770893bba598a67e13df5e",part:"icon-label",class:"icon-label ascent"},h("span",{key:"db045c3e2c807655c593b6fe23649ac0978929ed",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"09d03d0124acf26e7211a0a2d25f7b65f7275330",part:"label",class:"label"},formatAscent(this.currentTrek.ascent))),this.currentTrek.descent&&h("div",{key:"35955f15ad094bd7794cb6b8ffcfc4371da4859e",part:"icon-label",class:"icon-label descent"},h("span",{key:"d369fa743267a40244492d9e01da63b651e17019",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"f17f11c9b52df5007c7562452ae6bb5581253699",part:"label",class:"label"},formatDescent(this.currentTrek.descent))),h("div",{key:"4cd342d27dac2b86cdfbe4749feb5bb54aeb527c",part:"icon-label",class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&h("img",{key:"be7d9961bbe7c3535cfcc76055f3e8d72559164f",part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),h("span",{key:"e935a1ef1615ed36760f9286f19a466f0756862a",part:"label",class:"label"},(n=this.practice)===null||n===void 0?void 0:n.name)),h("div",{key:"ec9cbd6c893e97262ba0251eba7ab7970d81055f",part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((function(t){var e=state.networks.find((function(e){return e.id===t}));return h("div",{part:"network",class:"network"},h("img",{part:"icon",class:"icon",src:e.pictogram,alt:""}),h("span",{part:"label",class:"label"},e.label))}))),this.currentTrek.ratings.map((function(t){return h("div",{part:"row",class:"row"},"".concat(state.ratingsScale.find((function(e){return e.id===state.ratings.find((function(e){return e.id===t})).scale})).name," : ").concat(state.ratings.find((function(e){return e.id===t})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&h("div",{key:"d44457fa1c2a7775eb149364abf564463badad11",part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),h("div",{key:"6e770e71fdfc59a5b2a40d8e1ced05eca0eb904d",part:"divider",class:"divider"}),h("div",{key:"ecfb5b65630614e0f24a9c610da3a105c551093c",part:"downloads-container",class:"downloads-container"},h("div",{key:"bdecac3f467595dfc7375dd83dbc686d55d34b91",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"05deb19a56ff310c091e319a8b5e5f747439af81",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"fa61e4647f28e33f04f8e9e6a044157ad7668c71",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"0e4e3d057bdc8217cfec6315c19e2bb2e11af412",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"f0b7b3070cc6471f21f24047824cef98152ad8d6",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"55af4985cfe350678a3da512aff742014914115c",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"40162bdb1a90ac6aa4fabef6cf2e88acecf85a7c",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"ef5cebff047f2fb60a0be359c22c7ef82d4d562d",part:"links-container",class:"links-container"},h("a",{key:"3980aa05e80a26c36a06491b241735b19e69267c",part:"download-gpx-button",href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"0bc9d8e7ffeb93d7051101be7d85dcf277409af3",part:"icon",class:" icon",innerHTML:DownloadIcon}),h("span",{key:"d02c3ff24eadb8605ed63b566b5d97e20e09bc32",part:"label",class:"label"},"GPX")),h("a",{key:"7f0fb743b75ca2784b0c723325cb67ca04ddb76c",part:"download-kml-button",href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"a0f07e2438a6f6960acdd300a746eb1023c45513",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"81a1b521b4601a1b05acf56a93a2ad3998702fb8",part:"label",class:"label"},"KML")),h("a",{key:"e6dca05c77604a98c37bcf3c8fdcd8ca95196301",part:"download-pdf-button",href:"".concat(this.currentTrek.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"a6cbaa7d1e274a8daddf1c7c3126cb73ea9b5dc7",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"0900e2eb6b2c72da03fc55da79da893249a9e91f",part:"label",class:"label"},"PDF")))),h("div",{key:"a5f8802fb422ca65b491d026b41c0b9ec952ce82",part:"divider",class:"divider"}),this.currentTrek.description_teaser&&h("div",{key:"16eccb79c4f7b5949766484e73e2809bac775aac",part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{key:"5fe19db887a44ee0c95d6cff6c81ba9006b99ade",part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",{key:"443c877fb216a2e57684a97c3fad4cf3348b94d2"},h("div",{key:"5f1e964ba4e9aff3f6144fb394b3fd0723307959",part:"divider",class:"divider"}),h("div",{key:"8ec97f76b334bf99c5125e449297a583f7ea4dde",part:"parent-trek-container",class:"parent-trek-container"},h("button",{key:"59542d66c3ff45c2eac044c3206eb3e6a25144d7",part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",{key:"dcda1b281fc68e835adf15e4dd05f992529c966a"},"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{key:"c0c8e62b5fef348ed64c94bdefecf6ba9e832ad8",part:"step-container",class:"step-container"},h("div",{key:"b6f880422e5759c55e7653f9828b8c1e54f1417b",part:"step-title",class:"step-title",ref:function(e){return t.stepsRef=e}},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{key:"98ee51d19d15636b3548f49b272a55c02a155759",part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{key:"65a19db82cea8e31b31cc0553edf03a63bc1dd22",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp}))}))),h("div",{key:"370ce71f6872c8a6873c46c68419f95967dbc7fc",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),h("div",{key:"6f2eb8e4924a17655a171f2c709699f3ed00732a",part:"divider",class:"divider"}),this.currentTrek.description&&h("div",{key:"e2873018dbdb44a8e0bddb7e9192685ce6068793",part:"description-container",class:"description-container"},h("div",{key:"e94f50d74f0f4a720f9cbbeb3f4e32f3f426ce01",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"81dd07309ec59c25953e0ddfbd629113ebb6058b",part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{key:"d1089ec35ab015c535f3bcc8c7abd36738693571",part:"departure-container",class:"departure-container"},h("div",{key:"f5ff23f89d13cb26cd51e93c28c5deaa60bc6ec2",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"93b854abf5c627c1fa2d89bfaa609924ea5ff373",part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{key:"a3c5aad3299579e48d5af8003a3e111ee72720c1",part:"arrival-container",class:"arrival-container"},h("div",{key:"e7c2f036534cff75700155d555f3de3220ff106d",part:"arrival-title",class:"arrival-title"},translate[state.language].arrival," : "),h("div",{key:"c6482e2aff99fee46ad42f2648110ebe310073c6",part:"arrival",innerHTML:this.currentTrek.arrival})),this.cities&&this.cities.length>0&&h("div",{key:"acdca8ca589e9517053d0350669ef4517b2a5181",part:"cities-container",class:"cities-container"},h("div",{key:"4f4ec67321499179edd4cc7ad13084cd629e5c81",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"2169525437017ada0268d985ac41fdd36818ab03",part:"cities",innerHTML:this.cities.join(", ")})),this.options.pois.visible&&h("div",{key:"43973fc7666f1f737d17add1d4743479092a0d28",part:"divider-and-pois-container",class:"divider-and-pois-container"},h("div",{key:"3f96beff82b99957e31efa3c013e1d09c58ec1fd",part:"divider",class:"divider"}),h("div",{key:"34ae2fa59006c7953e34a276de4f25e3b6d18219",part:"pois-container",class:"pois-container"},h("div",{key:"637d3e1c7e42e3b7441018a1a8a16504c6017682",part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.poisData)),!state.currentPois?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}}))))),this.weather&&this.currentTrek.departure_city&&!this.offline&&h("div",{key:"d0052d61c45bf75c771f9307c22721245f3e3dac",part:"divider-and-weather-container",class:"divider-and-weather-container"},h("div",{key:"7e1c4f3782b6f84d8fa430875921db2ba992349a",part:"divider",class:"divider"}),h("div",{key:"51958be42b17cc3f9ba2abcf691acd21d91dde54",part:"weather-container",class:"weather-container"},h("iframe",{key:"66b69d2c2da2d0e2fa7eb3b6821dbf0fde597deb",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.getDepartureCityCode(),"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&h("div",{key:"47653af2e8c64805fdfb25b878b4649e3c67a079",part:"divider-and-access-container",class:"divider-and-access-container"},h("div",{key:"65b41eac7c42464e318a134c4409d5c63dc641dd",part:"divider",class:"divider"}),h("div",{key:"06ed4b9df1fb34fe2d419188f7f3dbbd9bb4da50",part:"access-container",class:"access-container"},h("div",{key:"85ec72722d24590c440e1773898df781aeec82a8",part:"access-title",class:"access-title"},translate[state.language].roadAccessAndParking),h("div",{key:"4ec284b6b3351942b4fe22956b61e306d1d9b7c6",part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&h("div",{key:"29e27bbfd4b4e9bce86c850d0704c885e147578e"},h("div",{key:"65c34c30c9650b08c80200b2e8a6326364dd4ad5",part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},translate[state.language].recommendedParking),h("div",{key:"c6497f1cdb3a8d02fd2d27a1bce34507cba1b432",part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&h("div",{key:"b7fc45a98cfff38b7980bdd50feaac08272729b7",part:"divider-and-public-transport-container",class:"divider-and-public-transport-container"},h("div",{key:"7207afaea09dd5c17c2afb49d24e7ec4976d601d",part:"divider",class:"divider"}),h("div",{key:"46b3637ba89b7bac19c08d8a84b157a0031d9c3a",part:"public-transport-container",class:"public-transport-container"},h("div",{key:"7678eca7e336c7501bae7e0d46cbce4c8ae688dc",part:"public-transport-title",class:"public-transport-title"},translate[state.language].transport),h("div",{key:"8e042499090cdd8ad5f4060332a8ab14c41d8310",part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&h("div",{key:"db3233a23b4dc3f32ea4aadc0b87eb45d186c711",part:"divider-and-advice-container",class:"divider-and-advice-container"},h("div",{key:"74cdaeae87758ccc70c2309ee0f0b6401763b525",part:"divider",class:"divider"}),h("div",{key:"f66cdf34eb5557fed8632a5b8df3f33405c6ef4f",part:"advice-container",class:"advice-container"},h("div",{key:"3bdc8c884921dc517242c45c5fb5fa702670bc1f",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{key:"3904e375a11084e10b74499ca14e01812da9877d",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"adf6e2bd60202ea49a468767b44182640aff3ff0",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"11508b6c78cb67dd6d1a94ba04cb8a9a70c49f10",part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&h("div",{key:"2660033216128753112733e04edbbe386b9e626e",part:"gear-container",class:"gear-container"},h("span",{key:"7a6dd145d56a871ef23a7a96310309b48a10caee",part:"icon",class:"icon",innerHTML:BackpackIcon}),h("div",{key:"c4ac829e9e4a2195bb5eed1db0d828c54b99212f",part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(t){return h("div",{part:"label-container",class:"label-container"},h("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",{part:"label-name",class:"label-name",innerHTML:t.name})),h("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice}))})))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",{key:"96222b16781787c7aa905d98b166b111aeedae6b",part:"divider-and-sensitive-areas-container",class:"divider-and-sensitive-areas-container"},h("div",{key:"8b8657d266fd4cb0a16f88e0e5ea41baec76a556",part:"divider",class:"divider"}),h("div",{key:"b81fa32ea12036ff05c5c5f2537c27d822e39b85",part:"sensitive-areas-container",class:"sensitive-areas-container"},h("div",{key:"cf0cc78488be6843084717efeb04ab903272e4bc",part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(e){return t.sensitiveAreaRef=e}},translate[state.language].environmentalSensitiveAreas),h("div",{key:"e4f5b583e74d442e4a530f520dd470c2d2add380",part:"sensitive-areas-description",class:"sensitive-areas-description"},translate[state.language].sensitiveAreasDescription),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value",sensitiveArea:t})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&h("div",{key:"db60bffe6fc64688cddabada667cd9541819f9d3",part:"divider-and-information-desks-container",class:"divider-and-information-desks-container"},h("div",{key:"072b26435f9f82b2496f6d0d0975508cc61a4937",part:"divider",class:"divider"}),h("div",{key:"9fc79afe493c840728a0d12eed5214b241340065",part:"information-desks-container",class:"information-desks-container"},h("div",{key:"812f10fe480ecd29873c198d8553defb255da392",part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{key:"69285fbef3eecb23fa8efbdd8fd9638c2c8af410",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"3262b7f0c1be5345d87ad0cb66b3896a809f39a2",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"f3f392f4b9e64c00c3d1a9092d95825d5c4e56b4",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&h("div",{key:"9f12a620371993233fd237bc8654c106df053a5f",part:"divider-and-accessibilities-container",class:"divider-and-accessibilities-container"},h("div",{key:"0fdfeaf58a68a9dc4c8faa5c51c4ae02d9cd0a65",part:"divider",class:"divider"}),h("div",{key:"646b891dc39856de633f437ce29de7d5add663aa",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"14832491eb1d015e34dc7570aac76b6a8aa63af8",part:"accessibilities-title",class:"accessibilities-title",ref:function(e){return t.accessibilityRef=e}},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{key:"96dbd1d5eac29f3930d247c81d7bc912af110ffa",part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&h("div",{key:"31d2a3914c6b98ce7c0f90f9436c5be64f95f9df",part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{part:"accessibility-content-container",class:"accessibility-content-container"},h("img",{src:t.pictogram,alt:""}),h("div",{part:"accessibility-name",innerHTML:t.name}))}))),this.emergencyNumber&&h("div",{key:"e99266ea3bbdbbf84d7e890fd6a9e3688b1b5651",part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},h("div",{key:"521305b6ded15c4bf9efa3bbb4bfb6b723868a80",part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},translate[state.language].emergencyNumber),h("div",{key:"85e330942ee103526ac1f51be9c19f2ec2902c3d",part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},h("a",{key:"e6730d15f0a682cffc84447bf1ead373f7948c8c",href:"tel:".concat(this.emergencyNumber.toString())},h("span",{key:"308ad56765b5d6627046ab51c1090af0b6514477",part:"icon",class:"icon",innerHTML:CallIcon}),h("span",{key:"b3debf5c3091ce59d729b5a21eb7762694add54a",part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&h("div",{key:"395cc9881fabefe4819f75801567c30d39571e38",part:"accessibility-level-container",class:"accessibility-level-container"},h("div",{key:"75867fc4dc05a0d9658ef9d0e08ba3bd3544341d",part:"accessibility-level-title",class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{key:"8bb38e9d1f9e856a78e9cffa9d42b510fe87d215",part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{key:"7f1a2c267b101bf32246e62f1a5702883ceae204",part:"accessibility-slope-container",class:"accessibility-slope-container"},h("div",{key:"70151e10662d081824cc6fd6c632c728768b5724",part:"accessibility-slope-title",class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{key:"57d8b888b7b09236920a06517f43d3fa6b2f6903",part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{key:"f3f70dfd14d9711d101abd83eb6337d2fc3398f0",part:"accessibility-width-container",class:"accessibility-width-container"},h("div",{key:"6f81012f6e293682452b8bf62220330563f90b13",part:"accessibility-width-title",class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{key:"99e9c766e6977a9713cdd3117557e648e8e3bdf4",part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{key:"a28418bd4cbedca267514d7948d609834d56c979",part:"accessibility-signage-container",class:"accessibility-signage-container"},h("div",{key:"5265d156ebf310387124a7a9a653457aad1abc64",part:"accessibility-signage-title",class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{key:"13a6709ab4edbec47d4c39da172755d21915e58d",part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{key:"9eeeb59f5b6d336d51a6364323169fb32ee2e782",part:"accessibility-covering-container",class:"accessibility-covering-container"},h("div",{key:"7eb6b2b302febaee603e5504dc0fe51e775a91d7",part:"accessibility-covering-title",class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{key:"83075f0950a775087b314dea968bc6e097c0222d",part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{key:"6e23bcd1152e0a6d3c15a2e78a5814d519eb58ca",part:"accessibility-exposure-container",class:"accessibility-exposure-container"},h("div",{key:"63cbb672b294a4fcf0b3bd6e83292cfe602ba963",part:"accessibility-exposure-title",class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{key:"90128e3f8a4fd91e5e94684640a55ab4ed2286bb",part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{key:"c5770974a043b7905225e5768ba9c6b6a9d1bb89",part:"accessibility-advice-container",class:"accessibility-advice-container"},h("div",{key:"4765c1e42f2a1fea0fe2278eba5b7bf39410d27e",part:"accessibility-advice-title",class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{key:"bc2300e568fcf6a18c71b6bedc018b61c303384a",part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),this.options.touristicContents.visible&&h("div",{key:"f10c1969b2e746acbabcdc878a8cfc05786efae1",part:"divider-and-touristic-content-container",class:"divider-and-touristic-content-container"},h("div",{key:"52c22d32bd0cd29ba7aa589b481a04f8231f92ec",part:"divider",class:"divider"}),h("div",{key:"c377c328382413af79dab2498597604a665ed91a",part:"touristic-content-container",class:"touristic-content-container"},h("div",{key:"dc1d9bd0d1c6e87dad90144feab949329450c5f3",part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.touristicContentsData)),!state.trekTouristicContents?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,"color-surface-container-low":t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}}))))),this.options.touristicEvents.visible&&h("div",{key:"912fc143dce862cb0488f19685c2e570ebe37a0c",part:"divider-and-touristic-event-container",class:"divider-and-touristic-event-container"},h("div",{key:"5dbf2a6586463dbba0c69694d16dc4858f9ff138",part:"divider",class:"divider"}),h("div",{key:"3a8395e1049b0e4d17752b46ed62e25ad691b282",part:"touristic-event-container",class:"touristic-event-container"},h("div",{key:"71ddc12df2da0bdf5862aecb6bf79a2a05cdd668",part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.touristicEventsData)),!state.trekTouristicEvents?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}}))))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&h("div",{key:"6a44dc85a38144781dd94046760afe50ae6812c0",part:"divider-and-weblinks-container",class:"divider-and-weblinks-container"},h("div",{key:"2088622d6eb21581ac081a1ae61e3fab29c32f9f",part:"divider",class:"divider"}),h("div",{key:"7e2aa2b5193ea007d60f788e0a681811b4d2ea6d",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"8f6cbc8e368a9de1bdf90d8e9315c45e7316dc5f",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentTrek.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",{key:"c354f5e11d07b29a78bdb60e955d50b9fa47bb80",part:"divider-and-source-container",class:"divider-and-source-container"},h("div",{key:"e902c073177ff03faaadf889aedfef5051c8449d",part:"divider",class:"divider"}),h("div",{key:"7b711007322f0c8eabd5fcd05fefcb5d8ff76ea4",part:"source-container",class:"source-container"},h("div",{key:"2b0e8b06d3aa072cab9d632c9510e9220f71ea19",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"5b394c3bfcc4e829e44744d07bc9fe07d25788be",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"5fb1256d6e0578abd370fd04b6105449522dad41"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"a1b25c82f65413e5a9a66d53fca9e5736fa8b468",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"5ecf15e8b0c7c42113d0821aaa1598f55b5f2c35",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwTrekDetail.style=GrwTrekDetailStyle0;var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.signages=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){state.poisData=0;state.touristicContentsData=0;state.touristicEventsData=0;state.currentPois=null;state.trekTouristicContents=null;state.trekTouristicEvents=null;if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTrek()};t.prototype.disconnectedCallback=function(){state.networkError=false};t.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("treks",this.trekId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}return[2]}}))}))};t.prototype.handleOfflineTrek=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,o,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,L,_,C,z,O,S,F,P;return __generator(this,(function(T){switch(T.label){case 0:if(!(t&&t.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(t.children.length>0))return[3,1];state.parentTrekId=t.id;state.parentTrek=t;e.push.apply(e,t.children);return[3,3];case 1:return[4,getDataInStore("treks",state.parentTrekId)];case 2:i=T.sent();state.parentTrek=i;e.push.apply(e,i.children);T.label=3;case 3:r=[];e.forEach((function(t){r.push(getDataInStore("treks",t))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:a.currentTrekSteps=T.sent();T.label=5;case 5:n=state;return[4,handleOfflineProperty("difficulties")];case 6:n.difficulties=T.sent();o=state;return[4,handleOfflineProperty("routes")];case 7:o.routes=T.sent();s=state;return[4,handleOfflineProperty("practices")];case 8:s.practices=T.sent();c=state;return[4,handleOfflineProperty("themes")];case 9:c.themes=T.sent();l=state;return[4,handleOfflineProperty("cities")];case 10:l.cities=T.sent();d=state;return[4,handleOfflineProperty("accessibilities")];case 11:d.accessibilities=T.sent();u=state;return[4,handleOfflineProperty("ratings")];case 12:u.ratings=T.sent();p=state;return[4,handleOfflineProperty("ratingsScale")];case 13:p.ratingsScale=T.sent();f=state;return[4,handleOfflineProperty("labels")];case 14:f.labels=T.sent();h=state;return[4,handleOfflineProperty("sources")];case 15:h.sources=T.sent();m=state;return[4,handleOfflineProperty("accessibilitiesLevel")];case 16:m.accessibilitiesLevel=T.sent();b=state;return[4,handleOfflineProperty("touristicContentCategories")];case 17:b.touristicContentCategories=T.sent();v=state;return[4,handleOfflineProperty("touristicEventTypes")];case 18:v.touristicEventTypes=T.sent();g=state;return[4,handleOfflineProperty("networks")];case 19:g.networks=T.sent();w=state;return[4,handleOfflineProperty("poiTypes")];case 20:w.poiTypes=T.sent();return[4,handleOfflineProperty("informationDesks")];case 21:k=T.sent();y=k.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=y;return[4,handleOfflineProperty("pois",["url"])];case 22:x=T.sent();A=x.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=A;state.poisData=A.length;return[4,handleOfflineProperty("touristicContents",["url"])];case 23:L=T.sent();_=L.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=_;state.touristicContentsData=_.length;return[4,handleOfflineProperty("touristicEvents",["url"])];case 24:C=T.sent();z=C.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=z;state.touristicEventsData=z.length;return[4,handleOfflineProperty("sensitiveAreas")];case 25:O=T.sent();S=O.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));state.currentSensitiveAreas=S;return[4,handleOfflineProperty("signages")];case 26:F=T.sent();P=F.filter((function(e){return t.signages.some((function(t){return t===e.id}))}));state.currentSignages=P;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 27:T.sent();state.currentTrek=t;return[2]}}))}))};t.prototype.handleOnlineTrek=function(){var t=this;var e=[];e.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.accessibilities?fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.ratings?fetch("".concat(state.api,"trek_rating/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!state.ratingsScale?fetch("".concat(state.api,"trek_ratingscale/?language=").concat(state.language,"&fields=id,name"),this.init):new Response("null"));e.push(this.signages?getSignages(state.api,state.language,this.trekId,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[getSensitiveAreasNearTrek(state.api,state.language,this.trekId,this.init).then((function(t){if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram,filter"),this.init),getSources(state.api,state.language,this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),getPoisNearTrekCount(state.api,state.language,this.trekId,this.init),getInformationsDesks(state.api,state.language,this.init),getTrekNetwork(state.api,state.language,this.init),getTrek(state.api,state.language,this.trekId,this.init),getTouristicContentsNearTrekCount(state.api,state.language,this.trekId,this.init),getTouristicEventsNearTrekCount(state.api,state.language,this.trekId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,o,s;var c=this;var l=t[0],d=t[1],u=t[2],p=t[3],f=t[4],h=t[5],m=t[6],b=t[7],v=t[8],g=t[9],w=t[10],k=t[11],y=t[12],x=t[13],A=t[14],L=t[15],_=t[16],C=t[17];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(L&&L.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(L.children.length>0))return[3,1];state.parentTrekId=L.id;state.parentTrek=L;e.push.apply(e,L.children);return[3,3];case 1:return[4,fetch("".concat(state.api,"trek/").concat(state.parentTrekId,"/?language=").concat(state.language,"&published=true&fields=name,children")).then((function(t){return t.json()}))];case 2:i=t.sent();state.parentTrek=i;e.push.apply(e,i.children);t.label=3;case 3:r=[];e.forEach((function(t){r.push(getTrek(state.api,state.language,t,c.init))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:a.currentTrekSteps=t.sent();t.label=5;case 5:n=__spreadArray([L.departure_city],L.cities,true);if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){n=__spreadArray(__spreadArray(__spreadArray([],n,true),[t.departure_city],false),t.cities,true)}))}if(state.cities){o=state.cities.map((function(t){return t.id}));n=n.filter((function(t){return t}));n=n.filter((function(t){return!o.includes(t)}))}if(!(n.length>0))return[3,7];return[4,getCities(state.api,state.language,this.init,n).then((function(t){return t.json()}))];case 6:s=t.sent().results;if(s){state.cities=__spreadArray(__spreadArray([],state.cities,true),s,true)}t.label=7;case 7:if(l){state.difficulties=l.results}if(d){state.routes=d.results}if(u){state.practices=u.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(p){state.themes=p.results}if(f){state.accessibilities=f.results}if(h){state.ratings=h.results}if(m){state.ratingsScale=m.results}state.currentSignages=b?b.results:[];if(k){state.accessibilitiesLevel=k.results}if(v){state.currentSensitiveAreas=v.results}if(g){state.labels=g.results}if(w){state.sources=w.results}if(A){state.networks=A.results}if(x){state.currentInformationDesks=x.results}if(y.count){state.poisData=y.count}if(_.count){state.touristicContentsData=_.count}if(C.count){state.touristicEventsData=C.count}if(L){state.currentTrek=L}if(state.poisData>0){Promise.all([getPoisNearTrek(state.api,state.language,this.trekId,this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.poiTypes=i.results}if(e){state.currentPois=e.results}})).catch((function(){state.poisData=0}))}if(state.touristicContentsData>0){Promise.all([getTouristicContentsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicContentCategory(state.api,state.language,null,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.touristicContentCategories=i.results}if(e){state.trekTouristicContents=e.results}})).catch((function(){state.touristicContentsData=0}))}if(state.touristicEventsData>0){Promise.all([getTouristicEventsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicEventType(state.api,state.language,null,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.touristicEventTypes=i.results}if(e){state.trekTouristicEvents=e.results}})).catch((function(){state.touristicEventsData=0}))}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.render=function(){return h(Host,{key:"c8e54c83ead07a07b687cf3c0b352e0314e102b0"})};return t}();var grwTreksListCss=":host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var GrwTreksListStyle0=grwTreksListCss;var GrwTreksList=function(){function t(t){registerInstance(this,t);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTreks){t.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,t.step),true)}}));onChange("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.treksWithinBounds){t.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"b40bcbf292515d9a78b0c43432df3d9ace4ca471",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{key:"1d0a540e15410b55b6caa8102aa556a5c738611a",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"781a81c7856cfd070d3c25135f6ed8799d7a1ab8",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(e){return h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp})}))),h("div",{key:"0a85087a543959d295595f52b352532569d88326",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=GrwTreksListStyle0;var GrwTreksProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}return[2]}))}))};t.prototype.handleOfflineTreks=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,o,s,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,getAllDataInStore("treks")];case 1:t=l.sent();if(!(t&&t.length>0))return[3,11];e=state;return[4,this.handleOfflineProperty("difficulties")];case 2:e.difficulties=l.sent();i=state;return[4,this.handleOfflineProperty("routes")];case 3:i.routes=l.sent();r=state;return[4,this.handleOfflineProperty("practices")];case 4:r.practices=l.sent();a=state;return[4,this.handleOfflineProperty("themes")];case 5:a.themes=l.sent();n=state;return[4,this.handleOfflineProperty("cities")];case 6:n.cities=l.sent();o=state;return[4,this.handleOfflineProperty("accessibilities")];case 7:o.accessibilities=l.sent();s=state;return[4,this.handleOfflineProperty("labels")];case 8:s.labels=l.sent();c=state;return[4,this.handleOfflineProperty("districts")];case 9:c.districts=l.sent();state.durations=durations;state.lengths=lengths;state.elevations=elevations;return[4,this.handleOfflineProperty("treks")];case 10:t=l.sent();this.sortTreks(t);if(this.offline){t=t.filter((function(t){return t.offline}))}state.treks=t;state.currentTreks=t;return[3,12];case 11:state.networkError=true;l.label=12;case 12:return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t){return __awaiter(this,arguments,void 0,(function(t,e){var i;if(e===void 0){e=[]}return __generator(this,(function(r){switch(r.label){case 0:return[4,getAllDataInStore(t)];case 1:i=r.sent();return[4,setFilesFromStore(i,imagesRegExp,e)];case 2:r.sent();return[2,i]}}))}))};t.prototype.handleOnlineTreks=function(){var t=this;Promise.all([fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),getCities(state.api,state.language,this.init),getTrekAccessibility(state.api,state.language,this.portals,this.init),getLabel(state.api,state.language,this.portals,this.init),getDistricts(state.api,state.language,this.init),getTreksList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(t){t.forEach((function(t){if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r;var a=t[0],n=t[1],o=t[2],s=t[3],c=t[4],l=t[5],d=t[6],u=t[7],p=t[8];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;state.difficulties=a.results;state.routes=n.results;state.practices=o.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=s.results;state.cities=c.results;state.accessibilities=l.results;state.labels=d.results;state.districts=u.results;state.durations=durations;state.lengths=lengths;state.elevations=elevations;e=[];i=0;t.label=1;case 1:if(!(i<p.results.length))return[3,4];return[4,trekIsAvailableOffline(p.results[i].id)];case 2:r=t.sent();e.push(Object.assign(Object.assign({},p.results[i]),{offline:r}));t.label=3;case 3:i++;return[3,1];case 4:this.sortTreks(e);state.treks=e;state.currentTreks=e;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineTreks()];case 1:t.sent();return[2]}}))}))}))};t.prototype.render=function(){return h(Host,{key:"1316b6a05c66dd08d7b4870d3b5f5f731fc1cd28"})};return t}();export{GrwCommonButton as grw_common_button,GrwFilters as grw_filters,GrwLoader as grw_loader,GrwMap as grw_map,GrwOfflineConfirmModal as grw_offline_confirm_modal,GrwOutdoorCourseDetail as grw_outdoor_course_detail,GrwOutdoorCourseProvider as grw_outdoor_course_provider,GrwOutdoorSiteDetail as grw_outdoor_site_detail,GrwOutdoorSiteProvider as grw_outdoor_site_provider,GrwOutdoorSitesList as grw_outdoor_sites_list,GrwOutdoorSitesProvider as grw_outdoor_sites_provider,GrwSearch as grw_search,GrwSegmentedSegment as grw_segmented_segment,GrwSelectLanguage as grw_select_language,GrwSwitch as grw_switch,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicContentsList as grw_touristic_events_list,GrwTouristicEventsProvider as grw_touristic_events_provider,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
4
4
  //# sourceMappingURL=grw-common-button_23.entry.js.map