@geotrekce/geotrek-rando-widget 0.18.0 → 0.18.2

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 (206) hide show
  1. package/dist/cjs/grw-app.cjs.entry.js +5 -5
  2. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  3. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  4. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  5. package/dist/cjs/grw-common-button_27.cjs.entry.js +496 -374
  6. package/dist/cjs/grw-common-button_27.cjs.entry.js.br +0 -0
  7. package/dist/cjs/grw-common-button_27.cjs.entry.js.gz +0 -0
  8. package/dist/cjs/grw-common-button_27.cjs.entry.js.map +1 -1
  9. package/dist/cjs/grw-information-desk_3.cjs.entry.js +1 -1
  10. package/dist/cjs/grw-information-desk_3.cjs.entry.js.br +0 -0
  11. package/dist/cjs/grw-information-desk_3.cjs.entry.js.gz +0 -0
  12. package/dist/cjs/grw-poi_3.cjs.entry.js +58 -38
  13. package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-poi_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/{i18n-2df02bcf.js → i18n-736691e8.js} +5 -1
  17. package/dist/cjs/i18n-736691e8.js.br +0 -0
  18. package/dist/cjs/i18n-736691e8.js.gz +0 -0
  19. package/dist/cjs/i18n-736691e8.js.map +1 -0
  20. package/dist/collection/components/grw-app/grw-app.js +4 -4
  21. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  22. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  23. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  24. package/dist/collection/components/grw-common-button/grw-common-button.css +1 -0
  25. package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
  26. package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
  27. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +104 -77
  28. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
  29. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
  30. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.map +1 -1
  31. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +185 -143
  32. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
  33. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
  34. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
  35. package/dist/collection/components/grw-poi-detail/grw-poi.js +31 -23
  36. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  37. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  38. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
  39. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +13 -7
  40. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
  41. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
  42. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
  43. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +24 -16
  44. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  45. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  46. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
  47. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +13 -7
  48. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
  49. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
  50. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
  51. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +24 -16
  52. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  53. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  54. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  55. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +157 -120
  56. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  57. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  58. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  59. package/dist/collection/i18n/i18n.js +4 -0
  60. package/dist/collection/i18n/i18n.js.br +0 -0
  61. package/dist/collection/i18n/i18n.js.gz +0 -0
  62. package/dist/collection/i18n/i18n.js.map +1 -1
  63. package/dist/collection/stories/App.js +2 -1
  64. package/dist/collection/stories/App.js.br +0 -0
  65. package/dist/collection/stories/App.js.gz +0 -0
  66. package/dist/collection/stories/App.stories.js +1 -0
  67. package/dist/collection/stories/App.stories.js.br +0 -0
  68. package/dist/collection/stories/App.stories.js.gz +0 -0
  69. package/dist/esm/grw-app.entry.js +5 -5
  70. package/dist/esm/grw-app.entry.js.br +0 -0
  71. package/dist/esm/grw-app.entry.js.gz +0 -0
  72. package/dist/esm/grw-app.entry.js.map +1 -1
  73. package/dist/esm/grw-common-button_27.entry.js +496 -374
  74. package/dist/esm/grw-common-button_27.entry.js.br +0 -0
  75. package/dist/esm/grw-common-button_27.entry.js.gz +0 -0
  76. package/dist/esm/grw-common-button_27.entry.js.map +1 -1
  77. package/dist/esm/grw-information-desk_3.entry.js +1 -1
  78. package/dist/esm/grw-information-desk_3.entry.js.br +0 -0
  79. package/dist/esm/grw-information-desk_3.entry.js.gz +0 -0
  80. package/dist/esm/grw-poi_3.entry.js +58 -38
  81. package/dist/esm/grw-poi_3.entry.js.br +0 -0
  82. package/dist/esm/grw-poi_3.entry.js.gz +0 -0
  83. package/dist/esm/grw-poi_3.entry.js.map +1 -1
  84. package/dist/esm/{i18n-9a7ac609.js → i18n-84192695.js} +5 -1
  85. package/dist/esm/i18n-84192695.js.br +0 -0
  86. package/dist/esm/i18n-84192695.js.gz +0 -0
  87. package/dist/esm/i18n-84192695.js.map +1 -0
  88. package/dist/esm-es5/grw-app.entry.js +1 -1
  89. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  90. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  91. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  92. package/dist/esm-es5/grw-common-button_27.entry.js +3 -3
  93. package/dist/esm-es5/grw-common-button_27.entry.js.br +0 -0
  94. package/dist/esm-es5/grw-common-button_27.entry.js.gz +0 -0
  95. package/dist/esm-es5/grw-common-button_27.entry.js.map +1 -1
  96. package/dist/esm-es5/grw-information-desk_3.entry.js +1 -1
  97. package/dist/esm-es5/grw-information-desk_3.entry.js.br +0 -0
  98. package/dist/esm-es5/grw-information-desk_3.entry.js.gz +0 -0
  99. package/dist/esm-es5/grw-poi_3.entry.js +1 -1
  100. package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
  101. package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
  102. package/dist/esm-es5/grw-poi_3.entry.js.map +1 -1
  103. package/dist/esm-es5/i18n-84192695.js +2 -0
  104. package/dist/esm-es5/i18n-84192695.js.br +0 -0
  105. package/dist/esm-es5/i18n-84192695.js.gz +0 -0
  106. package/dist/esm-es5/i18n-84192695.js.map +1 -0
  107. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  108. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  109. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  110. package/dist/geotrek-rando-widget/{p-989276bc.entry.js → p-2ed1025e.entry.js} +2 -2
  111. package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.br +0 -0
  112. package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.gz +0 -0
  113. package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js → p-3ea6b596.system.entry.js} +2 -2
  114. package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.br +0 -0
  115. package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.gz +0 -0
  116. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js +10 -0
  117. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.br +0 -0
  118. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.gz +0 -0
  119. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.map +1 -0
  120. package/dist/geotrek-rando-widget/p-5d955904.system.js +2 -0
  121. package/dist/geotrek-rando-widget/p-5d955904.system.js.br +0 -0
  122. package/dist/geotrek-rando-widget/p-5d955904.system.js.gz +0 -0
  123. package/dist/geotrek-rando-widget/p-5d955904.system.js.map +1 -0
  124. package/dist/geotrek-rando-widget/p-6b64ae12.js +2 -0
  125. package/dist/geotrek-rando-widget/p-6b64ae12.js.br +0 -0
  126. package/dist/geotrek-rando-widget/p-6b64ae12.js.gz +0 -0
  127. package/dist/geotrek-rando-widget/p-6b64ae12.js.map +1 -0
  128. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js +2 -0
  129. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.br +0 -0
  130. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.gz +0 -0
  131. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.map +1 -0
  132. package/dist/geotrek-rando-widget/p-775aaaa7.system.js +1 -1
  133. package/dist/geotrek-rando-widget/p-775aaaa7.system.js.br +0 -0
  134. package/dist/geotrek-rando-widget/p-775aaaa7.system.js.gz +0 -0
  135. package/dist/geotrek-rando-widget/{p-6ac9b3f1.entry.js → p-9d7b3f9a.entry.js} +2 -2
  136. package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.map +1 -0
  139. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js +10 -0
  140. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.br +0 -0
  141. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.gz +0 -0
  142. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.map +1 -0
  143. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js +2 -0
  144. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.br +0 -0
  145. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.gz +0 -0
  146. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.map +1 -0
  147. package/dist/geotrek-rando-widget/{p-01061bf4.system.entry.js → p-f3a9a20f.system.entry.js} +2 -2
  148. package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.br +0 -0
  149. package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.gz +0 -0
  150. package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.map +1 -0
  151. package/dist/types/components/grw-outdoor-course-detail/grw-outdoor-course-detail.d.ts +3 -0
  152. package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +3 -0
  153. package/dist/types/components/grw-poi-detail/grw-poi.d.ts +2 -0
  154. package/dist/types/components/grw-touristic-content-card/grw-touristic-content-card.d.ts +2 -0
  155. package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +2 -0
  156. package/dist/types/components/grw-touristic-event-card/grw-touristic-event-card.d.ts +2 -0
  157. package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +2 -0
  158. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -0
  159. package/dist/types/i18n/i18n.d.ts +2 -0
  160. package/package.json +1 -1
  161. package/dist/cjs/i18n-2df02bcf.js.br +0 -0
  162. package/dist/cjs/i18n-2df02bcf.js.gz +0 -0
  163. package/dist/cjs/i18n-2df02bcf.js.map +0 -1
  164. package/dist/esm/i18n-9a7ac609.js.br +0 -0
  165. package/dist/esm/i18n-9a7ac609.js.gz +0 -0
  166. package/dist/esm/i18n-9a7ac609.js.map +0 -1
  167. package/dist/esm-es5/i18n-9a7ac609.js +0 -2
  168. package/dist/esm-es5/i18n-9a7ac609.js.br +0 -0
  169. package/dist/esm-es5/i18n-9a7ac609.js.gz +0 -0
  170. package/dist/esm-es5/i18n-9a7ac609.js.map +0 -1
  171. package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.br +0 -0
  172. package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.gz +0 -0
  173. package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.map +0 -1
  174. package/dist/geotrek-rando-widget/p-105ea0c8.js +0 -2
  175. package/dist/geotrek-rando-widget/p-105ea0c8.js.br +0 -0
  176. package/dist/geotrek-rando-widget/p-105ea0c8.js.gz +0 -0
  177. package/dist/geotrek-rando-widget/p-105ea0c8.js.map +0 -1
  178. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js +0 -2
  179. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.br +0 -0
  180. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.gz +0 -0
  181. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.map +0 -1
  182. package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.br +0 -0
  183. package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.gz +0 -0
  184. package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.map +0 -1
  185. package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.br +0 -0
  186. package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.gz +0 -0
  187. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js +0 -10
  188. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.br +0 -0
  189. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.gz +0 -0
  190. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.map +0 -1
  191. package/dist/geotrek-rando-widget/p-989276bc.entry.js.br +0 -0
  192. package/dist/geotrek-rando-widget/p-989276bc.entry.js.gz +0 -0
  193. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js +0 -10
  194. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.br +0 -0
  195. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.gz +0 -0
  196. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.map +0 -1
  197. package/dist/geotrek-rando-widget/p-b4942f58.system.js +0 -2
  198. package/dist/geotrek-rando-widget/p-b4942f58.system.js.br +0 -0
  199. package/dist/geotrek-rando-widget/p-b4942f58.system.js.gz +0 -0
  200. package/dist/geotrek-rando-widget/p-b4942f58.system.js.map +0 -1
  201. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js +0 -2
  202. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.br +0 -0
  203. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.gz +0 -0
  204. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.map +0 -1
  205. /package/dist/geotrek-rando-widget/{p-989276bc.entry.js.map → p-2ed1025e.entry.js.map} +0 -0
  206. /package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js.map → p-3ea6b596.system.entry.js.map} +0 -0
@@ -1,10 +1,10 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function o(t){try{l(r["throw"](t))}catch(t){s(t)}}function l(t){t.done?i(t.value):n(t.value).then(a,o)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return l([t,e])}}function l(o){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(r=1,n&&(s=o[0]&2?n["return"]:o[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;if(n=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++){if(s||!(r in e)){if(!s)s=Array.prototype.slice.call(e,0,r);s[r]=e[r]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,c as createEvent,e as getAssetPath,g as getElement}from"./index-43403c4f.js";import{t as translate}from"./i18n-9a7ac609.js";import{t as treksFilters,s as state,h as handleTreksFiltersAndSearch,f as touristicContentsFilters,j as touristicEventsFilters,o as outdoorSitesFilters,k as handleTouristicContentsFiltersAndSearch,l as handleTouristicEventsFiltersAndSearch,b as handleOutdoorSitesFiltersAndSearch,m as onChange,C as Capacitor,d as checkFileInStore,n as getFileInStore,F as Filesystem,D as Directory,p as formatDuration,q as formatLength,u as formatAscent,e as setFilesFromStore,i as imagesRegExp,v as formatDescent,w as durations,x as lengths,y as elevations}from"./utils-b50c4f28.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-fdc4b29c.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,t as trekIsAvailableOffline}from"./treks.service-b97ba1cf.js";import{g as getWindow,n as nextTick,a as now,b as getDocument,c as createElementIfNotDefined,d as createElement,e as elementOffset,f as elementTransitionEnd,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-34b8ad7d.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-9db357b2.js";import{C as CallIcon}from"./call-22ce06ca.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}.common-button .common-button-icon{font-size:18px}";var GrwCommonButtonStyle0=grwCommonButtonCss;var GrwCommonButton=function(){function t(t){registerInstance(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"75c00d1d6355bfe164a96b8833e648cb1382986b",style:{"--font-family":this.fontFamily}},h("button",{key:"aeba6123a03f4226f9704c5f77d8968ed6002a80",part:"common-button",class:"common-button",onClick:function(){return t.action()}},h("span",{key:"78eac7ec8fc244bf0b640074670f35224136dddf",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?RefreshIcon:FilterListIcon}),h("span",{key:"248b06ddd2cdd1d9ded5848670cb2eac816b6c30",part:"common-button-label",class:"label"},this.name)))};return t}();GrwCommonButton.style=GrwCommonButtonStyle0;var SummarizeIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm0 160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0 160q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm0-560v160-160 560-560Z"/></svg>';var MapIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Zm80 0 120-40v-474l-120 46v468Zm-440-10 120-46v-468l-120 40v474Zm440-458v468-468Zm-320-56v468-468Z"/></svg>';var ListIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-600v-80h560v80H280Zm0 160v-80h560v80H280Zm0 160v-80h560v80H280ZM160-600q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680q17 0 28.5 11.5T200-640q0 17-11.5 28.5T160-600Zm0 160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520q17 0 28.5 11.5T200-480q0 17-11.5 28.5T160-440Zm0 160q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360q17 0 28.5 11.5T200-320q0 17-11.5 28.5T160-280Z"/></svg>';var grwExtendedFabCss=".map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{display:-ms-flexbox;display:flex;margin-right:8px;color:var(--fab-color)}";var GrwExtendedFabStyle0=grwExtendedFabCss;var GrwExtendedFab=function(){function t(t){registerInstance(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;var e=this.icon();return h(Host,{key:"7474c22931fa6d143b914124d662030d2a233ee0",style:{"--font-family":this.fontFamily}},h("button",{key:"08b6fa90f4cb61eceade8b480729969cd8a1bec8",part:"map-visibility-button",class:"map-visibility-button",onClick:function(){return t.action()},style:{display:this.display}},h("span",{key:"5a27e2aa43c2c02aaa8c4d66aa69db79693c8205",part:"map-visibility-button-icon",class:"icon",innerHTML:e==="Summarize"?SummarizeIcon:e==="map"?MapIcon:ListIcon}),h("span",{key:"13524be33bae65509da1b406aef9e0f968eb8586",part:"map-visibility-button-label",class:"label"},this.name())))};return t}();GrwExtendedFab.style=GrwExtendedFabStyle0;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.handleFilters=undefined;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:"8319f0b1047c6f2c8cb89e7c9fffd2a23dbf2f53",style:{"--font-family":this.fontFamily}},h("div",{key:"0f1e294677dc05332434eafce7740ae3d0060fe4",part:"options-container",class:"options-container"},h("div",{key:"5fa03c9a081ad337a1a7b61a0f6e6eefcd034e23",part:"filters-container",class:"filters-container"},state.mode==="treks"&&h("div",{part:"filters-treks-container",class:"filters-treks-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.treksWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.touristicEventsWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.outdoorSitesWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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:"e321af3fe889643fbeebdf98b795b45bee577e99",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:"8cd022c14d3042ec3aa810280591403200618e27",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},h("span",{key:"46787d8eebe717ddf59f632c375a2e3260fbba1a",part:"loader",class:"loader"}))};return t}();GrwLoader.style=GrwLoaderStyle0;!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(e,i,r,n,s){var a=i||new L.Point(0,0);if(!n)return i=a._round(),t.setTransform.apply(this,arguments);a=a.rotateFrom(n,s),e.style[L.DomUtil.TRANSFORM]="translate3d("+a.x+"px,"+a.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(e,i,r,n,s){if(!r)return t.setPosition.apply(this,arguments);e._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(e,i,s,r,n):(e.style.left=i.x+"px",e.style.top=i.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,e){if(!t)return this;var i=Math.sin(t),r=Math.cos(t),n=e.x,s=e.y,a=this.x-n,o=this.y-s;return new L.Point(a*r-o*i+n,a*i+o*r+s)}});var e=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(e.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(e._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(t))}}});var i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var e=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(e))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,r=this._containerWidth,n=new L.Point(this._containerLeft,-i-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var s=n._add(this._map._getMapPanePos()),a=L.point(this.options.autoPanPadding),o=L.point(this.options.autoPanPaddingTopLeft||a),l=L.point(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,u=0;s.x+r+l.x>c.x&&(p=s.x+r-c.x+l.x),s.x-p-o.x<0&&(p=s.x-o.x),s.y+i+l.y>c.y&&(u=s.y+i-c.y+l.y),s.y-u-o.y<0&&(u=s.y-o.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,u]))}}});var r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,e){var i=this.options,r=i[e+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),s=L.point("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=s.x+"px "+s.y+"px 0px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}});var n=L.extend({},L.Marker.prototype);var s;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var a={_onDrag:function(t){var e=this._marker,i=e.options.rotation||e.options.rotateWithView,r=e._shadow,n=L.DomUtil.getPosition(e._icon);!i&&r&&L.DomUtil.setPosition(r,n),e._map._rotate&&(n=e._map.mapPanePointToRotatedPoint(n));var s=e._map.layerPointToLatLng(n);e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,i?e.setLatLng(s):e.fire("move",t),e.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),s._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(s=s||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:a._onDrag.bind(this.dragging),_onDragEnd:a._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var e=this.options.rotation||0;this.options.rotateWithView&&(e+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,e,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,e,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});var o=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=o.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):o._getTiledPixelBounds.apply(this,arguments)}});var l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(t,e){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(e,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,e,t);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return l._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});var c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,e){e.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);var e=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(e)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(e)),n=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(e)),s=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(e));return L.bounds([L.point(Math.min(i.x,r.x,s.x,n.x),Math.min(i.y,r.y,s.y,n.y)),L.point(Math.max(i.x,r.x,s.x,n.x),Math.max(i.y,r.y,s.y,n.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var e=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),n=r.rotateFrom(e,i);L.DomUtil.setPosition(this._rotatePane,r,e,i),this._pivot=i,this._bearing=e,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside:function(t,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);e=e||{};var i=L.point(e.paddingTopLeft||e.padding||[0,0]),r=L.point(e.paddingBottomRight||e.padding||[0,0]),n=this._container.getBoundingClientRect(),s=this.latLngToContainerPoint(t),a=L.bounds([L.point(n),L.point(n).add(this.getSize())]),o=a.getCenter(),l=L.bounds([a.min.add(i),a.max.subtract(r)]),p=l.getSize();if(!l.contains(s)){this._enforcingBounds=!0;var u=s.subtract(l.getCenter()),d=l.extend(s).getSize().subtract(p);o.x+=u.x<0?-d.x:d.x,o.y+=u.y<0?-d.y:d.y,this.panTo(this.containerPointToLatLng(o),e),this._enforcingBounds=!1}return this},getBoundsZoom:function(t,e,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),i=L.point(i||[0,0]);var r=this.getZoom()||0;var n=this.getMinZoom(),s=this.getMaxZoom(),a=this.getSize().subtract(i),o=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,p=a.x/o.x,u=a.y/o.y,d=e?Math.max(p,u):Math.min(p,u);return r=this.getScaleZoom(d,r),l&&(r=Math.round(r/(l/100))*(l/100),r=e?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(s,r))},_getCenterOffset:function(t){var e=c._getCenterOffset.apply(this,arguments);return this._rotate&&(e=e.rotate(this._bearing)),e},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,e){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(t,e).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,e){if(t=t||this.getCenter(),e=e||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,e),n=this.project(t,e).floor(),s=this.getSize(),a=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([s.x,0]).floor(),this.containerPointToLayerPoint([0,s.y]).floor(),this.containerPointToLayerPoint([s.x,s.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(a),n.add(a))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var e=t,i=this.getSize(),r=i.multiplyBy(-e),n=i.multiplyBy(1+e);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,r=t.coords.heading,n=new L.LatLng(e,i),s=n.toBounds(t.coords.accuracy),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(s);this.setView(n,a.maxZoom?Math.min(o,a.maxZoom):o)}var l={latlng:n,bounds:s,timestamp:t.timestamp,heading:r};for(var c in t.coords)"number"==typeof t.coords[c]&&(l[c]=t.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var e=t.webkitCompassHeading||t.alpha,i=0;!t.absolute&&t.webkitCompassHeading&&(e=360-e),t.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(e-i)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming&&!this._rotating){var i=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),n=i.subtract(r);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=e.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=e.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,e._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var e,i=this._map,r=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),s=r.subtract(n),a=r.distanceTo(n)/this._startDist;if(this._rotating){var o=(Math.atan(s.x/s.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;s.y<0&&(o+=180),o&&i.setBearing(this._startBearing-o)}if(this._zooming)if(this._zoom=i.getScaleZoom(a,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&a<1||this._zoom>i.getMaxZoom()&&a>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{if(e=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===a&&0===e.x&&0===e.y)return;var l=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(e.rotate(l)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var e=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),i=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");i.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",i.style.cursor="grab",i.style.display="block",i.style.width="100%",i.style.height="100%",i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",e);return r.appendChild(i),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(e.style.display="none"),e},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var e=t.clientX-this.dragstartX;this._map.setBearing(e)}},_cycleState:function(t){if(this._map){var e=this._map;e.touchRotate.enabled()||e.compassBearing.enabled()?e.compassBearing.enabled()?(e.compassBearing.disable(),e.setBearing(0),this.options.closeOnZeroBearing&&e.touchRotate.enable()):(e.touchRotate.disable(),e.compassBearing.enable()):e.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,e=t.getBearing();this._arrow.style.transform="rotate("+e+"deg)",e&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===e&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));var L_Control_Locate={exports:{}};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function o(t){try{l(r["throw"](t))}catch(t){s(t)}}function l(t){t.done?i(t.value):n(t.value).then(a,o)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return l([t,e])}}function l(o){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(r=1,n&&(s=o[0]&2?n["return"]:o[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;if(n=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++){if(s||!(r in e)){if(!s)s=Array.prototype.slice.call(e,0,r);s[r]=e[r]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,c as createEvent,e as getAssetPath,g as getElement}from"./index-43403c4f.js";import{t as translate}from"./i18n-84192695.js";import{t as treksFilters,s as state,h as handleTreksFiltersAndSearch,f as touristicContentsFilters,j as touristicEventsFilters,o as outdoorSitesFilters,k as handleTouristicContentsFiltersAndSearch,l as handleTouristicEventsFiltersAndSearch,b as handleOutdoorSitesFiltersAndSearch,m as onChange,C as Capacitor,d as checkFileInStore,n as getFileInStore,F as Filesystem,D as Directory,p as formatDuration,q as formatLength,u as formatAscent,e as setFilesFromStore,i as imagesRegExp,v as formatDescent,w as durations,x as lengths,y as elevations}from"./utils-b50c4f28.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-fdc4b29c.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,t as trekIsAvailableOffline}from"./treks.service-b97ba1cf.js";import{g as getWindow,n as nextTick,a as now,b as getDocument,c as createElementIfNotDefined,d as createElement,e as elementOffset,f as elementTransitionEnd,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-34b8ad7d.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-9db357b2.js";import{C as CallIcon}from"./call-22ce06ca.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.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"75c00d1d6355bfe164a96b8833e648cb1382986b",style:{"--font-family":this.fontFamily}},h("button",{key:"aeba6123a03f4226f9704c5f77d8968ed6002a80",part:"common-button",class:"common-button",onClick:function(){return t.action()}},h("span",{key:"78eac7ec8fc244bf0b640074670f35224136dddf",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?RefreshIcon:FilterListIcon}),h("span",{key:"248b06ddd2cdd1d9ded5848670cb2eac816b6c30",part:"common-button-label",class:"label"},this.name)))};return t}();GrwCommonButton.style=GrwCommonButtonStyle0;var SummarizeIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm0 160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0 160q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm0-560v160-160 560-560Z"/></svg>';var MapIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Zm80 0 120-40v-474l-120 46v468Zm-440-10 120-46v-468l-120 40v474Zm440-458v468-468Zm-320-56v468-468Z"/></svg>';var ListIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-600v-80h560v80H280Zm0 160v-80h560v80H280Zm0 160v-80h560v80H280ZM160-600q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680q17 0 28.5 11.5T200-640q0 17-11.5 28.5T160-600Zm0 160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520q17 0 28.5 11.5T200-480q0 17-11.5 28.5T160-440Zm0 160q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360q17 0 28.5 11.5T200-320q0 17-11.5 28.5T160-280Z"/></svg>';var grwExtendedFabCss=".map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{display:-ms-flexbox;display:flex;margin-right:8px;color:var(--fab-color)}";var GrwExtendedFabStyle0=grwExtendedFabCss;var GrwExtendedFab=function(){function t(t){registerInstance(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;var e=this.icon();return h(Host,{key:"7474c22931fa6d143b914124d662030d2a233ee0",style:{"--font-family":this.fontFamily}},h("button",{key:"08b6fa90f4cb61eceade8b480729969cd8a1bec8",part:"map-visibility-button",class:"map-visibility-button",onClick:function(){return t.action()},style:{display:this.display}},h("span",{key:"5a27e2aa43c2c02aaa8c4d66aa69db79693c8205",part:"map-visibility-button-icon",class:"icon",innerHTML:e==="Summarize"?SummarizeIcon:e==="map"?MapIcon:ListIcon}),h("span",{key:"13524be33bae65509da1b406aef9e0f968eb8586",part:"map-visibility-button-label",class:"label"},this.name())))};return t}();GrwExtendedFab.style=GrwExtendedFabStyle0;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.handleFilters=undefined;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:"8319f0b1047c6f2c8cb89e7c9fffd2a23dbf2f53",style:{"--font-family":this.fontFamily}},h("div",{key:"0f1e294677dc05332434eafce7740ae3d0060fe4",part:"options-container",class:"options-container"},h("div",{key:"5fa03c9a081ad337a1a7b61a0f6e6eefcd034e23",part:"filters-container",class:"filters-container"},state.mode==="treks"&&h("div",{part:"filters-treks-container",class:"filters-treks-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.treksWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.touristicEventsWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},h("div",{part:"filters-options-container",class:"filters-options-container"},state.outdoorSitesWithinBounds&&h("div",{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",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},translate[state.language].erase),h("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},translate[state.language].ok))),h("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{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",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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",{part:"filter-container",class:"filter-container"},h("grw-filter",{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:"e321af3fe889643fbeebdf98b795b45bee577e99",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:"8cd022c14d3042ec3aa810280591403200618e27",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},h("span",{key:"46787d8eebe717ddf59f632c375a2e3260fbba1a",part:"loader",class:"loader"}))};return t}();GrwLoader.style=GrwLoaderStyle0;!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(e,i,r,n,s){var a=i||new L.Point(0,0);if(!n)return i=a._round(),t.setTransform.apply(this,arguments);a=a.rotateFrom(n,s),e.style[L.DomUtil.TRANSFORM]="translate3d("+a.x+"px,"+a.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(e,i,r,n,s){if(!r)return t.setPosition.apply(this,arguments);e._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(e,i,s,r,n):(e.style.left=i.x+"px",e.style.top=i.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,e){if(!t)return this;var i=Math.sin(t),r=Math.cos(t),n=e.x,s=e.y,a=this.x-n,o=this.y-s;return new L.Point(a*r-o*i+n,a*i+o*r+s)}});var e=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(e.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(e._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(t))}}});var i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var e=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(e))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,r=this._containerWidth,n=new L.Point(this._containerLeft,-i-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var s=n._add(this._map._getMapPanePos()),a=L.point(this.options.autoPanPadding),o=L.point(this.options.autoPanPaddingTopLeft||a),l=L.point(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,u=0;s.x+r+l.x>c.x&&(p=s.x+r-c.x+l.x),s.x-p-o.x<0&&(p=s.x-o.x),s.y+i+l.y>c.y&&(u=s.y+i-c.y+l.y),s.y-u-o.y<0&&(u=s.y-o.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,u]))}}});var r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,e){var i=this.options,r=i[e+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),s=L.point("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=s.x+"px "+s.y+"px 0px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}});var n=L.extend({},L.Marker.prototype);var s;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var a={_onDrag:function(t){var e=this._marker,i=e.options.rotation||e.options.rotateWithView,r=e._shadow,n=L.DomUtil.getPosition(e._icon);!i&&r&&L.DomUtil.setPosition(r,n),e._map._rotate&&(n=e._map.mapPanePointToRotatedPoint(n));var s=e._map.layerPointToLatLng(n);e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,i?e.setLatLng(s):e.fire("move",t),e.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),s._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(s=s||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:a._onDrag.bind(this.dragging),_onDragEnd:a._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var e=this.options.rotation||0;this.options.rotateWithView&&(e+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,e,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,e,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});var o=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=o.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):o._getTiledPixelBounds.apply(this,arguments)}});var l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(t,e){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(e,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,e,t);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return l._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});var c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,e){e.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);var e=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(e)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(e)),n=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(e)),s=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(e));return L.bounds([L.point(Math.min(i.x,r.x,s.x,n.x),Math.min(i.y,r.y,s.y,n.y)),L.point(Math.max(i.x,r.x,s.x,n.x),Math.max(i.y,r.y,s.y,n.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var e=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),n=r.rotateFrom(e,i);L.DomUtil.setPosition(this._rotatePane,r,e,i),this._pivot=i,this._bearing=e,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside:function(t,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);e=e||{};var i=L.point(e.paddingTopLeft||e.padding||[0,0]),r=L.point(e.paddingBottomRight||e.padding||[0,0]),n=this._container.getBoundingClientRect(),s=this.latLngToContainerPoint(t),a=L.bounds([L.point(n),L.point(n).add(this.getSize())]),o=a.getCenter(),l=L.bounds([a.min.add(i),a.max.subtract(r)]),p=l.getSize();if(!l.contains(s)){this._enforcingBounds=!0;var u=s.subtract(l.getCenter()),d=l.extend(s).getSize().subtract(p);o.x+=u.x<0?-d.x:d.x,o.y+=u.y<0?-d.y:d.y,this.panTo(this.containerPointToLatLng(o),e),this._enforcingBounds=!1}return this},getBoundsZoom:function(t,e,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),i=L.point(i||[0,0]);var r=this.getZoom()||0;var n=this.getMinZoom(),s=this.getMaxZoom(),a=this.getSize().subtract(i),o=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,p=a.x/o.x,u=a.y/o.y,d=e?Math.max(p,u):Math.min(p,u);return r=this.getScaleZoom(d,r),l&&(r=Math.round(r/(l/100))*(l/100),r=e?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(s,r))},_getCenterOffset:function(t){var e=c._getCenterOffset.apply(this,arguments);return this._rotate&&(e=e.rotate(this._bearing)),e},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,e){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(t,e).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,e){if(t=t||this.getCenter(),e=e||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,e),n=this.project(t,e).floor(),s=this.getSize(),a=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([s.x,0]).floor(),this.containerPointToLayerPoint([0,s.y]).floor(),this.containerPointToLayerPoint([s.x,s.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(a),n.add(a))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var e=t,i=this.getSize(),r=i.multiplyBy(-e),n=i.multiplyBy(1+e);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,r=t.coords.heading,n=new L.LatLng(e,i),s=n.toBounds(t.coords.accuracy),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(s);this.setView(n,a.maxZoom?Math.min(o,a.maxZoom):o)}var l={latlng:n,bounds:s,timestamp:t.timestamp,heading:r};for(var c in t.coords)"number"==typeof t.coords[c]&&(l[c]=t.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var e=t.webkitCompassHeading||t.alpha,i=0;!t.absolute&&t.webkitCompassHeading&&(e=360-e),t.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(e-i)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming&&!this._rotating){var i=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),n=i.subtract(r);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=e.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=e.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,e._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var e,i=this._map,r=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),s=r.subtract(n),a=r.distanceTo(n)/this._startDist;if(this._rotating){var o=(Math.atan(s.x/s.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;s.y<0&&(o+=180),o&&i.setBearing(this._startBearing-o)}if(this._zooming)if(this._zoom=i.getScaleZoom(a,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&a<1||this._zoom>i.getMaxZoom()&&a>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{if(e=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===a&&0===e.x&&0===e.y)return;var l=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(e.rotate(l)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var e=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),i=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");i.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",i.style.cursor="grab",i.style.display="block",i.style.width="100%",i.style.height="100%",i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",e);return r.appendChild(i),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(e.style.display="none"),e},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var e=t.clientX-this.dragstartX;this._map.setBearing(e)}},_cycleState:function(t){if(this._map){var e=this._map;e.touchRotate.enabled()||e.compassBearing.enabled()?e.compassBearing.enabled()?(e.compassBearing.disable(),e.setBearing(0),this.options.closeOnZeroBearing&&e.touchRotate.enable()):(e.touchRotate.disable(),e.compassBearing.enable()):e.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,e=t.getBearing();this._arrow.style.transform="rotate("+e+"deg)",e&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===e&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));var L_Control_Locate={exports:{}};
2
2
  /*!
3
3
  Copyright (c) 2016 Dominik Moritz
4
4
 
5
5
  This file is part of the leaflet locate control. It is licensed under the MIT license.
6
6
  You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
7
- */(function(t,e){(function(e,i){{if(typeof i!=="undefined"&&i.L){t.exports=e(L)}else{t.exports=e(leafletSrc.exports)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=e(L)}})((function(t){var e=function(e,i,r){r=r.split(" ");r.forEach((function(r){t.DomUtil[e].call(this,i,r)}))};var i=function(t,i){return e("addClass",t,i)};var r=function(t,i){return e("removeClass",t,i)};var n=t.Marker.extend({initialize:function(e,i){t.Util.setOptions(this,i);this._latlng=e;this.createIcon()},createIcon:function(){var e=this.options;var i="";if(e.color!==undefined){i+="stroke:".concat(e.color,";")}if(e.weight!==undefined){i+="stroke-width:".concat(e.weight,";")}if(e.fillColor!==undefined){i+="fill:".concat(e.fillColor,";")}if(e.fillOpacity!==undefined){i+="fill-opacity:".concat(e.fillOpacity,";")}if(e.opacity!==undefined){i+="opacity:".concat(e.opacity,";")}var r=this._getIconSVG(e,i);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(t,e){var i=t.radius;var r=t.weight;var n=i+r;var s=n*2;var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(s,'" height="').concat(s,'" version="1.1" viewBox="-').concat(n," -").concat(n," ").concat(s," ").concat(s,'">')+'<circle r="'+i+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:a,w:s,h:s}},setStyle:function(e){t.Util.setOptions(this,e);this.createIcon()}});var s=n.extend({initialize:function(e,i,r){t.Util.setOptions(this,r);this._latlng=e;this._heading=i;this.createIcon()},setHeading:function(t){this._heading=t},_getIconSVG:function(t,e){var i=t.radius;var r=t.width+t.weight;var n=(i+t.depth+t.weight)*2;var s="M0,0 l".concat(t.width/2,",").concat(t.depth," l-").concat(r,",0 z");var a="transform: rotate(".concat(this._heading,"deg)");var o='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r,'" height="').concat(n,'" version="1.1" viewBox="-').concat(r/2," 0 ").concat(r," ").concat(n,'" style="').concat(a,'">')+'<path d="'+s+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:o,w:r,h:n}}});var a=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:s,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback:function(e,i){var r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=t.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var s=t.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);s.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError:function(t,e){alert(t.message)},onLocationOutsideMapBounds:function(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize:function(e){for(var i in e){if(typeof this.options[i]==="object"){t.extend(this.options[i],e[i])}else{this.options[i]=e[i]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(e){var i=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=e;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(e);this._event=undefined;this._compassHeading=null;this._prevBounds=null;var r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(e){t.DomEvent.stopPropagation(e);t.DomEvent.preventDefault(e);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var e=this.options.clickBehavior;var i=e.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=t?e.inView:e.inViewNotFollowing}if(e[i]){i=e[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){var r=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;r.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start:function(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop:function(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing:function(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate:function(){if(this._active||!this._map){return}this._map.locate(this.options.locateOptions);this._map.fire("locateactivate",this);this._active=true;this._map.on("locationfound",this._onLocationFound,this);this._map.on("locationerror",this._onLocationError,this);this._map.on("dragstart",this._onDrag,this);this._map.on("zoomstart",this._onZoom,this);this._map.on("zoomend",this._onZoomEnd,this);if(this.options.showCompass){var e="ondeviceorientationabsolute"in window;if(e||"ondeviceorientation"in window){var i=this;var r=function(){t.DomEvent.on(window,e?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate:function(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView:function(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var e=this.options.flyTo?this._map.flyTo:this._map.setView;e.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var e=this.options.flyTo?this._map.flyTo:this._map.panTo;e.bind(this._map)([this._event.latitude,this._event.longitude])}else{var e=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;e.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){var e=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,e).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(e)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker:function(){if(this._event.accuracy===undefined){this._event.accuracy=0}var e=this._event.accuracy;var i=this._event.latlng;if(this.options.drawCircle){var r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(i,e,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(e).setStyle(r)}}var n;var s;if(this.options.metric){n=e.toFixed(0);s=this.options.strings.metersUnit}else{n=(e*3.2808399).toFixed(0);s=this.options.strings.feetUnit}if(this.options.drawMarker){var a=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,a).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(a)}}}this._drawCompass();var o=this.options.strings.popup;function l(){if(typeof o==="string"){return t.Util.template(o,{distance:n,unit:s})}else if(typeof o==="function"){return o({distance:n,unit:s})}else{return o}}if(this.options.showPopup&&o&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&o&&this._compass){this._compass.bindPopup(l())._popup.setLatLng(i)}},_removeMarker:function(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload:function(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading:function(e){if(!isNaN(parseFloat(e))&&isFinite(e)){e=Math.round(e);this._compassHeading=e;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError:function(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound:function(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag:function(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom:function(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd:function(){if(this._event){this._drawCompass()}if(this._event&&!this._ignoreEvent){if(this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}}},_isFollowing:function(){if(!this._active){return false}if(this.options.setView==="always"){return true}else if(this.options.setView==="untilPan"){return!this._userPanned}else if(this.options.setView==="untilPanOrZoom"){return!this._userPanned&&!this._userZoomed}},_isOutsideMapBounds:function(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){if(!this._container){return}if(this._active&&!this._event){this._setClasses("requesting")}else if(this._isFollowing()){this._setClasses("following")}else if(this._active){this._setClasses("active")}else{this._cleanClasses()}},_setClasses:function(t){if(t=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables:function(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=function(e){return new t.Control.Locate(e)};return a}),window)})(L_Control_Locate);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 n(t){var n=Math.floor(t/r),s=Math.floor((t-n*r)/i),a=Math.floor((t-n*r-s*i)/e),o=Math.round((t-n*r-s*i-a*e)/1e3);return 60===o&&(a++,o=0),60===a&&(s++,a=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+a.toString().padStart(2,0)+"'"+o.toString().padStart(2,0)+'"'}function s(t,e){var i=g("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function a(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 o(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 l(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function c(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function p(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function u(t,e,i){return(i?c:p).call(null,t,e)}function d(t,e,i){e&&p(t,e),i&&c(t,i)}function h(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function f(t,e,i,r){return h(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function g(t,e,i,r){var n=L.DomUtil.create(t,e||"");return i&&b(n,i),r&&v(r,n),n}function v(t,e){return t.appendChild(e)}function w(t,e,i){return t.insertAdjacentElement(i,e)}function b(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var x=L.DomEvent.on,y=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function z(t,e){for(var i in t)e(t[i],i)}var C=Object.freeze({__proto__:null,formatTime:n,saveFile:s,lazyLoader:a,drawCanvas:o,clamp:l,addClass:c,removeClass:p,toggleClass:u,replaceClass:d,style:h,toggleStyle:f,toggleEvent:m,create:g,append:v,insert:w,setAttributes:b,select:k,on:x,off:y,hasClass:A,randomId:_,each:z}),M={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},O=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,n=t.scaleX,s=t.scaleY,a=t.interpolation,o=void 0===a?"curveLinear":a;return d3.area().curve("string"==typeof o?d3[o]:o).x((function(t){return t.xDiagCoord=n(t[i])})).y0(e).y1((function(t){return s(t[r])}))},S=function(t){var e=t.name,i=t.color,r=t.strokeColor,n=t.strokeOpacity,s=t.fillOpacity,a=d3.create("svg:path");return e&&a.classed(e,!0),a.style("pointer-events","none"),a.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",s||"0.8"),a},P=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,n=void 0===r?6:r,s=t.tickPadding,a=void 0===s?3:s,o=t.position,l=t.height,c=t.width,p=t.axis,u=t.scale,d=t.ticks,h=t.tickFormat,f=t.label,m=t.labelX,g=t.labelY,v=t.name,w=void 0===v?"":v,b=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==o&&(r=l),"right"==o&&(e=c),"x"==p&&"grid"==i?n=-l:"y"==p&&"grid"==i&&(n=-c);var s=d3["axis"+o.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(u).ticks(d).tickPadding(a).tickSize(n).tickFormat(h),v=t.append("g").attr("class",[p,i,o,w].join(" ")).attr("transform","translate("+e+","+r+")").call(s);return f&&v.append("svg:text").attr("x",m).attr("y",g).text(f),b&&v.call(b),v}},F=function(t){return t.type="grid",P(t)},T=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,n=t.yCoord,s=void 0===n?0:n,a=t.labels,o=void 0===a?{}:a,l=t.item,c=void 0===l?{}:l,p=t.length,u=void 0===p?0:p;return function(t){t.attr("class","height-focus-group");var i,n=t.select(".height-focus.line"),a=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),a.node()||(a=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(r)||isNaN(s)||(a.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+s+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",s).attr("y2",u),l.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(i=l.select(".height-focus-"+o[t].name)).size()||(i=l.append("svg:tspan").attr("class","height-focus-"+o[t].name).attr("dy","1.5em")),i.text("function"!=typeof o[t].value?o[t].value:o[t].value(c))})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",r+5)),t}},E=function(t){var e=t.name,i=t.label,r=t.width,n=t.height,s=t.margins,a=void 0===s?{}:s,o=t.color,l=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:l.node(),name:e,legend:t.node(),enabled:!l.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",n+a.bottom/2).attr("width",50).attr("height",10).attr("fill",o).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+a.bottom/2).attr("dy","0.75em"),t}},B=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,n=t.height,s=t.labels,a=void 0===s?{}:s,o=t.item,l=void 0===o?{}:o;return function(t){var s=t.select(".mouse-focus-line"),o=t.select(".mouse-focus-label");s.node()||(s=t.append("svg:line")),o.node()||(o=t.append("g"));var c=o.select(".mouse-focus-label-rect"),p=o.select(".mouse-focus-label-text");c.node()||(c=o.append("svg:rect")),p.node()||(p=o.append("svg:text"));var u,d=0,h=0,f={width:0,height:0};try{f=p.node().getBBox()}catch(e){return t}return e&&(d=e+(e<r/2?10:-f.width-10)),i&&(h=Math.max(i-f.height,L.Browser.webkit?0:-1/0)),s.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",n),o.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",d-5).attr("y",h-5).attr("width",f.width+10).attr("height",f.height+10).attr("rx",3).attr("ry",3),p.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",h),Object.keys(a).sort((function(t,e){return a[t].order-a[e].order})).forEach((function(t){(u=p.select(".mouse-focus-label-"+a[t].name)).size()||(u=p.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+a[t].name).attr("dy","1.5em")),u.text("function"!=typeof a[t].value?a[t].value:a[t].value(l))})),p.select("tspan").attr("dy","1em"),p.selectAll("tspan").attr("x",d),t}},I=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),n=t.selectAll(".horizontal-drag-line").data([{w:i}]),s=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),a=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),n.exit().remove(),s.exit().remove(),a.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),s.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(s).attr("x",(function(t){return t.w})),a.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(a).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}},D=function(t){var e=t.point,i=t.height,r=t.width,n=t.x,s=t.y;return function(t){return isNaN(n)||isNaN(s)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:s}).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:-s,bottom:i-s}[e.position],x2:{left:-n,right:r-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},G=function(t){var e=t.min,i=t.max,r=t.attr,n=t.name,s=t.forceBounds,a=t.scale;return function(t){r=r||n,a&&a.attr&&(r=a.attr);var o=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<o[0]||s)&&(o[0]=e),void 0!==i&&(i>o[1]||s)&&(o[1]=i),o}},j=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},Y=function(t){var e=t.data,i=t.attr,r=t.min,n=t.max,s=t.forceBounds,a=t.range;return d3.scaleLinear().range(a).domain(G({min:r,max:n,attr:i,forceBounds:s})(e))},N=function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,s=e-n.left-n.right,a=i-n.top-n.bottom,o=d3.create("svg:svg").attr("class","background"),l=o.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},p=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=p.append("svg:rect").attr("class","zoom").attr("fill","white"),d=c.area.append("svg:foreignObject").attr("mask","url(#"+p.attr("id")+")"),h=d.append("xhtml:canvas").attr("class","canvas-plot"),f=h.node().getContext("2d");c.tooltip.call(B({xCoord:0,yCoord:0,height:a,width:s,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),g={mask:p,canvas:h,context:f,brush:m},v={svg:o,g:l,panes:c,utils:g,scale:function(t){return{x:Y(t.x),y:Y(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,s=t.ruler,a=e-n.left-n.right,p=i-n.top-n.bottom;o.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),l.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&h.style("transform","translate("+n.left+"px,"+n.top+"px)"),u.attr("x",0).attr("y",0).attr("width",a).attr("height",p),d.attr("width",a).attr("height",p),h.attr("width",a).attr("height",p),s&&c.ruler.call(I({height:p,width:a})),c.brush.call(m.extent([[0,0],[a,p]])),c.brush.select(".overlay").attr("cursor",null),v._width=a,v._height=p,v.svg.dispatch("resize",{detail:{width:a,height:p}})},pane:function(t){return c[t]||(c[t]=l.append("g").attr("class",t)),c[t]},get:function(t){return g[t]}};return v._resize({width:e,height:i,margins:n}),v},R=Object.freeze({__proto__:null,Colors:M,Area:O,Path:S,Axis:P,Grid:F,PositionMarker:T,LegendItem:E,Tooltip:B,Ruler:I,CheckPoint:D,Domain:G,Range:j,Scale:Y,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,n=t.x,s=t.attr;return d3.bisector((function(t){return t[s]})).left(i,r.invert(n))},Chart:N}),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=N(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",O(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?o(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],n=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:n,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),n=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[n]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,n=i.legend,s=i.name,a=i.enabled;if(r){var o=k("text",n),l=k("rect",n);f(o,"text-decoration-line","line-through",a),f(l,"fill-opacity","0",a),u(r,"leaflet-hidden",a),t._updateArea(),t.fire("elepath_toggle",{path:r,name:s,legend:n,enabled:a})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),n=t._ruler.data()[0].y;(n>=r||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var n=t._height(),s=d3.pointers(i,t._area.node())[0][1],a=s>0?s<n?s:n:0,o=t._y.invert(a),l=L.extend(t._ruler.data()[0],{y:a});t._ruler.data([l]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",a<n),t._container.select(".horizontal-drag-label").text(e(o)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:s<n&&s>0?t._findCoordsForY(s):[]})})),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=S(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]=G(t),n=this._ranges[t.name]=j(t);i.range=i.range||n(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=Y(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(D({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,n=this._props.grids,s=this._props.axes,a={width:this._width(),height:this._height(),tickFormat:""},o={width:this._width(),height:this._height()};for(var l in n)e=L.extend({},a,n[l]),r=F(e),this._grid.call(r);for(var c in s)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},o,s[c]),i=P(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),n=r.attr("transform"),s=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");r.attr("transform","translate("+(+s[0]+40*e)+","+s[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],n=t._data[t._maskGaps[i+1]],s=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),a=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",s).attr("y",0).attr("width",a-s).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 n=this._legend.selectAll(".legend-item"),s=n.nodes().length,a=Array(Math.floor(s/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(s%2))})),o=a.slice().reverse().map((function(t){return-t}));s%2!=0&&o.push(0),a=o.concat(a);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,p=30*s;s&&this.options.margins.right<p&&(this.options.margins.right=p,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),n.each((function(e,i,r){var n=d3.select(r[i]),s=(n.select("rect"),n.attr("data-name")),o=t._paths[s],c=55*a[i],p=2*l;n.attr("transform","translate("+c+", "+p+")"),s in t.options&&"disabled"==t.options[s]&&(o.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&o.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),n=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),s=0;return n.reduce((function(t,r,a){return n[e=a+1]===n[a]+1&&e!==n.length||(t.push(n.slice(s,e).map((function(t){return i[t].latlng}))),s=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,n){var s=t.distanceTo(r.latlng);s<i&&(i=s,e=n)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(B({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 Z(t){return(Z="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 U,q=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(T({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(T({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":p(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":c(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={},h(this._container=g("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]}}}),$={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},V=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:$,__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||w(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(){h(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=$.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=$.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(M,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":Z(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":Z(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==Z(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]=a(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=g("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),y(t.getContainer(),"mousewheel",this._resetDrag,this),y(t.getContainer(),"touchstart",this._resetDrag,this),y(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){h(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":z(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&z(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var n,s,a,o,l;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:c,id:r}),i._addPoint(null!==(s=t.lat)&&void 0!==s?s:t[1],null!==(a=t.lng)&&void 0!==a?a:t[0],null!==(o=null!==(l=t.alt)&&void 0!==l?l:t.meta.ele)&&void 0!==o?o: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=g("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var n=e.options.theme.replace("-theme",""),s=M[n]||{},a=r.options;if(a.color=s.line||s.area||n,a.stroke=!!a.color,t.call(this,i,r),a.stroke&&0!==a.weight){var o=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=s.outline||"#FFF",i.lineWidth=1.75*a.weight,i.stroke(),i.globalCompositeOperation=o}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,n=i.offsetHeight;r>0&&(e.width=r),n>20&&(e.height=n-20)}else{var s=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>s&&(e.width=s-30)}var a=this._chart=new H(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(a.render()),a.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 q(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=g("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new 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,n=i.wptLabels,s=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 s,a,o;if(e.options.waypoints){var l=t.properties,c=null!==(s=l.desc)&&void 0!==s?s:"",p=null!==(a=l.name)&&void 0!==a?a:"",u=(null!==(o=l.sym)&&void 0!==o?o:p).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(n)?p:""}),[!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 d=L.marker(i,{icon:r[u]});if([!0,"markers"].includes(n)&&(p||c)){var h=decodeURI("<b>"+p+"</b>"+(c.length>0?"<br>"+c:""));d.bindPopup(h,{className:"elevation-popup",keepInView:!0}).openPopup(),d.bindTooltip(h,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(d),e.fire("waypoint_added",{point:d,element:i,properties:l}),d}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,s),e._fireEvt("eledata_loaded",{data:t,layer:s,name:e.track_info.name,track_info:e.track_info})})),s},_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&&c(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&&p(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var s=toGeoJSON[r](i);return s.name=n.length>0?(null!==(e=Array.from(n).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",s},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var n=e._data[r.index][t.name];if(r.index>0){var s=e._data[r.index-1][t.name];if(isNaN(s)){if(isNaN(i)||isNaN(n)?isNaN(i)?isNaN(n)||(s=n):s=i:s=(i+n)/2,!isNaN(s))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=s}}isNaN(n)||(i=n)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=h(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return 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(){
7
+ */(function(t,e){(function(e,i){{if(typeof i!=="undefined"&&i.L){t.exports=e(L)}else{t.exports=e(leafletSrc.exports)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=e(L)}})((function(t){var e=function(e,i,r){r=r.split(" ");r.forEach((function(r){t.DomUtil[e].call(this,i,r)}))};var i=function(t,i){return e("addClass",t,i)};var r=function(t,i){return e("removeClass",t,i)};var n=t.Marker.extend({initialize:function(e,i){t.Util.setOptions(this,i);this._latlng=e;this.createIcon()},createIcon:function(){var e=this.options;var i="";if(e.color!==undefined){i+="stroke:".concat(e.color,";")}if(e.weight!==undefined){i+="stroke-width:".concat(e.weight,";")}if(e.fillColor!==undefined){i+="fill:".concat(e.fillColor,";")}if(e.fillOpacity!==undefined){i+="fill-opacity:".concat(e.fillOpacity,";")}if(e.opacity!==undefined){i+="opacity:".concat(e.opacity,";")}var r=this._getIconSVG(e,i);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(t,e){var i=t.radius;var r=t.weight;var n=i+r;var s=n*2;var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(s,'" height="').concat(s,'" version="1.1" viewBox="-').concat(n," -").concat(n," ").concat(s," ").concat(s,'">')+'<circle r="'+i+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:a,w:s,h:s}},setStyle:function(e){t.Util.setOptions(this,e);this.createIcon()}});var s=n.extend({initialize:function(e,i,r){t.Util.setOptions(this,r);this._latlng=e;this._heading=i;this.createIcon()},setHeading:function(t){this._heading=t},_getIconSVG:function(t,e){var i=t.radius;var r=t.width+t.weight;var n=(i+t.depth+t.weight)*2;var s="M0,0 l".concat(t.width/2,",").concat(t.depth," l-").concat(r,",0 z");var a="transform: rotate(".concat(this._heading,"deg)");var o='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r,'" height="').concat(n,'" version="1.1" viewBox="-').concat(r/2," 0 ").concat(r," ").concat(n,'" style="').concat(a,'">')+'<path d="'+s+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:o,w:r,h:n}}});var a=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:s,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback:function(e,i){var r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=t.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var s=t.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);s.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError:function(t,e){alert(t.message)},onLocationOutsideMapBounds:function(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize:function(e){for(var i in e){if(typeof this.options[i]==="object"){t.extend(this.options[i],e[i])}else{this.options[i]=e[i]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(e){var i=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=e;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(e);this._event=undefined;this._compassHeading=null;this._prevBounds=null;var r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(e){t.DomEvent.stopPropagation(e);t.DomEvent.preventDefault(e);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var e=this.options.clickBehavior;var i=e.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=t?e.inView:e.inViewNotFollowing}if(e[i]){i=e[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){var r=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;r.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start:function(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop:function(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing:function(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate:function(){if(this._active||!this._map){return}this._map.locate(this.options.locateOptions);this._map.fire("locateactivate",this);this._active=true;this._map.on("locationfound",this._onLocationFound,this);this._map.on("locationerror",this._onLocationError,this);this._map.on("dragstart",this._onDrag,this);this._map.on("zoomstart",this._onZoom,this);this._map.on("zoomend",this._onZoomEnd,this);if(this.options.showCompass){var e="ondeviceorientationabsolute"in window;if(e||"ondeviceorientation"in window){var i=this;var r=function(){t.DomEvent.on(window,e?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate:function(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView:function(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var e=this.options.flyTo?this._map.flyTo:this._map.setView;e.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var e=this.options.flyTo?this._map.flyTo:this._map.panTo;e.bind(this._map)([this._event.latitude,this._event.longitude])}else{var e=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;e.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){var e=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,e).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(e)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker:function(){if(this._event.accuracy===undefined){this._event.accuracy=0}var e=this._event.accuracy;var i=this._event.latlng;if(this.options.drawCircle){var r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(i,e,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(e).setStyle(r)}}var n;var s;if(this.options.metric){n=e.toFixed(0);s=this.options.strings.metersUnit}else{n=(e*3.2808399).toFixed(0);s=this.options.strings.feetUnit}if(this.options.drawMarker){var a=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,a).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(a)}}}this._drawCompass();var o=this.options.strings.popup;function l(){if(typeof o==="string"){return t.Util.template(o,{distance:n,unit:s})}else if(typeof o==="function"){return o({distance:n,unit:s})}else{return o}}if(this.options.showPopup&&o&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&o&&this._compass){this._compass.bindPopup(l())._popup.setLatLng(i)}},_removeMarker:function(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload:function(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading:function(e){if(!isNaN(parseFloat(e))&&isFinite(e)){e=Math.round(e);this._compassHeading=e;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError:function(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound:function(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag:function(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom:function(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd:function(){if(this._event){this._drawCompass()}if(this._event&&!this._ignoreEvent){if(this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}}},_isFollowing:function(){if(!this._active){return false}if(this.options.setView==="always"){return true}else if(this.options.setView==="untilPan"){return!this._userPanned}else if(this.options.setView==="untilPanOrZoom"){return!this._userPanned&&!this._userZoomed}},_isOutsideMapBounds:function(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){if(!this._container){return}if(this._active&&!this._event){this._setClasses("requesting")}else if(this._isFollowing()){this._setClasses("following")}else if(this._active){this._setClasses("active")}else{this._cleanClasses()}},_setClasses:function(t){if(t=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables:function(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=function(e){return new t.Control.Locate(e)};return a}),window)})(L_Control_Locate);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 n(t){var n=Math.floor(t/r),s=Math.floor((t-n*r)/i),a=Math.floor((t-n*r-s*i)/e),o=Math.round((t-n*r-s*i-a*e)/1e3);return 60===o&&(a++,o=0),60===a&&(s++,a=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+a.toString().padStart(2,0)+"'"+o.toString().padStart(2,0)+'"'}function s(t,e){var i=g("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function a(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 o(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 l(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function c(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function p(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function u(t,e,i){return(i?c:p).call(null,t,e)}function d(t,e,i){e&&p(t,e),i&&c(t,i)}function h(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function f(t,e,i,r){return h(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function g(t,e,i,r){var n=L.DomUtil.create(t,e||"");return i&&b(n,i),r&&v(r,n),n}function v(t,e){return t.appendChild(e)}function w(t,e,i){return t.insertAdjacentElement(i,e)}function b(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var x=L.DomEvent.on,y=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function z(t,e){for(var i in t)e(t[i],i)}var C=Object.freeze({__proto__:null,formatTime:n,saveFile:s,lazyLoader:a,drawCanvas:o,clamp:l,addClass:c,removeClass:p,toggleClass:u,replaceClass:d,style:h,toggleStyle:f,toggleEvent:m,create:g,append:v,insert:w,setAttributes:b,select:k,on:x,off:y,hasClass:A,randomId:_,each:z}),M={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},O=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,n=t.scaleX,s=t.scaleY,a=t.interpolation,o=void 0===a?"curveLinear":a;return d3.area().curve("string"==typeof o?d3[o]:o).x((function(t){return t.xDiagCoord=n(t[i])})).y0(e).y1((function(t){return s(t[r])}))},S=function(t){var e=t.name,i=t.color,r=t.strokeColor,n=t.strokeOpacity,s=t.fillOpacity,a=d3.create("svg:path");return e&&a.classed(e,!0),a.style("pointer-events","none"),a.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",s||"0.8"),a},P=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,n=void 0===r?6:r,s=t.tickPadding,a=void 0===s?3:s,o=t.position,l=t.height,c=t.width,p=t.axis,u=t.scale,d=t.ticks,h=t.tickFormat,f=t.label,m=t.labelX,g=t.labelY,v=t.name,w=void 0===v?"":v,b=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==o&&(r=l),"right"==o&&(e=c),"x"==p&&"grid"==i?n=-l:"y"==p&&"grid"==i&&(n=-c);var s=d3["axis"+o.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(u).ticks(d).tickPadding(a).tickSize(n).tickFormat(h),v=t.append("g").attr("class",[p,i,o,w].join(" ")).attr("transform","translate("+e+","+r+")").call(s);return f&&v.append("svg:text").attr("x",m).attr("y",g).text(f),b&&v.call(b),v}},F=function(t){return t.type="grid",P(t)},T=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,n=t.yCoord,s=void 0===n?0:n,a=t.labels,o=void 0===a?{}:a,l=t.item,c=void 0===l?{}:l,p=t.length,u=void 0===p?0:p;return function(t){t.attr("class","height-focus-group");var i,n=t.select(".height-focus.line"),a=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),a.node()||(a=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(r)||isNaN(s)||(a.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+s+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",s).attr("y2",u),l.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(i=l.select(".height-focus-"+o[t].name)).size()||(i=l.append("svg:tspan").attr("class","height-focus-"+o[t].name).attr("dy","1.5em")),i.text("function"!=typeof o[t].value?o[t].value:o[t].value(c))})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",r+5)),t}},E=function(t){var e=t.name,i=t.label,r=t.width,n=t.height,s=t.margins,a=void 0===s?{}:s,o=t.color,l=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:l.node(),name:e,legend:t.node(),enabled:!l.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",n+a.bottom/2).attr("width",50).attr("height",10).attr("fill",o).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+a.bottom/2).attr("dy","0.75em"),t}},B=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,n=t.height,s=t.labels,a=void 0===s?{}:s,o=t.item,l=void 0===o?{}:o;return function(t){var s=t.select(".mouse-focus-line"),o=t.select(".mouse-focus-label");s.node()||(s=t.append("svg:line")),o.node()||(o=t.append("g"));var c=o.select(".mouse-focus-label-rect"),p=o.select(".mouse-focus-label-text");c.node()||(c=o.append("svg:rect")),p.node()||(p=o.append("svg:text"));var u,d=0,h=0,f={width:0,height:0};try{f=p.node().getBBox()}catch(e){return t}return e&&(d=e+(e<r/2?10:-f.width-10)),i&&(h=Math.max(i-f.height,L.Browser.webkit?0:-1/0)),s.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",n),o.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",d-5).attr("y",h-5).attr("width",f.width+10).attr("height",f.height+10).attr("rx",3).attr("ry",3),p.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",h),Object.keys(a).sort((function(t,e){return a[t].order-a[e].order})).forEach((function(t){(u=p.select(".mouse-focus-label-"+a[t].name)).size()||(u=p.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+a[t].name).attr("dy","1.5em")),u.text("function"!=typeof a[t].value?a[t].value:a[t].value(l))})),p.select("tspan").attr("dy","1em"),p.selectAll("tspan").attr("x",d),t}},I=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),n=t.selectAll(".horizontal-drag-line").data([{w:i}]),s=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),a=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),n.exit().remove(),s.exit().remove(),a.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),s.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(s).attr("x",(function(t){return t.w})),a.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(a).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}},D=function(t){var e=t.point,i=t.height,r=t.width,n=t.x,s=t.y;return function(t){return isNaN(n)||isNaN(s)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:s}).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:-s,bottom:i-s}[e.position],x2:{left:-n,right:r-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},G=function(t){var e=t.min,i=t.max,r=t.attr,n=t.name,s=t.forceBounds,a=t.scale;return function(t){r=r||n,a&&a.attr&&(r=a.attr);var o=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<o[0]||s)&&(o[0]=e),void 0!==i&&(i>o[1]||s)&&(o[1]=i),o}},j=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},Y=function(t){var e=t.data,i=t.attr,r=t.min,n=t.max,s=t.forceBounds,a=t.range;return d3.scaleLinear().range(a).domain(G({min:r,max:n,attr:i,forceBounds:s})(e))},N=function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,s=e-n.left-n.right,a=i-n.top-n.bottom,o=d3.create("svg:svg").attr("class","background"),l=o.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},p=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=p.append("svg:rect").attr("class","zoom").attr("fill","white"),d=c.area.append("svg:foreignObject").attr("mask","url(#"+p.attr("id")+")"),h=d.append("xhtml:canvas").attr("class","canvas-plot"),f=h.node().getContext("2d");c.tooltip.call(B({xCoord:0,yCoord:0,height:a,width:s,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),g={mask:p,canvas:h,context:f,brush:m},v={svg:o,g:l,panes:c,utils:g,scale:function(t){return{x:Y(t.x),y:Y(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,s=t.ruler,a=e-n.left-n.right,p=i-n.top-n.bottom;o.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),l.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&h.style("transform","translate("+n.left+"px,"+n.top+"px)"),u.attr("x",0).attr("y",0).attr("width",a).attr("height",p),d.attr("width",a).attr("height",p),h.attr("width",a).attr("height",p),s&&c.ruler.call(I({height:p,width:a})),c.brush.call(m.extent([[0,0],[a,p]])),c.brush.select(".overlay").attr("cursor",null),v._width=a,v._height=p,v.svg.dispatch("resize",{detail:{width:a,height:p}})},pane:function(t){return c[t]||(c[t]=l.append("g").attr("class",t)),c[t]},get:function(t){return g[t]}};return v._resize({width:e,height:i,margins:n}),v},R=Object.freeze({__proto__:null,Colors:M,Area:O,Path:S,Axis:P,Grid:F,PositionMarker:T,LegendItem:E,Tooltip:B,Ruler:I,CheckPoint:D,Domain:G,Range:j,Scale:Y,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,n=t.x,s=t.attr;return d3.bisector((function(t){return t[s]})).left(i,r.invert(n))},Chart:N}),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=N(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",O(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?o(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],n=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:n,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),n=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[n]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,n=i.legend,s=i.name,a=i.enabled;if(r){var o=k("text",n),l=k("rect",n);f(o,"text-decoration-line","line-through",a),f(l,"fill-opacity","0",a),u(r,"leaflet-hidden",a),t._updateArea(),t.fire("elepath_toggle",{path:r,name:s,legend:n,enabled:a})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),n=t._ruler.data()[0].y;(n>=r||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var n=t._height(),s=d3.pointers(i,t._area.node())[0][1],a=s>0?s<n?s:n:0,o=t._y.invert(a),l=L.extend(t._ruler.data()[0],{y:a});t._ruler.data([l]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",a<n),t._container.select(".horizontal-drag-label").text(e(o)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:s<n&&s>0?t._findCoordsForY(s):[]})})),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=S(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]=G(t),n=this._ranges[t.name]=j(t);i.range=i.range||n(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=Y(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(D({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,n=this._props.grids,s=this._props.axes,a={width:this._width(),height:this._height(),tickFormat:""},o={width:this._width(),height:this._height()};for(var l in n)e=L.extend({},a,n[l]),r=F(e),this._grid.call(r);for(var c in s)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},o,s[c]),i=P(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),n=r.attr("transform"),s=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");r.attr("transform","translate("+(+s[0]+40*e)+","+s[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],n=t._data[t._maskGaps[i+1]],s=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),a=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",s).attr("y",0).attr("width",a-s).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 n=this._legend.selectAll(".legend-item"),s=n.nodes().length,a=Array(Math.floor(s/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(s%2))})),o=a.slice().reverse().map((function(t){return-t}));s%2!=0&&o.push(0),a=o.concat(a);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,p=30*s;s&&this.options.margins.right<p&&(this.options.margins.right=p,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),n.each((function(e,i,r){var n=d3.select(r[i]),s=(n.select("rect"),n.attr("data-name")),o=t._paths[s],c=55*a[i],p=2*l;n.attr("transform","translate("+c+", "+p+")"),s in t.options&&"disabled"==t.options[s]&&(o.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&o.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),n=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),s=0;return n.reduce((function(t,r,a){return n[e=a+1]===n[a]+1&&e!==n.length||(t.push(n.slice(s,e).map((function(t){return i[t].latlng}))),s=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,n){var s=t.distanceTo(r.latlng);s<i&&(i=s,e=n)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(B({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 Z(t){return(Z="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 U,q=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(T({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(T({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":p(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":c(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={},h(this._container=g("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},$=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||w(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(){h(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(M,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":Z(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":Z(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==Z(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]=a(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=g("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),y(t.getContainer(),"mousewheel",this._resetDrag,this),y(t.getContainer(),"touchstart",this._resetDrag,this),y(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){h(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":z(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&z(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var n,s,a,o,l;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:c,id:r}),i._addPoint(null!==(s=t.lat)&&void 0!==s?s:t[1],null!==(a=t.lng)&&void 0!==a?a:t[0],null!==(o=null!==(l=t.alt)&&void 0!==l?l:t.meta.ele)&&void 0!==o?o: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=g("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var n=e.options.theme.replace("-theme",""),s=M[n]||{},a=r.options;if(a.color=s.line||s.area||n,a.stroke=!!a.color,t.call(this,i,r),a.stroke&&0!==a.weight){var o=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=s.outline||"#FFF",i.lineWidth=1.75*a.weight,i.stroke(),i.globalCompositeOperation=o}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,n=i.offsetHeight;r>0&&(e.width=r),n>20&&(e.height=n-20)}else{var s=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>s&&(e.width=s-30)}var a=this._chart=new H(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(a.render()),a.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 q(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=g("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new 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,n=i.wptLabels,s=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 s,a,o;if(e.options.waypoints){var l=t.properties,c=null!==(s=l.desc)&&void 0!==s?s:"",p=null!==(a=l.name)&&void 0!==a?a:"",u=(null!==(o=l.sym)&&void 0!==o?o:p).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(n)?p:""}),[!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 d=L.marker(i,{icon:r[u]});if([!0,"markers"].includes(n)&&(p||c)){var h=decodeURI("<b>"+p+"</b>"+(c.length>0?"<br>"+c:""));d.bindPopup(h,{className:"elevation-popup",keepInView:!0}).openPopup(),d.bindTooltip(h,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(d),e.fire("waypoint_added",{point:d,element:i,properties:l}),d}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,s),e._fireEvt("eledata_loaded",{data:t,layer:s,name:e.track_info.name,track_info:e.track_info})})),s},_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&&c(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&&p(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var s=toGeoJSON[r](i);return s.name=n.length>0?(null!==(e=Array.from(n).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",s},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var n=e._data[r.index][t.name];if(r.index>0){var s=e._data[r.index-1][t.name];if(isNaN(s)){if(isNaN(i)||isNaN(n)?isNaN(i)?isNaN(n)||(s=n):s=i:s=(i+n)/2,!isNaN(s))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=s}}isNaN(n)||(i=n)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=h(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return 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(){
8
8
  /*!this._data.length ||*/
9
- 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:s.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)}});V.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}})})),V.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return n(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===Z(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+n)}else e.meta.time=new Date(Date.now());var s=e.meta.time;return s.getTime()-60*s.getTimezoneOffset()*1e3==0&&(s=0),s},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+n(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return n(t.time||0)},order:20}}))})),V.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),n=M[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,n=t.track_info;if(t.options.altitudeDeltaMax){var s=e-r[i>0?i-1:i].z,a=t.options.altitudeDeltaMax;Math.abs(s)>a&&(e=r[i-1].z+a*Math.sign(s))}return(e=l(e,t.options.altitudeRange))>n.elevation_max&&(n.elevation_max=e),e<n.elevation_min&&(n.elevation_min=e),n.elevation_avg=(e+n.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||r,strokeColor:e.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?n.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+"&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}})})),V.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),n=i[e].z-i[e>0?e-1:e].z;return isNaN(n)||0===r?0:n/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,n=t._data,s=n[i].z-n[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var a=slop-n[i>0?i-1:i].slope,o=t.options.slopeDeltaMax;Math.abs(a)>o&&(e=n[i-1].slope+o*Math.sign(a))}return e=l(e,t.options.slopeRange),s>0?t.track_info.ascent+=s:s<0&&(t.track_info.descent-=s),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}})}})),V.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,n=1e3*(r[i].dist-r[i>0?i-1:i].dist),s=r[i].time-r[i>0?i-1:i].time;return s>0?Math.abs(n/s*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,n=t.track_info;if(t.options.speedDeltaMax){var s=e-r[i>0?i-1:i].speed,a=t.options.speedDeltaMax;Math.abs(s)>a&&(e=r[i-1].speed+a*Math.sign(s))}return(e=l(e,t.options.speedRange))>n.speed_max&&(n.speed_max=e),e<n.speed_min&&(n.speed_min=e),n.speed_avg=(e+n.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+"&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}}))}})),V.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),s=(r[i].time-r[i>0?i-1:i].time)/1e3;return s>0?Math.abs(n/s)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,n=t.track_info;if(t.options.accelerationDeltaMax){var s=e-r[i>0?i-1:i].acceleration,a=t.options.accelerationDeltaMax;Math.abs(s)>a&&(e=r[i-1].acceleration+a*Math.sign(s))}return(e=l(e,t.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=e),e<n.acceleration_min&&(n.acceleration_min=e),n.acceleration_avg=(e+n.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+"&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}})}})),V.Utils=C,V.Components=R,V.Chart=H,U=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]="​"),U.call(null,t,e)},V.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 V(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,n=this._nonPointGroup,s=this.options.chunkedLoading,a=this.options.chunkInterval,o=this.options.chunkProgress,l=t.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var f=(new Date).getTime()-h;if(a<f)break}if((i=t[c])instanceof L.LayerGroup)p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),l=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(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),e||this.fire("layeradd",{layer:i})}o&&o(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=t[c])instanceof L.LayerGroup?(p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),l=t.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,n=this._featureGroup,s=this._nonPointGroup,a=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),s.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 o=t.slice(),l=r;for(e=0;e<l;e++)(i=o[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,o),l=o.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,n,s=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(i=!0,n=a.length-1;0<=n;n--)if(a[n].layer===s[r]){i=!1;break}i&&t.call(e,s[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,a=this._map,o=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,p=c._markers;for(this._arraySplice(p,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<o));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,a.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,a.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),i||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(e||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;e<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,n=this._gridClusters,s=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);a<=e;e--){i=this._map.project(t.getLatLng(),e);var o=n[e].getNearObject(i);if(o)return o._addChild(t),void(t.__parent=o);if(o=s[e].getNearObject(i)){var l=o.__parent;l&&this._removeLayer(o,!1);var c=new this._markerCluster(this,e,o,t);n[e].addObject(c,this._map.project(c._cLatLng,e)),o.__parent=c;var p=t.__parent=c;for(r=e-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(o.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(o,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),n=0;for(e=e||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var a,o=s._latlng,l=s._markers;for(r.contains(o)||(o=null),s._isSingleParent()&&t+1===e?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,e,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(o,e,r)),i=l.length-1;0<=i;i--)a=l[i],r.contains(a._latlng)||n.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,e+1,i);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var a=t._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else t._recursively(r,i,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,e+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,a=r.getZoom();0<i.length&&s<n;){s++;var o=[];for(e=0;e<i.length;e++)o=o.concat(i[e]._childClusters);i=o}s<n?this._group._map.setView(this._latlng,s):n<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,n=this._markers,s=this._childClusters,a=0,o=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)i=n[t]._latlng,this._bounds.extend(i),a+=i.lat,o+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,a+=i.lat*r,o+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(a/l,o/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,n=t._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,n=t._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,e,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var n,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,e,i,r,n){var s,a,o=this._childClusters,l=this._zoom;if(e<=l&&(r&&r(this),n&&l===i&&n(this)),l<e||l<i)for(s=o.length-1;0<=s;s--)(a=o[s])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),n=this._grid,s=n[r]=n[r]||{},a=s[i]=s[i]||[],o=L.Util.stamp(t);this._objectPoint[o]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,n=this._getCoord(e.x),s=this._getCoord(e.y),a=this._grid,o=a[s]=a[s]||{},l=o[n]=o[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=l.length;i<r;i++)if(l[i]===t)return l.splice(i,1),1===r&&delete o[n],!0},eachObject:function(t,e){var i,r,n,s,a,o,l=this._grid;for(i in l)for(r in a=l[i])for(n=0,s=(o=a[r]).length;n<s;n++)t.call(e,o[n])&&(n--,s--)},getNearObject:function(t){var e,i,r,n,s,a,o,l,c=this._getCoord(t.x),p=this._getCoord(t.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(e=p-1;e<=p+1;e++)if(n=this._grid[e])for(i=c-1;i<=c+1;i++)if(s=n[i])for(r=0,a=s.length;r<a;r++)o=s[r],((l=this._sqDist(u[L.Util.stamp(o)],t))<d||l<=d&&null===h)&&(d=l,h=o);return h},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,n,s=0,a=null,o=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(n=this.getDistant(r,t))&&(o.push(r),s<n&&(s=n,a=r));return{maxPoint:a,newPoints:o}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,n=!1,s=!1,a=null,o=null,l=null,c=null,p=null,u=null;for(e=t.length-1;0<=e;e--){var d=t[e];(!1===i||d.lat>i)&&(i=(a=d).lat),(!1===r||d.lat<r)&&(r=(o=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===s||d.lng<s)&&(s=(c=d).lng)}return p=r!==i?(u=o,a):(u=c,l),[].concat(this.buildConvexHull([u,p],t),this.buildConvexHull([p,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,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,a=[];for(n=Math.max(n,35),a.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*s,a[i]=new L.Point(e.x+n*Math.cos(r),e.y+n*Math.sin(r))._round();return a},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,a=r*this._spiralLengthFactor*this._2PI,o=0,l=[];for(i=l.length=t;0<=i;i--)i<t&&(l[i]=new L.Point(e.x+n*Math.cos(o),e.y+n*Math.sin(o))._round()),n+=a/(o+=s/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,n=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=s.length-1;0<=e;e--)t=s[e],n.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,n,s,a=this._group,o=a._map,l=a._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<t.length;i++)s=o.layerPointToLatLng(e[i]),r=t[i],n=new L.Polyline([this._latlng,s],c),o.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,n,s,a,o,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],o=p.layerPointToLatLng(e[i]),n=new L.Polyline([d,o],m),p.addLayer(n),r._spiderLeg=n,f&&(a=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=a,s.style.strokeDashoffset=a),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(h);for(c._forceLayout(),c._animationStart(),i=t.length-1;0<=i;i--)o=p.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.clusterShow&&r.clusterShow(),f&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,n,s,a,o=this,l=this._group,c=l._map,p=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(e=d[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,a=!0,e._setPos&&(e._setPos(u),a=!1),e.clusterHide&&(e.clusterHide(),a=!1),a&&p.removeLayer(e),h&&(s=(n=(r=e._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&p.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:o,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(leaflet_markercluster,leaflet_markercluster.exports);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,n,s,a,o,l,c,p=0,u=0,d,h=t.type,f=h==="FeatureCollection",m=h==="Feature",g=f?t.features.length:1;for(var v=0;v<g;v++){c=f?t.features[v].geometry:m?t.geometry:t;d=c?c.type==="GeometryCollection":false;o=d?c.geometries.length:1;for(var w=0;w<o;w++){var b=0;var k=0;a=d?c.geometries[w]:c;if(a===null)continue;l=a.coordinates;var x=a.type;p=i&&(x==="Polygon"||x==="MultiPolygon")?1:0;switch(x){case null:break;case"Point":if(e(l,u,v,b,k)===false)return false;u++;b++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(e(l[r],u,v,b,k)===false)return false;u++;if(x==="MultiPoint")b++}if(x==="LineString")b++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(n=0;n<l[r].length-p;n++){if(e(l[r][n],u,v,b,k)===false)return false;u++}if(x==="MultiLineString")b++;if(x==="Polygon")k++}if(x==="Polygon")b++;break;case"MultiPolygon":for(r=0;r<l.length;r++){k=0;for(n=0;n<l[r].length;n++){for(s=0;s<l[r][n].length-p;s++){if(e(l[r][n][s],u,v,b,k)===false)return false;u++}k++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(coordEach(a.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 n=(i[1]+i[3])/2;return point([r,n],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 n=getCoord(e);var s=degreesToRadians(n[1]-r[1]);var a=degreesToRadians(n[0]-r[0]);var o=degreesToRadians(r[1]);var l=degreesToRadians(n[1]);var c=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(o)*Math.cos(l);return radiansToLength(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),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 n=0;featureEach(e,(function(e,i){var s=distance(t,e);if(s<r){n=i;r=s}}));i=clone(e.features[n]);i.properties.featureIndex=n;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 n=getGeom(e);var s=n.type;var a=e.bbox;var o=n.coordinates;if(a&&inBBox(r,a)===false){return false}if(s==="Polygon"){o=[o]}var l=false;for(var c=0;c<o.length&&!l;c++){if(inRing(r,o[c][0],i.ignoreBoundary)){var p=false;var u=1;while(u<o[c].length&&!p){if(inRing(r,o[c][u],!i.ignoreBoundary)){p=true}u++}if(!p){l=true}}}return l}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 n=0,s=e.length-1;n<e.length;s=n++){var a=e[n][0];var o=e[n][1];var l=e[s][0];var c=e[s][1];var p=t[1]*(a-l)+o*(l-t[0])+c*(t[0]-a)===0&&(a-t[0])*(l-t[0])<=0&&(o-t[1])*(c-t[1])<=0;if(p){return!i}var u=o>t[1]!==c>t[1]&&t[0]<(l-a)*(t[1]-o)/(c-o)+a;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 n=0;while(!r&&n<e.features.length){var s=e.features[n].geometry;var a,o,l,c,p,u,d;var h=false;if(s.type==="Point"){if(i.geometry.coordinates[0]===s.coordinates[0]&&i.geometry.coordinates[1]===s.coordinates[1]){r=true}}else if(s.type==="MultiPoint"){var f=false;d=0;while(!f&&d<s.coordinates.length){if(i.geometry.coordinates[0]===s.coordinates[d][0]&&i.geometry.coordinates[1]===s.coordinates[d][1]){r=true;f=true}d++}}else if(s.type==="LineString"){d=0;while(!h&&d<s.coordinates.length-1){a=i.geometry.coordinates[0];o=i.geometry.coordinates[1];l=s.coordinates[d][0];c=s.coordinates[d][1];p=s.coordinates[d+1][0];u=s.coordinates[d+1][1];if(pointOnSegment(a,o,l,c,p,u)){h=true;r=true}d++}}else if(s.type==="MultiLineString"){var m=0;while(m<s.coordinates.length){h=false;d=0;var g=s.coordinates[m];while(!h&&d<g.length-1){a=i.geometry.coordinates[0];o=i.geometry.coordinates[1];l=g[d][0];c=g[d][1];p=g[d+1][0];u=g[d+1][1];if(pointOnSegment(a,o,l,c,p,u)){h=true;r=true}d++}m++}}else if(s.type==="Polygon"||s.type==="MultiPolygon"){if(booleanPointInPolygon(i,s)){r=true}}n++}if(r){return i}else{var v=featureCollection([]);for(n=0;n<e.features.length;n++){v.features=v.features.concat(explode(e.features[n]).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,n,s){var a=Math.sqrt((n-i)*(n-i)+(s-r)*(s-r));var o=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var l=Math.sqrt((n-t)*(n-t)+(s-e)*(s-e));return a===o+l}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}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-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:calc(100% - 280px - var(--map-bottom-space-height))}.common-map{height:calc(100% - 64px)}#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 .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(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.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:14px;height:14px;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:32px !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,.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,.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,.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-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,.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{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{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{width:36px !important}.parking-marker{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom: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}';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.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.useGradient=false;this.tilesMaxZoomOffline=16;this.isLargeView=false;this.grwApp=false}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]});L$1.control.scale({metric:true,imperial:false}).addTo(this.map);L$1.control.locate({showPopup:false}).addTo(this.map);var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){t.tileLayer.push({key:"".concat(e[n]),value:bundle.exports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=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.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()};return e}});L$1.control.contract=function(t){return new L$1.Control.Contract(t)};L$1.control.contract({position:"topleft"}).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(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(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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l;var c=this;return __generator(this,(function(p){switch(p.label){case 0:state.treksWithinBounds=state.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTreks){n=function(t){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=state.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(s=0,a=state.currentTreks;s<a.length;s++){o=a[s];n(o)}}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:l=p.sent();this.treksLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(l[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(c,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.part="trek-image-popup";s.src=r;n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){c.hideTrekLine();c.showTrekLine(t.properties.id);c.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:48})}});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);p.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){if(this.treksLayer){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,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k,x;var y=this;return __generator(this,(function(A){switch(A.label){case 0:return[4,getDataInStore("treks",state.currentTrek.id)];case 1:e=A.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"}},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){r=getAssetPath("".concat("","assets/parking.svg"));n={type:"Feature",properties:{name:state.currentTrek.advised_parking},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:48,iconAnchor:[24,48]}),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){s={type:"FeatureCollection",features:[]};for(a=0,o=state.currentSensitiveAreas;a<o.length;a++){l=o[a];s.features.push({type:"Feature",properties:{name:l.name},geometry:l.geometry})}this.currentSensitiveAreasLayer=L$1.geoJSON(s,{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:y.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(state.currentTrek)];case 2:A.sent();return[4,this.addCurrentPois()];case 3:A.sent();return[4,this.addCurrentTouristicContents()];case 4:A.sent();return[4,this.addCurrentTouristicEvents()];case 5:A.sent();if(state.currentTrek.points_reference){c={type:"FeatureCollection",features:[]};c.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});p=0;this.currentReferencePointsLayer=L$1.geoJSON(c,{pointToLayer:function(t,e){p+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(p,"</div>"),className:"",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){u={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){d=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.length>0&&e.attachments[0].thumbnail}})};for(h=0,f=state.currentTrekSteps;h<f.length;h++){m=f[h];d(m)}}g=0;this.currentStepsLayer=L$1.geoJSON(u,{pointToLayer:function(t,e){g+=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(g,"</div></div></div>"),className:"",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(y,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.src=r;n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;n.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";n.part="trek-button";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){y.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");w={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:280,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:"inline",time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=L$1.control.elevation(Object.assign({},w)).addTo(this.map);b=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(b);k={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}]};x=0;this.departureArrivalLayer=L$1.geoJSON(k,{pointToLayer:function(t,e){x+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="'.concat(x===1?"departure-marker":"arrival-marker",'" class="').concat(x===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:14}),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(){y.bounds&&y.map.fitBounds(y.bounds);!y.mapIsReady&&(y.mapIsReady=!y.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s;return __generator(this,(function(a){switch(a.label){case 0:i={};r=0;a.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];n=i;s=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:n[s]=a.sent();a.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a;return __generator(this,(function(o){switch(o.label){case 0:if(!!Capacitor.isNativePlatform())return[3,5];return[4,checkFileInStore(t)];case 1:i=o.sent();if(!i)return[3,3];s=(n=window.URL).createObjectURL;return[4,getFileInStore(t)];case 2:r=s.apply(n,[o.sent().data]);return[3,4];case 3:r=t?t:null;o.label=4;case 4:e=r;return[3,7];case 5:return[4,Filesystem.getUri({path:t,directory:Directory.Data})];case 6:a=o.sent();if(a){e=Capacitor.convertFileSrc(a.uri)}o.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s;var a=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.currentTreks){n=state.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=state.practices.find((function(t){return t.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();state.selectedTrekId=t;return[4,this.getIcons(r,"practice")];case 1:s=o.sent();this.selectedCurrentTrekLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:s[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(s[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:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(a,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.src=r;s.part="trek-image";n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!a.trekPopupIsOpen){state.selectedTrekId=null;a.hideTrekLine();a.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){a.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){a.trekPopupIsOpen=false;state.selectedTrekId=null;a.hideTrekLine();a.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 n={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var s=state.currentTrekSteps.findIndex((function(e){return e.id===t}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[s].departure_geom},properties:{id:state.currentTrekSteps[s].id,name:state.currentTrekSteps[s].name,practice:(r=state.practices.find((function(t){return t.id===state.currentTrekSteps[s].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[s].attachments&&state.currentTrekSteps[s].attachments.length>0&&state.currentTrekSteps[s].attachments[0].thumbnail,index:s+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=L$1.geoJSON(n,{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:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.part="trek-image";s.src=r;n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-name";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{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(n){switch(n.label){case 0:this.removeSelectedCurrentTrek();return[4,getTrekGeometry(t)];case 1:e=n.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;return __generator(this,(function(i){switch(i.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=i.sent();this.currentToutisticContentLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{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:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);i.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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.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.length>0&&t.attachments[0].thumbnail}})};for(n=0,s=state.currentTouristicContents;n<s.length;n++){a=s[n];r(a)}}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:o=c.sent();this.toutisticContentsLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[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(o[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:32,iconAnchor:[16,32]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;i.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-content-button";s.className="touristic-content-button";s.onclick=function(){return l.touristicContentCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){l.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:48})}});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);c.label=3;case 3: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;return __generator(this,(function(r){switch(r.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=r.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:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);r.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,n,s;var a=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicContents){n=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=state.touristicContentCategories.find((function(t){return t.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:s=o.sent();this.selectedTouristicContentLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:s[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(s[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:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-content-button";s.className="touristic-content-button";s.onclick=function(){return a.touristicContentCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!a.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){a.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){a.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;a.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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l;var c=this;return __generator(this,(function(p){switch(p.label){case 0:state.touristicEventsWithinBounds=state.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){n=function(t){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(s=0,a=state.currentTouristicEvents;s<a.length;s++){o=a[s];n(o)}}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:l=p.sent();this.touristicEventsLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[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(l[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:32,iconAnchor:[16,32]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-event-button";s.className="touristic-event-button";s.onclick=function(){return c.touristicEventCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){c.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:48})}});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);p.label=3;case 3: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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l,c;var p=this;return __generator(this,(function(u){switch(u.label){case 0:state.outdoorSitesWithinBounds=state.currentOutdoorSites;i=[];r={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){n=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.length>0&&t.attachments[0].thumbnail}})};for(s=0,a=state.currentOutdoorSites;s<a.length;s++){o=a[s];n(o)}}if(!!this.outdoorSitesLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){l=bbox(r);this.bounds=L$1.latLngBounds([l[1],l[0]],[l[3],l[2]])}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:c=u.sent();this.outdoorSitesLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:c[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(c[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:32,iconAnchor:[16,32]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=function(){return p.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){p.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:48})}});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.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(n){switch(n.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=n.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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);n.label=2;case 2:return[4,this.addCurrentInformationDesks(state.currentOutdoorSite)];case 3:n.sent();return[4,this.addCurrentPois()];case 4:n.sent();return[4,this.addCurrentTouristicContents()];case 5:n.sent();return[4,this.addCurrentTouristicEvents()];case 6:n.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:n.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:n.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;var o=this;return __generator(this,(function(l){switch(l.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.length>0&&i.attachments[0].thumbnail}})};for(r=0,n=state.currentRelatedOutdoorSites;r<n.length;r++){s=n[r];i(s)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:a=l.sent();this.currentRelatedOutdoorSitesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[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(a[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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});l.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;var o=this;return __generator(this,(function(l){switch(l.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.length>0&&i.attachments[0].thumbnail}})};for(r=0,n=state.currentRelatedOutdoorCourses;r<n.length;r++){s=n[r];i(s)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:a=l.sent();this.currentRelatedOutdoorCoursesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[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(a[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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});l.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s;var a=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicEvents){n=state.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=state.touristicEventTypes.find((function(t){return t.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:s=o.sent();this.selectedTouristicEventLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:s[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(s[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:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-event-button";s.className="touristic-event-button";s.onclick=function(){return a.touristicEventCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!a.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){a.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));e.on("popupclose",(function(){if(state.selectedTouristicEventId){a.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;a.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(n){switch(n.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=n.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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);n.label=2;case 2:return[4,this.addCurrentPois()];case 3:n.sent();return[4,this.addCurrentTouristicContents()];case 4:n.sent();return[4,this.addCurrentTouristicEvents()];case 5:n.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var s=this;return __generator(this,(function(a){switch(a.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.length>0&&r.attachments[0].thumbnail}})}}this.removeSelectedOutdoorSite();state.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:n=a.sent();this.selectedOutdoorSiteLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(n[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var a=L$1.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="outdoor-site-button";a.className="outdoor-site-button";a.onclick=function(){return s.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(a);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.outdoorSitePopupIsOpen){state.selectedOutdoorSiteId=null;s.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){s.outdoorSitePopupIsOpen=Boolean(state.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(state.selectedOutdoorSiteId){s.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;s.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,n;var s=this;return __generator(this,(function(a){switch(a.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.length>0&&r.attachments[0].thumbnail}})}this.removeSelectedOutdoorCourse();state.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:n=a.sent();this.selectedOutdoorCourseLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(n[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-course-name";n.className="outdoor-course-name";i.appendChild(n);var a=L$1.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="outdoor-course-button";a.className="outdoor-course-button";a.onclick=function(){return s.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(a);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.outdoorCoursePopupIsOpen){state.selectedOutdoorCourseId=null;s.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){s.outdoorCoursePopupIsOpen=Boolean(state.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(state.selectedOutdoorCourseId){s.outdoorCoursePopupIsOpen=false;state.selectedOutdoorCourseId=null;s.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,n,s,a;return __generator(this,(function(o){switch(o.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,n=state.currentPois;r<n.length;r++){s=n[r];i(s)}return[4,this.getIcons(e,"type_pictogram")];case 1:a=o.sent();this.currentPoisLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[t.properties.type_pictogram]?'<div part="poi-marker" class="poi-marker"><img src='.concat(a[t.properties.type_pictogram]," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:48}),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()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;return __generator(this,(function(o){switch(o.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:{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,n=state.trekTouristicContents;r<n.length;r++){s=n[r];i(s)}return[4,this.getIcons(e,"category_pictogram")];case 1:a=o.sent();this.currentToutisticContentsLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[t.properties.category_pictogram]?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(a[t.properties.category_pictogram]," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("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()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;return __generator(this,(function(o){switch(o.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:{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,n=state.trekTouristicEvents;r<n.length;r++){s=n[r];i(s)}return[4,this.getIcons(e,"type_pictogram")];case 1:a=o.sent();this.currentTouristicEventsLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[t.properties.type_pictogram]?'\n <div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(a[t.properties.type_pictogram]," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){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()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s;return __generator(this,(function(a){switch(a.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++){n=r[i];if(n.latitude&&n.longitude){e.features.push({type:"Feature",properties:{name:n.name,type_pictogram:n.type.pictogram},geometry:{type:"Point",coordinates:[Number(n.longitude),Number(n.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:s=a.sent();this.currentInformationDesksLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(s[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:48}),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()}))}});a.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.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.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.render=function(){var t=this;var e=getAssetPath("".concat("","assets/layers.svg"));var i=getAssetPath("".concat("","assets/contract.svg"));return h(Host,{key:"7bb7283327e9c052d62a3e289c984dde39f222fd",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,")"),"--map-bottom-space-height":this.isLargeView||!this.grwApp?"0px":"144px"}},h("div",{key:"791ec31343feebab7ab861f8f5b754a3d1c01ac7",id:"map",part:"map",class:state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSite||state.currentOutdoorCourse?"common-map":state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}}),!this.mapIsReady&&h("div",{part:"map-loader-container",class:"map-loader-container"},h("span",{part:"loader",class:"loader"})))};return t}();GrwMap.style=GrwMapStyle0;function Mousewheel(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var s=getWindow();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});e.mousewheel={enabled:false};var a;var o=now();var l;var c=[];function p(t){var e=10;var i=40;var r=800;var n=0;var s=0;var a=0;var o=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}a=n*e;o=s*e;if("deltaY"in t){o=t.deltaY}if("deltaX"in t){a=t.deltaX}if(t.shiftKey&&!a){a=o;o=0}if((a||o)&&t.deltaMode){if(t.deltaMode===1){a*=i;o*=i}else{a*=r;o*=r}}if(a&&!n){n=a<1?-1:1}if(o&&!s){s=o<1?-1:1}return{spinX:n,spinY:s,pixelX:a,pixelY:o}}function u(){if(!e.enabled)return;e.mouseEntered=true}function d(){if(!e.enabled)return;e.mouseEntered=false}function h(t){if(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta){return false}if(e.params.mousewheel.thresholdTime&&now()-o<e.params.mousewheel.thresholdTime){return false}if(t.delta>=6&&now()-o<60){return true}if(t.direction<0){if((!e.isEnd||e.params.loop)&&!e.animating){e.slideNext();n("scroll",t.raw)}}else if((!e.isBeginning||e.params.loop)&&!e.animating){e.slidePrev();n("scroll",t.raw)}o=(new s.Date).getTime();return false}function f(t){var i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges){return true}}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges){return true}return false}function m(t){var i=t;var r=true;if(!e.enabled)return;if(t.target.closest(".".concat(e.params.mousewheel.noMousewheelClass)))return;var s=e.params.mousewheel;if(e.params.cssMode){i.preventDefault()}var o=e.el;if(e.params.mousewheel.eventsTarget!=="container"){o=document.querySelector(e.params.mousewheel.eventsTarget)}var u=o&&o.contains(i.target);if(!e.mouseEntered&&!u&&!s.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=e.rtlTranslate?-1:1;var g=p(i);if(s.forceToAxis){if(e.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(s.invert)d=-d;var v=e.getTranslate()+d*s.sensitivity;if(v>=e.minTranslate())v=e.minTranslate();if(v<=e.maxTranslate())v=e.maxTranslate();r=e.params.loop?true:!(v===e.minTranslate()||v===e.maxTranslate());if(r&&e.params.nested)i.stopPropagation();if(!e.params.freeMode||!e.params.freeMode.enabled){var w={time:now(),delta:Math.abs(d),direction:Math.sign(d),raw:t};if(c.length>=2){c.shift()}var b=c.length?c[c.length-1]:undefined;c.push(w);if(b){if(w.direction!==b.direction||w.delta>b.delta||w.time>b.time+150){h(w)}}else{h(w)}if(f(w)){return true}}else{var k={time:now(),delta:Math.abs(d),direction:Math.sign(d)};var x=l&&k.time<l.time+500&&k.delta<=l.delta&&k.direction===l.direction;if(!x){l=undefined;var y=e.getTranslate()+d*s.sensitivity;var A=e.isBeginning;var L=e.isEnd;if(y>=e.minTranslate())y=e.minTranslate();if(y<=e.maxTranslate())y=e.maxTranslate();e.setTransition(0);e.setTranslate(y);e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses();if(!A&&e.isBeginning||!L&&e.isEnd){e.updateSlidesClasses()}if(e.params.loop){e.loopFix({direction:k.direction<0?"next":"prev",byMousewheel:true})}if(e.params.freeMode.sticky){clearTimeout(a);a=undefined;if(c.length>=15){c.shift()}var b=c.length?c[c.length-1]:undefined;var _=c[0];c.push(k);if(b&&(k.delta>b.delta||k.direction!==b.direction)){c.splice(0)}else if(c.length>=15&&k.time-_.time<500&&_.delta-k.delta>=1&&k.delta<=6){var z=d>0?.8:.2;l=k;c.splice(0);a=nextTick((function(){e.slideToClosest(e.params.speed,true,undefined,z)}),0)}if(!a){a=nextTick((function(){var t=.5;l=k;c.splice(0);e.slideToClosest(e.params.speed,true,undefined,t)}),500)}}if(!x)n("scroll",i);if(e.params.autoplay&&e.params.autoplayDisableOnInteraction)e.autoplay.stop();if(y===e.minTranslate()||y===e.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(t){var i=e.el;if(e.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(e.params.mousewheel.eventsTarget)}i[t]("mouseenter",u);i[t]("mouseleave",d);i[t]("wheel",m)}function v(){if(e.params.cssMode){e.wrapperEl.removeEventListener("wheel",m);return true}if(e.mousewheel.enabled)return false;g("addEventListener");e.mousewheel.enabled=true;return true}function w(){if(e.params.cssMode){e.wrapperEl.addEventListener(event,m);return true}if(!e.mousewheel.enabled)return false;g("removeEventListener");e.mousewheel.enabled=false;return true}r("init",(function(){if(!e.params.mousewheel.enabled&&e.params.cssMode){w()}if(e.params.mousewheel.enabled)v()}));r("destroy",(function(){if(e.params.cssMode){v()}if(e.mousewheel.enabled)w()}));Object.assign(e.mousewheel,{enable:v,disable:w})}function Scrollbar(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var s=getDocument();var a=false;var o=null;var l=null;var c;var p;var u;var d;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,n=t.el;var s=e.params.scrollbar;var a=e.params.loop?e.progressLoop:e.progress;var l=p;var c=(u-p)*a;if(i){c=-c;if(c>0){l=p-c;c=0}else if(-c+p>u){l=u+c}}else if(c<0){l=p+c;c=0}else if(c+p>u){l=u-c}if(e.isHorizontal()){r.style.transform="translate3d(".concat(c,"px, 0, 0)");r.style.width="".concat(l,"px")}else{r.style.transform="translate3d(0px, ".concat(c,"px, 0)");r.style.height="".concat(l,"px")}if(s.hide){clearTimeout(o);n.style.opacity=1;o=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function f(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){p=u*d}else{p=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(p,"px")}else{i.style.height="".concat(p,"px")}if(d>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function g(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){var i=e.scrollbar,r=e.rtlTranslate;var n=i.el;var s;s=(g(t)-elementOffset(n)[e.isHorizontal()?"left":"top"]-(c!==null?c:p/2))/(u-p);s=Math.max(Math.min(s,1),0);if(r){s=1-s}var a=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*s;e.updateProgress(a);e.setTranslate(a);e.updateActiveIndex();e.updateSlidesClasses()}function w(t){var i=e.params.scrollbar;var r=e.scrollbar,s=e.wrapperEl;var o=r.el,p=r.dragEl;a=true;c=t.target===p?g(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();s.style.transitionDuration="100ms";p.style.transitionDuration="100ms";v(t);clearTimeout(l);o.style.transitionDuration="0ms";if(i.hide){o.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",t)}function b(t){var i=e.scrollbar,r=e.wrapperEl;var s=i.el,o=i.dragEl;if(!a)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;v(t);r.style.transitionDuration="0ms";s.style.transitionDuration="0ms";o.style.transitionDuration="0ms";n("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,s=e.wrapperEl;var o=r.el;if(!a)return;a=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";s.style.transitionDuration=""}if(i.hide){clearTimeout(l);l=nextTick((function(){o.style.opacity=0;o.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function x(t){var i=e.scrollbar,r=e.params;var n=i.el;if(!n)return;var a=n;var o=r.passiveListeners?{passive:false,capture:false}:false;var l=r.passiveListeners?{passive:true,capture:false}:false;if(!a)return;var c=t==="on"?"addEventListener":"removeEventListener";a[c]("pointerdown",w,o);s[c]("pointermove",b,o);s[c]("pointerup",k,l)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("off")}function 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 n;if(typeof r.el==="string"&&e.isElement){n=e.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=s.querySelectorAll(r.el)}else if(!n){n=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&n.length>1&&i.querySelectorAll(r.el).length===1){n=i.querySelector(r.el)}if(n.length>0)n=n[0];n.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var a;if(n){a=n.querySelector(".".concat(e.params.scrollbar.dragClass));if(!a){a=createElement("div",e.params.scrollbar.dragClass);n.append(a)}}Object.assign(t,{el:n,dragEl:a});if(r.draggable){y()}if(n){n.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();h()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){h()}));r("setTransition",(function(t,e){f(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){_()}));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();h()};var C=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}_()};Object.assign(e.scrollbar,{enable:z,disable:C,updateSize:m,setTranslate:h,init:L,destroy:_})}function freeMode(t){var e=t.swiper,i=t.extendParams,r=t.emit,n=t.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;var t=e.getTranslate();e.setTranslate(t);e.setTransition(0);e.touchEventsData.velocities.length=0;e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;var t=e.touchEventsData,i=e.touches;if(t.velocities.length===0){t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime})}t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:now()})}function o(t){var i=t.currentPos;if(e.params.cssMode)return;var s=e.params,a=e.wrapperEl,o=e.rtlTranslate,l=e.snapGrid,c=e.touchEventsData;var p=now();var u=p-c.touchStartTime;if(i<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(i>-e.maxTranslate()){if(e.slides.length<l.length){e.slideTo(l.length-1)}else{e.slideTo(e.slides.length-1)}return}if(s.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;e.velocity=f/m;e.velocity/=2;if(Math.abs(e.velocity)<s.freeMode.minimumVelocity){e.velocity=0}if(m>150||now()-d.time>300){e.velocity=0}}else{e.velocity=0}e.velocity*=s.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*s.freeMode.momentumRatio;var v=e.velocity*g;var w=e.translate+v;if(o)w=-w;var b=false;var k;var x=Math.abs(e.velocity)*20*s.freeMode.momentumBounceRatio;var y=void 0;if(w<e.maxTranslate()){if(s.freeMode.momentumBounce){if(w+e.maxTranslate()<-x){w=e.maxTranslate()-x}k=e.maxTranslate();b=true;c.allowMomentumBounce=true}else{w=e.maxTranslate()}if(s.loop&&s.centeredSlides)y=true}else if(w>e.minTranslate()){if(s.freeMode.momentumBounce){if(w-e.minTranslate()>x){w=e.minTranslate()+x}k=e.minTranslate();b=true;c.allowMomentumBounce=true}else{w=e.minTranslate()}if(s.loop&&s.centeredSlides)y=true}else if(s.freeMode.sticky){var A=void 0;for(var L=0;L<l.length;L+=1){if(l[L]>-w){A=L;break}}if(Math.abs(l[A]-w)<Math.abs(l[A-1]-w)||e.swipeDirection==="next"){w=l[A]}else{w=l[A-1]}w=-w}if(y){n("transitionEnd",(function(){e.loopFix()}))}if(e.velocity!==0){if(o){g=Math.abs((-w-e.translate)/e.velocity)}else{g=Math.abs((w-e.translate)/e.velocity)}if(s.freeMode.sticky){var _=Math.abs((o?-w:w)-e.translate);var z=e.slidesSizesGrid[e.activeIndex];if(_<z){g=s.speed}else if(_<2*z){g=s.speed*1.5}else{g=s.speed*2.5}}}else if(s.freeMode.sticky){e.slideToClosest();return}if(s.freeMode.momentumBounce&&b){e.updateProgress(k);e.setTransition(g);e.setTranslate(w);e.transitionStart(true,e.swipeDirection);e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");e.setTransition(s.speed);setTimeout((function(){e.setTranslate(k);elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}),0)}))}else if(e.velocity){r("_freeModeNoMomentumRelease");e.updateProgress(w);e.setTransition(g);e.setTranslate(w);e.transitionStart(true,e.swipeDirection);if(!e.animating){e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}}else{e.updateProgress(w)}e.updateActiveIndex();e.updateSlidesClasses()}else if(s.freeMode.sticky){e.slideToClosest();return}else if(s.freeMode){r("_freeModeNoMomentumRelease")}if(!s.freeMode.momentum||u>=s.longSwipesMs){e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses()}}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:a,onTouchEnd:o}})}var CloseIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>';var DownloadIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></svg>';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}.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.displayFullscreen=false;this.currentOutdoorCourse=undefined;this.offline=false}t.prototype.componentDidLoad=function(){var t=this;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()};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}},loop:false});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}},loop:false});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}},loop:false});if(this.poiRef){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=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=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:threshold$2});this.touristicEventObserver.observe(this.touristicEventsRef)}};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 n=state.outdoorRatings&&this.currentOutdoorCourse&&state.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var s=n&&__spreadArray([],new Set(n.map((function(t){return t.scale}))),true);var a=s&&state.outdoorRatingsScale.filter((function(t){return s.includes(t.id)}));return h(Host,{key:"0c53ba770f1205fa1cdfd6857985876e25c3af8b",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?"244px":"204px"}},this.currentOutdoorCourse&&h("div",{part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},h("div",{part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(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.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",null,h("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),h("div",{part:"sub-container",class:"sub-container"},h("div",{part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{part:"icon-label",class:"icon-label type"},i.pictogram&&h("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{part:"label",class:"label"},i.name)),h("div",{part:"icon-label",class:"icon-label duration"},h("span",{part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{part:"label",class:"label"},formatDuration(this.currentOutdoorCourse.duration))),h("div",{part:"icon-label",class:"icon-label length"},h("span",{part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{part:"label",class:"label"},formatLength(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&h("div",{part:"icon-label",class:"icon-label ascent"},h("span",{part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{part:"label",class:"label"},formatAscent(this.currentOutdoorCourse.max_elevation))),n&&a.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(n.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].downloads),h("div",{part:"links-container",class:"links-container"},h("a",{href:"".concat(this.currentOutdoorCourse.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),h("div",{part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&h("div",{part:"description-container",class:"description-container"},h("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{part:"departure-container",class:"departure-container"},h("div",{part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{part:"departure",innerHTML:r.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"advice-container",class:"advice-container"},h("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorCourse.advice&&h("div",{part:"current-advice-container",class:"current-advice-container"},h("span",{part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"accessibilities-container",class:"accessibilities-container"},h("div",{part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-content-container",class:"touristic-content-container"},h("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-event-container",class:"touristic-event-container"},h("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"pois-container",class:"pois-container"},h("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),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(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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weather-container",class:"weather-container"},h("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorCourseDetail.style=GrwOutdoorCourseDetailStyle0;function getTouristicContent(t,e,i,r){return fetch("".concat(t,"touristiccontent/").concat(i,"/?language=").concat(e,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts"),r)}function getTouristicContentsNearTrek(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function getTouristicContentsNearOutdoorSite(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_outdoorsite=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function getTouristicContentsNearOutdoorCourse(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_outdoorcourse=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function getTouristicEvent(t,e,i,r){return fetch("".concat(t,"touristicevent/").concat(i,"/?language=").concat(e,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true"),r)}function getTouristicEventsNearTrek(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}function getTouristicEventsNearOutdoorSite(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_outdoorsite=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}function getTouristicEventsNearOutdoorCourse(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_outdoorcourse=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}var GrwOutdoorCourseProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorCourseId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!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,n,s,a,o,l,c,p,u,d,h;return __generator(this,(function(f){switch(f.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=f.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=f.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=f.sent();n=state;return[4,handleOfflineProperty("touristicContentCategories")];case 4:n.touristicContentCategories=f.sent();s=state;return[4,handleOfflineProperty("touristicEventTypes")];case 5:s.touristicEventTypes=f.sent();a=state;return[4,handleOfflineProperty("poiTypes")];case 6:a.poiTypes=f.sent();o=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 7:o.outdoorCourseTypes=f.sent();return[4,handleOfflineProperty("pois",["url"])];case 8:l=f.sent();c=l.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=c;return[4,handleOfflineProperty("touristicContents",["url"])];case 9:p=f.sent();u=p.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=u;return[4,handleOfflineProperty("touristicEvents",["url"])];case 10:d=f.sent();h=d.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=h;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 11:f.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(fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(getTouristicEventsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8],u=e[9],d=e[10];return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){state.networkError=false;if(i){state.cities=i.results}if(r){state.districts=r.results}if(n){state.themes=n.results}if(s){state.outdoorCourseTypes=s.results}if(a){state.trekTouristicContents=a.results}if(o){state.touristicContentCategories=o.results}if(l){state.trekTouristicEvents=l.results}if(c){state.touristicEventTypes=c.results}if(p){state.currentPois=p.results}if(u){state.poiTypes=u.results}state.currentOutdoorCourse=d;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:"06ce371568bf30472e5bfa9030176a10d2666c80"})};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,n,s,a,o,l){var c="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(c+="&in_bbox=".concat(i));r&&(c+="&cities=".concat(r));n&&(c+="&districts=".concat(n));s&&(c+="&structures=".concat(s));a&&(c+="&themes=".concat(a));o&&(c+="&portals=".concat(o));c+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind&page_size=999";return fetch(c,l)}function getOutdoorSite(t,e,i,r){var n="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");n+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents&page_size=999";return fetch(n,r)}function 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 fetch("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),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.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.offline=false;this.displayFullscreen=false;this.currentOutdoorSite=undefined;this.sources=undefined}t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.componentDidLoad=function(){var t=this;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()};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}},loop:false});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}},loop:false});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}},loop:false});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}},loop:false});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}},loop:false});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}},loop:false});if(this.informationPlacesRef){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=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=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=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=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=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),{threshold:threshold$1});this.courseObserver.observe(this.coursesRef)}};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,n,s,a,o,l,o,c;var p=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();n=state;return[4,r.json()];case 2:n.outdoorSites=u.sent().results;state.currentOutdoorSites=state.outdoorSites;u.label=3;case 3:return[4,getAllDataInStore("outdoorSites")];case 4:s=u.sent().filter((function(t){return t.offline===true}));a=state.outdoorSites;a=a.filter((function(t){return s.findIndex((function(e){return e.id===t.id}))===-1}));return[4,writeOrUpdateDataInStore("outdoorSites",a)];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];o=0;u.label=35;case 35:if(!(o<state.currentOutdoorSite.courses.length))return[3,38];l=state.currentOutdoorSite.courses[o];return[4,this.downloadOutdoorCourse(l)];case 36:u.sent();u.label=37;case 37:o++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];o=0;u.label=39;case 39:if(!(o<this.currentOutdoorSite.children.length))return[3,42];c=this.currentOutdoorSite.children[o];return[4,this.downloadOutdoorSite(c)];case 40:u.sent();u.label=41;case 41:o++;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===p.currentOutdoorSite.id})).offline=true;state.currentOutdoorSites.find((function(t){return t.id===p.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l,c,l,p;return __generator(this,(function(u){switch(u.label){case 0: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:n=u.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:u.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 3:u.sent();return[4,getPoisNearSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:s=u.sent().results;return[4,writeOrUpdateDataInStore("pois",s)];case 5:u.sent();return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 6:u.sent();return[4,getTouristicContentsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:a=u.sent().results;return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 8:u.sent();a.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",a)];case 9:u.sent();return[4,getTouristicEventsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=u.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:u.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:u.sent();return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},n),{offline:true,pois:s.map((function(t){return t.id})),touristicContents:a.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:u.sent();if(!(n.courses&&n.courses.length>0))return[3,17];l=0;u.label=14;case 14:if(!(l<n.courses.length))return[3,17];c=n.courses[l];return[4,this.downloadOutdoorCourse(c)];case 15:u.sent();u.label=16;case 16:l++;return[3,14];case 17:if(!(n.children&&n.children.length>0))return[3,21];l=0;u.label=18;case 18:if(!(l<n.children.length))return[3,21];p=n.children[l];return[4,this.downloadOutdoorSite(p)];case 19:u.sent();u.label=20;case 20:l++;return[3,18];case 21:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o;return __generator(this,(function(l){switch(l.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:n=l.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:l.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 3:l.sent();return[4,getPoisNearCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:s=l.sent().results;return[4,writeOrUpdateDataInStore("pois",s)];case 5:l.sent();return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 6:l.sent();return[4,getTouristicContentsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:a=l.sent().results;return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 8:l.sent();a.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",a)];case 9:l.sent();return[4,getTouristicEventsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=l.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:l.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:l.sent();return[4,writeOrUpdateDataInStore("outdoorCourses",[Object.assign(Object.assign({},n),{offline:true,pois:s.map((function(t){return t.id})),touristicContents:a.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:l.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=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:t=[];return[4,getDataInStore("outdoorSites",this.currentOutdoorSite.id)];case 1:e=r.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,writeOrUpdateDataInStore("outdoorSites",t)];case 2:r.sent();if(state.outdoorSites){delete state.outdoorSites.find((function(t){return t.id===i.currentOutdoorSite.id})).offline;if(!state.currentOutdoorSites){state.currentOutdoorSites=state.outdoorSites}delete state.currentOutdoorSites.find((function(t){return t.id===i.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s,a,o;return __generator(this,(function(l){switch(l.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.outdoorSites){for(n=0,s=state.outdoorSites;n<s.length;n++){a=s[n];r.push(pointOnFeature(a.geometry).geometry.coordinates)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:l.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,n,s;return __generator(this,(function(a){switch(a.label){case 0:r=bundle.exports.tileLayerOffline(t,{attribution:e});n=bbox(i);s=L$1.latLngBounds([n[1],n[0]],[n[3],n[2]]);return[4,writeOrUpdateTilesInStore(r,s,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.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 n=state.outdoorRatings&&this.currentOutdoorSite&&state.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var s=n&&__spreadArray([],new Set(n.map((function(t){return t.scale}))),true);var a=s&&state.outdoorRatingsScale.filter((function(t){return s.includes(t.id)}));return h(Host,{key:"7b8c60c1799700365a05f092953660c653320f94",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?"244px":"204px"}},this.currentOutdoorSite&&h("div",{part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},h("div",{part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(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.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",null,h("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{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",{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",{part:"sub-container",class:"sub-container"},h("div",{part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{part:"icon-label",class:"icon-label practice"},i.pictogram&&h("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{part:"label",class:"label"},i.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&h("div",{part:"row",class:"row"},h("span",{part:"icon",class:"icon",innerHTML:ExploreIcon}),h("span",{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",{part:"row",class:"row"},h("span",{part:"icon",class:"icon",innerHTML:AirIcon}),h("span",{part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&h("div",{part:"row",class:"row"},h("span",{part:"icon",class:"icon",innerHTML:EventIcon}),h("span",{part:"label",class:"label"},this.currentOutdoorSite.period)),n&&a.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(n.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),h("div",{part:"links-container",class:"links-container"},h("a",{href:"".concat(this.currentOutdoorSite.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),h("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&h("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&h("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),h("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description&&h("div",{part:"description-container",class:"description-container"},h("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{part:"departure-container",class:"departure-container"},h("div",{part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{part:"departure",innerHTML:r.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"pois-container",class:"pois-container"},h("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),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(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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"advice-container",class:"advice-container"},h("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorSite.advice&&h("div",{part:"current-advice-container",class:"current-advice-container"},h("span",{part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"accessibilities-container",class:"accessibilities-container"},h("div",{part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),state.currentRelatedOutdoorSites&&state.currentRelatedOutdoorSites.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},h("div",{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",{part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},h("div",{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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),state.currentRelatedOutdoorCourses&&state.currentRelatedOutdoorCourses.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},h("div",{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",{part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},h("div",{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",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"information-desks-container",class:"information-desks-container"},h("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-content-container",class:"touristic-content-container"},h("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-event-container",class:"touristic-event-container"},h("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weather-container",class:"weather-container"},h("iframe",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weblinks-container",class:"weblinks-container"},h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"source-container",class:"source-container"},h("div",{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})))})))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorSiteDetail.style=GrwOutdoorSiteDetailStyle0;var GrwOutdoorSiteProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorSiteId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!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,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k,x,y,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();n=state;return[4,handleOfflineProperty("themes")];case 4:n.themes=_.sent();s=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:s.outdoorSiteTypes=_.sent();a=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:a.outdoorPractices=_.sent();o=state;return[4,handleOfflineProperty("outdoorRatings")];case 7:o.outdoorRatings=_.sent();l=state;return[4,handleOfflineProperty("outdoorRatingsScale")];case 8:l.outdoorRatingsScale=_.sent();c=state;return[4,handleOfflineProperty("touristicContentCategories")];case 9:c.touristicContentCategories=_.sent();p=state;return[4,handleOfflineProperty("touristicEventTypes")];case 10:p.touristicEventTypes=_.sent();u=state;return[4,handleOfflineProperty("poiTypes")];case 11:u.poiTypes=_.sent();d=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 12:d.outdoorCourseTypes=_.sent();return[4,handleOfflineProperty("informationDesks")];case 13:h=_.sent();f=h.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=f;return[4,handleOfflineProperty("pois",["url"])];case 14:m=_.sent();g=m.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=g;return[4,handleOfflineProperty("touristicContents",["url"])];case 15:v=_.sent();w=v.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=w;return[4,handleOfflineProperty("touristicEvents",["url"])];case 16:b=_.sent();k=b.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=k;return[4,handleOfflineProperty("outdoorSites",["url"])];case 17:x=_.sent();y=x.filter((function(e){return t.children.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorSites=y;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(fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(getTouristicEventsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8],u=e[9],d=e[10],h=e[11],f=e[12],m=e[13],g=e[14],v=e[15],w=e[16];return __awaiter(t,void 0,void 0,(function(){var t,e,b,k,x,y;var A=this;return __generator(this,(function(L){switch(L.label){case 0:state.networkError=false;if(!(w&&w.children.length>0))return[3,2];t=[];t.push.apply(t,w.children);e=[];t.forEach((function(t){e.push(getOutdoorSite(state.api,state.language,t,A.init))}));b=state;return[4,Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:b.currentRelatedOutdoorSites=L.sent();L.label=2;case 2:if(!(w&&w.courses.length>0))return[3,4];k=[];k.push.apply(k,w.courses);x=[];k.forEach((function(t){x.push(getOutdoorCourse(state.api,state.language,t,A.init))}));y=state;return[4,Promise.all(__spreadArray([],x,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:y.currentRelatedOutdoorCourses=L.sent();L.label=4;case 4:if(i){state.cities=i.results}if(r){state.sources=r.results}if(n){state.districts=n.results}if(s){state.themes=s.results}if(a){state.outdoorSiteTypes=a.results}if(o){state.outdoorPractices=o.results}if(l){state.outdoorRatings=l.results}if(c){state.outdoorRatingsScale=c.results}if(p){state.currentInformationDesks=p.results}if(u){state.trekTouristicContents=u.results}if(d){state.touristicContentCategories=d.results}if(h){state.trekTouristicEvents=h.results}if(f){state.touristicEventTypes=f.results}if(m){state.currentPois=m.results}if(g){state.poiTypes=g.results}if(v){state.outdoorCourseTypes=v.results}state.currentOutdoorSite=w;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:"945352e638982879808e7e9d829471b2e8d9fa14"})};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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(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:"1fd0f6d1ee41a67dc9cad7f2e910074807b666f8",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.outdoorSitesWithinBounds&&h("div",{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:"8706f9dac786babb951b459759c7362011539610",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:"d87a9870dce11511aaaa2d8a51ae11e0c96aa431",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!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){this.handleOnlineOutdoorSites();return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s;return __generator(this,(function(a){switch(a.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=a.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=a.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=a.sent();n=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 4:n.outdoorSiteTypes=a.sent();s=state;return[4,handleOfflineProperty("outdoorPractices")];case 5:s.outdoorPractices=a.sent();return[4,handleOfflineProperty("outdoorSites")];case 6:t=a.sent();state.outdoorSites=t;state.currentOutdoorSites=t;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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5];return __awaiter(t,void 0,void 0,(function(){var t,e,l;return __generator(this,(function(c){switch(c.label){case 0:state.networkError=false;if(i){state.cities=i.results}if(r){state.districts=r.results}if(n){state.themes=n.results}if(s){state.outdoorSiteTypes=s.results}if(a){state.outdoorPractices=a.results}t=[];e=0;c.label=1;case 1:if(!(e<o.results.length))return[3,4];return[4,outdoorSiteIsAvailableOffline(o.results[e].id)];case 2:l=c.sent();t.push(Object.assign(Object.assign({},o.results[e]),{offline:l}));c.label=3;case 3:e++;return[3,1];case 4:state.outdoorSites=t;state.currentOutdoorSites=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getAllDataInStore("outdoorSites")];case 1:t=e.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(t&&t.length>0){this.handleOfflineOutdoorSites(t)}else{state.networkError=true}return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"816811f6aba3a9fb760fef3500a7f703c9270428"})};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:"cc7959ad562b62d0c90127cb33086d75cb3393e2",style:{"--font-family":this.fontFamily}},h("span",{key:"c4d42c475bb35ebc69b02a54a5cfc0b44c06d9ab",part:"icon",class:"icon",innerHTML:SearchIcon}),h("input",{key:"f4a16de4d4e12401d9ff59f6ec73d33a2bf4a57b",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:"3aa2fd044ea41804b31d0865a4faf052d73f801f",style:{"--font-family":this.fontFamily}},h("div",{key:"396573cc6c4825bee4bae0587088c237137face9",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&h("label",{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",{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",{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",{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:"14684efc58b9fd41402518092e184bdb74e88563"},h("span",{key:"0eb1921e34c6eb0d9812c1cc3057fe8b88f5005b",part:"select-language-icon",class:"icon",innerHTML:TranslateIcon}),h("select",{key:"d02d80c7a0c848537fe18aa3bbf7c50b3872f4d5",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.action=undefined;this.fontFamily="Roboto";this.checked=undefined}t.prototype.render=function(){var t=this;return h(Host,{key:"26bc8e910caad9dec84bfbdb4cd63eb20ce8a0a6",style:{"--font-family":this.fontFamily}},h("label",{key:"e381116a54a4f407074bed50cb0d4f4adc88e54f",class:"md3 switch"},h("input",{key:"ff3fb25aae5dc36a6753af531b1183b7be14628f",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),h("span",{key:"f22a575d3db92816b4f5b8b6fa5351d4bc00db0c",class:"slider"},h("span",{key:"1d55821c4dabf1b7b6692b79b69a19be94616469",part:"icon",class:"icon",innerHTML:DoneIcon}))))};return t}();GrwSwitch.style=GrwSwitchStyle0;var grwTouristicContentDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}: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-touristic-content-detail{overflow:hidden}.touristic-content-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}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius: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}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.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}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';var GrwTouristicContentDetailStyle0=grwTouristicContentDetailCss;var GrwTouristicContentDetail=function(){function t(t){registerInstance(this,t);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.isLargeView=false}t.prototype.componentDidLoad=function(){var t=this;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.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.offline=state.currentTouristicContent.offline};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(state.currentTouristicContent.attachments&&state.currentTouristicContent.attachments[0]&&state.currentTouristicContent.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.touristicContentCategories&&state.currentTouristicContent&&state.touristicContentCategories.find((function(t){return t.id===state.currentTouristicContent.category}));var r=state.currentTouristicContent&&state.currentTouristicContent.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}));return h(Host,{key:"7750c701df76bba15232f1f4b0315d1f8ebb9055",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?"204px":"164px"}},state.currentTouristicContent&&h("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:function(e){return t.touristicContentDetailContainerRef=e}},h("div",{part:"images-container",class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTouristicContent.attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTouristicContent.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:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"icon",class:"icon",innerHTML:CloseIcon})),h("div",{part:"legend-container",class:"legend-container"},i),h("img",{part:"image",class:"image",src:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},alt:e.legend}))})):h("div",{part:"swiper-slide",class:"swiper-slide"},h("img",{part:"default-poi-img",class:"default-poi-img",src:e,alt:"",loading:"lazy"}))),h("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},h("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",src:i.pictogram,alt:""}),h("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},i.label)),h("div",{part:"name",class:"name"},state.currentTouristicContent.name),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].download),h("div",{part:"links-container",class:"links-container"},h("a",{part:"link-container",class:"link-container",href:"".concat(state.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:""},"PDF")))),state.currentTouristicContent.description_teaser&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"description-teaser",class:"description-teaser",innerHTML:state.currentTouristicContent.description_teaser})),h("div",{part:"divider",class:"divider"}),state.currentTouristicContent.practical_info&&h("div",{part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{part:"description-title",class:"description-title"},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:state.currentTouristicContent.description})),r&&r.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].city," : "),h("div",{part:"cities",class:"cities",innerHTML:r.join(", ")})),state.currentTouristicContent.practical_info&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"useful-information-container",class:"useful-information-container"},h("div",{part:"useful-information-title",class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{part:"useful-information",innerHTML:state.currentTouristicContent.practical_info}))),(state.currentTouristicContent.contact||state.currentTouristicContent.email||state.currentTouristicContent.website)&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"contact-container",class:"contact-container"},h("div",{part:"contact-title",class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicContent.contact&&h("div",{part:"contact",class:"contact",innerHTML:state.currentTouristicContent.contact}),state.currentTouristicContent.email&&h("div",{part:"email-container",class:"email-container"},h("div",{part:"email-title",class:"email-title"},translate[state.language].email," : "),h("a",{href:"mailto:"+state.currentTouristicContent.email,part:"email",class:"email",innerHTML:state.currentTouristicContent.email})),state.currentTouristicContent.website&&h("div",{part:"website-container",class:"website-container"},h("div",{part:"website-title",class:"website-title"},translate[state.language].website," : "),h("a",{href:state.currentTouristicContent.website,part:"website",class:"website",innerHTML:state.currentTouristicContent.website})))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwTouristicContentDetail.style=GrwTouristicContentDetailStyle0;var GrwTouristicContentProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContent()};t.prototype.handleTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("touristicContents",this.touristicContentId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTouristicContent(t)}else{this.handleOnlineTouristicContent()}return[2]}}))}))};t.prototype.handleOfflineTouristicContent=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!state.cities)return[3,2];e=state;return[4,getAllDataInStore("cities")];case 1:e.cities=r.sent();r.label=2;case 2:if(!!state.touristicContentCategories)return[3,4];i=state;return[4,getAllDataInStore("touristicContentCategories")];case 3:i.touristicContentCategories=r.sent();r.label=4;case 4:state.currentTouristicContent=t;return[2]}}))}))};t.prototype.handleOnlineTouristicContent=function(){var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[getTouristicContent(state.api,state.language,this.touristicContentId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2];state.networkError=false;if(e){state.cities=e.results}if(i){state.touristicContentCategories=i.results}state.currentTouristicContent=r}))}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:"b53b958ea4b1bce8196a084a5147ab07cddf9a42"})};return t}();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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(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:"2dd604797c181e971d9fd9e8d9dddb45f67046f6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{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:"ed0d850dda19b44ec98888fc1d3f9479135ce59b",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:"e3d45b8d52f834c9800359c626db8867e29656b7",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t="".concat(state.api,"touristiccontent/?language=").concat(state.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicContentCategories=r.results}state.touristicContents=n.results;state.currentTouristicContents=n.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:"f9f5f8cc4600c9827e17d56b25ed5fe39eac9256"})};return t}();var grwTouristicEventDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}: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-touristic-event-detail{overflow:hidden}.touristic-event-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}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius: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}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.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}';var GrwTouristicEventDetailStyle0=grwTouristicEventDetailCss;var GrwTouristicEventDetail=function(){function t(t){registerInstance(this,t);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.isLargeView=false}t.prototype.componentDidLoad=function(){var t=this;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.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.offline=state.currentTouristicEvent.offline};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(state.currentTouristicEvent.attachments&&state.currentTouristicEvent.attachments[0]&&state.currentTouristicEvent.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.touristicEventTypes&&state.currentTouristicEvent&&state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type}));var r=state.currentTouristicEvent&&state.currentTouristicEvent.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}));return h(Host,{key:"3cf070c005eee9c2eda49378c33ef0fe6b00fe85",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?"204px":"164px"}},state.currentTouristicEvent&&h("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:function(e){return t.touristicEventDetailContainerRef=e}},h("div",{part:"images-container",class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTouristicEvent.attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTouristicEvent.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:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"icon",class:"icon",innerHTML:CloseIcon})),h("div",{part:"legend-container",class:"legend-container"},i),h("img",{part:"image",class:"image",src:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},alt:e.legend}))})):h("div",{part:"swiper-slide",class:"swiper-slide"},h("img",{part:"default-poi-img",class:"default-poi-img",src:e,loading:"lazy"}))),h("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},i&&i.pictogram&&h("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",src:i.pictogram}),i&&i.type&&h("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},i.type)),h("div",{part:"name",class:"name"},state.currentTouristicEvent.name),(state.currentTouristicEvent.begin_date||state.currentTouristicEvent.end_date)&&h("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},state.currentTouristicEvent.begin_date===state.currentTouristicEvent.end_date&&h("div",{part:"touristic-event-date",class:"touristic-event-date"},translate[state.language].date," : ",state.currentTouristicEvent.begin_date),state.currentTouristicEvent.begin_date&&state.currentTouristicEvent.begin_date!==state.currentTouristicEvent.end_date&&h("div",{part:"touristic-event-date",class:"touristic-event-date"},translate[state.language].startDate," : ",state.currentTouristicEvent.begin_date),state.currentTouristicEvent.end_date&&state.currentTouristicEvent.begin_date!==state.currentTouristicEvent.end_date&&h("div",{part:"touristic-event-date",class:"touristic-event-date"},translate[state.language].endDate," : ",state.currentTouristicEvent.end_date)),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].download),h("div",{part:"links-container",class:"links-container"},h("a",{part:"link",class:"link",href:"".concat(state.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),state.currentTouristicEvent.description_teaser&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"description-teaser",class:"description-teaser",innerHTML:state.currentTouristicEvent.description_teaser})),h("div",{part:"divider",class:"divider"}),state.currentTouristicEvent.practical_info&&h("div",{part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{part:"description-title",class:"description-title"},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:state.currentTouristicEvent.description})),r&&r.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].city," : "),h("div",{part:"cities",class:"cities",innerHTML:r.join(", ")})),state.currentTouristicEvent.practical_info&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"useful-information-container",class:"useful-information-container"},h("div",{part:"useful-information-title",class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{part:"useful-information",class:"useful-information",innerHTML:state.currentTouristicEvent.practical_info}))),(state.currentTouristicEvent.contact||state.currentTouristicEvent.email||state.currentTouristicEvent.website)&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"contact-container",class:"contact-container"},h("div",{part:"contact-title",class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicEvent.contact&&h("div",{part:"contact",class:"contact",innerHTML:state.currentTouristicEvent.contact}),state.currentTouristicEvent.email&&h("div",{part:"email-container",class:"email-container"},h("div",{part:"email-title",class:"email-title"},translate[state.language].email," : "),h("a",{href:"mailto:"+state.currentTouristicEvent.email,part:"email",class:"email",innerHTML:state.currentTouristicEvent.email})),state.currentTouristicEvent.website&&h("div",{part:"website-container",class:"website-container"},h("div",{part:"website-title",class:"website-title"},translate[state.language].website," : "),h("a",{href:state.currentTouristicEvent.website,part:"website",class:"website",innerHTML:state.currentTouristicEvent.website})))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwTouristicEventDetail.style=GrwTouristicEventDetailStyle0;var GrwTouristicEventProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvent()};t.prototype.handleTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("touristicEvents",this.touristicEventId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTouristicEvent(t)}else{this.handleOnlineTouristicEvent()}return[2]}}))}))};t.prototype.handleOfflineTouristicEvent=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!state.cities)return[3,2];e=state;return[4,getAllDataInStore("cities")];case 1:e.cities=r.sent();r.label=2;case 2:if(!!state.touristicEventTypes)return[3,4];i=state;return[4,getAllDataInStore("touristicEventTypes")];case 3:i.touristicEventTypes=r.sent();r.label=4;case 4:state.currentTouristicEvent=t;return[2]}}))}))};t.prototype.handleOnlineTouristicEvent=function(){var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[getTouristicEvent(state.api,state.language,this.touristicEventId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2];state.networkError=false;if(e){state.cities=e.results}if(i){state.touristicEventTypes=i.results}state.currentTouristicEvent=r}))}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:"3e5e5d3f401801048b1934baa60beee372fc0d7f"})};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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(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:"f418c00dfc2a81c157ad55bc492d30448c2a6b59",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{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:"011626bd6469f4fa9640ac173a7b43c506921803",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:"f87eecb793bf4b292bbe8781c7950f4d0856e7f0",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t="".concat(state.api,"touristicevent/?language=").concat(state.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicEventTypes=r.results}state.touristicEvents=n.results;state.currentTouristicEvents=n.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:"d3b510f028efe9fe1522ae1a300c2a4cdfeeb066"})};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{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}.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.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.offline=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false}t.prototype.componentDidUpdate=function(){this.handleObservers()};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(){var t=this;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()}}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}},loop:false});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}},loop:false});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}},loop:false});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}},loop:false});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}},loop:false});this.handleObservers()};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 n=Object.values(this.options);var s=0;while(!t&&s<n.length){if(n[s].indicator){t=n[s]}else{if(n[s].visible){e+=1;i+=this[n[s].ref].clientWidth}}s++}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){this.trekDetailContainerRef.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,n,s,a,o;return __generator(this,(function(l){switch(l.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.treks){for(n=0,s=state.treks;n<s.length;n++){a=s[n];r.push(a.departure_geom)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:l.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=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:n.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k;var x=this;return __generator(this,(function(y){switch(y.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};return[4,getAllDataInStore("treks")];case 1:r=y.sent().filter((function(t){return t.offline===true}));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:s=y.sent();a=state;return[4,s.json()];case 3:a.treks=y.sent().results;y.label=4;case 4:n=state.treks;n=n.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:o=y.sent();l=state;return[4,o.json()];case 6:l.districts=y.sent().results;y.label=7;case 7:return[4,writeOrUpdateDataInStore("treks",n)];case 8:y.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 9:y.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:y.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:y.sent();return[4,writeOrUpdateFilesInStore(state.difficulties,imagesRegExp)];case 12:y.sent();return[4,writeOrUpdateFilesInStore(state.routes,imagesRegExp)];case 13:y.sent();return[4,writeOrUpdateFilesInStore(state.practices,imagesRegExp)];case 14:y.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 15:y.sent();return[4,writeOrUpdateFilesInStore(state.labels,imagesRegExp)];case 16:y.sent();return[4,writeOrUpdateFilesInStore(state.districts,imagesRegExp)];case 17:y.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 18:y.sent();return[4,writeOrUpdateFilesInStore(state.accessibilities,imagesRegExp)];case 19:y.sent();return[4,writeOrUpdateFilesInStore(state.poiTypes,imagesRegExp)];case 20:y.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp)];case 21:y.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp)];case 22:y.sent();return[4,writeOrUpdateFilesInStore(state.touristicEventTypes,imagesRegExp)];case 23:y.sent();return[4,writeOrUpdateFilesInStore(state.networks,imagesRegExp)];case 24:y.sent();return[4,writeOrUpdateFilesInStore(this.currentTrek,imagesRegExp,true,["url"])];case 25:y.sent();return[4,writeOrUpdateDataInStore("difficulties",state.difficulties)];case 26:y.sent();return[4,writeOrUpdateDataInStore("routes",state.routes)];case 27:y.sent();return[4,writeOrUpdateDataInStore("practices",state.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 28:y.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 29:y.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 30:y.sent();return[4,writeOrUpdateDataInStore("accessibilities",state.accessibilities)];case 31:y.sent();return[4,writeOrUpdateDataInStore("ratings",state.ratings)];case 32:y.sent();return[4,writeOrUpdateDataInStore("ratingsScale",state.ratingsScale)];case 33:y.sent();return[4,writeOrUpdateDataInStore("sensitiveAreas",state.currentSensitiveAreas)];case 34:y.sent();return[4,writeOrUpdateDataInStore("labels",state.labels)];case 35:y.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 36:y.sent();return[4,writeOrUpdateDataInStore("accessibilitiesLevel",state.accessibilitiesLevel)];case 37:y.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 38:y.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 39:y.sent();return[4,writeOrUpdateDataInStore("networks",state.networks)];case 40:y.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 41:y.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 42:y.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 43:y.sent();return[4,writeOrUpdateDataInStore("treks",[Object.assign(Object.assign({},this.currentTrek),{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})),sensitiveAreas:state.currentSensitiveAreas?state.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 44:y.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 45:y.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 46:y.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 47:y.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 48:y.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 49:y.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 50:y.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,60];c=[];c.push.apply(c,this.currentTrek.children);p=[];u=[];d=[];h=[];f=[];c.forEach((function(t){p.push(getTrek(state.api,state.language,t,i));u.push(getTouristicContentsNearTrek(state.api,state.language,t,i));d.push(getTouristicEventsNearTrek(state.api,state.language,t,i));h.push(getPoisNearTrek(state.api,state.language,t,i));f.push(getSensitiveAreasNearTrek(state.api,state.language,t,i))}));return[4,Promise.all(__spreadArray([],p,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 51:m=y.sent();return[4,Promise.all(__spreadArray([],u,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 52:g=y.sent();return[4,Promise.all(__spreadArray([],d,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 53:v=y.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 54:w=y.sent();return[4,Promise.all(__spreadArray([],f,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 55:b=y.sent();k=0;y.label=56;case 56:if(!(k<m.length))return[3,60];m[k].offline=true;m[k].pois=w[k].results.map((function(t){return t.id}));m[k].touristicContents=g[k].results.map((function(t){return t.id}));m[k].touristicEvents=v[k].results.map((function(t){return t.id}));m[k].sensitiveAreas=b[k].results.map((function(t){return t.id}));return[4,writeOrUpdateDataInStore("treks",[m[k]])];case 57:y.sent();return[4,writeOrUpdateFilesInStore(m[k],imagesRegExp,true,["url"])];case 58:y.sent();y.label=59;case 59:k++;return[3,56];case 60: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();return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r;var n=this;return __generator(this,(function(s){switch(s.label){case 0:t=[];return[4,getDataInStore("treks",this.currentTrek.id)];case 1:e=s.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;s.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,getDataInStore("treks",this.currentTrek.children[i])];case 3:r=s.sent();this.deleteOfflineTrekProperties(r);t.push(r);s.label=4;case 4:i++;return[3,2];case 5:return[4,writeOrUpdateDataInStore("treks",t)];case 6:s.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();return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.render=function(){var t=this;var e,i,r,n,s;var a=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,{key:"d697ece2420dfd2317a8b56f97918475cced290d",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?"244px":"204px"}},this.currentTrek&&h("div",{part:"trek-options",class:"trek-options"},h("a",{part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},translate[state.language].options.steps),this.options.description.visible&&h("a",{part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},translate[state.language].options.description),this.options.pois.visible&&h("a",{part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},translate[state.language].options.pois),this.options.recommendations.visible&&h("a",{part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},translate[state.language].options.informationPlaces),this.options.accessibility.visible&&h("a",{part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},translate[state.language].options.accessibility),this.options.touristicContents.visible&&h("a",{part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},translate[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var 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.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=a},alt:e.legend}))})):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:a,loading:"lazy",alt:""})),h("div",{style:{display:this.offline?"none":"flex"}},h("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&h("div",{part:"themes-container",class:"themes-container"},this.themes.map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{part:"sub-container",class:"sub-container"},h("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&h("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&h("img",{part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),h("span",{part:"label",class:"label"},this.difficulty.label)),h("div",{part:"icon-label",class:"icon-label duration"},h("span",{part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{part:"label",class:"label"},formatDuration((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),h("div",{part:"icon-label",class:"icon-label route"},((i=this.route)===null||i===void 0?void 0:i.pictogram)&&h("img",{part:"icon",class:"icon",src:this.route.pictogram,alt:""}),h("span",{part:"label",class:"label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{part:"icon-label",class:"icon-label length"},h("span",{part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{part:"label",class:"label"},formatLength(this.currentTrek.length_2d))),this.currentTrek.ascent&&h("div",{part:"icon-label",class:"icon-label ascent"},h("span",{part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{part:"label",class:"label"},formatAscent(this.currentTrek.ascent))),this.currentTrek.descent&&h("div",{part:"icon-label",class:"icon-label descent"},h("span",{part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{part:"label",class:"label"},formatDescent(this.currentTrek.descent))),h("div",{part:"icon-label",class:"icon-label practice"},((n=this.practice)===null||n===void 0?void 0:n.pictogram)&&h("img",{part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),h("span",{part:"label",class:"label"},(s=this.practice)===null||s===void 0?void 0:s.name)),h("div",{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",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),h("div",{part:"links-container",class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:" icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"GPX")),h("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"KML")),h("a",{href:"".concat(this.currentTrek.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),h("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&h("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"parent-trek-container",class:"parent-trek-container"},h("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",null,"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{part:"step-container",class:"step-container"},h("div",{part:"step-title",class:"step-title",ref:function(e){return t.stepsRef=e}},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),h("div",{part:"divider",class:"divider"}),this.currentTrek.description&&h("div",{part:"description-container",class:"description-container"},h("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{part:"departure-container",class:"departure-container"},h("div",{part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{part:"arrival-container",class:"arrival-container"},h("div",{part:"arrival-title",class:"arrival-title"},translate[state.language].arrival," : "),h("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{part:"cities",innerHTML:this.cities.join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"pois-container",class:"pois-container"},h("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),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(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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&this.currentTrek.departure_city&&!this.offline&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weather-container",class:"weather-container"},h("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"access-container",class:"access-container"},h("div",{part:"access-title",class:"access-title"},translate[state.language].roadAccessAndParking),h("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&h("div",null,h("div",{part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},translate[state.language].recommendedParking),h("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"public-transport-container",class:"public-transport-container"},h("div",{part:"public-transport-title",class:"public-transport-title"},translate[state.language].transport),h("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"advice-container",class:"advice-container"},h("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{part:"current-advice-container",class:"current-advice-container"},h("span",{part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&h("div",{part:"gear-container",class:"gear-container"},h("span",{part:"icon",class:"icon",innerHTML:BackpackIcon}),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},h("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(e){return t.sensitiveAreaRef=e}},translate[state.language].environmentalSensitiveAreas),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"information-desks-container",class:"information-desks-container"},h("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.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",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"accessibilities-container",class:"accessibilities-container"},h("div",{part:"accessibilities-title",class:"accessibilities-title",ref:function(e){return t.accessibilityRef=e}},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&h("div",{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",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},h("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},translate[state.language].emergencyNumber),h("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},h("a",{href:"tel:".concat(this.emergencyNumber.toString())},h("span",{part:"icon",class:"icon",innerHTML:CallIcon}),h("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&h("div",{part:"accessibility-level-container",class:"accessibility-level-container"},h("div",{part:"accessibility-level-title",class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},h("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{part:"accessibility-width-container",class:"accessibility-width-container"},h("div",{part:"accessibility-width-title",class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},h("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},h("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},h("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},h("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-content-container",class:"touristic-content-container"},h("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-event-container",class:"touristic-event-container"},h("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),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}))}))),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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weblinks-container",class:"weblinks-container"},h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"source-container",class:"source-container"},h("div",{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",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwTrekDetail.style=GrwTrekDetailStyle0;var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined}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,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k,x,y,A,L,_,z,C,M,O;return __generator(this,(function(S){switch(S.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=S.sent();state.parentTrek=i;e.push.apply(e,i.children);S.label=3;case 3:r=[];e.forEach((function(t){r.push(getDataInStore("treks",t))}));n=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:n.currentTrekSteps=S.sent();S.label=5;case 5:s=state;return[4,handleOfflineProperty("difficulties")];case 6:s.difficulties=S.sent();a=state;return[4,handleOfflineProperty("routes")];case 7:a.routes=S.sent();o=state;return[4,handleOfflineProperty("practices")];case 8:o.practices=S.sent();l=state;return[4,handleOfflineProperty("themes")];case 9:l.themes=S.sent();c=state;return[4,handleOfflineProperty("cities")];case 10:c.cities=S.sent();p=state;return[4,handleOfflineProperty("accessibilities")];case 11:p.accessibilities=S.sent();u=state;return[4,handleOfflineProperty("ratings")];case 12:u.ratings=S.sent();d=state;return[4,handleOfflineProperty("ratingsScale")];case 13:d.ratingsScale=S.sent();h=state;return[4,handleOfflineProperty("labels")];case 14:h.labels=S.sent();f=state;return[4,handleOfflineProperty("sources")];case 15:f.sources=S.sent();m=state;return[4,handleOfflineProperty("accessibilitiesLevel")];case 16:m.accessibilitiesLevel=S.sent();g=state;return[4,handleOfflineProperty("touristicContentCategories")];case 17:g.touristicContentCategories=S.sent();v=state;return[4,handleOfflineProperty("touristicEventTypes")];case 18:v.touristicEventTypes=S.sent();w=state;return[4,handleOfflineProperty("networks")];case 19:w.networks=S.sent();b=state;return[4,handleOfflineProperty("poiTypes")];case 20:b.poiTypes=S.sent();return[4,handleOfflineProperty("informationDesks")];case 21:k=S.sent();x=k.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=x;return[4,handleOfflineProperty("pois",["url"])];case 22:y=S.sent();A=y.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=A;return[4,handleOfflineProperty("touristicContents",["url"])];case 23:L=S.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=S.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:M=S.sent();O=M.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));state.currentSensitiveAreas=O;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 26:S.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?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),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"));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),fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),getTouristicEventsNearTrek(state.api,state.language,this.trekId,this.init),fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"trek_network/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8],u=e[9],d=e[10],h=e[11],f=e[12],m=e[13],g=e[14],v=e[15],w=e[16],b=e[17],k=e[18],x=e[19],y=e[20];return __awaiter(t,void 0,void 0,(function(){var t,e,A,L;var _=this;return __generator(this,(function(z){switch(z.label){case 0:state.networkError=false;if(!(y&&y.children.length>0||state.parentTrekId))return[3,5];t=[];if(!(y.children.length>0))return[3,1];state.parentTrekId=y.id;state.parentTrek=y;t.push.apply(t,y.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:e=z.sent();state.parentTrek=e;t.push.apply(t,e.children);z.label=3;case 3:A=[];t.forEach((function(t){A.push(getTrek(state.api,state.language,t,_.init))}));L=state;return[4,Promise.all(__spreadArray([],A,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:L.currentTrekSteps=z.sent();z.label=5;case 5:if(i){state.difficulties=i.results}if(r){state.routes=r.results}if(n){state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(s){state.themes=s.results}if(a){state.cities=a.results}if(o){state.accessibilities=o.results}if(l){state.ratings=l.results}if(c){state.ratingsScale=c.results}if(p){state.currentSensitiveAreas=p.results}if(u){state.labels=u.results}if(d){state.sources=d.results}if(h){state.accessibilitiesLevel=h.results}if(v){state.trekTouristicContents=v.results}if(w){state.touristicContentCategories=w.results}if(b){state.trekTouristicEvents=b.results}if(k){state.touristicEventTypes=k.results}if(x){state.networks=x.results}if(f){state.currentPois=f.results}if(m){state.poiTypes=m.results}if(g){state.currentInformationDesks=g.results}if(y){state.currentTrek=y}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.render=function(){return h(Host,{key:"f91ee60e87d532eb77977fad01b0b8de644561f7"})};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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false}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:"1062a53e0ca6fb2895eeb053e67b552e5db8ad6f",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{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:"fd6be559acc6085a45937ae12ccd281b29352ab4",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})}))),h("div",{key:"ce16df757c304feed1de020a79bdef68c1f013e0",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined}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){this.handleOnlineTreks();return[2]}))}))};t.prototype.handleOfflineTreks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l;return __generator(this,(function(c){switch(c.label){case 0:e=state;return[4,this.handleOfflineProperty("difficulties")];case 1:e.difficulties=c.sent();i=state;return[4,this.handleOfflineProperty("routes")];case 2:i.routes=c.sent();r=state;return[4,this.handleOfflineProperty("practices")];case 3:r.practices=c.sent();n=state;return[4,this.handleOfflineProperty("themes")];case 4:n.themes=c.sent();s=state;return[4,this.handleOfflineProperty("cities")];case 5:s.cities=c.sent();a=state;return[4,this.handleOfflineProperty("accessibilities")];case 6:a.accessibilities=c.sent();o=state;return[4,this.handleOfflineProperty("labels")];case 7:o.labels=c.sent();l=state;return[4,this.handleOfflineProperty("districts")];case 8:l.districts=c.sent();state.durations=durations;state.lengths=lengths;state.elevations=elevations;return[4,this.handleOfflineProperty("treks")];case 9:t=c.sent();this.sortTreks(t);state.treks=t;state.currentTreks=t;return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t,e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:return[4,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),fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"label/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram,filter&published=true&page_size=999"),this.init),getDistricts(state.api,state.language,this.init),getTreksList(this.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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8];return __awaiter(t,void 0,void 0,(function(){var t,e,u;return __generator(this,(function(d){switch(d.label){case 0:state.networkError=false;state.difficulties=i.results;state.routes=r.results;state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=s.results;state.cities=a.results;state.accessibilities=o.results;state.labels=l.results;state.districts=c.results;state.durations=durations;state.lengths=lengths;state.elevations=elevations;t=[];e=0;d.label=1;case 1:if(!(e<p.results.length))return[3,4];return[4,trekIsAvailableOffline(p.results[e].id)];case 2:u=d.sent();t.push(Object.assign(Object.assign({},p.results[e]),{offline:u}));d.label=3;case 3:e++;return[3,1];case 4:this.sortTreks(t);state.treks=t;state.currentTreks=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getAllDataInStore("treks")];case 1:t=e.sent();if(t&&t.length>0){this.handleOfflineTreks(t)}else{state.networkError=true}return[2]}}))}))}))};t.prototype.render=function(){return h(Host,{key:"6e38f184770da305b7060f907c943cb0f0c42c1d"})};return t}();export{GrwCommonButton as grw_common_button,GrwExtendedFab as grw_extended_fab,GrwFilters as grw_filters,GrwLoader as grw_loader,GrwMap as grw_map,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,GrwTouristicContentDetail as grw_touristic_content_detail,GrwTouristicContentProvider as grw_touristic_content_provider,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicEventDetail as grw_touristic_event_detail,GrwTouristicEventProvider as grw_touristic_event_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};
9
+ 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:s.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)}});$.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}})})),$.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return n(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===Z(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+n)}else e.meta.time=new Date(Date.now());var s=e.meta.time;return s.getTime()-60*s.getTimezoneOffset()*1e3==0&&(s=0),s},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+n(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return n(t.time||0)},order:20}}))})),$.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),n=M[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,n=t.track_info;if(t.options.altitudeDeltaMax){var s=e-r[i>0?i-1:i].z,a=t.options.altitudeDeltaMax;Math.abs(s)>a&&(e=r[i-1].z+a*Math.sign(s))}return(e=l(e,t.options.altitudeRange))>n.elevation_max&&(n.elevation_max=e),e<n.elevation_min&&(n.elevation_min=e),n.elevation_avg=(e+n.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||r,strokeColor:e.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?n.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+"&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}})})),$.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),n=i[e].z-i[e>0?e-1:e].z;return isNaN(n)||0===r?0:n/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,n=t._data,s=n[i].z-n[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var a=slop-n[i>0?i-1:i].slope,o=t.options.slopeDeltaMax;Math.abs(a)>o&&(e=n[i-1].slope+o*Math.sign(a))}return e=l(e,t.options.slopeRange),s>0?t.track_info.ascent+=s:s<0&&(t.track_info.descent-=s),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}})}})),$.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,n=1e3*(r[i].dist-r[i>0?i-1:i].dist),s=r[i].time-r[i>0?i-1:i].time;return s>0?Math.abs(n/s*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,n=t.track_info;if(t.options.speedDeltaMax){var s=e-r[i>0?i-1:i].speed,a=t.options.speedDeltaMax;Math.abs(s)>a&&(e=r[i-1].speed+a*Math.sign(s))}return(e=l(e,t.options.speedRange))>n.speed_max&&(n.speed_max=e),e<n.speed_min&&(n.speed_min=e),n.speed_avg=(e+n.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+"&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}}))}})),$.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),s=(r[i].time-r[i>0?i-1:i].time)/1e3;return s>0?Math.abs(n/s)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,n=t.track_info;if(t.options.accelerationDeltaMax){var s=e-r[i>0?i-1:i].acceleration,a=t.options.accelerationDeltaMax;Math.abs(s)>a&&(e=r[i-1].acceleration+a*Math.sign(s))}return(e=l(e,t.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=e),e<n.acceleration_min&&(n.acceleration_min=e),n.acceleration_avg=(e+n.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+"&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}})}})),$.Utils=C,$.Components=R,$.Chart=H,U=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]="​"),U.call(null,t,e)},$.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 $(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,n=this._nonPointGroup,s=this.options.chunkedLoading,a=this.options.chunkInterval,o=this.options.chunkProgress,l=t.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var f=(new Date).getTime()-h;if(a<f)break}if((i=t[c])instanceof L.LayerGroup)p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),l=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(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),e||this.fire("layeradd",{layer:i})}o&&o(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=t[c])instanceof L.LayerGroup?(p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),l=t.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,n=this._featureGroup,s=this._nonPointGroup,a=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),s.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 o=t.slice(),l=r;for(e=0;e<l;e++)(i=o[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,o),l=o.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,n,s=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(i=!0,n=a.length-1;0<=n;n--)if(a[n].layer===s[r]){i=!1;break}i&&t.call(e,s[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,a=this._map,o=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,p=c._markers;for(this._arraySplice(p,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<o));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,a.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,a.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),i||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(e||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;e<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,n=this._gridClusters,s=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);a<=e;e--){i=this._map.project(t.getLatLng(),e);var o=n[e].getNearObject(i);if(o)return o._addChild(t),void(t.__parent=o);if(o=s[e].getNearObject(i)){var l=o.__parent;l&&this._removeLayer(o,!1);var c=new this._markerCluster(this,e,o,t);n[e].addObject(c,this._map.project(c._cLatLng,e)),o.__parent=c;var p=t.__parent=c;for(r=e-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(o.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(o,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),n=0;for(e=e||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var a,o=s._latlng,l=s._markers;for(r.contains(o)||(o=null),s._isSingleParent()&&t+1===e?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,e,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(o,e,r)),i=l.length-1;0<=i;i--)a=l[i],r.contains(a._latlng)||n.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,e+1,i);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var a=t._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else t._recursively(r,i,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,e+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,a=r.getZoom();0<i.length&&s<n;){s++;var o=[];for(e=0;e<i.length;e++)o=o.concat(i[e]._childClusters);i=o}s<n?this._group._map.setView(this._latlng,s):n<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,n=this._markers,s=this._childClusters,a=0,o=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)i=n[t]._latlng,this._bounds.extend(i),a+=i.lat,o+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,a+=i.lat*r,o+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(a/l,o/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,n=t._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,n=t._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,e,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var n,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,e,i,r,n){var s,a,o=this._childClusters,l=this._zoom;if(e<=l&&(r&&r(this),n&&l===i&&n(this)),l<e||l<i)for(s=o.length-1;0<=s;s--)(a=o[s])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),n=this._grid,s=n[r]=n[r]||{},a=s[i]=s[i]||[],o=L.Util.stamp(t);this._objectPoint[o]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,n=this._getCoord(e.x),s=this._getCoord(e.y),a=this._grid,o=a[s]=a[s]||{},l=o[n]=o[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=l.length;i<r;i++)if(l[i]===t)return l.splice(i,1),1===r&&delete o[n],!0},eachObject:function(t,e){var i,r,n,s,a,o,l=this._grid;for(i in l)for(r in a=l[i])for(n=0,s=(o=a[r]).length;n<s;n++)t.call(e,o[n])&&(n--,s--)},getNearObject:function(t){var e,i,r,n,s,a,o,l,c=this._getCoord(t.x),p=this._getCoord(t.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(e=p-1;e<=p+1;e++)if(n=this._grid[e])for(i=c-1;i<=c+1;i++)if(s=n[i])for(r=0,a=s.length;r<a;r++)o=s[r],((l=this._sqDist(u[L.Util.stamp(o)],t))<d||l<=d&&null===h)&&(d=l,h=o);return h},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,n,s=0,a=null,o=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(n=this.getDistant(r,t))&&(o.push(r),s<n&&(s=n,a=r));return{maxPoint:a,newPoints:o}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,n=!1,s=!1,a=null,o=null,l=null,c=null,p=null,u=null;for(e=t.length-1;0<=e;e--){var d=t[e];(!1===i||d.lat>i)&&(i=(a=d).lat),(!1===r||d.lat<r)&&(r=(o=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===s||d.lng<s)&&(s=(c=d).lng)}return p=r!==i?(u=o,a):(u=c,l),[].concat(this.buildConvexHull([u,p],t),this.buildConvexHull([p,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,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,a=[];for(n=Math.max(n,35),a.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*s,a[i]=new L.Point(e.x+n*Math.cos(r),e.y+n*Math.sin(r))._round();return a},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,a=r*this._spiralLengthFactor*this._2PI,o=0,l=[];for(i=l.length=t;0<=i;i--)i<t&&(l[i]=new L.Point(e.x+n*Math.cos(o),e.y+n*Math.sin(o))._round()),n+=a/(o+=s/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,n=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=s.length-1;0<=e;e--)t=s[e],n.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,n,s,a=this._group,o=a._map,l=a._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<t.length;i++)s=o.layerPointToLatLng(e[i]),r=t[i],n=new L.Polyline([this._latlng,s],c),o.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,n,s,a,o,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],o=p.layerPointToLatLng(e[i]),n=new L.Polyline([d,o],m),p.addLayer(n),r._spiderLeg=n,f&&(a=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=a,s.style.strokeDashoffset=a),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(h);for(c._forceLayout(),c._animationStart(),i=t.length-1;0<=i;i--)o=p.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.clusterShow&&r.clusterShow(),f&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,n,s,a,o=this,l=this._group,c=l._map,p=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(e=d[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,a=!0,e._setPos&&(e._setPos(u),a=!1),e.clusterHide&&(e.clusterHide(),a=!1),a&&p.removeLayer(e),h&&(s=(n=(r=e._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&p.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:o,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(leaflet_markercluster,leaflet_markercluster.exports);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,n,s,a,o,l,c,p=0,u=0,d,h=t.type,f=h==="FeatureCollection",m=h==="Feature",g=f?t.features.length:1;for(var v=0;v<g;v++){c=f?t.features[v].geometry:m?t.geometry:t;d=c?c.type==="GeometryCollection":false;o=d?c.geometries.length:1;for(var w=0;w<o;w++){var b=0;var k=0;a=d?c.geometries[w]:c;if(a===null)continue;l=a.coordinates;var x=a.type;p=i&&(x==="Polygon"||x==="MultiPolygon")?1:0;switch(x){case null:break;case"Point":if(e(l,u,v,b,k)===false)return false;u++;b++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(e(l[r],u,v,b,k)===false)return false;u++;if(x==="MultiPoint")b++}if(x==="LineString")b++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(n=0;n<l[r].length-p;n++){if(e(l[r][n],u,v,b,k)===false)return false;u++}if(x==="MultiLineString")b++;if(x==="Polygon")k++}if(x==="Polygon")b++;break;case"MultiPolygon":for(r=0;r<l.length;r++){k=0;for(n=0;n<l[r].length;n++){for(s=0;s<l[r][n].length-p;s++){if(e(l[r][n][s],u,v,b,k)===false)return false;u++}k++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(coordEach(a.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 n=(i[1]+i[3])/2;return point([r,n],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 n=getCoord(e);var s=degreesToRadians(n[1]-r[1]);var a=degreesToRadians(n[0]-r[0]);var o=degreesToRadians(r[1]);var l=degreesToRadians(n[1]);var c=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(o)*Math.cos(l);return radiansToLength(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),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 n=0;featureEach(e,(function(e,i){var s=distance(t,e);if(s<r){n=i;r=s}}));i=clone(e.features[n]);i.properties.featureIndex=n;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 n=getGeom(e);var s=n.type;var a=e.bbox;var o=n.coordinates;if(a&&inBBox(r,a)===false){return false}if(s==="Polygon"){o=[o]}var l=false;for(var c=0;c<o.length&&!l;c++){if(inRing(r,o[c][0],i.ignoreBoundary)){var p=false;var u=1;while(u<o[c].length&&!p){if(inRing(r,o[c][u],!i.ignoreBoundary)){p=true}u++}if(!p){l=true}}}return l}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 n=0,s=e.length-1;n<e.length;s=n++){var a=e[n][0];var o=e[n][1];var l=e[s][0];var c=e[s][1];var p=t[1]*(a-l)+o*(l-t[0])+c*(t[0]-a)===0&&(a-t[0])*(l-t[0])<=0&&(o-t[1])*(c-t[1])<=0;if(p){return!i}var u=o>t[1]!==c>t[1]&&t[0]<(l-a)*(t[1]-o)/(c-o)+a;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 n=0;while(!r&&n<e.features.length){var s=e.features[n].geometry;var a,o,l,c,p,u,d;var h=false;if(s.type==="Point"){if(i.geometry.coordinates[0]===s.coordinates[0]&&i.geometry.coordinates[1]===s.coordinates[1]){r=true}}else if(s.type==="MultiPoint"){var f=false;d=0;while(!f&&d<s.coordinates.length){if(i.geometry.coordinates[0]===s.coordinates[d][0]&&i.geometry.coordinates[1]===s.coordinates[d][1]){r=true;f=true}d++}}else if(s.type==="LineString"){d=0;while(!h&&d<s.coordinates.length-1){a=i.geometry.coordinates[0];o=i.geometry.coordinates[1];l=s.coordinates[d][0];c=s.coordinates[d][1];p=s.coordinates[d+1][0];u=s.coordinates[d+1][1];if(pointOnSegment(a,o,l,c,p,u)){h=true;r=true}d++}}else if(s.type==="MultiLineString"){var m=0;while(m<s.coordinates.length){h=false;d=0;var g=s.coordinates[m];while(!h&&d<g.length-1){a=i.geometry.coordinates[0];o=i.geometry.coordinates[1];l=g[d][0];c=g[d][1];p=g[d+1][0];u=g[d+1][1];if(pointOnSegment(a,o,l,c,p,u)){h=true;r=true}d++}m++}}else if(s.type==="Polygon"||s.type==="MultiPolygon"){if(booleanPointInPolygon(i,s)){r=true}}n++}if(r){return i}else{var v=featureCollection([]);for(n=0;n<e.features.length;n++){v.features=v.features.concat(explode(e.features[n]).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,n,s){var a=Math.sqrt((n-i)*(n-i)+(s-r)*(s-r));var o=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var l=Math.sqrt((n-t)*(n-t)+(s-e)*(s-e));return a===o+l}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}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-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:calc(100% - 280px - var(--map-bottom-space-height))}.common-map{height:calc(100% - 64px)}#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 .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(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.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:14px;height:14px;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:32px !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,.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,.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,.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-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,.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{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{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{width:36px !important}.parking-marker{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom: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}';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.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.useGradient=false;this.tilesMaxZoomOffline=16;this.isLargeView=false;this.grwApp=false}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]});L$1.control.scale({metric:true,imperial:false}).addTo(this.map);L$1.control.locate({showPopup:false}).addTo(this.map);var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){t.tileLayer.push({key:"".concat(e[n]),value:bundle.exports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=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.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()};return e}});L$1.control.contract=function(t){return new L$1.Control.Contract(t)};L$1.control.contract({position:"topleft"}).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(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(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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l;var c=this;return __generator(this,(function(p){switch(p.label){case 0:state.treksWithinBounds=state.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTreks){n=function(t){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=state.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(s=0,a=state.currentTreks;s<a.length;s++){o=a[s];n(o)}}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:l=p.sent();this.treksLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(l[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(c,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.part="trek-image-popup";s.src=r;n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){c.hideTrekLine();c.showTrekLine(t.properties.id);c.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:48})}});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);p.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){if(this.treksLayer){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,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k,x;var y=this;return __generator(this,(function(A){switch(A.label){case 0:return[4,getDataInStore("treks",state.currentTrek.id)];case 1:e=A.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"}},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){r=getAssetPath("".concat("","assets/parking.svg"));n={type:"Feature",properties:{name:state.currentTrek.advised_parking},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:48,iconAnchor:[24,48]}),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){s={type:"FeatureCollection",features:[]};for(a=0,o=state.currentSensitiveAreas;a<o.length;a++){l=o[a];s.features.push({type:"Feature",properties:{name:l.name},geometry:l.geometry})}this.currentSensitiveAreasLayer=L$1.geoJSON(s,{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:y.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(state.currentTrek)];case 2:A.sent();return[4,this.addCurrentPois()];case 3:A.sent();return[4,this.addCurrentTouristicContents()];case 4:A.sent();return[4,this.addCurrentTouristicEvents()];case 5:A.sent();if(state.currentTrek.points_reference){c={type:"FeatureCollection",features:[]};c.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});p=0;this.currentReferencePointsLayer=L$1.geoJSON(c,{pointToLayer:function(t,e){p+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(p,"</div>"),className:"",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){u={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){d=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.length>0&&e.attachments[0].thumbnail}})};for(h=0,f=state.currentTrekSteps;h<f.length;h++){m=f[h];d(m)}}g=0;this.currentStepsLayer=L$1.geoJSON(u,{pointToLayer:function(t,e){g+=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(g,"</div></div></div>"),className:"",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(y,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.src=r;n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;n.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";n.part="trek-button";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){y.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");w={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:280,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:"inline",time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=L$1.control.elevation(Object.assign({},w)).addTo(this.map);b=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(b);k={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}]};x=0;this.departureArrivalLayer=L$1.geoJSON(k,{pointToLayer:function(t,e){x+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="'.concat(x===1?"departure-marker":"arrival-marker",'" class="').concat(x===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:14}),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(){y.bounds&&y.map.fitBounds(y.bounds);!y.mapIsReady&&(y.mapIsReady=!y.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s;return __generator(this,(function(a){switch(a.label){case 0:i={};r=0;a.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];n=i;s=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:n[s]=a.sent();a.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a;return __generator(this,(function(o){switch(o.label){case 0:if(!!Capacitor.isNativePlatform())return[3,5];return[4,checkFileInStore(t)];case 1:i=o.sent();if(!i)return[3,3];s=(n=window.URL).createObjectURL;return[4,getFileInStore(t)];case 2:r=s.apply(n,[o.sent().data]);return[3,4];case 3:r=t?t:null;o.label=4;case 4:e=r;return[3,7];case 5:return[4,Filesystem.getUri({path:t,directory:Directory.Data})];case 6:a=o.sent();if(a){e=Capacitor.convertFileSrc(a.uri)}o.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s;var a=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.currentTreks){n=state.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=state.practices.find((function(t){return t.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();state.selectedTrekId=t;return[4,this.getIcons(r,"practice")];case 1:s=o.sent();this.selectedCurrentTrekLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:s[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(s[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:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(a,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.src=r;s.part="trek-image";n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!a.trekPopupIsOpen){state.selectedTrekId=null;a.hideTrekLine();a.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){a.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){a.trekPopupIsOpen=false;state.selectedTrekId=null;a.hideTrekLine();a.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 n={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var s=state.currentTrekSteps.findIndex((function(e){return e.id===t}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[s].departure_geom},properties:{id:state.currentTrekSteps[s].id,name:state.currentTrekSteps[s].name,practice:(r=state.practices.find((function(t){return t.id===state.currentTrekSteps[s].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[s].attachments&&state.currentTrekSteps[s].attachments.length>0&&state.currentTrekSteps[s].attachments[0].thumbnail,index:s+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=L$1.geoJSON(n,{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:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=c.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=L$1.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){s=L$1.DomUtil.create("img");s.part="trek-image";s.src=r;n.appendChild(s)}a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-name";o.className="trek-button";o.onclick=function(){return l.trekCardPress.emit(t.properties.id)};n.appendChild(o);e.bindPopup(n,{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(n){switch(n.label){case 0:this.removeSelectedCurrentTrek();return[4,getTrekGeometry(t)];case 1:e=n.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;return __generator(this,(function(i){switch(i.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=i.sent();this.currentToutisticContentLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{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:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);i.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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o;var l=this;return __generator(this,(function(c){switch(c.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.length>0&&t.attachments[0].thumbnail}})};for(n=0,s=state.currentTouristicContents;n<s.length;n++){a=s[n];r(a)}}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:o=c.sent();this.toutisticContentsLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:o[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(o[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:32,iconAnchor:[16,32]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;i.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-content-button";s.className="touristic-content-button";s.onclick=function(){return l.touristicContentCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){l.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:48})}});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);c.label=3;case 3: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;return __generator(this,(function(r){switch(r.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=r.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:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);r.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,n,s;var a=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicContents){n=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=state.touristicContentCategories.find((function(t){return t.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:s=o.sent();this.selectedTouristicContentLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:s[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(s[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:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-content-button";s.className="touristic-content-button";s.onclick=function(){return a.touristicContentCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!a.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){a.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){a.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;a.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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l;var c=this;return __generator(this,(function(p){switch(p.label){case 0:state.touristicEventsWithinBounds=state.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){n=function(t){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(s=0,a=state.currentTouristicEvents;s<a.length;s++){o=a[s];n(o)}}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:l=p.sent();this.touristicEventsLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[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(l[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:32,iconAnchor:[16,32]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-event-button";s.className="touristic-event-button";s.onclick=function(){return c.touristicEventCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){c.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:48})}});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);p.label=3;case 3: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(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l,c;var p=this;return __generator(this,(function(u){switch(u.label){case 0:state.outdoorSitesWithinBounds=state.currentOutdoorSites;i=[];r={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){n=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.length>0&&t.attachments[0].thumbnail}})};for(s=0,a=state.currentOutdoorSites;s<a.length;s++){o=a[s];n(o)}}if(!!this.outdoorSitesLayer)return[3,2];if(i.length>0&&!state.currentMapBounds||t){l=bbox(r);this.bounds=L$1.latLngBounds([l[1],l[0]],[l[3],l[2]])}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:c=u.sent();this.outdoorSitesLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:c[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(c[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:32,iconAnchor:[16,32]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=function(){return p.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){p.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:48})}});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.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(n){switch(n.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=n.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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);n.label=2;case 2:return[4,this.addCurrentInformationDesks(state.currentOutdoorSite)];case 3:n.sent();return[4,this.addCurrentPois()];case 4:n.sent();return[4,this.addCurrentTouristicContents()];case 5:n.sent();return[4,this.addCurrentTouristicEvents()];case 6:n.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:n.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:n.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;var o=this;return __generator(this,(function(l){switch(l.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.length>0&&i.attachments[0].thumbnail}})};for(r=0,n=state.currentRelatedOutdoorSites;r<n.length;r++){s=n[r];i(s)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:a=l.sent();this.currentRelatedOutdoorSitesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[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(a[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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});l.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;var o=this;return __generator(this,(function(l){switch(l.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.length>0&&i.attachments[0].thumbnail}})};for(r=0,n=state.currentRelatedOutdoorCourses;r<n.length;r++){s=n[r];i(s)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:a=l.sent();this.currentRelatedOutdoorCoursesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[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(a[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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});l.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s;var a=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicEvents){n=state.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=state.touristicEventTypes.find((function(t){return t.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:s=o.sent();this.selectedTouristicEventLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:s[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(s[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:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-event-button";s.className="touristic-event-button";s.onclick=function(){return a.touristicEventCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!a.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){a.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));e.on("popupclose",(function(){if(state.selectedTouristicEventId){a.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;a.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(n){switch(n.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=n.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>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);n.label=2;case 2:return[4,this.addCurrentPois()];case 3:n.sent();return[4,this.addCurrentTouristicContents()];case 4:n.sent();return[4,this.addCurrentTouristicEvents()];case 5:n.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var s=this;return __generator(this,(function(a){switch(a.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.length>0&&r.attachments[0].thumbnail}})}}this.removeSelectedOutdoorSite();state.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:n=a.sent();this.selectedOutdoorSiteLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(n[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var a=L$1.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="outdoor-site-button";a.className="outdoor-site-button";a.onclick=function(){return s.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(a);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.outdoorSitePopupIsOpen){state.selectedOutdoorSiteId=null;s.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){s.outdoorSitePopupIsOpen=Boolean(state.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(state.selectedOutdoorSiteId){s.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;s.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,n;var s=this;return __generator(this,(function(a){switch(a.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.length>0&&r.attachments[0].thumbnail}})}this.removeSelectedOutdoorCourse();state.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:n=a.sent();this.selectedOutdoorCourseLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(n[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),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 n=L$1.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-course-name";n.className="outdoor-course-name";i.appendChild(n);var a=L$1.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="outdoor-course-button";a.className="outdoor-course-button";a.onclick=function(){return s.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(a);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.outdoorCoursePopupIsOpen){state.selectedOutdoorCourseId=null;s.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){s.outdoorCoursePopupIsOpen=Boolean(state.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(state.selectedOutdoorCourseId){s.outdoorCoursePopupIsOpen=false;state.selectedOutdoorCourseId=null;s.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,n,s,a;return __generator(this,(function(o){switch(o.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,n=state.currentPois;r<n.length;r++){s=n[r];i(s)}return[4,this.getIcons(e,"type_pictogram")];case 1:a=o.sent();this.currentPoisLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[t.properties.type_pictogram]?'<div part="poi-marker" class="poi-marker"><img src='.concat(a[t.properties.type_pictogram]," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:48}),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()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;return __generator(this,(function(o){switch(o.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:{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,n=state.trekTouristicContents;r<n.length;r++){s=n[r];i(s)}return[4,this.getIcons(e,"category_pictogram")];case 1:a=o.sent();this.currentToutisticContentsLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[t.properties.category_pictogram]?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(a[t.properties.category_pictogram]," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("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()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a;return __generator(this,(function(o){switch(o.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:{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,n=state.trekTouristicEvents;r<n.length;r++){s=n[r];i(s)}return[4,this.getIcons(e,"type_pictogram")];case 1:a=o.sent();this.currentTouristicEventsLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:a[t.properties.type_pictogram]?'\n <div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(a[t.properties.type_pictogram]," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){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()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s;return __generator(this,(function(a){switch(a.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++){n=r[i];if(n.latitude&&n.longitude){e.features.push({type:"Feature",properties:{name:n.name,type_pictogram:n.type.pictogram},geometry:{type:"Point",coordinates:[Number(n.longitude),Number(n.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:s=a.sent();this.currentInformationDesksLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(s[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:48}),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()}))}});a.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.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.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.render=function(){var t=this;var e=getAssetPath("".concat("","assets/layers.svg"));var i=getAssetPath("".concat("","assets/contract.svg"));return h(Host,{key:"7bb7283327e9c052d62a3e289c984dde39f222fd",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,")"),"--map-bottom-space-height":this.isLargeView||!this.grwApp?"0px":"144px"}},h("div",{key:"791ec31343feebab7ab861f8f5b754a3d1c01ac7",id:"map",part:"map",class:state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSite||state.currentOutdoorCourse?"common-map":state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}}),!this.mapIsReady&&h("div",{part:"map-loader-container",class:"map-loader-container"},h("span",{part:"loader",class:"loader"})))};return t}();GrwMap.style=GrwMapStyle0;function Mousewheel(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var s=getWindow();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});e.mousewheel={enabled:false};var a;var o=now();var l;var c=[];function p(t){var e=10;var i=40;var r=800;var n=0;var s=0;var a=0;var o=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}a=n*e;o=s*e;if("deltaY"in t){o=t.deltaY}if("deltaX"in t){a=t.deltaX}if(t.shiftKey&&!a){a=o;o=0}if((a||o)&&t.deltaMode){if(t.deltaMode===1){a*=i;o*=i}else{a*=r;o*=r}}if(a&&!n){n=a<1?-1:1}if(o&&!s){s=o<1?-1:1}return{spinX:n,spinY:s,pixelX:a,pixelY:o}}function u(){if(!e.enabled)return;e.mouseEntered=true}function d(){if(!e.enabled)return;e.mouseEntered=false}function h(t){if(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta){return false}if(e.params.mousewheel.thresholdTime&&now()-o<e.params.mousewheel.thresholdTime){return false}if(t.delta>=6&&now()-o<60){return true}if(t.direction<0){if((!e.isEnd||e.params.loop)&&!e.animating){e.slideNext();n("scroll",t.raw)}}else if((!e.isBeginning||e.params.loop)&&!e.animating){e.slidePrev();n("scroll",t.raw)}o=(new s.Date).getTime();return false}function f(t){var i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges){return true}}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges){return true}return false}function m(t){var i=t;var r=true;if(!e.enabled)return;if(t.target.closest(".".concat(e.params.mousewheel.noMousewheelClass)))return;var s=e.params.mousewheel;if(e.params.cssMode){i.preventDefault()}var o=e.el;if(e.params.mousewheel.eventsTarget!=="container"){o=document.querySelector(e.params.mousewheel.eventsTarget)}var u=o&&o.contains(i.target);if(!e.mouseEntered&&!u&&!s.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=e.rtlTranslate?-1:1;var g=p(i);if(s.forceToAxis){if(e.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(s.invert)d=-d;var v=e.getTranslate()+d*s.sensitivity;if(v>=e.minTranslate())v=e.minTranslate();if(v<=e.maxTranslate())v=e.maxTranslate();r=e.params.loop?true:!(v===e.minTranslate()||v===e.maxTranslate());if(r&&e.params.nested)i.stopPropagation();if(!e.params.freeMode||!e.params.freeMode.enabled){var w={time:now(),delta:Math.abs(d),direction:Math.sign(d),raw:t};if(c.length>=2){c.shift()}var b=c.length?c[c.length-1]:undefined;c.push(w);if(b){if(w.direction!==b.direction||w.delta>b.delta||w.time>b.time+150){h(w)}}else{h(w)}if(f(w)){return true}}else{var k={time:now(),delta:Math.abs(d),direction:Math.sign(d)};var x=l&&k.time<l.time+500&&k.delta<=l.delta&&k.direction===l.direction;if(!x){l=undefined;var y=e.getTranslate()+d*s.sensitivity;var A=e.isBeginning;var L=e.isEnd;if(y>=e.minTranslate())y=e.minTranslate();if(y<=e.maxTranslate())y=e.maxTranslate();e.setTransition(0);e.setTranslate(y);e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses();if(!A&&e.isBeginning||!L&&e.isEnd){e.updateSlidesClasses()}if(e.params.loop){e.loopFix({direction:k.direction<0?"next":"prev",byMousewheel:true})}if(e.params.freeMode.sticky){clearTimeout(a);a=undefined;if(c.length>=15){c.shift()}var b=c.length?c[c.length-1]:undefined;var _=c[0];c.push(k);if(b&&(k.delta>b.delta||k.direction!==b.direction)){c.splice(0)}else if(c.length>=15&&k.time-_.time<500&&_.delta-k.delta>=1&&k.delta<=6){var z=d>0?.8:.2;l=k;c.splice(0);a=nextTick((function(){e.slideToClosest(e.params.speed,true,undefined,z)}),0)}if(!a){a=nextTick((function(){var t=.5;l=k;c.splice(0);e.slideToClosest(e.params.speed,true,undefined,t)}),500)}}if(!x)n("scroll",i);if(e.params.autoplay&&e.params.autoplayDisableOnInteraction)e.autoplay.stop();if(y===e.minTranslate()||y===e.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(t){var i=e.el;if(e.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(e.params.mousewheel.eventsTarget)}i[t]("mouseenter",u);i[t]("mouseleave",d);i[t]("wheel",m)}function v(){if(e.params.cssMode){e.wrapperEl.removeEventListener("wheel",m);return true}if(e.mousewheel.enabled)return false;g("addEventListener");e.mousewheel.enabled=true;return true}function w(){if(e.params.cssMode){e.wrapperEl.addEventListener(event,m);return true}if(!e.mousewheel.enabled)return false;g("removeEventListener");e.mousewheel.enabled=false;return true}r("init",(function(){if(!e.params.mousewheel.enabled&&e.params.cssMode){w()}if(e.params.mousewheel.enabled)v()}));r("destroy",(function(){if(e.params.cssMode){v()}if(e.mousewheel.enabled)w()}));Object.assign(e.mousewheel,{enable:v,disable:w})}function Scrollbar(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var s=getDocument();var a=false;var o=null;var l=null;var c;var p;var u;var d;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,n=t.el;var s=e.params.scrollbar;var a=e.params.loop?e.progressLoop:e.progress;var l=p;var c=(u-p)*a;if(i){c=-c;if(c>0){l=p-c;c=0}else if(-c+p>u){l=u+c}}else if(c<0){l=p+c;c=0}else if(c+p>u){l=u-c}if(e.isHorizontal()){r.style.transform="translate3d(".concat(c,"px, 0, 0)");r.style.width="".concat(l,"px")}else{r.style.transform="translate3d(0px, ".concat(c,"px, 0)");r.style.height="".concat(l,"px")}if(s.hide){clearTimeout(o);n.style.opacity=1;o=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function f(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){p=u*d}else{p=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(p,"px")}else{i.style.height="".concat(p,"px")}if(d>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function g(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){var i=e.scrollbar,r=e.rtlTranslate;var n=i.el;var s;s=(g(t)-elementOffset(n)[e.isHorizontal()?"left":"top"]-(c!==null?c:p/2))/(u-p);s=Math.max(Math.min(s,1),0);if(r){s=1-s}var a=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*s;e.updateProgress(a);e.setTranslate(a);e.updateActiveIndex();e.updateSlidesClasses()}function w(t){var i=e.params.scrollbar;var r=e.scrollbar,s=e.wrapperEl;var o=r.el,p=r.dragEl;a=true;c=t.target===p?g(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();s.style.transitionDuration="100ms";p.style.transitionDuration="100ms";v(t);clearTimeout(l);o.style.transitionDuration="0ms";if(i.hide){o.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",t)}function b(t){var i=e.scrollbar,r=e.wrapperEl;var s=i.el,o=i.dragEl;if(!a)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;v(t);r.style.transitionDuration="0ms";s.style.transitionDuration="0ms";o.style.transitionDuration="0ms";n("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,s=e.wrapperEl;var o=r.el;if(!a)return;a=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";s.style.transitionDuration=""}if(i.hide){clearTimeout(l);l=nextTick((function(){o.style.opacity=0;o.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function x(t){var i=e.scrollbar,r=e.params;var n=i.el;if(!n)return;var a=n;var o=r.passiveListeners?{passive:false,capture:false}:false;var l=r.passiveListeners?{passive:true,capture:false}:false;if(!a)return;var c=t==="on"?"addEventListener":"removeEventListener";a[c]("pointerdown",w,o);s[c]("pointermove",b,o);s[c]("pointerup",k,l)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("off")}function 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 n;if(typeof r.el==="string"&&e.isElement){n=e.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=s.querySelectorAll(r.el)}else if(!n){n=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&n.length>1&&i.querySelectorAll(r.el).length===1){n=i.querySelector(r.el)}if(n.length>0)n=n[0];n.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var a;if(n){a=n.querySelector(".".concat(e.params.scrollbar.dragClass));if(!a){a=createElement("div",e.params.scrollbar.dragClass);n.append(a)}}Object.assign(t,{el:n,dragEl:a});if(r.draggable){y()}if(n){n.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();h()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){h()}));r("setTransition",(function(t,e){f(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){_()}));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();h()};var C=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}_()};Object.assign(e.scrollbar,{enable:z,disable:C,updateSize:m,setTranslate:h,init:L,destroy:_})}function freeMode(t){var e=t.swiper,i=t.extendParams,r=t.emit,n=t.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;var t=e.getTranslate();e.setTranslate(t);e.setTransition(0);e.touchEventsData.velocities.length=0;e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;var t=e.touchEventsData,i=e.touches;if(t.velocities.length===0){t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime})}t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:now()})}function o(t){var i=t.currentPos;if(e.params.cssMode)return;var s=e.params,a=e.wrapperEl,o=e.rtlTranslate,l=e.snapGrid,c=e.touchEventsData;var p=now();var u=p-c.touchStartTime;if(i<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(i>-e.maxTranslate()){if(e.slides.length<l.length){e.slideTo(l.length-1)}else{e.slideTo(e.slides.length-1)}return}if(s.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;e.velocity=f/m;e.velocity/=2;if(Math.abs(e.velocity)<s.freeMode.minimumVelocity){e.velocity=0}if(m>150||now()-d.time>300){e.velocity=0}}else{e.velocity=0}e.velocity*=s.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*s.freeMode.momentumRatio;var v=e.velocity*g;var w=e.translate+v;if(o)w=-w;var b=false;var k;var x=Math.abs(e.velocity)*20*s.freeMode.momentumBounceRatio;var y=void 0;if(w<e.maxTranslate()){if(s.freeMode.momentumBounce){if(w+e.maxTranslate()<-x){w=e.maxTranslate()-x}k=e.maxTranslate();b=true;c.allowMomentumBounce=true}else{w=e.maxTranslate()}if(s.loop&&s.centeredSlides)y=true}else if(w>e.minTranslate()){if(s.freeMode.momentumBounce){if(w-e.minTranslate()>x){w=e.minTranslate()+x}k=e.minTranslate();b=true;c.allowMomentumBounce=true}else{w=e.minTranslate()}if(s.loop&&s.centeredSlides)y=true}else if(s.freeMode.sticky){var A=void 0;for(var L=0;L<l.length;L+=1){if(l[L]>-w){A=L;break}}if(Math.abs(l[A]-w)<Math.abs(l[A-1]-w)||e.swipeDirection==="next"){w=l[A]}else{w=l[A-1]}w=-w}if(y){n("transitionEnd",(function(){e.loopFix()}))}if(e.velocity!==0){if(o){g=Math.abs((-w-e.translate)/e.velocity)}else{g=Math.abs((w-e.translate)/e.velocity)}if(s.freeMode.sticky){var _=Math.abs((o?-w:w)-e.translate);var z=e.slidesSizesGrid[e.activeIndex];if(_<z){g=s.speed}else if(_<2*z){g=s.speed*1.5}else{g=s.speed*2.5}}}else if(s.freeMode.sticky){e.slideToClosest();return}if(s.freeMode.momentumBounce&&b){e.updateProgress(k);e.setTransition(g);e.setTranslate(w);e.transitionStart(true,e.swipeDirection);e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");e.setTransition(s.speed);setTimeout((function(){e.setTranslate(k);elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}),0)}))}else if(e.velocity){r("_freeModeNoMomentumRelease");e.updateProgress(w);e.setTransition(g);e.setTranslate(w);e.transitionStart(true,e.swipeDirection);if(!e.animating){e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}}else{e.updateProgress(w)}e.updateActiveIndex();e.updateSlidesClasses()}else if(s.freeMode.sticky){e.slideToClosest();return}else if(s.freeMode){r("_freeModeNoMomentumRelease")}if(!s.freeMode.momentum||u>=s.longSwipesMs){e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses()}}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:a,onTouchEnd:o}})}var CloseIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>';var DownloadIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></svg>';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}.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.displayFullscreen=false;this.currentOutdoorCourse=undefined;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 n=state.outdoorRatings&&this.currentOutdoorCourse&&state.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var s=n&&__spreadArray([],new Set(n.map((function(t){return t.scale}))),true);var a=s&&state.outdoorRatingsScale.filter((function(t){return s.includes(t.id)}));return h(Host,{key:"16232f04af82f7e5899dfacc097434c45732690e",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?"244px":"204px"}},this.currentOutdoorCourse&&h("div",{part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},h("div",{part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(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.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",null,h("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),h("div",{part:"sub-container",class:"sub-container"},h("div",{part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{part:"icon-label",class:"icon-label type"},i.pictogram&&h("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{part:"label",class:"label"},i.name)),h("div",{part:"icon-label",class:"icon-label duration"},h("span",{part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{part:"label",class:"label"},formatDuration(this.currentOutdoorCourse.duration))),h("div",{part:"icon-label",class:"icon-label length"},h("span",{part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{part:"label",class:"label"},formatLength(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&h("div",{part:"icon-label",class:"icon-label ascent"},h("span",{part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{part:"label",class:"label"},formatAscent(this.currentOutdoorCourse.max_elevation))),n&&a.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(n.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].downloads),h("div",{part:"links-container",class:"links-container"},h("a",{href:"".concat(this.currentOutdoorCourse.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),h("div",{part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&h("div",{part:"description-container",class:"description-container"},h("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{part:"departure-container",class:"departure-container"},h("div",{part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{part:"departure",innerHTML:r.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"advice-container",class:"advice-container"},h("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorCourse.advice&&h("div",{part:"current-advice-container",class:"current-advice-container"},h("span",{part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"accessibilities-container",class:"accessibilities-container"},h("div",{part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-content-container",class:"touristic-content-container"},h("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-event-container",class:"touristic-event-container"},h("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"pois-container",class:"pois-container"},h("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),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(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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weather-container",class:"weather-container"},h("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorCourseDetail.style=GrwOutdoorCourseDetailStyle0;function getTouristicContent(t,e,i,r){return fetch("".concat(t,"touristiccontent/").concat(i,"/?language=").concat(e,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts"),r)}function getTouristicContentsNearTrek(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function getTouristicContentsNearOutdoorSite(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_outdoorsite=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function getTouristicContentsNearOutdoorCourse(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_outdoorcourse=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function getTouristicEvent(t,e,i,r){return fetch("".concat(t,"touristicevent/").concat(i,"/?language=").concat(e,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true"),r)}function getTouristicEventsNearTrek(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}function getTouristicEventsNearOutdoorSite(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_outdoorsite=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}function getTouristicEventsNearOutdoorCourse(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_outdoorcourse=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}var GrwOutdoorCourseProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorCourseId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!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,n,s,a,o,l,c,p,u,d,h;return __generator(this,(function(f){switch(f.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=f.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=f.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=f.sent();n=state;return[4,handleOfflineProperty("touristicContentCategories")];case 4:n.touristicContentCategories=f.sent();s=state;return[4,handleOfflineProperty("touristicEventTypes")];case 5:s.touristicEventTypes=f.sent();a=state;return[4,handleOfflineProperty("poiTypes")];case 6:a.poiTypes=f.sent();o=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 7:o.outdoorCourseTypes=f.sent();return[4,handleOfflineProperty("pois",["url"])];case 8:l=f.sent();c=l.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=c;return[4,handleOfflineProperty("touristicContents",["url"])];case 9:p=f.sent();u=p.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=u;return[4,handleOfflineProperty("touristicEvents",["url"])];case 10:d=f.sent();h=d.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=h;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 11:f.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(fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(getTouristicEventsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8],u=e[9],d=e[10];return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){state.networkError=false;if(i){state.cities=i.results}if(r){state.districts=r.results}if(n){state.themes=n.results}if(s){state.outdoorCourseTypes=s.results}if(a){state.trekTouristicContents=a.results}if(o){state.touristicContentCategories=o.results}if(l){state.trekTouristicEvents=l.results}if(c){state.touristicEventTypes=c.results}if(p){state.currentPois=p.results}if(u){state.poiTypes=u.results}state.currentOutdoorCourse=d;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:"06ce371568bf30472e5bfa9030176a10d2666c80"})};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,n,s,a,o,l){var c="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(c+="&in_bbox=".concat(i));r&&(c+="&cities=".concat(r));n&&(c+="&districts=".concat(n));s&&(c+="&structures=".concat(s));a&&(c+="&themes=".concat(a));o&&(c+="&portals=".concat(o));c+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind&page_size=999";return fetch(c,l)}function getOutdoorSite(t,e,i,r){var n="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");n+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents&page_size=999";return fetch(n,r)}function 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 fetch("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),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.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.offline=false;this.displayFullscreen=false;this.currentOutdoorSite=undefined;this.sources=undefined}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,n,s,a,o,l,o,c;var p=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();n=state;return[4,r.json()];case 2:n.outdoorSites=u.sent().results;state.currentOutdoorSites=state.outdoorSites;u.label=3;case 3:return[4,getAllDataInStore("outdoorSites")];case 4:s=u.sent().filter((function(t){return t.offline===true}));a=state.outdoorSites;a=a.filter((function(t){return s.findIndex((function(e){return e.id===t.id}))===-1}));return[4,writeOrUpdateDataInStore("outdoorSites",a)];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];o=0;u.label=35;case 35:if(!(o<state.currentOutdoorSite.courses.length))return[3,38];l=state.currentOutdoorSite.courses[o];return[4,this.downloadOutdoorCourse(l)];case 36:u.sent();u.label=37;case 37:o++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];o=0;u.label=39;case 39:if(!(o<this.currentOutdoorSite.children.length))return[3,42];c=this.currentOutdoorSite.children[o];return[4,this.downloadOutdoorSite(c)];case 40:u.sent();u.label=41;case 41:o++;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===p.currentOutdoorSite.id})).offline=true;state.currentOutdoorSites.find((function(t){return t.id===p.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l,c,l,p;return __generator(this,(function(u){switch(u.label){case 0: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:n=u.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:u.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 3:u.sent();return[4,getPoisNearSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:s=u.sent().results;return[4,writeOrUpdateDataInStore("pois",s)];case 5:u.sent();return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 6:u.sent();return[4,getTouristicContentsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:a=u.sent().results;return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 8:u.sent();a.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",a)];case 9:u.sent();return[4,getTouristicEventsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=u.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:u.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:u.sent();return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},n),{offline:true,pois:s.map((function(t){return t.id})),touristicContents:a.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:u.sent();if(!(n.courses&&n.courses.length>0))return[3,17];l=0;u.label=14;case 14:if(!(l<n.courses.length))return[3,17];c=n.courses[l];return[4,this.downloadOutdoorCourse(c)];case 15:u.sent();u.label=16;case 16:l++;return[3,14];case 17:if(!(n.children&&n.children.length>0))return[3,21];l=0;u.label=18;case 18:if(!(l<n.children.length))return[3,21];p=n.children[l];return[4,this.downloadOutdoorSite(p)];case 19:u.sent();u.label=20;case 20:l++;return[3,18];case 21:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o;return __generator(this,(function(l){switch(l.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:n=l.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:l.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 3:l.sent();return[4,getPoisNearCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:s=l.sent().results;return[4,writeOrUpdateDataInStore("pois",s)];case 5:l.sent();return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 6:l.sent();return[4,getTouristicContentsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:a=l.sent().results;return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 8:l.sent();a.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",a)];case 9:l.sent();return[4,getTouristicEventsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=l.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:l.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:l.sent();return[4,writeOrUpdateDataInStore("outdoorCourses",[Object.assign(Object.assign({},n),{offline:true,pois:s.map((function(t){return t.id})),touristicContents:a.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:l.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=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:t=[];return[4,getDataInStore("outdoorSites",this.currentOutdoorSite.id)];case 1:e=r.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,writeOrUpdateDataInStore("outdoorSites",t)];case 2:r.sent();if(state.outdoorSites){delete state.outdoorSites.find((function(t){return t.id===i.currentOutdoorSite.id})).offline;if(!state.currentOutdoorSites){state.currentOutdoorSites=state.outdoorSites}delete state.currentOutdoorSites.find((function(t){return t.id===i.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,s,a,o;return __generator(this,(function(l){switch(l.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.outdoorSites){for(n=0,s=state.outdoorSites;n<s.length;n++){a=s[n];r.push(pointOnFeature(a.geometry).geometry.coordinates)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:l.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,n,s;return __generator(this,(function(a){switch(a.label){case 0:r=bundle.exports.tileLayerOffline(t,{attribution:e});n=bbox(i);s=L$1.latLngBounds([n[1],n[0]],[n[3],n[2]]);return[4,writeOrUpdateTilesInStore(r,s,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.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 n=state.outdoorRatings&&this.currentOutdoorSite&&state.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var s=n&&__spreadArray([],new Set(n.map((function(t){return t.scale}))),true);var a=s&&state.outdoorRatingsScale.filter((function(t){return s.includes(t.id)}));return h(Host,{key:"315c1169d344c5c412149dedc3347fb7c5656534",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?"244px":"204px"}},this.currentOutdoorSite&&h("div",{part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},h("div",{part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(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.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",null,h("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{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",{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",{part:"sub-container",class:"sub-container"},h("div",{part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{part:"icon-label",class:"icon-label practice"},i.pictogram&&h("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{part:"label",class:"label"},i.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&h("div",{part:"row",class:"row"},h("span",{part:"icon",class:"icon",innerHTML:ExploreIcon}),h("span",{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",{part:"row",class:"row"},h("span",{part:"icon",class:"icon",innerHTML:AirIcon}),h("span",{part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&h("div",{part:"row",class:"row"},h("span",{part:"icon",class:"icon",innerHTML:EventIcon}),h("span",{part:"label",class:"label"},this.currentOutdoorSite.period)),n&&a.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(n.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),h("div",{part:"links-container",class:"links-container"},h("a",{href:"".concat(this.currentOutdoorSite.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),h("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&h("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&h("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),h("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description&&h("div",{part:"description-container",class:"description-container"},h("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{part:"departure-container",class:"departure-container"},h("div",{part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{part:"departure",innerHTML:r.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"pois-container",class:"pois-container"},h("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),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(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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"advice-container",class:"advice-container"},h("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorSite.advice&&h("div",{part:"current-advice-container",class:"current-advice-container"},h("span",{part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"accessibilities-container",class:"accessibilities-container"},h("div",{part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),state.currentRelatedOutdoorSites&&state.currentRelatedOutdoorSites.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},h("div",{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",{part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},h("div",{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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),state.currentRelatedOutdoorCourses&&state.currentRelatedOutdoorCourses.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},h("div",{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",{part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},h("div",{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",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"information-desks-container",class:"information-desks-container"},h("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-content-container",class:"touristic-content-container"},h("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-event-container",class:"touristic-event-container"},h("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weather-container",class:"weather-container"},h("iframe",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weblinks-container",class:"weblinks-container"},h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"source-container",class:"source-container"},h("div",{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})))})))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorSiteDetail.style=GrwOutdoorSiteDetailStyle0;var GrwOutdoorSiteProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorSiteId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!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,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k,x,y,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();n=state;return[4,handleOfflineProperty("themes")];case 4:n.themes=_.sent();s=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:s.outdoorSiteTypes=_.sent();a=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:a.outdoorPractices=_.sent();o=state;return[4,handleOfflineProperty("outdoorRatings")];case 7:o.outdoorRatings=_.sent();l=state;return[4,handleOfflineProperty("outdoorRatingsScale")];case 8:l.outdoorRatingsScale=_.sent();c=state;return[4,handleOfflineProperty("touristicContentCategories")];case 9:c.touristicContentCategories=_.sent();p=state;return[4,handleOfflineProperty("touristicEventTypes")];case 10:p.touristicEventTypes=_.sent();u=state;return[4,handleOfflineProperty("poiTypes")];case 11:u.poiTypes=_.sent();d=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 12:d.outdoorCourseTypes=_.sent();return[4,handleOfflineProperty("informationDesks")];case 13:h=_.sent();f=h.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=f;return[4,handleOfflineProperty("pois",["url"])];case 14:m=_.sent();g=m.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=g;return[4,handleOfflineProperty("touristicContents",["url"])];case 15:v=_.sent();w=v.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=w;return[4,handleOfflineProperty("touristicEvents",["url"])];case 16:b=_.sent();k=b.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=k;return[4,handleOfflineProperty("outdoorSites",["url"])];case 17:x=_.sent();y=x.filter((function(e){return t.children.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorSites=y;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(fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(getTouristicEventsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8],u=e[9],d=e[10],h=e[11],f=e[12],m=e[13],g=e[14],v=e[15],w=e[16];return __awaiter(t,void 0,void 0,(function(){var t,e,b,k,x,y;var A=this;return __generator(this,(function(L){switch(L.label){case 0:state.networkError=false;if(!(w&&w.children.length>0))return[3,2];t=[];t.push.apply(t,w.children);e=[];t.forEach((function(t){e.push(getOutdoorSite(state.api,state.language,t,A.init))}));b=state;return[4,Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:b.currentRelatedOutdoorSites=L.sent();L.label=2;case 2:if(!(w&&w.courses.length>0))return[3,4];k=[];k.push.apply(k,w.courses);x=[];k.forEach((function(t){x.push(getOutdoorCourse(state.api,state.language,t,A.init))}));y=state;return[4,Promise.all(__spreadArray([],x,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:y.currentRelatedOutdoorCourses=L.sent();L.label=4;case 4:if(i){state.cities=i.results}if(r){state.sources=r.results}if(n){state.districts=n.results}if(s){state.themes=s.results}if(a){state.outdoorSiteTypes=a.results}if(o){state.outdoorPractices=o.results}if(l){state.outdoorRatings=l.results}if(c){state.outdoorRatingsScale=c.results}if(p){state.currentInformationDesks=p.results}if(u){state.trekTouristicContents=u.results}if(d){state.touristicContentCategories=d.results}if(h){state.trekTouristicEvents=h.results}if(f){state.touristicEventTypes=f.results}if(m){state.currentPois=m.results}if(g){state.poiTypes=g.results}if(v){state.outdoorCourseTypes=v.results}state.currentOutdoorSite=w;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:"945352e638982879808e7e9d829471b2e8d9fa14"})};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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(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:"1fd0f6d1ee41a67dc9cad7f2e910074807b666f8",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.outdoorSitesWithinBounds&&h("div",{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:"8706f9dac786babb951b459759c7362011539610",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:"d87a9870dce11511aaaa2d8a51ae11e0c96aa431",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!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){this.handleOnlineOutdoorSites();return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s;return __generator(this,(function(a){switch(a.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=a.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=a.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=a.sent();n=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 4:n.outdoorSiteTypes=a.sent();s=state;return[4,handleOfflineProperty("outdoorPractices")];case 5:s.outdoorPractices=a.sent();return[4,handleOfflineProperty("outdoorSites")];case 6:t=a.sent();state.outdoorSites=t;state.currentOutdoorSites=t;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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5];return __awaiter(t,void 0,void 0,(function(){var t,e,l;return __generator(this,(function(c){switch(c.label){case 0:state.networkError=false;if(i){state.cities=i.results}if(r){state.districts=r.results}if(n){state.themes=n.results}if(s){state.outdoorSiteTypes=s.results}if(a){state.outdoorPractices=a.results}t=[];e=0;c.label=1;case 1:if(!(e<o.results.length))return[3,4];return[4,outdoorSiteIsAvailableOffline(o.results[e].id)];case 2:l=c.sent();t.push(Object.assign(Object.assign({},o.results[e]),{offline:l}));c.label=3;case 3:e++;return[3,1];case 4:state.outdoorSites=t;state.currentOutdoorSites=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getAllDataInStore("outdoorSites")];case 1:t=e.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(t&&t.length>0){this.handleOfflineOutdoorSites(t)}else{state.networkError=true}return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"816811f6aba3a9fb760fef3500a7f703c9270428"})};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:"cc7959ad562b62d0c90127cb33086d75cb3393e2",style:{"--font-family":this.fontFamily}},h("span",{key:"c4d42c475bb35ebc69b02a54a5cfc0b44c06d9ab",part:"icon",class:"icon",innerHTML:SearchIcon}),h("input",{key:"f4a16de4d4e12401d9ff59f6ec73d33a2bf4a57b",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:"3aa2fd044ea41804b31d0865a4faf052d73f801f",style:{"--font-family":this.fontFamily}},h("div",{key:"396573cc6c4825bee4bae0587088c237137face9",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&h("label",{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",{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",{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",{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:"14684efc58b9fd41402518092e184bdb74e88563"},h("span",{key:"0eb1921e34c6eb0d9812c1cc3057fe8b88f5005b",part:"select-language-icon",class:"icon",innerHTML:TranslateIcon}),h("select",{key:"d02d80c7a0c848537fe18aa3bbf7c50b3872f4d5",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.action=undefined;this.fontFamily="Roboto";this.checked=undefined}t.prototype.render=function(){var t=this;return h(Host,{key:"26bc8e910caad9dec84bfbdb4cd63eb20ce8a0a6",style:{"--font-family":this.fontFamily}},h("label",{key:"e381116a54a4f407074bed50cb0d4f4adc88e54f",class:"md3 switch"},h("input",{key:"ff3fb25aae5dc36a6753af531b1183b7be14628f",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),h("span",{key:"f22a575d3db92816b4f5b8b6fa5351d4bc00db0c",class:"slider"},h("span",{key:"1d55821c4dabf1b7b6692b79b69a19be94616469",part:"icon",class:"icon",innerHTML:DoneIcon}))))};return t}();GrwSwitch.style=GrwSwitchStyle0;var grwTouristicContentDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}: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-touristic-content-detail{overflow:hidden}.touristic-content-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}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius: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}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.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}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';var GrwTouristicContentDetailStyle0=grwTouristicContentDetailCss;var GrwTouristicContentDetail=function(){function t(t){registerInstance(this,t);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.isLargeView=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.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}};t.prototype.componentDidUpdate=function(){this.handleSwipers()};t.prototype.componentDidLoad=function(){this.offline=state.currentTouristicContent.offline;this.handleSwipers()};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(state.currentTouristicContent.attachments&&state.currentTouristicContent.attachments[0]&&state.currentTouristicContent.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.touristicContentCategories&&state.currentTouristicContent&&state.touristicContentCategories.find((function(t){return t.id===state.currentTouristicContent.category}));var r=state.currentTouristicContent&&state.currentTouristicContent.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}));return h(Host,{key:"341d76d558e5ea5d22099e949d79dd2d2c4b2471",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?"204px":"164px"}},state.currentTouristicContent&&h("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:function(e){return t.touristicContentDetailContainerRef=e}},h("div",{part:"images-container",class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTouristicContent.attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTouristicContent.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:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"icon",class:"icon",innerHTML:CloseIcon})),h("div",{part:"legend-container",class:"legend-container"},i),h("img",{part:"image",class:"image",src:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},alt:e.legend}))})):h("div",{part:"swiper-slide",class:"swiper-slide"},h("img",{part:"default-poi-img",class:"default-poi-img",src:e,alt:"",loading:"lazy"}))),h("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},h("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",src:i.pictogram,alt:""}),h("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},i.label)),h("div",{part:"name",class:"name"},state.currentTouristicContent.name),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].download),h("div",{part:"links-container",class:"links-container"},h("a",{part:"link-container",class:"link-container",href:"".concat(state.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:""},"PDF")))),state.currentTouristicContent.description_teaser&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"description-teaser",class:"description-teaser",innerHTML:state.currentTouristicContent.description_teaser})),h("div",{part:"divider",class:"divider"}),state.currentTouristicContent.practical_info&&h("div",{part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{part:"description-title",class:"description-title"},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:state.currentTouristicContent.description})),r&&r.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].city," : "),h("div",{part:"cities",class:"cities",innerHTML:r.join(", ")})),state.currentTouristicContent.practical_info&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"useful-information-container",class:"useful-information-container"},h("div",{part:"useful-information-title",class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{part:"useful-information",innerHTML:state.currentTouristicContent.practical_info}))),(state.currentTouristicContent.contact||state.currentTouristicContent.email||state.currentTouristicContent.website)&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"contact-container",class:"contact-container"},h("div",{part:"contact-title",class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicContent.contact&&h("div",{part:"contact",class:"contact",innerHTML:state.currentTouristicContent.contact}),state.currentTouristicContent.email&&h("div",{part:"email-container",class:"email-container"},h("div",{part:"email-title",class:"email-title"},translate[state.language].email," : "),h("a",{href:"mailto:"+state.currentTouristicContent.email,part:"email",class:"email",innerHTML:state.currentTouristicContent.email})),state.currentTouristicContent.website&&h("div",{part:"website-container",class:"website-container"},h("div",{part:"website-title",class:"website-title"},translate[state.language].website," : "),h("a",{href:state.currentTouristicContent.website,part:"website",class:"website",innerHTML:state.currentTouristicContent.website})))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwTouristicContentDetail.style=GrwTouristicContentDetailStyle0;var GrwTouristicContentProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContent()};t.prototype.handleTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("touristicContents",this.touristicContentId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTouristicContent(t)}else{this.handleOnlineTouristicContent()}return[2]}}))}))};t.prototype.handleOfflineTouristicContent=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!state.cities)return[3,2];e=state;return[4,getAllDataInStore("cities")];case 1:e.cities=r.sent();r.label=2;case 2:if(!!state.touristicContentCategories)return[3,4];i=state;return[4,getAllDataInStore("touristicContentCategories")];case 3:i.touristicContentCategories=r.sent();r.label=4;case 4:state.currentTouristicContent=t;return[2]}}))}))};t.prototype.handleOnlineTouristicContent=function(){var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[getTouristicContent(state.api,state.language,this.touristicContentId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2];state.networkError=false;if(e){state.cities=e.results}if(i){state.touristicContentCategories=i.results}state.currentTouristicContent=r}))}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:"b53b958ea4b1bce8196a084a5147ab07cddf9a42"})};return t}();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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(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:"2dd604797c181e971d9fd9e8d9dddb45f67046f6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{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:"ed0d850dda19b44ec98888fc1d3f9479135ce59b",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:"e3d45b8d52f834c9800359c626db8867e29656b7",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t="".concat(state.api,"touristiccontent/?language=").concat(state.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicContentCategories=r.results}state.touristicContents=n.results;state.currentTouristicContents=n.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:"f9f5f8cc4600c9827e17d56b25ed5fe39eac9256"})};return t}();var grwTouristicEventDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}: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-touristic-event-detail{overflow:hidden}.touristic-event-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}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius: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}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.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}';var GrwTouristicEventDetailStyle0=grwTouristicEventDetailCss;var GrwTouristicEventDetail=function(){function t(t){registerInstance(this,t);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.isLargeView=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.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}};t.prototype.componentDidUpdate=function(){this.handleSwipers()};t.prototype.componentDidLoad=function(){this.offline=state.currentTouristicEvent.offline;this.handleSwipers()};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(state.currentTouristicEvent.attachments&&state.currentTouristicEvent.attachments[0]&&state.currentTouristicEvent.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.touristicEventTypes&&state.currentTouristicEvent&&state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type}));var r=state.currentTouristicEvent&&state.currentTouristicEvent.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}));return h(Host,{key:"483376c95e9f180e35b0daf3545f5b106f384657",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?"204px":"164px"}},state.currentTouristicEvent&&h("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:function(e){return t.touristicEventDetailContainerRef=e}},h("div",{part:"images-container",class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTouristicEvent.attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTouristicEvent.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:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"icon",class:"icon",innerHTML:CloseIcon})),h("div",{part:"legend-container",class:"legend-container"},i),h("img",{part:"image",class:"image",src:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},alt:e.legend}))})):h("div",{part:"swiper-slide",class:"swiper-slide"},h("img",{part:"default-poi-img",class:"default-poi-img",src:e,loading:"lazy"}))),h("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},i&&i.pictogram&&h("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",src:i.pictogram}),i&&i.type&&h("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},i.type)),h("div",{part:"name",class:"name"},state.currentTouristicEvent.name),(state.currentTouristicEvent.begin_date||state.currentTouristicEvent.end_date)&&h("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},state.currentTouristicEvent.begin_date===state.currentTouristicEvent.end_date&&h("div",{part:"touristic-event-date",class:"touristic-event-date"},translate[state.language].date," : ",state.currentTouristicEvent.begin_date),state.currentTouristicEvent.begin_date&&state.currentTouristicEvent.begin_date!==state.currentTouristicEvent.end_date&&h("div",{part:"touristic-event-date",class:"touristic-event-date"},translate[state.language].startDate," : ",state.currentTouristicEvent.begin_date),state.currentTouristicEvent.end_date&&state.currentTouristicEvent.begin_date!==state.currentTouristicEvent.end_date&&h("div",{part:"touristic-event-date",class:"touristic-event-date"},translate[state.language].endDate," : ",state.currentTouristicEvent.end_date)),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].download),h("div",{part:"links-container",class:"links-container"},h("a",{part:"link",class:"link",href:"".concat(state.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),state.currentTouristicEvent.description_teaser&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"description-teaser",class:"description-teaser",innerHTML:state.currentTouristicEvent.description_teaser})),h("div",{part:"divider",class:"divider"}),state.currentTouristicEvent.practical_info&&h("div",{part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{part:"description-title",class:"description-title"},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:state.currentTouristicEvent.description})),r&&r.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].city," : "),h("div",{part:"cities",class:"cities",innerHTML:r.join(", ")})),state.currentTouristicEvent.practical_info&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"useful-information-container",class:"useful-information-container"},h("div",{part:"useful-information-title",class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{part:"useful-information",class:"useful-information",innerHTML:state.currentTouristicEvent.practical_info}))),(state.currentTouristicEvent.contact||state.currentTouristicEvent.email||state.currentTouristicEvent.website)&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"contact-container",class:"contact-container"},h("div",{part:"contact-title",class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicEvent.contact&&h("div",{part:"contact",class:"contact",innerHTML:state.currentTouristicEvent.contact}),state.currentTouristicEvent.email&&h("div",{part:"email-container",class:"email-container"},h("div",{part:"email-title",class:"email-title"},translate[state.language].email," : "),h("a",{href:"mailto:"+state.currentTouristicEvent.email,part:"email",class:"email",innerHTML:state.currentTouristicEvent.email})),state.currentTouristicEvent.website&&h("div",{part:"website-container",class:"website-container"},h("div",{part:"website-title",class:"website-title"},translate[state.language].website," : "),h("a",{href:state.currentTouristicEvent.website,part:"website",class:"website",innerHTML:state.currentTouristicEvent.website})))),h("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwTouristicEventDetail.style=GrwTouristicEventDetailStyle0;var GrwTouristicEventProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvent()};t.prototype.handleTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("touristicEvents",this.touristicEventId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTouristicEvent(t)}else{this.handleOnlineTouristicEvent()}return[2]}}))}))};t.prototype.handleOfflineTouristicEvent=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!state.cities)return[3,2];e=state;return[4,getAllDataInStore("cities")];case 1:e.cities=r.sent();r.label=2;case 2:if(!!state.touristicEventTypes)return[3,4];i=state;return[4,getAllDataInStore("touristicEventTypes")];case 3:i.touristicEventTypes=r.sent();r.label=4;case 4:state.currentTouristicEvent=t;return[2]}}))}))};t.prototype.handleOnlineTouristicEvent=function(){var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[getTouristicEvent(state.api,state.language,this.touristicEventId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2];state.networkError=false;if(e){state.cities=e.results}if(i){state.touristicEventTypes=i.results}state.currentTouristicEvent=r}))}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:"3e5e5d3f401801048b1934baa60beee372fc0d7f"})};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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(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:"f418c00dfc2a81c157ad55bc492d30448c2a6b59",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{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:"011626bd6469f4fa9640ac173a7b43c506921803",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:"f87eecb793bf4b292bbe8781c7950f4d0856e7f0",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t="".concat(state.api,"touristicevent/?language=").concat(state.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];state.networkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(r){state.touristicEventTypes=r.results}state.touristicEvents=n.results;state.currentTouristicEvents=n.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:"d3b510f028efe9fe1522ae1a300c2a4cdfeeb066"})};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{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}.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.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.offline=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false}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 n=Object.values(this.options);var s=0;while(!t&&s<n.length){if(n[s].indicator){t=n[s]}else{if(n[s].visible){e+=1;i+=this[n[s].ref].clientWidth}}s++}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,n,s,a,o;return __generator(this,(function(l){switch(l.label){case 0:i=bundle.exports.tileLayerOffline(t,{attribution:e});r=[];if(state.treks){for(n=0,s=state.treks;n<s.length;n++){a=s[n];r.push(a.departure_geom)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:l.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=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:n.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k;var x=this;return __generator(this,(function(y){switch(y.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};return[4,getAllDataInStore("treks")];case 1:r=y.sent().filter((function(t){return t.offline===true}));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:s=y.sent();a=state;return[4,s.json()];case 3:a.treks=y.sent().results;y.label=4;case 4:n=state.treks;n=n.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:o=y.sent();l=state;return[4,o.json()];case 6:l.districts=y.sent().results;y.label=7;case 7:return[4,writeOrUpdateDataInStore("treks",n)];case 8:y.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 9:y.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:y.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:y.sent();return[4,writeOrUpdateFilesInStore(state.difficulties,imagesRegExp)];case 12:y.sent();return[4,writeOrUpdateFilesInStore(state.routes,imagesRegExp)];case 13:y.sent();return[4,writeOrUpdateFilesInStore(state.practices,imagesRegExp)];case 14:y.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 15:y.sent();return[4,writeOrUpdateFilesInStore(state.labels,imagesRegExp)];case 16:y.sent();return[4,writeOrUpdateFilesInStore(state.districts,imagesRegExp)];case 17:y.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 18:y.sent();return[4,writeOrUpdateFilesInStore(state.accessibilities,imagesRegExp)];case 19:y.sent();return[4,writeOrUpdateFilesInStore(state.poiTypes,imagesRegExp)];case 20:y.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp)];case 21:y.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp)];case 22:y.sent();return[4,writeOrUpdateFilesInStore(state.touristicEventTypes,imagesRegExp)];case 23:y.sent();return[4,writeOrUpdateFilesInStore(state.networks,imagesRegExp)];case 24:y.sent();return[4,writeOrUpdateFilesInStore(this.currentTrek,imagesRegExp,true,["url"])];case 25:y.sent();return[4,writeOrUpdateDataInStore("difficulties",state.difficulties)];case 26:y.sent();return[4,writeOrUpdateDataInStore("routes",state.routes)];case 27:y.sent();return[4,writeOrUpdateDataInStore("practices",state.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 28:y.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 29:y.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 30:y.sent();return[4,writeOrUpdateDataInStore("accessibilities",state.accessibilities)];case 31:y.sent();return[4,writeOrUpdateDataInStore("ratings",state.ratings)];case 32:y.sent();return[4,writeOrUpdateDataInStore("ratingsScale",state.ratingsScale)];case 33:y.sent();return[4,writeOrUpdateDataInStore("sensitiveAreas",state.currentSensitiveAreas)];case 34:y.sent();return[4,writeOrUpdateDataInStore("labels",state.labels)];case 35:y.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 36:y.sent();return[4,writeOrUpdateDataInStore("accessibilitiesLevel",state.accessibilitiesLevel)];case 37:y.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 38:y.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 39:y.sent();return[4,writeOrUpdateDataInStore("networks",state.networks)];case 40:y.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 41:y.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 42:y.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 43:y.sent();return[4,writeOrUpdateDataInStore("treks",[Object.assign(Object.assign({},this.currentTrek),{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})),sensitiveAreas:state.currentSensitiveAreas?state.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 44:y.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 45:y.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 46:y.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 47:y.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 48:y.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 49:y.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 50:y.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,60];c=[];c.push.apply(c,this.currentTrek.children);p=[];u=[];d=[];h=[];f=[];c.forEach((function(t){p.push(getTrek(state.api,state.language,t,i));u.push(getTouristicContentsNearTrek(state.api,state.language,t,i));d.push(getTouristicEventsNearTrek(state.api,state.language,t,i));h.push(getPoisNearTrek(state.api,state.language,t,i));f.push(getSensitiveAreasNearTrek(state.api,state.language,t,i))}));return[4,Promise.all(__spreadArray([],p,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 51:m=y.sent();return[4,Promise.all(__spreadArray([],u,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 52:g=y.sent();return[4,Promise.all(__spreadArray([],d,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 53:v=y.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 54:w=y.sent();return[4,Promise.all(__spreadArray([],f,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 55:b=y.sent();k=0;y.label=56;case 56:if(!(k<m.length))return[3,60];m[k].offline=true;m[k].pois=w[k].results.map((function(t){return t.id}));m[k].touristicContents=g[k].results.map((function(t){return t.id}));m[k].touristicEvents=v[k].results.map((function(t){return t.id}));m[k].sensitiveAreas=b[k].results.map((function(t){return t.id}));return[4,writeOrUpdateDataInStore("treks",[m[k]])];case 57:y.sent();return[4,writeOrUpdateFilesInStore(m[k],imagesRegExp,true,["url"])];case 58:y.sent();y.label=59;case 59:k++;return[3,56];case 60: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();return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r;var n=this;return __generator(this,(function(s){switch(s.label){case 0:t=[];return[4,getDataInStore("treks",this.currentTrek.id)];case 1:e=s.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;s.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,getDataInStore("treks",this.currentTrek.children[i])];case 3:r=s.sent();this.deleteOfflineTrekProperties(r);t.push(r);s.label=4;case 4:i++;return[3,2];case 5:return[4,writeOrUpdateDataInStore("treks",t)];case 6:s.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();return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.render=function(){var t=this;var e,i,r,n,s;var a=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,{key:"829dcf5bde01fa8abaacbe3677da486a5f6cb7ee",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?"244px":"204px"}},this.currentTrek&&h("div",{part:"trek-options",class:"trek-options"},h("a",{part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},translate[state.language].options.steps),this.options.description.visible&&h("a",{part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},translate[state.language].options.description),this.options.pois.visible&&h("a",{part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},translate[state.language].options.pois),this.options.recommendations.visible&&h("a",{part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},translate[state.language].options.informationPlaces),this.options.accessibility.visible&&h("a",{part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},translate[state.language].options.accessibility),this.options.touristicContents.visible&&h("a",{part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},translate[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},h("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var 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.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=a},alt:e.legend}))})):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:a,loading:"lazy",alt:""})),h("div",{style:{display:this.offline?"none":"flex"}},h("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&h("div",{part:"themes-container",class:"themes-container"},this.themes.map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{part:"sub-container",class:"sub-container"},h("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&h("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&h("img",{part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),h("span",{part:"label",class:"label"},this.difficulty.label)),h("div",{part:"icon-label",class:"icon-label duration"},h("span",{part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{part:"label",class:"label"},formatDuration((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),h("div",{part:"icon-label",class:"icon-label route"},((i=this.route)===null||i===void 0?void 0:i.pictogram)&&h("img",{part:"icon",class:"icon",src:this.route.pictogram,alt:""}),h("span",{part:"label",class:"label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{part:"icon-label",class:"icon-label length"},h("span",{part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{part:"label",class:"label"},formatLength(this.currentTrek.length_2d))),this.currentTrek.ascent&&h("div",{part:"icon-label",class:"icon-label ascent"},h("span",{part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{part:"label",class:"label"},formatAscent(this.currentTrek.ascent))),this.currentTrek.descent&&h("div",{part:"icon-label",class:"icon-label descent"},h("span",{part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{part:"label",class:"label"},formatDescent(this.currentTrek.descent))),h("div",{part:"icon-label",class:"icon-label practice"},((n=this.practice)===null||n===void 0?void 0:n.pictogram)&&h("img",{part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),h("span",{part:"label",class:"label"},(s=this.practice)===null||s===void 0?void 0:s.name)),h("div",{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",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),h("div",{part:"divider",class:"divider"}),h("div",{part:"downloads-container",class:"downloads-container"},h("div",{part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),h("div",{part:"links-container",class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:" icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"GPX")),h("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"KML")),h("a",{href:"".concat(this.currentTrek.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{part:"label",class:"label"},"PDF")))),h("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&h("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"parent-trek-container",class:"parent-trek-container"},h("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",null,"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{part:"step-container",class:"step-container"},h("div",{part:"step-title",class:"step-title",ref:function(e){return t.stepsRef=e}},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),h("div",{part:"divider",class:"divider"}),this.currentTrek.description&&h("div",{part:"description-container",class:"description-container"},h("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{part:"departure-container",class:"departure-container"},h("div",{part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{part:"arrival-container",class:"arrival-container"},h("div",{part:"arrival-title",class:"arrival-title"},translate[state.language].arrival," : "),h("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{part:"cities-container",class:"cities-container"},h("div",{part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{part:"cities",innerHTML:this.cities.join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"pois-container",class:"pois-container"},h("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},translate[state.language].pois(state.currentPois.length)),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(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",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&this.currentTrek.departure_city&&!this.offline&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weather-container",class:"weather-container"},h("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"access-container",class:"access-container"},h("div",{part:"access-title",class:"access-title"},translate[state.language].roadAccessAndParking),h("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&h("div",null,h("div",{part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},translate[state.language].recommendedParking),h("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"public-transport-container",class:"public-transport-container"},h("div",{part:"public-transport-title",class:"public-transport-title"},translate[state.language].transport),h("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"advice-container",class:"advice-container"},h("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{part:"current-advice-container",class:"current-advice-container"},h("span",{part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&h("div",{part:"gear-container",class:"gear-container"},h("span",{part:"icon",class:"icon",innerHTML:BackpackIcon}),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},h("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(e){return t.sensitiveAreaRef=e}},translate[state.language].environmentalSensitiveAreas),h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"information-desks-container",class:"information-desks-container"},h("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},translate[state.language].informationPlaces),h("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.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",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"accessibilities-container",class:"accessibilities-container"},h("div",{part:"accessibilities-title",class:"accessibilities-title",ref:function(e){return t.accessibilityRef=e}},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&h("div",{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",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},h("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},translate[state.language].emergencyNumber),h("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},h("a",{href:"tel:".concat(this.emergencyNumber.toString())},h("span",{part:"icon",class:"icon",innerHTML:CallIcon}),h("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&h("div",{part:"accessibility-level-container",class:"accessibility-level-container"},h("div",{part:"accessibility-level-title",class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},h("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{part:"accessibility-width-container",class:"accessibility-width-container"},h("div",{part:"accessibility-width-title",class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},h("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},h("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},h("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},h("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-content-container",class:"touristic-content-container"},h("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},translate[state.language].touristicContents(state.trekTouristicContents.length)),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}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"touristic-event-container",class:"touristic-event-container"},h("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),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}))}))),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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"weblinks-container",class:"weblinks-container"},h("div",{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",null,h("div",{part:"divider",class:"divider"}),h("div",{part:"source-container",class:"source-container"},h("div",{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",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwTrekDetail.style=GrwTrekDetailStyle0;var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined}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,n,s,a,o,l,c,p,u,d,h,f,m,g,v,w,b,k,x,y,A,L,_,z,C,M,O;return __generator(this,(function(S){switch(S.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=S.sent();state.parentTrek=i;e.push.apply(e,i.children);S.label=3;case 3:r=[];e.forEach((function(t){r.push(getDataInStore("treks",t))}));n=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:n.currentTrekSteps=S.sent();S.label=5;case 5:s=state;return[4,handleOfflineProperty("difficulties")];case 6:s.difficulties=S.sent();a=state;return[4,handleOfflineProperty("routes")];case 7:a.routes=S.sent();o=state;return[4,handleOfflineProperty("practices")];case 8:o.practices=S.sent();l=state;return[4,handleOfflineProperty("themes")];case 9:l.themes=S.sent();c=state;return[4,handleOfflineProperty("cities")];case 10:c.cities=S.sent();p=state;return[4,handleOfflineProperty("accessibilities")];case 11:p.accessibilities=S.sent();u=state;return[4,handleOfflineProperty("ratings")];case 12:u.ratings=S.sent();d=state;return[4,handleOfflineProperty("ratingsScale")];case 13:d.ratingsScale=S.sent();h=state;return[4,handleOfflineProperty("labels")];case 14:h.labels=S.sent();f=state;return[4,handleOfflineProperty("sources")];case 15:f.sources=S.sent();m=state;return[4,handleOfflineProperty("accessibilitiesLevel")];case 16:m.accessibilitiesLevel=S.sent();g=state;return[4,handleOfflineProperty("touristicContentCategories")];case 17:g.touristicContentCategories=S.sent();v=state;return[4,handleOfflineProperty("touristicEventTypes")];case 18:v.touristicEventTypes=S.sent();w=state;return[4,handleOfflineProperty("networks")];case 19:w.networks=S.sent();b=state;return[4,handleOfflineProperty("poiTypes")];case 20:b.poiTypes=S.sent();return[4,handleOfflineProperty("informationDesks")];case 21:k=S.sent();x=k.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=x;return[4,handleOfflineProperty("pois",["url"])];case 22:y=S.sent();A=y.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=A;return[4,handleOfflineProperty("touristicContents",["url"])];case 23:L=S.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=S.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:M=S.sent();O=M.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));state.currentSensitiveAreas=O;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 26:S.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?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),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"));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),fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),getTouristicEventsNearTrek(state.api,state.language,this.trekId,this.init),fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"trek_network/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8],u=e[9],d=e[10],h=e[11],f=e[12],m=e[13],g=e[14],v=e[15],w=e[16],b=e[17],k=e[18],x=e[19],y=e[20];return __awaiter(t,void 0,void 0,(function(){var t,e,A,L;var _=this;return __generator(this,(function(z){switch(z.label){case 0:state.networkError=false;if(!(y&&y.children.length>0||state.parentTrekId))return[3,5];t=[];if(!(y.children.length>0))return[3,1];state.parentTrekId=y.id;state.parentTrek=y;t.push.apply(t,y.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:e=z.sent();state.parentTrek=e;t.push.apply(t,e.children);z.label=3;case 3:A=[];t.forEach((function(t){A.push(getTrek(state.api,state.language,t,_.init))}));L=state;return[4,Promise.all(__spreadArray([],A,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:L.currentTrekSteps=z.sent();z.label=5;case 5:if(i){state.difficulties=i.results}if(r){state.routes=r.results}if(n){state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(s){state.themes=s.results}if(a){state.cities=a.results}if(o){state.accessibilities=o.results}if(l){state.ratings=l.results}if(c){state.ratingsScale=c.results}if(p){state.currentSensitiveAreas=p.results}if(u){state.labels=u.results}if(d){state.sources=d.results}if(h){state.accessibilitiesLevel=h.results}if(v){state.trekTouristicContents=v.results}if(w){state.touristicContentCategories=w.results}if(b){state.trekTouristicEvents=b.results}if(k){state.touristicEventTypes=k.results}if(x){state.networks=x.results}if(f){state.currentPois=f.results}if(m){state.poiTypes=m.results}if(g){state.currentInformationDesks=g.results}if(y){state.currentTrek=y}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.render=function(){return h(Host,{key:"f91ee60e87d532eb77977fad01b0b8de644561f7"})};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.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false}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:"1062a53e0ca6fb2895eeb053e67b552e5db8ad6f",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{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:"fd6be559acc6085a45937ae12ccd281b29352ab4",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})}))),h("div",{key:"ce16df757c304feed1de020a79bdef68c1f013e0",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.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined}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){this.handleOnlineTreks();return[2]}))}))};t.prototype.handleOfflineTreks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,s,a,o,l;return __generator(this,(function(c){switch(c.label){case 0:e=state;return[4,this.handleOfflineProperty("difficulties")];case 1:e.difficulties=c.sent();i=state;return[4,this.handleOfflineProperty("routes")];case 2:i.routes=c.sent();r=state;return[4,this.handleOfflineProperty("practices")];case 3:r.practices=c.sent();n=state;return[4,this.handleOfflineProperty("themes")];case 4:n.themes=c.sent();s=state;return[4,this.handleOfflineProperty("cities")];case 5:s.cities=c.sent();a=state;return[4,this.handleOfflineProperty("accessibilities")];case 6:a.accessibilities=c.sent();o=state;return[4,this.handleOfflineProperty("labels")];case 7:o.labels=c.sent();l=state;return[4,this.handleOfflineProperty("districts")];case 8:l.districts=c.sent();state.durations=durations;state.lengths=lengths;state.elevations=elevations;return[4,this.handleOfflineProperty("treks")];case 9:t=c.sent();this.sortTreks(t);state.treks=t;state.currentTreks=t;return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t,e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:return[4,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),fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"label/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram,filter&published=true&page_size=999"),this.init),getDistricts(state.api,state.language,this.init),getTreksList(this.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){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],o=e[5],l=e[6],c=e[7],p=e[8];return __awaiter(t,void 0,void 0,(function(){var t,e,u;return __generator(this,(function(d){switch(d.label){case 0:state.networkError=false;state.difficulties=i.results;state.routes=r.results;state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=s.results;state.cities=a.results;state.accessibilities=o.results;state.labels=l.results;state.districts=c.results;state.durations=durations;state.lengths=lengths;state.elevations=elevations;t=[];e=0;d.label=1;case 1:if(!(e<p.results.length))return[3,4];return[4,trekIsAvailableOffline(p.results[e].id)];case 2:u=d.sent();t.push(Object.assign(Object.assign({},p.results[e]),{offline:u}));d.label=3;case 3:e++;return[3,1];case 4:this.sortTreks(t);state.treks=t;state.currentTreks=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getAllDataInStore("treks")];case 1:t=e.sent();if(t&&t.length>0){this.handleOfflineTreks(t)}else{state.networkError=true}return[2]}}))}))}))};t.prototype.render=function(){return h(Host,{key:"6e38f184770da305b7060f907c943cb0f0c42c1d"})};return t}();export{GrwCommonButton as grw_common_button,GrwExtendedFab as grw_extended_fab,GrwFilters as grw_filters,GrwLoader as grw_loader,GrwMap as grw_map,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,GrwTouristicContentDetail as grw_touristic_content_detail,GrwTouristicContentProvider as grw_touristic_content_provider,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicEventDetail as grw_touristic_event_detail,GrwTouristicEventProvider as grw_touristic_event_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};
10
10
  //# sourceMappingURL=grw-common-button_27.entry.js.map