@geotrekce/geotrek-rando-widget 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/grw-app.cjs.entry.js +2 -2
  5. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/grw-filters_12.cjs.entry.js +46 -38
  9. package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filters_12.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +6 -5
  13. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +1 -1
  16. package/dist/cjs/{i18n-cfc000c9.js → i18n-a5ad3083.js} +15 -13
  17. package/dist/cjs/i18n-a5ad3083.js.br +0 -0
  18. package/dist/cjs/i18n-a5ad3083.js.gz +0 -0
  19. package/dist/cjs/i18n-a5ad3083.js.map +1 -0
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/loader.cjs.js.br +0 -0
  22. package/dist/cjs/loader.cjs.js.gz +0 -0
  23. package/dist/cjs/utils-332e41b3.js.map +1 -1
  24. package/dist/collection/components/grw-app/grw-app.js +1 -1
  25. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  26. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  27. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  28. package/dist/collection/components/grw-filters/grw-filters.js +1 -1
  29. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  30. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  31. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
  32. package/dist/collection/components/grw-map/grw-map.js +16 -20
  33. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  34. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  35. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  36. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +1 -1
  37. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  38. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  39. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
  40. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
  41. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  42. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  43. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  44. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
  45. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  46. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  47. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  48. package/dist/collection/i18n/i18n.js +14 -12
  49. package/dist/collection/i18n/i18n.js.br +0 -0
  50. package/dist/collection/i18n/i18n.js.gz +0 -0
  51. package/dist/collection/i18n/i18n.js.map +1 -1
  52. package/dist/collection/store/grw-touristic-content-provider.js +19 -1
  53. package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
  54. package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
  55. package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
  56. package/dist/collection/store/grw-touristic-contents-provider.js +1 -1
  57. package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
  58. package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
  59. package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
  60. package/dist/collection/store/grw-touristic-event-provider.js +23 -5
  61. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  62. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  63. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  64. package/dist/collection/store/grw-trek-provider.js +33 -5
  65. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  66. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  67. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  68. package/dist/collection/store/grw-treks-provider.js +6 -6
  69. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  70. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  71. package/dist/collection/store/grw-treks-provider.js.map +1 -1
  72. package/dist/collection/stories/App.js +6 -0
  73. package/dist/collection/stories/App.js.br +0 -0
  74. package/dist/collection/stories/App.js.gz +0 -0
  75. package/dist/collection/stories/App.stories.js +3 -0
  76. package/dist/collection/stories/App.stories.js.br +0 -0
  77. package/dist/collection/stories/App.stories.js.gz +0 -0
  78. package/dist/collection/utils/utils.js.map +1 -1
  79. package/dist/esm/geotrek-rando-widget.js +1 -1
  80. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  81. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  82. package/dist/esm/grw-app.entry.js +2 -2
  83. package/dist/esm/grw-app.entry.js.br +0 -0
  84. package/dist/esm/grw-app.entry.js.gz +0 -0
  85. package/dist/esm/grw-app.entry.js.map +1 -1
  86. package/dist/esm/grw-filters_12.entry.js +46 -38
  87. package/dist/esm/grw-filters_12.entry.js.br +0 -0
  88. package/dist/esm/grw-filters_12.entry.js.gz +0 -0
  89. package/dist/esm/grw-filters_12.entry.js.map +1 -1
  90. package/dist/esm/grw-touristic-event-card-provider.entry.js +6 -5
  91. package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
  92. package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
  93. package/dist/esm/grw-touristic-event-card-provider.entry.js.map +1 -1
  94. package/dist/esm/{i18n-60e9fdd3.js → i18n-e6325e81.js} +15 -13
  95. package/dist/esm/i18n-e6325e81.js.br +0 -0
  96. package/dist/esm/i18n-e6325e81.js.gz +0 -0
  97. package/dist/esm/i18n-e6325e81.js.map +1 -0
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/loader.js.br +0 -0
  100. package/dist/esm/loader.js.gz +0 -0
  101. package/dist/esm/utils-b09ac7c9.js.map +1 -1
  102. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  103. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  104. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  105. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  106. package/dist/esm-es5/grw-app.entry.js +1 -1
  107. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  108. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  109. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  110. package/dist/esm-es5/grw-filters_12.entry.js +3 -3
  111. package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
  112. package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
  113. package/dist/esm-es5/grw-filters_12.entry.js.map +1 -1
  114. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +1 -1
  115. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
  116. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
  117. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +1 -1
  118. package/dist/esm-es5/i18n-e6325e81.js +2 -0
  119. package/dist/esm-es5/i18n-e6325e81.js.br +0 -0
  120. package/dist/esm-es5/i18n-e6325e81.js.gz +0 -0
  121. package/dist/esm-es5/i18n-e6325e81.js.map +1 -0
  122. package/dist/esm-es5/loader.js +1 -1
  123. package/dist/esm-es5/loader.js.br +0 -0
  124. package/dist/esm-es5/loader.js.gz +0 -0
  125. package/dist/esm-es5/loader.js.map +1 -1
  126. package/dist/esm-es5/utils-b09ac7c9.js.map +1 -1
  127. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  128. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  129. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  130. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  131. package/dist/geotrek-rando-widget/p-0f47847d.system.js +2 -0
  132. package/dist/geotrek-rando-widget/p-0f47847d.system.js.br +0 -0
  133. package/dist/geotrek-rando-widget/p-0f47847d.system.js.gz +0 -0
  134. package/dist/geotrek-rando-widget/p-0f47847d.system.js.map +1 -0
  135. package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +1 -1
  136. package/dist/geotrek-rando-widget/{p-3c32c109.system.entry.js → p-2c4abcd9.system.entry.js} +2 -2
  137. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.br +0 -0
  138. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.gz +0 -0
  139. package/dist/geotrek-rando-widget/{p-3c32c109.system.entry.js.map → p-2c4abcd9.system.entry.js.map} +1 -1
  140. package/dist/geotrek-rando-widget/{p-bcd87b5c.entry.js → p-3bbe169c.entry.js} +3 -3
  141. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.br +0 -0
  142. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.gz +0 -0
  143. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.map +1 -0
  144. package/dist/geotrek-rando-widget/p-42ee320d.entry.js +2 -0
  145. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
  146. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
  147. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +1 -0
  148. package/dist/geotrek-rando-widget/p-5e7ed046.js +2 -0
  149. package/dist/geotrek-rando-widget/p-5e7ed046.js.br +0 -0
  150. package/dist/geotrek-rando-widget/p-5e7ed046.js.gz +0 -0
  151. package/dist/geotrek-rando-widget/p-5e7ed046.js.map +1 -0
  152. package/dist/geotrek-rando-widget/{p-feeb03a9.system.entry.js → p-b40c2ea8.system.entry.js} +3 -3
  153. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.br +0 -0
  154. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.gz +0 -0
  155. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.map +1 -0
  156. package/dist/geotrek-rando-widget/p-ba971c93.entry.js +2 -0
  157. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.br +0 -0
  158. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.gz +0 -0
  159. package/dist/geotrek-rando-widget/{p-d5584258.entry.js.map → p-ba971c93.entry.js.map} +1 -1
  160. package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +1 -1
  161. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
  162. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
  163. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
  164. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
  165. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +2 -0
  166. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
  167. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
  168. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +1 -0
  169. package/dist/types/components/grw-map/grw-map.d.ts +2 -2
  170. package/dist/types/components.d.ts +6 -0
  171. package/dist/types/i18n/i18n.d.ts +1 -0
  172. package/dist/types/store/grw-touristic-content-provider.d.ts +1 -0
  173. package/dist/types/store/grw-touristic-event-provider.d.ts +1 -0
  174. package/dist/types/store/grw-trek-provider.d.ts +1 -0
  175. package/package.json +1 -1
  176. package/dist/cjs/i18n-cfc000c9.js.br +0 -0
  177. package/dist/cjs/i18n-cfc000c9.js.gz +0 -0
  178. package/dist/cjs/i18n-cfc000c9.js.map +0 -1
  179. package/dist/esm/i18n-60e9fdd3.js.br +0 -0
  180. package/dist/esm/i18n-60e9fdd3.js.gz +0 -0
  181. package/dist/esm/i18n-60e9fdd3.js.map +0 -1
  182. package/dist/esm-es5/i18n-60e9fdd3.js +0 -2
  183. package/dist/esm-es5/i18n-60e9fdd3.js.br +0 -0
  184. package/dist/esm-es5/i18n-60e9fdd3.js.gz +0 -0
  185. package/dist/esm-es5/i18n-60e9fdd3.js.map +0 -1
  186. package/dist/geotrek-rando-widget/p-3c32c109.system.entry.js.br +0 -0
  187. package/dist/geotrek-rando-widget/p-3c32c109.system.entry.js.gz +0 -0
  188. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js +0 -2
  189. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.br +0 -0
  190. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.gz +0 -0
  191. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.map +0 -1
  192. package/dist/geotrek-rando-widget/p-7eca502d.js +0 -2
  193. package/dist/geotrek-rando-widget/p-7eca502d.js.br +0 -0
  194. package/dist/geotrek-rando-widget/p-7eca502d.js.gz +0 -0
  195. package/dist/geotrek-rando-widget/p-7eca502d.js.map +0 -1
  196. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js +0 -2
  197. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.br +0 -0
  198. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.gz +0 -0
  199. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.map +0 -1
  200. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js +0 -2
  201. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.br +0 -0
  202. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.gz +0 -0
  203. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.map +0 -1
  204. package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.br +0 -0
  205. package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.gz +0 -0
  206. package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.map +0 -1
  207. package/dist/geotrek-rando-widget/p-d5584258.entry.js +0 -2
  208. package/dist/geotrek-rando-widget/p-d5584258.entry.js.br +0 -0
  209. package/dist/geotrek-rando-widget/p-d5584258.entry.js.gz +0 -0
  210. package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.br +0 -0
  211. package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.gz +0 -0
  212. package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.map +0 -1
@@ -1,14 +1,14 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function a(t){try{l(n.next(t))}catch(e){o(e)}}function s(t){try{l(n["throw"](t))}catch(e){o(e)}}function l(t){t.done?i(t.value):r(t.value).then(a,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(n=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(l){s=[6,l];r=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return t.concat(o||Array.prototype.slice.call(e))};import{r as registerInstance,e as createEvent,h,H as Host,i as getAssetPath,g as getElement}from"./index-d5cacae4.js";import{t as translate}from"./i18n-60e9fdd3.js";import{s as state,o as onChange,r as reset}from"./store-032ab1f5.js";import{t as treksFilters,h as handleTreksFiltersAndSearch,a as touristicContentsFilters,b as handleTouristicContentsFiltersAndSearch,f as formatDuration,c as formatLength,d as formatAscent}from"./utils-b09ac7c9.js";import{g as getWindow,n as nextTick,a as now,e as elementTransitionEnd,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-24051620.js";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{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:20px;line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:20px;border-bottom-right-radius:20px}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}';var GrwFilters=function(){function t(t){registerInstance(this,t);this.resetFilter=createEvent(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined}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}))}};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.render=function(){var t=this;return h(Host,null,h("div",{class:"options-container"},h("div",{class:"filters-container"},state.mode==="treks"&&h("div",{class:"filters-treks-container"},h("div",{class:"filters-options-container"},state.treksWithinBounds&&h("div",{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",{class:"filters-options-buttons-container"},h("button",{class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].activities," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{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",{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",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{key:"treks-activities-segment-container",class:"segment-container"},state["practices"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["difficulties"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),state["durations"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["lengths"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["elevations"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["routes"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),state["accessibilities"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["labels"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{key:"treks-themes-segment-container",class:"segment-container"},state["themes"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{key:"treks-location-segment-container",class:"segment-container"},state["districts"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),state["cities"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicContents"&&h("div",{class:"filters-touristic-contents-container"},h("div",{class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{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",{class:"filters-options-buttons-container"},h("button",{class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},state["touristicContentCategories"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{key:"touristic-contents-location-segment-container",class:"segment-container"},state["districts"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),state["cities"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),h("div",{onClick:function(){return t.handleFilters()},class:"back-filters-container"})))};return t}();GrwFilters.style=grwFiltersCss;var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function createCommonjsModule(t,e,i){return i={path:e,exports:{},require:function(t,e){return commonjsRequire()}},t(i,i.exports),i.exports}function getAugmentedNamespace(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:true,get:function(){return t[i]}})}));return e}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var leafletSrc=createCommonjsModule((function(t,e){
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function a(t){try{l(n.next(t))}catch(e){o(e)}}function s(t){try{l(n["throw"](t))}catch(e){o(e)}}function l(t){t.done?i(t.value):r(t.value).then(a,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(n=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(l){s=[6,l];r=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return t.concat(o||Array.prototype.slice.call(e))};import{r as registerInstance,e as createEvent,h,H as Host,i as getAssetPath,g as getElement}from"./index-d5cacae4.js";import{t as translate}from"./i18n-e6325e81.js";import{s as state,o as onChange,r as reset}from"./store-032ab1f5.js";import{t as treksFilters,h as handleTreksFiltersAndSearch,a as touristicContentsFilters,b as handleTouristicContentsFiltersAndSearch,f as formatDuration,c as formatLength,d as formatAscent}from"./utils-b09ac7c9.js";import{g as getWindow,n as nextTick,a as now,e as elementTransitionEnd,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-24051620.js";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{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:20px;line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:20px;border-bottom-right-radius:20px}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}';var GrwFilters=function(){function t(t){registerInstance(this,t);this.resetFilter=createEvent(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined}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}))}};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.render=function(){var t=this;return h(Host,null,h("div",{class:"options-container"},h("div",{class:"filters-container"},state.mode==="treks"&&h("div",{class:"filters-treks-container"},h("div",{class:"filters-options-container"},state.treksWithinBounds&&h("div",{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",{class:"filters-options-buttons-container"},h("button",{class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].activities," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{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",{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",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{key:"treks-activities-segment-container",class:"segment-container"},state["practices"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderPractices})),state["difficulties"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),state["durations"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["lengths"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["elevations"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["routes"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),state["accessibilities"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["labels"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{key:"treks-themes-segment-container",class:"segment-container"},state["themes"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{key:"treks-location-segment-container",class:"segment-container"},state["districts"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),state["cities"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicContents"&&h("div",{class:"filters-touristic-contents-container"},h("div",{class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{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",{class:"filters-options-buttons-container"},h("button",{class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{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",{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",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},state["touristicContentCategories"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{key:"touristic-contents-location-segment-container",class:"segment-container"},state["districts"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),state["cities"].length>0&&h("div",{class:"filter-container"},h("grw-filter",{filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),h("div",{onClick:function(){return t.handleFilters()},class:"back-filters-container"})))};return t}();GrwFilters.style=grwFiltersCss;var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function createCommonjsModule(t,e,i){return i={path:e,exports:{},require:function(t,e){return commonjsRequire()}},t(i,i.exports),i.exports}function getAugmentedNamespace(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:true,get:function(){return t[i]}})}));return e}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var leafletSrc=createCommonjsModule((function(t,e){
2
2
  /* @preserve
3
3
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
4
4
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
5
5
  */
6
- (function(t,i){i(e)})(commonjsGlobal,(function(t){var e="1.9.4";function i(t){var e,i,n,r;for(i=1,n=arguments.length;i<n;i++){r=arguments[i];for(e in r){t[e]=r[e]}}return t}var n=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function r(t,e){var i=Array.prototype.slice;if(t.bind){return t.bind.apply(t,i.call(arguments,1))}var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function a(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++o}return t._leaflet_id}function s(t,e,i){var n,r,o,a;a=function(){n=false;if(r){o.apply(i,r);r=false}};o=function(){if(n){r=arguments}else{t.apply(i,arguments);setTimeout(a,e);n=true}};return o}function l(t,e,i){var n=e[1],r=e[0],o=n-r;return t===n&&i?t:((t-r)%o+o)%o+r}function c(){return false}function p(t,e){if(e===false){return t}var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return u(t).split(/\s+/)}function d(t,e){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?n(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function f(t,e,i){var n=[];for(var r in t){n.push(encodeURIComponent(i?r.toUpperCase():r)+"="+encodeURIComponent(t[r]))}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,i){var n=e[i];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(e)}return n}))}var v=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function _(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function k(t){var e=+new Date,i=Math.max(0,16-(e-b));b=e+i;return window.setTimeout(t,i)}var x=window.requestAnimationFrame||w("RequestAnimationFrame")||k;var A=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,i){if(i&&x===k){t.call(e)}else{return x.call(window,r(t,e))}}function C(t){if(t){A.call(window,t)}}var P={__proto__:null,extend:i,create:n,bind:r,get lastId(){return o},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:p,trim:u,splitWords:h,setOptions:d,getParamString:f,template:g,isArray:v,indexOf:_,emptyImageUrl:y,requestFn:x,cancelFn:A,requestAnimFrame:T,cancelAnimFrame:C};function S(){}S.extend=function(t){var e=function(){d(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var r=e.__super__=this.prototype;var o=n(r);o.constructor=e;e.prototype=o;for(var a in this){if(Object.prototype.hasOwnProperty.call(this,a)&&a!=="prototype"&&a!=="__super__"){e[a]=this[a]}}if(t.statics){i(e,t.statics)}if(t.includes){M(t.includes);i.apply(null,[o].concat(t.includes))}i(o,t);delete o.statics;delete o.includes;if(o.options){o.options=r.options?n(r.options):{};i(o.options,t.options)}o._initHooks=[];o.callInitHooks=function(){if(this._initHooksCalled){return}if(r.callInitHooks){r.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=o._initHooks.length;t<e;t++){o._initHooks[t].call(this)}};return e};S.include=function(t){var e=this.prototype.options;i(this.prototype,t);if(t.options){this.prototype.options=e;this.mergeOptions(t.options)}return this};S.mergeOptions=function(t){i(this.prototype.options,t);return this};S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var i=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function M(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=v(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var E={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=h(t);for(var r=0,o=t.length;r<o;r++){this._on(t[r],e,i)}}return this},off:function(t,e,i){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var n in t){this._off(n,t[n],e)}}else{t=h(t);var r=arguments.length===1;for(var o=0,a=t.length;o<a;o++){if(r){this._off(t[o])}else{this._off(t[o],e,i)}}}return this},_on:function(t,e,i,n){if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)!==false){return}if(i===this){i=undefined}var r={fn:e,ctx:i};if(n){r.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(r)},_off:function(t,e,i){var n,r,o;if(!this._events){return}n=this._events[t];if(!n){return}if(arguments.length===1){if(this._firingCount){for(r=0,o=n.length;r<o;r++){n[r].fn=c}}delete this._events[t];return}if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}var a=this._listens(t,e,i);if(a!==false){var s=n[a];if(this._firingCount){s.fn=c;this._events[t]=n=n.slice()}n.splice(a,1)}},fire:function(t,e,n){if(!this.listens(t,n)){return this}var r=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];var c=l.fn;if(l.once){this.off(t,c,l.ctx)}c.call(l.ctx||this,r)}this._firingCount--}}if(n){this._propagateEvent(r)}return this},listens:function(t,e,i,n){if(typeof t!=="string"){console.warn('"string" type argument expected')}var r=e;if(typeof e!=="function"){n=!!e;r=undefined;i=undefined}var o=this._events&&this._events[t];if(o&&o.length){if(this._listens(t,r,i)!==false){return true}}if(n){for(var a in this._eventParents){if(this._eventParents[a].listens(t,e,i,n)){return true}}}return false},_listens:function(t,e,i){if(!this._events){return false}var n=this._events[t]||[];if(!e){return!!n.length}if(i===this){i=undefined}for(var r=0,o=n.length;r<o;r++){if(n[r].fn===e&&n[r].ctx===i){return r}}return false},once:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e,true)}}else{t=h(t);for(var r=0,o=t.length;r<o;r++){this._on(t[r],e,i,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[a(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[a(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),true)}}};E.addEventListener=E.on;E.removeEventListener=E.clearAllEventListeners=E.off;E.addOneTimeEventListener=E.once;E.fireEvent=E.fire;E.hasEventListeners=E.listens;var z=S.extend(E);function O(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};O.prototype={clone:function(){return new O(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new O(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new O(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=I(this.x);this.y=I(this.y);return this},distanceTo:function(t){t=B(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=B(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=B(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function B(t,e,i){if(t instanceof O){return t}if(v(t)){return new O(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new O(t.x,t.y)}return new O(t,e,i)}function D(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,r=i.length;n<r;n++){this.extend(i[n])}}D.prototype={extend:function(t){var e,i;if(!t){return this}if(t instanceof O||typeof t[0]==="number"||"x"in t){e=i=B(t)}else{t=j(t);e=t.min;i=t.max;if(!e||!i){return this}}if(!this.min&&!this.max){this.min=e.clone();this.max=i.clone()}else{this.min.x=Math.min(e.x,this.min.x);this.max.x=Math.max(i.x,this.max.x);this.min.y=Math.min(e.y,this.min.y);this.max.y=Math.max(i.y,this.max.y)}return this},getCenter:function(t){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;if(typeof t[0]==="number"||t instanceof O){t=B(t)}else{t=j(t)}if(t instanceof D){e=t.min;i=t.max}else{e=i=t}return e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>=e.x&&n.x<=i.x,a=r.y>=e.y&&n.y<=i.y;return o&&a},overlaps:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>e.x&&n.x<i.x,a=r.y>e.y&&n.y<i.y;return o&&a},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,r=Math.abs(e.y-i.y)*t;return j(B(e.x-n,e.y-r),B(i.x+n,i.y+r))},equals:function(t){if(!t){return false}t=j(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function j(t,e){if(!t||t instanceof D){return t}return new D(t,e)}function R(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,r=i.length;n<r;n++){this.extend(i[n])}}R.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,r;if(t instanceof N){n=t;r=t}else if(t instanceof R){n=t._southWest;r=t._northEast;if(!n||!r){return this}}else{return t?this.extend(Z(t)||F(t)):this}if(!e&&!i){this._southWest=new N(n.lat,n.lng);this._northEast=new N(r.lat,r.lng)}else{e.lat=Math.min(n.lat,e.lat);e.lng=Math.min(n.lng,e.lng);i.lat=Math.max(r.lat,i.lat);i.lng=Math.max(r.lng,i.lng)}return this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,r=Math.abs(e.lng-i.lng)*t;return new R(new N(e.lat-n,e.lng-r),new N(i.lat+n,i.lng+r))},getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof N||"lat"in t){t=Z(t)}else{t=F(t)}var e=this._southWest,i=this._northEast,n,r;if(t instanceof R){n=t.getSouthWest();r=t.getNorthEast()}else{n=r=t}return n.lat>=e.lat&&r.lat<=i.lat&&n.lng>=e.lng&&r.lng<=i.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&n.lat<=i.lat,a=r.lng>=e.lng&&n.lng<=i.lng;return o&&a},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&n.lat<i.lat,a=r.lng>e.lng&&n.lng<i.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=F(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function F(t,e){if(t instanceof R){return t}return new R(t,e)}function N(t,e,i){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(i!==undefined){this.alt=+i}}N.prototype={equals:function(t,e){if(!t){return false}t=Z(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+p(this.lat,t)+", "+p(this.lng,t)+")"},distanceTo:function(t){return H.distance(this,Z(t))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new N(this.lat,this.lng,this.alt)}};function Z(t,e,i){if(t instanceof N){return t}if(v(t)&&typeof t[0]!=="object"){if(t.length===3){return new N(t[0],t[1],t[2])}if(t.length===2){return new N(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new N(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new N(t,e,i)}var G={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),r=this.transformation.transform(e.max,i);return new D(n,r)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,n=t.alt;return new N(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,r=e.lng-i.lng;if(n===0&&r===0){return t}var o=t.getSouthWest(),a=t.getNorthEast(),s=new N(o.lat-n,o.lng-r),l=new N(a.lat-n,a.lng-r);return new R(s,l)}};var H=i({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,r=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),s=o*o+Math.cos(n)*Math.cos(r)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}});var U=6378137;var V={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),r=Math.sin(n*e);return new O(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new N((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=U*Math.PI;return new D([-t,-t],[t,t])}()};function W(t,e,i,n){if(v(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=i;this._d=n}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new O((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Y(t,e,i,n){return new W(t,e,i,n)}var $=i({},H,{code:"EPSG:3857",projection:V,transformation:function(){var t=.5/(Math.PI*V.R);return Y(t,.5,-t,.5)}()});var q=i({},$,{code:"EPSG:900913"});function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var i="",n,r,o,a,s,l;for(n=0,o=t.length;n<o;n++){s=t[n];for(r=0,a=s.length;r<a;r++){l=s[r];i+=(r?"L":"M")+l.x+" "+l.y}i+=e?Dt.svg?"z":"x":""}return i||"M0 0"}var J=document.documentElement.style;var X="ActiveXObject"in window;var tt=X&&!document.addEventListener;var et="msLaunchUri"in navigator&&!("documentMode"in document);var it=Bt("webkit");var nt=Bt("android");var rt=Bt("android 2")||Bt("android 3");var ot=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var at=nt&&Bt("Google")&&ot<537&&!("AudioNode"in window);var st=!!window.opera;var lt=!et&&Bt("chrome");var ct=Bt("gecko")&&!it&&!st&&!X;var pt=!lt&&Bt("safari");var ut=Bt("phantom");var ht="OTransition"in J;var dt=navigator.platform.indexOf("Win")===0;var ft=X&&"transition"in J;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt;var gt="MozPerspective"in J;var vt=!window.L_DISABLE_3D&&(ft||mt||gt)&&!ht&&!ut;var _t=typeof orientation!=="undefined"||Bt("mobile");var yt=_t&&it;var wt=_t&&mt;var bt=!window.PointerEvent&&window.MSPointerEvent;var kt=!!(window.PointerEvent||bt);var xt="ontouchstart"in window||!!window.TouchEvent;var Lt=!window.L_NO_TOUCH&&(xt||kt);var At=_t&&st;var Tt=_t&&ct;var Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Pt=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,e);window.removeEventListener("testPassiveEventSupport",c,e)}catch(i){}return t}();var St=function(){return!!document.createElement("canvas").getContext}();var Mt=!!(document.createElementNS&&Q("svg").createSVGRect);var Et=!!Mt&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var zt=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(i){return false}}();var Ot=navigator.platform.indexOf("Mac")===0;var It=navigator.platform.indexOf("Linux")===0;function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Dt={ie:X,ielt9:tt,edge:et,webkit:it,android:nt,android23:rt,androidStock:at,opera:st,chrome:lt,gecko:ct,safari:pt,phantom:ut,opera12:ht,win:dt,ie3d:ft,webkit3d:mt,gecko3d:gt,any3d:vt,mobile:_t,mobileWebkit:yt,mobileWebkit3d:wt,msPointer:bt,pointer:kt,touch:Lt,touchNative:xt,mobileOpera:At,mobileGecko:Tt,retina:Ct,passiveEvents:Pt,canvas:St,svg:Mt,vml:zt,inlineSvg:Et,mac:Ot,linux:It};var jt=Dt.msPointer?"MSPointerDown":"pointerdown";var Rt=Dt.msPointer?"MSPointerMove":"pointermove";var Ft=Dt.msPointer?"MSPointerUp":"pointerup";var Nt=Dt.msPointer?"MSPointerCancel":"pointercancel";var Zt={touchstart:jt,touchmove:Rt,touchend:Ft,touchcancel:Nt};var Gt={touchstart:Jt,touchmove:Kt,touchend:Kt,touchcancel:Kt};var Ht={};var Ut=false;function Vt(t,e,i){if(e==="touchstart"){Qt()}if(!Gt[e]){console.warn("wrong event specified:",e);return c}i=Gt[e].bind(this,i);t.addEventListener(Zt[e],i,false);return i}function Wt(t,e,i){if(!Zt[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Zt[e],i,false)}function Yt(t){Ht[t.pointerId]=t}function $t(t){if(Ht[t.pointerId]){Ht[t.pointerId]=t}}function qt(t){delete Ht[t.pointerId]}function Qt(){if(!Ut){document.addEventListener(jt,Yt,true);document.addEventListener(Rt,$t,true);document.addEventListener(Ft,qt,true);document.addEventListener(Nt,qt,true);Ut=true}}function Kt(t,e){if(e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")){return}e.touches=[];for(var i in Ht){e.touches.push(Ht[i])}e.changedTouches=[e];t(e)}function Jt(t,e){if(e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH){Ye(e)}Kt(t,e)}function Xt(t){var e={},i,n;for(n in t){i=t[n];e[n]=i&&i.bind?i.bind(t):i}t=e;e.type="dblclick";e.detail=2;e.isTrusted=false;e._simulated=true;return e}var te=200;function ee(t,e){t.addEventListener("dblclick",e);var i=0,n;function r(t){if(t.detail!==1){n=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var r=qe(t);if(r.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!r.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var o=Date.now();if(o-i<=te){n++;if(n===2){e(Xt(t))}}else{n=1}i=o}t.addEventListener("click",r);return{dblclick:e,simDblclick:r}}function ie(t,e){t.removeEventListener("dblclick",e.dblclick);t.removeEventListener("click",e.simDblclick)}var ne=we(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var re=we(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var oe=re==="webkitTransition"||re==="OTransition"?re+"End":"transitionend";function ae(t){return typeof t==="string"?document.getElementById(t):t}function se(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function le(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function ce(t){var e=t.parentNode;if(e){e.removeChild(t)}}function pe(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ue(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function he(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function de(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=ve(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function fe(t,e){if(t.classList!==undefined){var i=h(e);for(var n=0,r=i.length;n<r;n++){t.classList.add(i[n])}}else if(!de(t,e)){var o=ve(t);ge(t,(o?o+" ":"")+e)}}function me(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{ge(t,u((" "+ve(t)+" ").replace(" "+e+" "," ")))}}function ge(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function ve(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function _e(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){ye(t,e)}}function ye(t,e){var i=false,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(r){if(e===1){return}}e=Math.round(e*100);if(i){i.Enabled=e!==100;i.Opacity=e}else{t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function we(t){var e=document.documentElement.style;for(var i=0;i<t.length;i++){if(t[i]in e){return t[i]}}return false}function be(t,e,i){var n=e||new O(0,0);t.style[ne]=(Dt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ke(t,e){t._leaflet_pos=e;if(Dt.any3d){be(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function xe(t){return t._leaflet_pos||new O(0,0)}var Le;var Ae;var Te;if("onselectstart"in document){Le=function(){je(window,"selectstart",Ye)};Ae=function(){Fe(window,"selectstart",Ye)}}else{var Ce=we(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Le=function(){if(Ce){var t=document.documentElement.style;Te=t[Ce];t[Ce]="none"}};Ae=function(){if(Ce){document.documentElement.style[Ce]=Te;Te=undefined}}}function Pe(){je(window,"dragstart",Ye)}function Se(){Fe(window,"dragstart",Ye)}var Me,Ee;function ze(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Oe();Me=t;Ee=t.style.outlineStyle;t.style.outlineStyle="none";je(window,"keydown",Oe)}function Oe(){if(!Me){return}Me.style.outlineStyle=Ee;Me=undefined;Ee=undefined;Fe(window,"keydown",Oe)}function Ie(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Be(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var De={__proto__:null,TRANSFORM:ne,TRANSITION:re,TRANSITION_END:oe,get:ae,getStyle:se,create:le,remove:ce,empty:pe,toFront:ue,toBack:he,hasClass:de,addClass:fe,removeClass:me,setClass:ge,getClass:ve,setOpacity:_e,testProp:we,setTransform:be,setPosition:ke,getPosition:xe,get disableTextSelection(){return Le},get enableTextSelection(){return Ae},disableImageDrag:Pe,enableImageDrag:Se,preventOutline:ze,restoreOutline:Oe,getSizedParentNode:Ie,getScale:Be};function je(t,e,i,n){if(e&&typeof e==="object"){for(var r in e){Ge(t,r,e[r],i)}}else{e=h(e);for(var o=0,a=e.length;o<a;o++){Ge(t,e[o],i,n)}}return this}var Re="_leaflet_events";function Fe(t,e,i,n){if(arguments.length===1){Ne(t);delete t[Re]}else if(e&&typeof e==="object"){for(var r in e){He(t,r,e[r],i)}}else{e=h(e);if(arguments.length===2){Ne(t,(function(t){return _(e,t)!==-1}))}else{for(var o=0,a=e.length;o<a;o++){He(t,e[o],i,n)}}}return this}function Ne(t,e){for(var i in t[Re]){var n=i.split(/\d/)[0];if(!e||e(n)){He(t,n,null,null,i)}}}var Ze={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ge(t,e,i,n){var r=e+a(i)+(n?"_"+a(n):"");if(t[Re]&&t[Re][r]){return this}var o=function(e){return i.call(n||t,e||window.event)};var s=o;if(!Dt.touchNative&&Dt.pointer&&e.indexOf("touch")===0){o=Vt(t,e,o)}else if(Dt.touch&&e==="dblclick"){o=ee(t,o)}else if("addEventListener"in t){if(e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"){t.addEventListener(Ze[e]||e,o,Dt.passiveEvents?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){o=function(e){e=e||window.event;if(Xe(t,e)){s(e)}};t.addEventListener(Ze[e],o,false)}else{t.addEventListener(e,s,false)}}else{t.attachEvent("on"+e,o)}t[Re]=t[Re]||{};t[Re][r]=o}function He(t,e,i,n,r){r=r||e+a(i)+(n?"_"+a(n):"");var o=t[Re]&&t[Re][r];if(!o){return this}if(!Dt.touchNative&&Dt.pointer&&e.indexOf("touch")===0){Wt(t,e,o)}else if(Dt.touch&&e==="dblclick"){ie(t,o)}else if("removeEventListener"in t){t.removeEventListener(Ze[e]||e,o,false)}else{t.detachEvent("on"+e,o)}t[Re][r]=null}function Ue(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Ve(t){Ge(t,"wheel",Ue);return this}function We(t){je(t,"mousedown touchstart dblclick contextmenu",Ue);t["_leaflet_disable_click"]=true;return this}function Ye(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function $e(t){Ye(t);Ue(t);return this}function qe(t){if(t.composedPath){return t.composedPath()}var e=[];var i=t.target;while(i){e.push(i);i=i.parentNode}return e}function Qe(t,e){if(!e){return new O(t.clientX,t.clientY)}var i=Be(e),n=i.boundingClientRect;return new O((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ke=Dt.linux&&Dt.chrome?window.devicePixelRatio:Dt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Je(t){return Dt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ke:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Xe(t,e){var i=e.relatedTarget;if(!i){return true}try{while(i&&i!==t){i=i.parentNode}}catch(n){return false}return i!==t}var ti={__proto__:null,on:je,off:Fe,stopPropagation:Ue,disableScrollPropagation:Ve,disableClickPropagation:We,preventDefault:Ye,stop:$e,getPropagationPath:qe,getMousePosition:Qe,getWheelDelta:Je,isExternalTarget:Xe,addListener:je,removeListener:Fe};var ei=z.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=xe(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=T(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(e<i){this._runFrame(this._easeOut(e/i),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));if(e){i._round()}ke(this._el,i);this.fire("step")},_complete:function(){C(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ii=z.extend({options:{crs:$,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=d(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=r(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(Z(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=re&&Dt.any3d&&!Dt.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();je(this._proxy,oe,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(Z(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=i({animate:n.animate},n.zoom);n.pan=i({animate:n.animate,duration:n.duration},n.pan)}var r=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(r){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e,n.pan&&n.pan.noMoveStart);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(Dt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(Dt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),r=this.getSize().divideBy(2),o=t instanceof O?t:this.latLngToContainerPoint(t),a=o.subtract(r).multiplyBy(1-1/n),s=this.containerPointToLatLng(r.add(a));return this.setView(s,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():F(t);var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,false,i.add(n));r=typeof e.maxZoom==="number"?Math.min(e.maxZoom,r):r;if(r===Infinity){return{center:t.getCenter(),zoom:r}}var o=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),r),s=this.project(t.getNorthEast(),r),l=this.unproject(a.add(s).divideBy(2).add(o),r);return{center:l,zoom:r}},fitBounds:function(t,e){t=F(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=B(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ei;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){fe(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,e,i){i=i||{};if(i.animate===false||!Dt.any3d){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),a=this._zoom;t=Z(t);e=e===undefined?a:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,e),c=r.distanceTo(n)||1,p=1.42,u=p*p;function h(t){var e=t?-1:1,i=t?l:s,n=l*l-s*s+e*u*u*c*c,r=2*i*u*c,o=n/r,a=Math.sqrt(o*o+1)-o;var p=a<1e-9?-18:Math.log(a);return p}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return d(t)/f(t)}var g=h(0);function v(t){return s*(f(g)/f(g+p*t))}function _(t){return s*(f(g)*m(g+p*t)-d(g))/u}function y(t){return 1-Math.pow(1-t,1.5)}var w=Date.now(),b=(h(1)-g)/p,k=i.duration?1e3*i.duration:1e3*b*.8;function x(){var i=(Date.now()-w)/k,o=y(i)*b;if(i<=1){this._flyToFrame=T(x,this);this._move(this.unproject(n.add(r.subtract(n).multiplyBy(_(o)/c)),a),this.getScaleZoom(s/v(o),a),{flyTo:true})}else{this._move(t,e)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);x.call(this);return this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){t=F(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,F(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),r=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),s=j([a.min.add(i),a.max.subtract(n)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=true;var c=o.subtract(s.getCenter());var p=s.extend(o).getSize().subtract(l);r.x+=c.x<0?-p.x:p.x;r.y+=c.y<0?-p.y:p.y;this.panTo(this.unproject(r),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=i({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),s=o.subtract(a);if(!s.x&&!s.y){return this}if(t.animate&&t.pan){this.panBy(s)}else{if(t.pan){this._rawPanBy(s)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=i({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=r(this._handleGeolocationResponse,this),n=r(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var e=t.coords.latitude,i=t.coords.longitude,n=new N(e,i),r=n.toBounds(t.coords.accuracy*2),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(r);this.setView(n,o.maxZoom?Math.min(a,o.maxZoom):a)}var s={latlng:n,bounds:r,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){s[l]=t.coords[l]}}this.fire("locationfound",s)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(e){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ce(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){C(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ce(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=le("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter.clone()}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new R(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=F(t);i=B(i||[0,0]);var n=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(i),c=j(this.project(s,n),this.project(a,n)).getSize(),p=Dt.any3d?this.options.zoomSnap:1,u=l.x/c.x,h=l.y/c.y,d=e?Math.max(u,h):Math.min(u,h);n=this.getScaleZoom(d,n);if(p){n=Math.round(n/(p/100))*(p/100);n=e?Math.ceil(n/p)*p:Math.floor(n/p)*p}return Math.max(r,Math.min(o,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new D(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(Z(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Qe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ae(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}je(e,"scroll",this._onScroll,this);this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Dt.any3d;fe(t,"leaflet-container"+(Dt.touch?" leaflet-touch":"")+(Dt.retina?" leaflet-retina":"")+(Dt.ielt9?" leaflet-oldie":"")+(Dt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=se(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);ke(this._mapPane,new O(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){fe(t.markerPane,"leaflet-zoom-hide");fe(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e,i){ke(this._mapPane,new O(0,0));var n=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,i)._move(t,e)._moveEnd(r);this.fire("viewreset");if(n){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i,n){if(e===undefined){e=this._zoom}var r=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!n){if(r||i&&i.pinch){this.fire("zoom",i)}this.fire("move",i)}else if(i&&i.pinch){this.fire("zoom",i)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){C(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){ke(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(t){this._targets={};this._targets[a(this._container)]=this;var e=t?Fe:je;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(Dt.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){C(this._resizeRequest);this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,r=e==="mouseout"||e==="mouseover",o=t.target||t.srcElement,s=false;while(o){n=this._targets[a(o)];if(n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){s=true;break}if(n&&n.listens(e,true)){if(r&&!Xe(o,t)){break}i.push(n);if(r){break}}if(o===this._container){break}o=o.parentNode}if(!i.length&&!s&&!r&&this.listens(e,true)){i=[this]}return i},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!this._loaded||e["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(e)){return}var i=t.type;if(i==="mousedown"){ze(e)}this._fireDOMEvent(t,i)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var r=i({},t);r.type="preclick";this._fireDOMEvent(r,r.type,n)}var o=this._findEventTargets(t,e);if(n){var a=[];for(var s=0;s<n.length;s++){if(n[s].listens(e,true)){a.push(n[s])}}o=a.concat(o)}if(!o.length){return}if(e==="contextmenu"){Ye(t)}var l=o[0];var c={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var p=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=p?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);c.layerPoint=this.containerPointToLayerPoint(c.containerPoint);c.latlng=p?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<o.length;s++){o[s].fire(e,c,true);if(c.originalEvent._stopped||o[s].options.bubblingMouseEvents===false&&_(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return xe(this._mapPane)||new O(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return j([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i){return t}var n=this.project(t,e),r=this.getSize().divideBy(2),o=new D(n.subtract(r),n.add(r)),a=this._getBoundsOffset(o,i,e);if(Math.abs(a.x)<=1&&Math.abs(a.y)<=1){return t}return this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new D(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=j(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),r=n.min.subtract(t.min),o=n.max.subtract(t.max),a=this._rebound(r.x,-o.x),s=this._rebound(r.y,-o.y);return new O(a,s)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Dt.any3d?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){me(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=le("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ne,i=this._proxy.style[e];be(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ce(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();be(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(r)){return false}T((function(){this._moveStart(true,i.noMoveStart||false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;fe(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(r(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){me(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function ni(t,e){return new ii(t,e)}var ri=S.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];fe(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ce(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var oi=function(t){return new ri(t)};ii.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=le("div",e+"control-container",this._container);function n(n,r){var o=e+n+" "+e+r;t[n+r]=le("div",o,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ce(this._controlCorners[t])}ce(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var ai=ri.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){d(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var n in t){this._addLayer(t[n],n)}for(n in e){this._addLayer(e[n],n,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ri.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){fe(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){fe(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{me(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){me(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=le("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);We(e);Ve(e);var n=this._section=le("section",t+"-list");if(i){this._map.on("click",this.collapse,this);je(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var r=this._layersLink=le("a",t+"-toggle",e);r.href="#";r.title="Layers";r.setAttribute("role","button");je(r,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){Ye(t);this._expandSafely()}},this);if(!i){this.expand()}this._baseLayersList=le("div",t+"-base",n);this._separator=le("div",t+"-separator",n);this._overlaysList=le("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&a(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,i){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:i});if(this.options.sortLayers){this._layers.sort(r((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}pe(this._baseLayersList);pe(this._overlaysList);this._layerControlInputs=[];var t,e,i,n,r=0;for(i=0;i<this._layers.length;i++){n=this._layers[i];this._addItem(n);e=e||n.overlay;t=t||!n.overlay;r+=!n.overlay?1:0}if(this.options.hideSingleBase){t=t&&r>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(a(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+a(this),i)}this._layerControlInputs.push(n);n.layerId=a(t.layer);je(n,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("span");e.appendChild(o);o.appendChild(n);o.appendChild(r);var s=t.overlay?this._overlaysList:this._baseLayersList;s.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){if(this._preventClick){return}var t=this._layerControlInputs,e,i;var n=[],r=[];this._handlingClick=true;for(var o=t.length-1;o>=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){r.push(i)}}for(o=0;o<r.length;o++){if(this._map.hasLayer(r[o])){this._map.removeLayer(r[o])}}for(o=0;o<n.length;o++){if(!this._map.hasLayer(n[o])){this._map.addLayer(n[o])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,i,n=this._map.getZoom();for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&n<i.options.minZoom||i.options.maxZoom!==undefined&&n>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;this._preventClick=true;je(t,"click",Ye);this.expand();var e=this;setTimeout((function(){Fe(t,"click",Ye);e._preventClick=false}))}});var si=function(t,e,i){return new ai(t,e,i)};var li=ri.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=le("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,r){var o=le("a",i,n);o.innerHTML=t;o.href="#";o.title=e;o.setAttribute("role","button");o.setAttribute("aria-label",e);We(o);je(o,"click",$e);je(o,"click",r,this);je(o,"click",this._refocusOnMap,this);return o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";me(this._zoomInButton,e);me(this._zoomOutButton,e);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){fe(this._zoomOutButton,e);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){fe(this._zoomInButton,e);this._zoomInButton.setAttribute("aria-disabled","true")}}});ii.mergeOptions({zoomControl:true});ii.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new li;this.addControl(this.zoomControl)}}));var ci=function(t){return new li(t)};var pi=ri.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=le("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=le("div",e,i)}if(t.imperial){this._iScale=le("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,r;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{r=this._getRoundNum(e);this._updateScale(this._iScale,r+" ft",r/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var ui=function(t){return new pi(t)};var hi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var di=ri.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Dt.inlineSvg?hi+" ":"")+"Leaflet</a>"},initialize:function(t){d(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=le("div","leaflet-control-attribution");We(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}});ii.mergeOptions({attributionControl:true});ii.addInitHook((function(){if(this.options.attributionControl){(new di).addTo(this)}}));var fi=function(t){return new di(t)};ri.Layers=ai;ri.Zoom=li;ri.Scale=pi;ri.Attribution=di;oi.layers=si;oi.zoom=ci;oi.scale=ui;oi.attribution=fi;var mi=S.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){t.addHandler(e,this);return this};var gi={Events:E};var vi=Dt.touch?"touchstart mousedown":"mousedown";var _i=z.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){d(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}je(this._dragStartTarget,vi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(_i._dragging===this){this.finishDrag(true)}Fe(this._dragStartTarget,vi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(de(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(_i._dragging===this){this.finishDrag()}return}if(_i._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}_i._dragging=this;if(this._preventOutline){ze(this._element)}Pe();Le();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ie(this._element);this._startPoint=new O(e.clientX,e.clientY);this._startPos=xe(this._element);this._parentScale=Be(i);var n=t.type==="mousedown";je(document,n?"mousemove":"touchmove",this._onMove,this);je(document,n?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new O(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;Ye(t);if(!this._moved){this.fire("dragstart");this._moved=true;fe(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}fe(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);ke(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){me(document.body,"leaflet-dragging");if(this._lastTarget){me(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Fe(document,"mousemove touchmove",this._onMove,this);Fe(document,"mouseup touchend touchcancel",this._onUp,this);Se();Ae();var e=this._moved&&this._moving;this._moving=false;_i._dragging=false;if(e){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}});function yi(t,e,i){var n,r=[1,4,2,8],o,a,s,l,c,p,u,h;for(o=0,p=t.length;o<p;o++){t[o]._code=zi(t[o],e)}for(s=0;s<4;s++){u=r[s];n=[];for(o=0,p=t.length,a=p-1;o<p;a=o++){l=t[o];c=t[a];if(!(l._code&u)){if(c._code&u){h=Ei(c,l,u,e,i);h._code=zi(h,e);n.push(h)}n.push(l)}else if(!(c._code&u)){h=Ei(c,l,u,e,i);h._code=zi(h,e);n.push(h)}}t=n}return t}function wi(t,e){var i,n,r,o,a,s,l,c,p;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Bi(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var u=Z([0,0]);var h=F(t);var d=h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest());if(d<1700){u=bi(t)}var f=t.length;var m=[];for(i=0;i<f;i++){var g=Z(t[i]);m.push(e.project(Z([g.lat-u.lat,g.lng-u.lng])))}s=l=c=0;for(i=0,n=f-1;i<f;n=i++){r=m[i];o=m[n];a=r.y*o.x-o.y*r.x;l+=(r.x+o.x)*a;c+=(r.y+o.y)*a;s+=a*3}if(s===0){p=m[0]}else{p=[l/s,c/s]}var v=e.unproject(B(p));return Z([v.lat+u.lat,v.lng+u.lng])}function bi(t){var e=0;var i=0;var n=0;for(var r=0;r<t.length;r++){var o=Z(t[r]);e+=o.lat;i+=o.lng;n++}return Z([e/n,i/n])}var ki={__proto__:null,clipPolygon:yi,polygonCenter:wi,centroid:bi};function xi(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=Pi(t,i);t=Ti(t,i);return t}function Li(t,e,i){return Math.sqrt(Ii(t,e,i,true))}function Ai(t,e,i){return Ii(t,e,i)}function Ti(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,r=new n(i);r[0]=r[i-1]=1;Ci(t,r,e,0,i-1);var o,a=[];for(o=0;o<i;o++){if(r[o]){a.push(t[o])}}return a}function Ci(t,e,i,n,r){var o=0,a,s,l;for(s=n+1;s<=r-1;s++){l=Ii(t[s],t[n],t[r],true);if(l>o){a=s;o=l}}if(o>i){e[a]=1;Ci(t,e,i,n,a);Ci(t,e,i,a,r)}}function Pi(t,e){var i=[t[0]];for(var n=1,r=0,o=t.length;n<o;n++){if(Oi(t[n],t[r])>e){i.push(t[n]);r=n}}if(r<o-1){i.push(t[o-1])}return i}var Si;function Mi(t,e,i,n,r){var o=n?Si:zi(t,i),a=zi(e,i),s,l,c;Si=a;while(true){if(!(o|a)){return[t,e]}if(o&a){return false}s=o||a;l=Ei(t,e,s,i,r);c=zi(l,i);if(s===o){t=l;o=c}else{e=l;a=c}}}function Ei(t,e,i,n,r){var o=e.x-t.x,a=e.y-t.y,s=n.min,l=n.max,c,p;if(i&8){c=t.x+o*(l.y-t.y)/a;p=l.y}else if(i&4){c=t.x+o*(s.y-t.y)/a;p=s.y}else if(i&2){c=l.x;p=t.y+a*(l.x-t.x)/o}else if(i&1){c=s.x;p=t.y+a*(s.x-t.x)/o}return new O(c,p,r)}function zi(t,e){var i=0;if(t.x<e.min.x){i|=1}else if(t.x>e.max.x){i|=2}if(t.y<e.min.y){i|=4}else if(t.y>e.max.y){i|=8}return i}function Oi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ii(t,e,i,n){var r=e.x,o=e.y,a=i.x-r,s=i.y-o,l=a*a+s*s,c;if(l>0){c=((t.x-r)*a+(t.y-o)*s)/l;if(c>1){r=i.x;o=i.y}else if(c>0){r+=a*c;o+=s*c}}a=t.x-r;s=t.y-o;return n?a*a+s*s:new O(r,o)}function Bi(t){return!v(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Di(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Bi(t)}function ji(t,e){var i,n,r,o,a,s,l,c;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Bi(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var p=Z([0,0]);var u=F(t);var h=u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest());if(h<1700){p=bi(t)}var d=t.length;var f=[];for(i=0;i<d;i++){var m=Z(t[i]);f.push(e.project(Z([m.lat-p.lat,m.lng-p.lng])))}for(i=0,n=0;i<d-1;i++){n+=f[i].distanceTo(f[i+1])/2}if(n===0){c=f[0]}else{for(i=0,o=0;i<d-1;i++){a=f[i];s=f[i+1];r=a.distanceTo(s);o+=r;if(o>n){l=(o-n)/r;c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}}}var g=e.unproject(B(c));return Z([g.lat+p.lat,g.lng+p.lng])}var Ri={__proto__:null,simplify:xi,pointToSegmentDistance:Li,closestPointOnSegment:Ai,clipSegment:Mi,_getEdgeIntersection:Ei,_getBitCode:zi,_sqClosestPointOnSegment:Ii,isFlat:Bi,_flat:Di,polylineCenter:ji};var Fi={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new D([-180,-90],[180,90])};var Ni={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),a=o*Math.sin(n);var s=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),o/2);n=-i*Math.log(Math.max(s,1e-10));return new O(t.lng*e*i,n)},unproject:function(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,r=Math.sqrt(1-n*n),o=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(o);for(var s=0,l=.1,c;s<15&&Math.abs(l)>1e-7;s++){c=r*Math.sin(a);c=Math.pow((1-c)/(1+c),r/2);l=Math.PI/2-2*Math.atan(o*c)-a;a+=l}return new N(a*e,t.x*e/i)}};var Zi={__proto__:null,LonLat:Fi,Mercator:Ni,SphericalMercator:V};var Gi=i({},H,{code:"EPSG:3395",projection:Ni,transformation:function(){var t=.5/(Math.PI*Ni.R);return Y(t,.5,-t,.5)}()});var Hi=i({},H,{code:"EPSG:4326",projection:Fi,transformation:Y(1/180,1,-1/180,.5)});var Ui=i({},G,{projection:Fi,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});G.Earth=H;G.EPSG3395=Gi;G.EPSG3857=$;G.EPSG900913=q;G.EPSG4326=Hi;G.Simple=Ui;var Vi=z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[a(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[a(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);this.fire("add");e.fire("layeradd",{layer:this})}});ii.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=a(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=a(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},_addLayers:function(t){t=t?v(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[a(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=a(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var r=this._zoomBoundLayers[n].options;t=r.minZoom===undefined?t:Math.min(t,r.minZoom);e=r.maxZoom===undefined?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Wi=Vi.extend({initialize:function(t,e){d(this,e);this._layers={};var i,n;if(t){for(i=0,n=t.length;i<n;i++){this.addLayer(t[i])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){var e=typeof t==="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers){n=this._layers[i];if(n[t]){n[t].apply(n,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}});var Yi=function(t,e){return new Wi(t,e)};var $i=Wi.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Wi.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Wi.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var qi=function(t,e){return new $i(t,e)};var Qi=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);this._setIconStyles(n,t);if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return n},_setIconStyles:function(t,e){var i=this.options;var n=i[e+"Size"];if(typeof n==="number"){n=[n,n]}var r=B(n),o=B(e==="shadow"&&i.shadowAnchor||i.iconAnchor||r&&r.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(o){t.style.marginLeft=-o.x+"px";t.style.marginTop=-o.y+"px"}if(r){t.style.width=r.x+"px";t.style.height=r.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return Dt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ki(t){return new Qi(t)}var Ji=Qi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(typeof Ji.imagePath!=="string"){Ji.imagePath=this._detectIconPath()}return(this.options.imagePath||Ji.imagePath)+Qi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};t=e(t,/^url\((['"])?(.+)\1\)$/,2);return t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=le("div","leaflet-default-icon-path",document.body);var e=se(t,"background-image")||se(t,"backgroundImage");document.body.removeChild(t);e=this._stripUrl(e);if(e){return e}var i=document.querySelector('link[href$="leaflet.css"]');if(!i){return""}return i.href.substring(0,i.href.length-"leaflet.css".length-1)}});var Xi=mi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new _i(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();fe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){me(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=xe(e._icon),a=i.getPixelBounds(),s=i.getPixelOrigin();var l=j(a.min._subtract(s).add(r),a.max._subtract(s).subtract(r));if(!l.contains(o)){var c=B((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(n);i.panBy(c,{animate:false});this._draggable._newPos._add(c);this._draggable._startPos._add(c);ke(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){C(this._panRequest);this._panRequest=T(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=xe(e._icon),r=e._map.layerPointToLatLng(n);if(i){ke(i,n)}e._latlng=r;t.latlng=r;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){C(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var tn=Vi.extend({options:{icon:new Ji,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e);this._latlng=Z(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=Z(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=t.icon.createIcon(this._icon),n=false;if(i!==this._icon){if(this._icon){this._removeIcon()}n=true;if(t.title){i.title=t.title}if(i.tagName==="IMG"){i.alt=t.alt||""}}fe(i,e);if(t.keyboard){i.tabIndex="0";i.setAttribute("role","button")}this._icon=i;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){je(i,"focus",this._panOnFocus,this)}var r=t.icon.createShadow(this._shadow),o=false;if(r!==this._shadow){this._removeShadow();o=true}if(r){fe(r,e);r.alt=""}this._shadow=r;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(r&&o){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Fe(this._icon,"focus",this._panOnFocus,this)}ce(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ce(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){ke(this._icon,t)}if(this._shadow){ke(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}fe(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Xi){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Xi(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){_e(this._icon,t)}if(this._shadow){_e(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var e=this.options.icon.options;var i=e.iconSize?B(e.iconSize):B(0,0);var n=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function en(t,e){return new tn(t,e)}var nn=Vi.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){d(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var rn=nn.extend({options:{fill:true,radius:10},initialize:function(t,e){d(this,e);this._latlng=Z(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=Z(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;nn.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new D(this._point.subtract(n),this._point.add(n))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function on(t,e){return new rn(t,e)}var an=rn.extend({initialize:function(t,e,n){if(typeof e==="number"){e=i({},n,{radius:e})}d(this,e);this._latlng=Z(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:nn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===H.distance){var r=Math.PI/180,o=this._mRadius/H.R/r,a=i.project([e+o,t]),s=i.project([e-o,t]),l=a.add(s).divideBy(2),c=i.unproject(l).lat,p=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(c*r))/(Math.cos(e*r)*Math.cos(c*r)))/r;if(isNaN(p)||p===0){p=o/Math.cos(Math.PI/180*e)}this._point=l.subtract(i.getPixelOrigin());this._radius=isNaN(p)?0:l.x-i.project([c,t-p]).x;this._radiusY=l.y-a.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function sn(t,e,i){return new an(t,e,i)}var ln=nn.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){d(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,i=null,n=Ii,r,o;for(var a=0,s=this._parts.length;a<s;a++){var l=this._parts[a];for(var c=1,p=l.length;c<p;c++){r=l[c-1];o=l[c];var u=n(t,r,o,true);if(u<e){e=u;i=n(t,r,o)}}}if(i){i.distance=Math.sqrt(e)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return ji(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=Z(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Bi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Bi(t);for(var n=0,r=t.length;n<r;n++){if(i){e[n]=Z(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new D;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new O(t,t);if(!this._rawPxBounds){return}this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof N,r=t.length,o,a;if(n){a=[];for(o=0;o<r;o++){a[o]=this._map.latLngToLayerPoint(t[o]);i.extend(a[o])}e.push(a)}else{for(o=0;o<r;o++){this._projectLatlngs(t[o],e,i)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,r,o,a,s,l;for(i=0,r=0,o=this._rings.length;i<o;i++){l=this._rings[i];for(n=0,a=l.length;n<a-1;n++){s=Mi(l[n],l[n+1],t,n,true);if(!s){continue}e[r]=e[r]||[];e[r].push(s[0]);if(s[1]!==l[n+1]||n===a-2){e[r].push(s[1]);r++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var i=0,n=t.length;i<n;i++){t[i]=xi(t[i],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,r,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,o=this._parts.length;i<o;i++){s=this._parts[i];for(n=0,a=s.length,r=a-1;n<a;r=n++){if(!e&&n===0){continue}if(Li(t,s[r],s[n])<=l){return true}}}return false}});function cn(t,e){return new ln(t,e)}ln._flat=Di;var pn=ln.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return wi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ln.prototype._convertLatLngs.call(this,t),i=e.length;if(i>=2&&e[0]instanceof N&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){ln.prototype._setLatLngs.call(this,t);if(Bi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Bi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new O(e,e);t=new D(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,r=this._rings.length,o;n<r;n++){o=yi(this._rings[n],t,true);if(o.length){this._parts.push(o)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,r,o,a,s,l,c;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(o=0,l=this._parts.length;o<l;o++){i=this._parts[o];for(a=0,c=i.length,s=c-1;a<c;s=a++){n=i[a];r=i[s];if(n.y>t.y!==r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x){e=!e}}}return e||ln.prototype._containsPoint.call(this,t,true)}});function un(t,e){return new pn(t,e)}var hn=$i.extend({initialize:function(t,e){d(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=v(t)?t:t.features,i,n,r;if(e){for(i=0,n=e.length;i<n;i++){r=e[i];if(r.geometries||r.geometry||r.features||r.coordinates){this.addData(r)}}return this}var o=this.options;if(o.filter&&!o.filter(t)){return this}var a=dn(t,o);if(!a){return this}a.feature=wn(t);a.defaultOptions=a.options;this.resetStyle(a);if(o.onEachFeature){o.onEachFeature(t,a)}return this.addLayer(a)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=i({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function dn(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,r=[],o=e&&e.pointToLayer,a=e&&e.coordsToLatLng||mn,s,l,c,p;if(!n&&!i){return null}switch(i.type){case"Point":s=a(n);return fn(o,t,s,e);case"MultiPoint":for(c=0,p=n.length;c<p;c++){s=a(n[c]);r.push(fn(o,t,s,e))}return new $i(r);case"LineString":case"MultiLineString":l=gn(n,i.type==="LineString"?0:1,a);return new ln(l,e);case"Polygon":case"MultiPolygon":l=gn(n,i.type==="Polygon"?1:2,a);return new pn(l,e);case"GeometryCollection":for(c=0,p=i.geometries.length;c<p;c++){var u=dn({geometry:i.geometries[c],type:"Feature",properties:t.properties},e);if(u){r.push(u)}}return new $i(r);case"FeatureCollection":for(c=0,p=i.features.length;c<p;c++){var h=dn(i.features[c],e);if(h){r.push(h)}}return new $i(r);default:throw new Error("Invalid GeoJSON object.")}}function fn(t,e,i,n){return t?t(e,i):new tn(i,n&&n.markersInheritOptions&&n)}function mn(t){return new N(t[1],t[0],t[2])}function gn(t,e,i){var n=[];for(var r=0,o=t.length,a;r<o;r++){a=e?gn(t[r],e-1,i):(i||mn)(t[r]);n.push(a)}return n}function vn(t,e){t=Z(t);return t.alt!==undefined?[p(t.lng,e),p(t.lat,e),p(t.alt,e)]:[p(t.lng,e),p(t.lat,e)]}function _n(t,e,i,n){var r=[];for(var o=0,a=t.length;o<a;o++){r.push(e?_n(t[o],Bi(t[o])?0:e-1,i,n):vn(t[o],n))}if(!e&&i&&r.length>0){r.push(r[0].slice())}return r}function yn(t,e){return t.feature?i({},t.feature,{geometry:e}):wn(e)}function wn(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var bn={toGeoJSON:function(t){return yn(this,{type:"Point",coordinates:vn(this.getLatLng(),t)})}};tn.include(bn);an.include(bn);rn.include(bn);ln.include({toGeoJSON:function(t){var e=!Bi(this._latlngs);var i=_n(this._latlngs,e?1:0,false,t);return yn(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});pn.include({toGeoJSON:function(t){var e=!Bi(this._latlngs),i=e&&!Bi(this._latlngs[0]);var n=_n(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return yn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});Wi.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return yn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint"){return this.toMultiPoint(t)}var i=e==="GeometryCollection",n=[];this.eachLayer((function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(i){n.push(r.geometry)}else{var o=wn(r);if(o.type==="FeatureCollection"){n.push.apply(n,o.features)}else{n.push(o)}}}}));if(i){return yn(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function kn(t,e){return new hn(t,e)}var xn=kn;var Ln=Vi.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=F(e);d(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){fe(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ce(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){ue(this._image)}return this},bringToBack:function(){if(this._map){he(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=F(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:le("img");fe(e,"leaflet-image-layer");if(this._zoomAnimated){fe(e,"leaflet-zoom-animated")}if(this.options.className){fe(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onload=r(this.fire,this,"load");e.onerror=r(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;be(this._image,i,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ke(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){_e(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var An=function(t,e,i){return new Ln(t,e,i)};var Tn=Ln.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:le("video");fe(e,"leaflet-image-layer");if(this._zoomAnimated){fe(e,"leaflet-zoom-animated")}if(this.options.className){fe(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onloadeddata=r(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var o=0;o<i.length;o++){n.push(i[o].src)}this._url=i.length>0?n:[e.src];return}if(!v(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;e.muted=!!this.options.muted;e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=le("source");s.src=this._url[a];e.appendChild(s)}}});function Cn(t,e,i){return new Tn(t,e,i)}var Pn=Ln.extend({_initImage:function(){var t=this._image=this._url;fe(t,"leaflet-image-layer");if(this._zoomAnimated){fe(t,"leaflet-zoom-animated")}if(this.options.className){fe(t,this.options.className)}t.onselectstart=c;t.onmousemove=c}});function Sn(t,e,i){return new Pn(t,e,i)}var Mn=Vi.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,e){if(t&&(t instanceof N||v(t))){this._latlng=Z(t);d(this,e)}else{d(this,t);this._source=e}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){_e(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){_e(this._container,1)}this.bringToFront();if(this.options.interactive){fe(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){_e(this._container,0);this._removeTimeout=setTimeout(r(ce,undefined,this._container),200)}else{ce(this._container)}if(this.options.interactive){me(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=Z(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ue(this._container)}return this},bringToBack:function(){if(this._map){he(this._container)}return this},_prepareOpen:function(t){var e=this._source;if(!e._map){return false}if(e instanceof $i){e=null;var i=this._source._layers;for(var n in i){if(i[n]._map){e=i[n];break}}if(!e){return false}this._source=e}if(!t){if(e.getCenter){t=e.getCenter()}else if(e.getLatLng){t=e.getLatLng()}else if(e.getBounds){t=e.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){ke(this._container,t.add(i))}else{e=e.add(t).add(i)}var n=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px";this._container.style.left=r+"px"},_getAnchor:function(){return[0,0]}});ii.include({_initOverlay:function(t,e,i,n){var r=e;if(!(r instanceof t)){r=new t(n).setContent(e)}if(i){r.setLatLng(i)}return r}});Vi.include({_initOverlay:function(t,e,i,n){var r=i;if(r instanceof t){d(r,n);r._source=this}else{r=e&&!n?e:new t(n,this);r.setContent(i)}return r}});var En=Mn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Mn.prototype.openOn.call(this,t)},onAdd:function(t){Mn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof nn)){this._source.on("preclick",Ue)}}},onRemove:function(t){Mn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof nn)){this._source.off("preclick",Ue)}}},getEvents:function(){var t=Mn.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",e=this._container=le("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=le("div",t+"-content-wrapper",e);this._contentNode=le("div",t+"-content",i);We(e);Ve(this._contentNode);je(e,"contextmenu",Ue);this._tipContainer=le("div",t+"-tip-container",e);this._tip=le("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=le("a",t+"-close-button",e);n.setAttribute("role","button");n.setAttribute("aria-label","Close popup");n.href="#close";n.innerHTML='<span aria-hidden="true">&#215;</span>';je(n,"click",(function(t){Ye(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);e.width=i+1+"px";e.whiteSpace="";e.height="";var n=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";if(r&&n>r){e.height=r+"px";fe(t,o)}else{me(t,o)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ke(this._container,e.add(i))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,e=parseInt(se(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,r=new O(this._containerLeft,-i-this._containerBottom);r._add(xe(this._container));var o=t.layerPointToContainerPoint(r),a=B(this.options.autoPanPadding),s=B(this.options.autoPanPaddingTopLeft||a),l=B(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,u=0;if(o.x+n+l.x>c.x){p=o.x+n-c.x+l.x}if(o.x-p-s.x<0){p=o.x-s.x}if(o.y+i+l.y>c.y){u=o.y+i-c.y+l.y}if(o.y-u-s.y<0){u=o.y-s.y}if(p||u){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([p,u])}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var zn=function(t,e){return new En(t,e)};ii.mergeOptions({closePopupOnClick:true});ii.include({openPopup:function(t,e,i){this._initOverlay(En,t,e,i).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});Vi.include({bindPopup:function(t,e){this._popup=this._initOverlay(En,this._popup,t,e);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup){if(!(this instanceof $i)){this._popup._source=this}if(this._popup._prepareOpen(t||this._latlng)){this._popup.openOn(this._map)}}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}$e(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof nn)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=e;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var On=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Mn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Mn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Mn.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=le("div",e);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,r=this._container,o=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),s=this.options.direction,l=r.offsetWidth,c=r.offsetHeight,p=B(this.options.offset),u=this._getAnchor();if(s==="top"){e=l/2;i=c}else if(s==="bottom"){e=l/2;i=0}else if(s==="center"){e=l/2;i=c/2}else if(s==="right"){e=0;i=c/2}else if(s==="left"){e=l;i=c/2}else if(a.x<o.x){s="right";e=0;i=c/2}else{s="left";e=l+(p.x+u.x)*2;i=c/2}t=t.subtract(B(e,i,true)).add(p).add(u);me(r,"leaflet-tooltip-right");me(r,"leaflet-tooltip-left");me(r,"leaflet-tooltip-top");me(r,"leaflet-tooltip-bottom");fe(r,"leaflet-tooltip-"+s);ke(r,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){_e(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var In=function(t,e){return new On(t,e)};ii.include({openTooltip:function(t,e,i){this._initOverlay(On,t,e,i).openOn(this);return this},closeTooltip:function(t){t.close();return this}});Vi.include({bindTooltip:function(t,e){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(On,this._tooltip,t,e);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;i.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{i.add=this._addFocusListeners}}else{i.add=this._openTooltip}if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}this[e](i);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof $i)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map);if(this.getElement){this._setAriaDescribedByOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._setAriaDescribedByOnLayer,this)}}}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){if(this.getElement){this._addFocusListenersOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._addFocusListenersOnLayer,this)}},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement==="function"&&t.getElement();if(e){je(e,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);je(e,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement==="function"&&t.getElement();if(e){e.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=false;e._openTooltip(t)}));return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,i,n;if(this._tooltip.options.sticky&&t.originalEvent){i=this._map.mouseEventToContainerPoint(t.originalEvent);n=this._map.containerPointToLayerPoint(i);e=this._map.layerPointToLatLng(n)}this._tooltip.setLatLng(e)}});var Bn=Qi.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element){pe(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=B(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Dn(t){return new Bn(t)}Qi.Default=Ji;var jn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Dt.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ce(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ue(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){he(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof O?t:new O(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,i=-t(-Infinity,Infinity);for(var n=0,r=e.length,o;n<r;n++){o=e[n].style.zIndex;if(e[n]!==this._container&&o){i=t(i,+o)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Dt.ielt9){return}_e(this._container,this.options.opacity);var t=+new Date,e=false,i=false;for(var n in this._tiles){var r=this._tiles[n];if(!r.current||!r.loaded){continue}var o=Math.min(1,(t-r.loaded)/200);_e(r.el,o);if(o<1){e=true}else{if(r.active){i=true}else{this._onOpaqueTile(r)}r.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){C(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=le("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var i in this._levels){i=Number(i);if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{ce(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var n=this._levels[t],r=this._map;if(!n){n=this._levels[t]={};n.el=le("div","leaflet-tile-container leaflet-zoom-animated",this._container);n.el.style.zIndex=e;n.origin=r.project(r.unproject(r.getPixelOrigin()),t).round();n.zoom=t;this._setZoomTransform(n,r.getCenter(),r.getZoom());this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(!this._map){return}var t,e;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var n=e.coords;if(!this._retainParent(n.x,n.y,n.z,n.z-5)){this._retainChildren(n.x,n.y,n.z,n.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ce(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var r=Math.floor(t/2),o=Math.floor(e/2),a=i-1,s=new O(+r,+o);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];if(c&&c.active){c.retain=true;return true}else if(c&&c.loaded){c.retain=true}if(a>n){return this._retainParent(r,o,a,n)}return false},_retainChildren:function(t,e,i,n){for(var r=2*t;r<2*t+2;r++){for(var o=2*e;o<2*e+2;o++){var a=new O(r,o);a.z=i+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(i+1<n){this._retainChildren(r,o,i+1,n)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,i,n){var r=Math.round(e);if(this.options.maxZoom!==undefined&&r>this.options.maxZoom||this.options.minZoom!==undefined&&r<this.options.minZoom){r=undefined}else{r=this._clampZoom(r)}var o=this.options.updateWhenZooming&&r!==this._tileZoom;if(!n||o){this._tileZoom=r;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(r!==undefined){this._update(t)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels){this._setZoomTransform(this._levels[i],t,e)}},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),r=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();if(Dt.any3d){be(t.el,r,n)}else{ke(t.el,r)}},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom;var r=this._map.getPixelWorldBounds(this._tileZoom);if(r){this._globalTileRange=this._pxBoundsToTileRange(r)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(n*2);return new D(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(!e){return}var i=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var n=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(n),o=r.getCenter(),a=[],s=this.options.keepBuffer,l=new D(r.getBottomLeft().subtract([s,-s]),r.getTopRight().add([s,-s]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var c in this._tiles){var p=this._tiles[c].coords;if(p.z!==this._tileZoom||!l.contains(new O(p.x,p.y))){this._tiles[c].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var u=r.min.y;u<=r.max.y;u++){for(var h=r.min.x;h<=r.max.x;h++){var d=new O(h,u);d.z=this._tileZoom;if(!this._isValidTile(d)){continue}var f=this._tiles[this._tileCoordsToKey(d)];if(f){f.current=true}else{a.push(d)}}}a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)}));if(a.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(h=0;h<a.length;h++){this._addTile(a[h],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),r=n.add(i),o=e.unproject(n,t.z),a=e.unproject(r,t.z);return[o,a]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new R(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new O(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}ce(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){fe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=c;t.onmousemove=c;if(Dt.ielt9&&this.options.opacity<1){_e(t,this.options.opacity)}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o);if(this.createTile.length<2){T(r(this._tileReady,this,t,null,o))}ke(o,i);this._tiles[n]={el:o,coords:t,current:true};e.appendChild(o);this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){_e(i.el,0);C(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){fe(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Dt.ielt9||!this._map._fadeAnimated){T(this._pruneTiles,this)}else{setTimeout(r(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new O(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Rn(t){return new jn(t)}var Fn=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,e){this._url=t;e=d(this,e);if(e.detectRetina&&Dt.retina&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)}else{e.zoomOffset--;e.minZoom=Math.min(e.maxZoom,e.minZoom+1)}e.minZoom=Math.max(0,e.minZoom)}else if(!e.zoomReverse){e.maxZoom=Math.max(e.minZoom,e.maxZoom)}else{e.minZoom=Math.min(e.maxZoom,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");je(i,"load",r(this._tileOnLoad,this,e,i));je(i,"error",r(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){i.referrerPolicy=this.options.referrerPolicy}i.alt="";i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:Dt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return g(this._url,i(e,this.options))},_tileOnLoad:function(t,e){if(Dt.ielt9){setTimeout(r(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=c;e.onerror=c;if(!e.complete){e.src=y;var i=this._tiles[t].coords;ce(e);delete this._tiles[t];this.fire("tileabort",{tile:e,coords:i})}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}e.el.setAttribute("src",y);return jn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===y){return}return jn.prototype._tileReady.call(this,t,e,i)}});function Nn(t,e){return new Fn(t,e)}var Zn=Fn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var r in e){if(!(r in this.options)){n[r]=e[r]}}e=d(this,e);var o=e.detectRetina&&Dt.retina?2:1;var a=this.getTileSize();n.width=a.x*o;n.height=a.y*o;this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;Fn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=j(i.project(e[0]),i.project(e[1])),r=n.min,o=n.max,a=(this._wmsVersion>=1.3&&this._crs===Hi?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=Fn.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){i(this.wmsParams,t);if(!e){this.redraw()}return this}});function Gn(t,e){return new Zn(t,e)}Fn.WMS=Zn;Nn.wms=Gn;var Hn=Vi.extend({options:{padding:.1},initialize:function(t){d(this,t);a(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();fe(this._container,"leaflet-zoom-animated")}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),o=n.multiplyBy(-i).add(r).subtract(this._map._getNewPixelOrigin(t,e));if(Dt.any3d){be(this._container,o,i)}else{ke(this._container,o)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Un=Hn.extend({options:{tolerance:0},getEvents:function(){var t=Hn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Hn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this);je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);je(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest);delete this._ctx;ce(this._container);Fe(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Hn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Dt.retina?2:1;ke(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(Dt.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Hn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[a(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,r;for(r=0;r<e.length;r++){n=Number(e[r]);if(isNaN(n)){return}i.push(n)}t.options._dashArray=i}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||T(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var i=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var n=this._drawFirst;n;n=n.next){t=n.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var i,n,r,o,a=t._parts,s=a.length,l=this._ctx;if(!s){return}l.beginPath();for(i=0;i<s;i++){for(n=0,r=a[i].length;n<r;n++){o=a[i][n];l[n?"lineTo":"moveTo"](o.x,o.y)}if(e){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||n)/n;if(r!==1){i.save();i.scale(1,r)}i.beginPath();i.arc(e.x,e.y/r,n,0,Math.PI*2,false);if(r!==1){i.restore()}this._fillStroke(i,t)},_fillStroke:function(t,e){var i=e.options;if(i.fill){t.globalAlpha=i.fillOpacity;t.fillStyle=i.fillColor||i.color;t.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=i.opacity;t.lineWidth=i.weight;t.strokeStyle=i.color;t.lineCap=i.lineCap;t.lineJoin=i.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),i,n;for(var r=this._drawFirst;r;r=r.next){i=r.layer;if(i.options.interactive&&i._containsPoint(e)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i)){n=i}}}this._fireEvent(n?[n]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){me(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){fe(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(r((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(i){i.prev=n}else{return}if(n){n.next=i}else if(i){this._drawFirst=i}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(n){n.next=i}else{return}if(i){i.prev=n}else if(n){this._drawLast=n}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function Vn(t){return Dt.canvas?new Un(t):null}var Wn=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Yn={_initContainer:function(){this._container=le("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Hn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Wn("shape");fe(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Wn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;ce(e);t.removeInteractiveTarget(e);delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,r=t._container;r.stroked=!!n.stroke;r.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=Wn("stroke")}r.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){r.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=Wn("fill")}r.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){r.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ue(t._container)},_bringToBack:function(t){he(t._container)}};var $n=Dt.vml?Wn:Q;var qn=Hn.extend({_initContainer:function(){this._container=$n("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=$n("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ce(this._container);Fe(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Hn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}ke(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=$n("path");if(t.options.className){fe(e,t.options.className)}if(t.options.interactive){fe(e,"leaflet-interactive")}this._updateStyle(t);this._layers[a(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ce(t._path);t.removeInteractiveTarget(t._path);delete this._layers[a(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,r="a"+i+","+n+" 0 1,0 ";var o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+r+i*2+",0 "+r+-i*2+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ue(t._path)},_bringToBack:function(t){he(t._path)}});if(Dt.vml){qn.include(Yn)}function Qn(t){return Dt.svg||Dt.vml?new qn(t):null}ii.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Qn(t)}});var Kn=pn.extend({initialize:function(t,e){pn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=F(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Jn(t,e){return new Kn(t,e)}qn.create=$n;qn.pointsToPath=K;hn.geometryToLayer=dn;hn.coordsToLatLng=mn;hn.coordsToLatLngs=gn;hn.latLngToCoords=vn;hn.latLngsToCoords=_n;hn.getFeature=yn;hn.asFeature=wn;ii.mergeOptions({boxZoom:true});var Xn=mi.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ce(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();Le();Pe();this._startPoint=this._map.mouseEventToContainerPoint(t);je(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=le("div","leaflet-zoom-box",this._container);fe(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),i=e.getSize();ke(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ce(this._box);me(this._container,"leaflet-crosshair")}Ae();Se();Fe(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ii.addInitHook("addHandler","boxZoom",Xn);ii.mergeOptions({doubleClickZoom:true});var tr=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,r=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(r)}else{e.setZoomAround(t.containerPoint,r)}}});ii.addInitHook("addHandler","doubleClickZoom",tr);ii.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var er=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new _i(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}fe(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){me(this._map._container,"leaflet-grab");me(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=j(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,r=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,a=Math.abs(r+i)<Math.abs(o+i)?r:o;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;e.fire("dragend",t);if(n){e.fire("moveend")}else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,s=r.multiplyBy(a/o),l=s.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),p=s.multiplyBy(c/l),u=c/(i.inertiaDeceleration*a),h=p.multiplyBy(-u/2).round();if(!h.x&&!h.y){e.fire("moveend")}else{h=e._limitOffset(h,e.options.maxBounds);T((function(){e.panBy(h,{duration:u,easeLinearity:a,noMoveStart:true,animate:true})}))}}}});ii.addInitHook("addHandler","dragging",er);ii.mergeOptions({keyboard:true,keyboardPanDelta:80});var ir=mi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Fe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(n,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,r;for(n=0,r=i.left.length;n<r;n++){e[i.left[n]]=[-1*t,0]}for(n=0,r=i.right.length;n<r;n++){e[i.right[n]]=[t,0]}for(n=0,r=i.down.length;n<r;n++){e[i.down[n]]=[0,t]}for(n=0,r=i.up.length;n<r;n++){e[i.up[n]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,r;for(n=0,r=i.zoomIn.length;n<r;n++){e[i.zoomIn[n]]=t}for(n=0,r=i.zoomOut.length;n<r;n++){e[i.zoomOut[n]]=-t}},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){n=this._panKeys[e];if(t.shiftKey){n=B(n).multiplyBy(3)}if(i.options.maxBounds){n=i._limitOffset(B(n),i.options.maxBounds)}if(i.options.worldCopyJump){var r=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(n)));i.panTo(r)}else{i.panBy(n)}}}else if(e in this._zoomKeys){i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}$e(t)}});ii.addInitHook("addHandler","keyboard",ir);ii.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nr=mi.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Je(t);var i=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(r(this._performZoom,this),n);$e(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),r=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(r/i)*i:r,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0;this._startTime=null;if(!a){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+a)}else{t.setZoomAround(this._lastMousePos,e+a)}}});ii.addInitHook("addHandler","scrollWheelZoom",nr);var rr=600;ii.mergeOptions({tapHold:Dt.touchNative&&Dt.safari&&Dt.mobile,tapTolerance:15});var or=mi.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var e=t.touches[0];this._startPos=this._newPos=new O(e.clientX,e.clientY);this._holdTimeout=setTimeout(r((function(){this._cancel();if(!this._isTapValid()){return}je(document,"touchend",Ye);je(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",e)}),this),rr);je(document,"touchend touchcancel contextmenu",this._cancel,this);je(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Fe(document,"touchend",Ye);Fe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Fe(document,"touchend touchcancel contextmenu",this._cancel,this);Fe(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new O(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=true;e.target.dispatchEvent(i)}});ii.addInitHook("addHandler","tapHold",or);ii.mergeOptions({touchZoom:Dt.touch,bounceAtZoomLimits:true});var ar=mi.extend({addHooks:function(){fe(this._map._container,"leaflet-touch-zoom");je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){me(this._map._container,"leaflet-touch-zoom");Fe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();je(document,"touchmove",this._onTouchMove,this);je(document,"touchend touchcancel",this._onTouchEnd,this);Ye(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(o,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(o===1){return}}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&a.x===0&&a.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}C(this._animRequest);var s=r(e._move,e,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=T(s,this,true);Ye(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;C(this._animRequest);Fe(document,"touchmove",this._onTouchMove,this);Fe(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});ii.addInitHook("addHandler","touchZoom",ar);ii.BoxZoom=Xn;ii.DoubleClickZoom=tr;ii.Drag=er;ii.Keyboard=ir;ii.ScrollWheelZoom=nr;ii.TapHold=or;ii.TouchZoom=ar;t.Bounds=D;t.Browser=Dt;t.CRS=G;t.Canvas=Un;t.Circle=an;t.CircleMarker=rn;t.Class=S;t.Control=ri;t.DivIcon=Bn;t.DivOverlay=Mn;t.DomEvent=ti;t.DomUtil=De;t.Draggable=_i;t.Evented=z;t.FeatureGroup=$i;t.GeoJSON=hn;t.GridLayer=jn;t.Handler=mi;t.Icon=Qi;t.ImageOverlay=Ln;t.LatLng=N;t.LatLngBounds=R;t.Layer=Vi;t.LayerGroup=Wi;t.LineUtil=Ri;t.Map=ii;t.Marker=tn;t.Mixin=gi;t.Path=nn;t.Point=O;t.PolyUtil=ki;t.Polygon=pn;t.Polyline=ln;t.Popup=En;t.PosAnimation=ei;t.Projection=Zi;t.Rectangle=Kn;t.Renderer=Hn;t.SVG=qn;t.SVGOverlay=Pn;t.TileLayer=Fn;t.Tooltip=On;t.Transformation=W;t.Util=P;t.VideoOverlay=Tn;t.bind=r;t.bounds=j;t.canvas=Vn;t.circle=sn;t.circleMarker=on;t.control=oi;t.divIcon=Dn;t.extend=i;t.featureGroup=qi;t.geoJSON=kn;t.geoJson=xn;t.gridLayer=Rn;t.icon=Ki;t.imageOverlay=An;t.latLng=Z;t.latLngBounds=F;t.layerGroup=Yi;t.map=ni;t.marker=en;t.point=B;t.polygon=un;t.polyline=cn;t.popup=zn;t.rectangle=Jn;t.setOptions=d;t.stamp=a;t.svg=Qn;t.svgOverlay=Sn;t.tileLayer=Nn;t.tooltip=In;t.transformation=Y;t.version=e;t.videoOverlay=Cn;var sr=window.L;t.noConflict=function(){window.L=sr;return this};window.L=t}))}));!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,n,r,o){var a=i||new L.Point(0,0);if(!r)return i=a._round(),t.setTransform.apply(this,arguments);a=a.rotateFrom(r,o),e.style[L.DomUtil.TRANSFORM]="translate3d("+a.x+"px,"+a.y+"px,0)"+(n?" scale("+n+")":"")+" rotate("+r+"rad)"},setPosition:function(e,i,n,r,o){if(!n)return t.setPosition.apply(this,arguments);e._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(e,i,o,n,r):(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),n=Math.cos(t),r=e.x,o=e.y,a=this.x-r,s=this.y-o;return new L.Point(a*n-s*i+r,a*i+s*n+o)}});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(),n=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(n).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,n=this._containerWidth,r=new L.Point(this._containerLeft,-i-this._containerBottom);r._add(L.DomUtil.getPosition(this._container));var o=r._add(this._map._getMapPanePos()),a=L.point(this.options.autoPanPadding),s=L.point(this.options.autoPanPaddingTopLeft||a),l=L.point(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,u=0;o.x+n+l.x>c.x&&(p=o.x+n-c.x+l.x),o.x-p-s.x<0&&(p=o.x-s.x),o.y+i+l.y>c.y&&(u=o.y+i-c.y+l.y),o.y-u-s.y<0&&(u=o.y-s.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,u]))}}});var n=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return n._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 n._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,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var r=L.point(n),o=L.point("shadow"===e&&i.shadowAnchor||i.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")}});var r=L.extend({},L.Marker.prototype);var o;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,n=e._shadow,r=L.DomUtil.getPosition(e._icon);!i&&n&&L.DomUtil.setPosition(n,r),e._map._rotate&&(r=e._map.mapPanePointToRotatedPoint(r));var o=e._map.layerPointToLatLng(r);e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i?e.setLatLng(o):e.fire("move",t),e.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),o._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(r.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=r._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(o=o||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 s=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=s.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):s._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),n=this._map._latLngToNewLayerPoint(this._topLeft,e,t);L.DomUtil.setTransform(this._container,n,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)),n=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(e)),r=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(e)),o=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(e));return L.bounds([L.point(Math.min(i.x,n.x,o.x,r.x),Math.min(i.y,n.y,o.y,r.y)),L.point(Math.max(i.x,n.x,o.x,r.x),Math.max(i.y,n.y,o.y,r.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(),n=this._getRotatePanePos().rotateFrom(-this._bearing,i),r=n.rotateFrom(e,i);L.DomUtil.setPosition(this._rotatePane,n,e,i),this._pivot=i,this._bearing=e,this._rotatePanePos=r,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]),n=L.point(e.paddingBottomRight||e.padding||[0,0]),r=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(t),a=L.bounds([L.point(r),L.point(r).add(this.getSize())]),s=a.getCenter(),l=L.bounds([a.min.add(i),a.max.subtract(n)]),p=l.getSize();if(!l.contains(o)){this._enforcingBounds=!0;var u=o.subtract(l.getCenter()),h=l.extend(o).getSize().subtract(p);s.x+=u.x<0?-h.x:h.x,s.y+=u.y<0?-h.y:h.y,this.panTo(this.containerPointToLatLng(s),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 n=this.getZoom()||0;var r=this.getMinZoom(),o=this.getMaxZoom(),a=this.getSize().subtract(i),s=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,p=a.x/s.x,u=a.y/s.y,h=e?Math.max(p,u):Math.min(p,u);return n=this.getScaleZoom(h,n),l&&(n=Math.round(n/(l/100))*(l/100),n=e?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(r,Math.min(o,n))},_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(),n=this.getZoomScale(i,e),r=this.project(t,e).floor(),o=this.getSize(),a=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([o.x,0]).floor(),this.containerPointToLayerPoint([0,o.y]).floor(),this.containerPointToLayerPoint([o.x,o.y]).floor()]).getSize().divideBy(2*n);return new L.Bounds(r.subtract(a),r.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(),n=i.multiplyBy(-e),r=i.multiplyBy(1+e);return new L.Bounds([this.containerPointToLayerPoint([n.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([r.x,r.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=t.coords.heading,r=new L.LatLng(e,i),o=r.toBounds(t.coords.accuracy),a=this._locateOptions;if(a.setView){var s=this.getBoundsZoom(o);this.setView(r,a.maxZoom?Math.min(s,a.maxZoom):s)}var l={latlng:r,bounds:o,timestamp:t.timestamp,heading:n};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]),n=e.mouseEventToContainerPoint(t.touches[1]),r=i.subtract(n);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(r.x/r.y),this._startBearing=e.getBearing(),r.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,n=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),o=n.subtract(r),a=n.distanceTo(r)/this._startDist;if(this._rotating){var s=(Math.atan(o.x/o.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;o.y<0&&(s+=180),s&&i.setBearing(this._startBearing-s)}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=n._add(r)._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 n=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",e);return n.appendChild(i),n.href="#",n.title="Rotate map",L.DomEvent.on(n,"dblclick",L.DomEvent.stopPropagation).on(n,"mousedown",this._handleMouseDown,this).on(n,"click",L.DomEvent.stop).on(n,"click",this._cycleState,this).on(n,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(n,"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)}}))}));createCommonjsModule((function(t,e){
6
+ (function(t,i){i(e)})(commonjsGlobal,(function(t){var e="1.9.4";function i(t){var e,i,n,r;for(i=1,n=arguments.length;i<n;i++){r=arguments[i];for(e in r){t[e]=r[e]}}return t}var n=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function r(t,e){var i=Array.prototype.slice;if(t.bind){return t.bind.apply(t,i.call(arguments,1))}var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function a(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++o}return t._leaflet_id}function s(t,e,i){var n,r,o,a;a=function(){n=false;if(r){o.apply(i,r);r=false}};o=function(){if(n){r=arguments}else{t.apply(i,arguments);setTimeout(a,e);n=true}};return o}function l(t,e,i){var n=e[1],r=e[0],o=n-r;return t===n&&i?t:((t-r)%o+o)%o+r}function c(){return false}function p(t,e){if(e===false){return t}var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return u(t).split(/\s+/)}function d(t,e){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?n(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function f(t,e,i){var n=[];for(var r in t){n.push(encodeURIComponent(i?r.toUpperCase():r)+"="+encodeURIComponent(t[r]))}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,i){var n=e[i];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(e)}return n}))}var v=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function _(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function k(t){var e=+new Date,i=Math.max(0,16-(e-b));b=e+i;return window.setTimeout(t,i)}var x=window.requestAnimationFrame||w("RequestAnimationFrame")||k;var A=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,i){if(i&&x===k){t.call(e)}else{return x.call(window,r(t,e))}}function C(t){if(t){A.call(window,t)}}var P={__proto__:null,extend:i,create:n,bind:r,get lastId(){return o},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:p,trim:u,splitWords:h,setOptions:d,getParamString:f,template:g,isArray:v,indexOf:_,emptyImageUrl:y,requestFn:x,cancelFn:A,requestAnimFrame:T,cancelAnimFrame:C};function S(){}S.extend=function(t){var e=function(){d(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var r=e.__super__=this.prototype;var o=n(r);o.constructor=e;e.prototype=o;for(var a in this){if(Object.prototype.hasOwnProperty.call(this,a)&&a!=="prototype"&&a!=="__super__"){e[a]=this[a]}}if(t.statics){i(e,t.statics)}if(t.includes){M(t.includes);i.apply(null,[o].concat(t.includes))}i(o,t);delete o.statics;delete o.includes;if(o.options){o.options=r.options?n(r.options):{};i(o.options,t.options)}o._initHooks=[];o.callInitHooks=function(){if(this._initHooksCalled){return}if(r.callInitHooks){r.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=o._initHooks.length;t<e;t++){o._initHooks[t].call(this)}};return e};S.include=function(t){var e=this.prototype.options;i(this.prototype,t);if(t.options){this.prototype.options=e;this.mergeOptions(t.options)}return this};S.mergeOptions=function(t){i(this.prototype.options,t);return this};S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var i=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function M(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=v(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var E={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=h(t);for(var r=0,o=t.length;r<o;r++){this._on(t[r],e,i)}}return this},off:function(t,e,i){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var n in t){this._off(n,t[n],e)}}else{t=h(t);var r=arguments.length===1;for(var o=0,a=t.length;o<a;o++){if(r){this._off(t[o])}else{this._off(t[o],e,i)}}}return this},_on:function(t,e,i,n){if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)!==false){return}if(i===this){i=undefined}var r={fn:e,ctx:i};if(n){r.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(r)},_off:function(t,e,i){var n,r,o;if(!this._events){return}n=this._events[t];if(!n){return}if(arguments.length===1){if(this._firingCount){for(r=0,o=n.length;r<o;r++){n[r].fn=c}}delete this._events[t];return}if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}var a=this._listens(t,e,i);if(a!==false){var s=n[a];if(this._firingCount){s.fn=c;this._events[t]=n=n.slice()}n.splice(a,1)}},fire:function(t,e,n){if(!this.listens(t,n)){return this}var r=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];var c=l.fn;if(l.once){this.off(t,c,l.ctx)}c.call(l.ctx||this,r)}this._firingCount--}}if(n){this._propagateEvent(r)}return this},listens:function(t,e,i,n){if(typeof t!=="string"){console.warn('"string" type argument expected')}var r=e;if(typeof e!=="function"){n=!!e;r=undefined;i=undefined}var o=this._events&&this._events[t];if(o&&o.length){if(this._listens(t,r,i)!==false){return true}}if(n){for(var a in this._eventParents){if(this._eventParents[a].listens(t,e,i,n)){return true}}}return false},_listens:function(t,e,i){if(!this._events){return false}var n=this._events[t]||[];if(!e){return!!n.length}if(i===this){i=undefined}for(var r=0,o=n.length;r<o;r++){if(n[r].fn===e&&n[r].ctx===i){return r}}return false},once:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e,true)}}else{t=h(t);for(var r=0,o=t.length;r<o;r++){this._on(t[r],e,i,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[a(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[a(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),true)}}};E.addEventListener=E.on;E.removeEventListener=E.clearAllEventListeners=E.off;E.addOneTimeEventListener=E.once;E.fireEvent=E.fire;E.hasEventListeners=E.listens;var z=S.extend(E);function O(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};O.prototype={clone:function(){return new O(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new O(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new O(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=I(this.x);this.y=I(this.y);return this},distanceTo:function(t){t=B(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=B(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=B(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function B(t,e,i){if(t instanceof O){return t}if(v(t)){return new O(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new O(t.x,t.y)}return new O(t,e,i)}function D(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,r=i.length;n<r;n++){this.extend(i[n])}}D.prototype={extend:function(t){var e,i;if(!t){return this}if(t instanceof O||typeof t[0]==="number"||"x"in t){e=i=B(t)}else{t=j(t);e=t.min;i=t.max;if(!e||!i){return this}}if(!this.min&&!this.max){this.min=e.clone();this.max=i.clone()}else{this.min.x=Math.min(e.x,this.min.x);this.max.x=Math.max(i.x,this.max.x);this.min.y=Math.min(e.y,this.min.y);this.max.y=Math.max(i.y,this.max.y)}return this},getCenter:function(t){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;if(typeof t[0]==="number"||t instanceof O){t=B(t)}else{t=j(t)}if(t instanceof D){e=t.min;i=t.max}else{e=i=t}return e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>=e.x&&n.x<=i.x,a=r.y>=e.y&&n.y<=i.y;return o&&a},overlaps:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>e.x&&n.x<i.x,a=r.y>e.y&&n.y<i.y;return o&&a},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,r=Math.abs(e.y-i.y)*t;return j(B(e.x-n,e.y-r),B(i.x+n,i.y+r))},equals:function(t){if(!t){return false}t=j(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function j(t,e){if(!t||t instanceof D){return t}return new D(t,e)}function R(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,r=i.length;n<r;n++){this.extend(i[n])}}R.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,r;if(t instanceof N){n=t;r=t}else if(t instanceof R){n=t._southWest;r=t._northEast;if(!n||!r){return this}}else{return t?this.extend(Z(t)||F(t)):this}if(!e&&!i){this._southWest=new N(n.lat,n.lng);this._northEast=new N(r.lat,r.lng)}else{e.lat=Math.min(n.lat,e.lat);e.lng=Math.min(n.lng,e.lng);i.lat=Math.max(r.lat,i.lat);i.lng=Math.max(r.lng,i.lng)}return this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,r=Math.abs(e.lng-i.lng)*t;return new R(new N(e.lat-n,e.lng-r),new N(i.lat+n,i.lng+r))},getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof N||"lat"in t){t=Z(t)}else{t=F(t)}var e=this._southWest,i=this._northEast,n,r;if(t instanceof R){n=t.getSouthWest();r=t.getNorthEast()}else{n=r=t}return n.lat>=e.lat&&r.lat<=i.lat&&n.lng>=e.lng&&r.lng<=i.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&n.lat<=i.lat,a=r.lng>=e.lng&&n.lng<=i.lng;return o&&a},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&n.lat<i.lat,a=r.lng>e.lng&&n.lng<i.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=F(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function F(t,e){if(t instanceof R){return t}return new R(t,e)}function N(t,e,i){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(i!==undefined){this.alt=+i}}N.prototype={equals:function(t,e){if(!t){return false}t=Z(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+p(this.lat,t)+", "+p(this.lng,t)+")"},distanceTo:function(t){return H.distance(this,Z(t))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new N(this.lat,this.lng,this.alt)}};function Z(t,e,i){if(t instanceof N){return t}if(v(t)&&typeof t[0]!=="object"){if(t.length===3){return new N(t[0],t[1],t[2])}if(t.length===2){return new N(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new N(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new N(t,e,i)}var G={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),r=this.transformation.transform(e.max,i);return new D(n,r)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,n=t.alt;return new N(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,r=e.lng-i.lng;if(n===0&&r===0){return t}var o=t.getSouthWest(),a=t.getNorthEast(),s=new N(o.lat-n,o.lng-r),l=new N(a.lat-n,a.lng-r);return new R(s,l)}};var H=i({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,r=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),s=o*o+Math.cos(n)*Math.cos(r)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}});var U=6378137;var V={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),r=Math.sin(n*e);return new O(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new N((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=U*Math.PI;return new D([-t,-t],[t,t])}()};function W(t,e,i,n){if(v(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=i;this._d=n}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new O((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Y(t,e,i,n){return new W(t,e,i,n)}var $=i({},H,{code:"EPSG:3857",projection:V,transformation:function(){var t=.5/(Math.PI*V.R);return Y(t,.5,-t,.5)}()});var q=i({},$,{code:"EPSG:900913"});function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var i="",n,r,o,a,s,l;for(n=0,o=t.length;n<o;n++){s=t[n];for(r=0,a=s.length;r<a;r++){l=s[r];i+=(r?"L":"M")+l.x+" "+l.y}i+=e?Dt.svg?"z":"x":""}return i||"M0 0"}var J=document.documentElement.style;var X="ActiveXObject"in window;var tt=X&&!document.addEventListener;var et="msLaunchUri"in navigator&&!("documentMode"in document);var it=Bt("webkit");var nt=Bt("android");var rt=Bt("android 2")||Bt("android 3");var ot=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var at=nt&&Bt("Google")&&ot<537&&!("AudioNode"in window);var st=!!window.opera;var lt=!et&&Bt("chrome");var ct=Bt("gecko")&&!it&&!st&&!X;var pt=!lt&&Bt("safari");var ut=Bt("phantom");var ht="OTransition"in J;var dt=navigator.platform.indexOf("Win")===0;var ft=X&&"transition"in J;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt;var gt="MozPerspective"in J;var vt=!window.L_DISABLE_3D&&(ft||mt||gt)&&!ht&&!ut;var _t=typeof orientation!=="undefined"||Bt("mobile");var yt=_t&&it;var wt=_t&&mt;var bt=!window.PointerEvent&&window.MSPointerEvent;var kt=!!(window.PointerEvent||bt);var xt="ontouchstart"in window||!!window.TouchEvent;var At=!window.L_NO_TOUCH&&(xt||kt);var Lt=_t&&st;var Tt=_t&&ct;var Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Pt=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,e);window.removeEventListener("testPassiveEventSupport",c,e)}catch(i){}return t}();var St=function(){return!!document.createElement("canvas").getContext}();var Mt=!!(document.createElementNS&&Q("svg").createSVGRect);var Et=!!Mt&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var zt=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(i){return false}}();var Ot=navigator.platform.indexOf("Mac")===0;var It=navigator.platform.indexOf("Linux")===0;function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Dt={ie:X,ielt9:tt,edge:et,webkit:it,android:nt,android23:rt,androidStock:at,opera:st,chrome:lt,gecko:ct,safari:pt,phantom:ut,opera12:ht,win:dt,ie3d:ft,webkit3d:mt,gecko3d:gt,any3d:vt,mobile:_t,mobileWebkit:yt,mobileWebkit3d:wt,msPointer:bt,pointer:kt,touch:At,touchNative:xt,mobileOpera:Lt,mobileGecko:Tt,retina:Ct,passiveEvents:Pt,canvas:St,svg:Mt,vml:zt,inlineSvg:Et,mac:Ot,linux:It};var jt=Dt.msPointer?"MSPointerDown":"pointerdown";var Rt=Dt.msPointer?"MSPointerMove":"pointermove";var Ft=Dt.msPointer?"MSPointerUp":"pointerup";var Nt=Dt.msPointer?"MSPointerCancel":"pointercancel";var Zt={touchstart:jt,touchmove:Rt,touchend:Ft,touchcancel:Nt};var Gt={touchstart:Jt,touchmove:Kt,touchend:Kt,touchcancel:Kt};var Ht={};var Ut=false;function Vt(t,e,i){if(e==="touchstart"){Qt()}if(!Gt[e]){console.warn("wrong event specified:",e);return c}i=Gt[e].bind(this,i);t.addEventListener(Zt[e],i,false);return i}function Wt(t,e,i){if(!Zt[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Zt[e],i,false)}function Yt(t){Ht[t.pointerId]=t}function $t(t){if(Ht[t.pointerId]){Ht[t.pointerId]=t}}function qt(t){delete Ht[t.pointerId]}function Qt(){if(!Ut){document.addEventListener(jt,Yt,true);document.addEventListener(Rt,$t,true);document.addEventListener(Ft,qt,true);document.addEventListener(Nt,qt,true);Ut=true}}function Kt(t,e){if(e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")){return}e.touches=[];for(var i in Ht){e.touches.push(Ht[i])}e.changedTouches=[e];t(e)}function Jt(t,e){if(e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH){Ye(e)}Kt(t,e)}function Xt(t){var e={},i,n;for(n in t){i=t[n];e[n]=i&&i.bind?i.bind(t):i}t=e;e.type="dblclick";e.detail=2;e.isTrusted=false;e._simulated=true;return e}var te=200;function ee(t,e){t.addEventListener("dblclick",e);var i=0,n;function r(t){if(t.detail!==1){n=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var r=qe(t);if(r.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!r.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var o=Date.now();if(o-i<=te){n++;if(n===2){e(Xt(t))}}else{n=1}i=o}t.addEventListener("click",r);return{dblclick:e,simDblclick:r}}function ie(t,e){t.removeEventListener("dblclick",e.dblclick);t.removeEventListener("click",e.simDblclick)}var ne=we(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var re=we(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var oe=re==="webkitTransition"||re==="OTransition"?re+"End":"transitionend";function ae(t){return typeof t==="string"?document.getElementById(t):t}function se(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function le(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function ce(t){var e=t.parentNode;if(e){e.removeChild(t)}}function pe(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ue(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function he(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function de(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=ve(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function fe(t,e){if(t.classList!==undefined){var i=h(e);for(var n=0,r=i.length;n<r;n++){t.classList.add(i[n])}}else if(!de(t,e)){var o=ve(t);ge(t,(o?o+" ":"")+e)}}function me(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{ge(t,u((" "+ve(t)+" ").replace(" "+e+" "," ")))}}function ge(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function ve(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function _e(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){ye(t,e)}}function ye(t,e){var i=false,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(r){if(e===1){return}}e=Math.round(e*100);if(i){i.Enabled=e!==100;i.Opacity=e}else{t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function we(t){var e=document.documentElement.style;for(var i=0;i<t.length;i++){if(t[i]in e){return t[i]}}return false}function be(t,e,i){var n=e||new O(0,0);t.style[ne]=(Dt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ke(t,e){t._leaflet_pos=e;if(Dt.any3d){be(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function xe(t){return t._leaflet_pos||new O(0,0)}var Ae;var Le;var Te;if("onselectstart"in document){Ae=function(){je(window,"selectstart",Ye)};Le=function(){Fe(window,"selectstart",Ye)}}else{var Ce=we(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ae=function(){if(Ce){var t=document.documentElement.style;Te=t[Ce];t[Ce]="none"}};Le=function(){if(Ce){document.documentElement.style[Ce]=Te;Te=undefined}}}function Pe(){je(window,"dragstart",Ye)}function Se(){Fe(window,"dragstart",Ye)}var Me,Ee;function ze(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Oe();Me=t;Ee=t.style.outlineStyle;t.style.outlineStyle="none";je(window,"keydown",Oe)}function Oe(){if(!Me){return}Me.style.outlineStyle=Ee;Me=undefined;Ee=undefined;Fe(window,"keydown",Oe)}function Ie(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Be(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var De={__proto__:null,TRANSFORM:ne,TRANSITION:re,TRANSITION_END:oe,get:ae,getStyle:se,create:le,remove:ce,empty:pe,toFront:ue,toBack:he,hasClass:de,addClass:fe,removeClass:me,setClass:ge,getClass:ve,setOpacity:_e,testProp:we,setTransform:be,setPosition:ke,getPosition:xe,get disableTextSelection(){return Ae},get enableTextSelection(){return Le},disableImageDrag:Pe,enableImageDrag:Se,preventOutline:ze,restoreOutline:Oe,getSizedParentNode:Ie,getScale:Be};function je(t,e,i,n){if(e&&typeof e==="object"){for(var r in e){Ge(t,r,e[r],i)}}else{e=h(e);for(var o=0,a=e.length;o<a;o++){Ge(t,e[o],i,n)}}return this}var Re="_leaflet_events";function Fe(t,e,i,n){if(arguments.length===1){Ne(t);delete t[Re]}else if(e&&typeof e==="object"){for(var r in e){He(t,r,e[r],i)}}else{e=h(e);if(arguments.length===2){Ne(t,(function(t){return _(e,t)!==-1}))}else{for(var o=0,a=e.length;o<a;o++){He(t,e[o],i,n)}}}return this}function Ne(t,e){for(var i in t[Re]){var n=i.split(/\d/)[0];if(!e||e(n)){He(t,n,null,null,i)}}}var Ze={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ge(t,e,i,n){var r=e+a(i)+(n?"_"+a(n):"");if(t[Re]&&t[Re][r]){return this}var o=function(e){return i.call(n||t,e||window.event)};var s=o;if(!Dt.touchNative&&Dt.pointer&&e.indexOf("touch")===0){o=Vt(t,e,o)}else if(Dt.touch&&e==="dblclick"){o=ee(t,o)}else if("addEventListener"in t){if(e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"){t.addEventListener(Ze[e]||e,o,Dt.passiveEvents?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){o=function(e){e=e||window.event;if(Xe(t,e)){s(e)}};t.addEventListener(Ze[e],o,false)}else{t.addEventListener(e,s,false)}}else{t.attachEvent("on"+e,o)}t[Re]=t[Re]||{};t[Re][r]=o}function He(t,e,i,n,r){r=r||e+a(i)+(n?"_"+a(n):"");var o=t[Re]&&t[Re][r];if(!o){return this}if(!Dt.touchNative&&Dt.pointer&&e.indexOf("touch")===0){Wt(t,e,o)}else if(Dt.touch&&e==="dblclick"){ie(t,o)}else if("removeEventListener"in t){t.removeEventListener(Ze[e]||e,o,false)}else{t.detachEvent("on"+e,o)}t[Re][r]=null}function Ue(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Ve(t){Ge(t,"wheel",Ue);return this}function We(t){je(t,"mousedown touchstart dblclick contextmenu",Ue);t["_leaflet_disable_click"]=true;return this}function Ye(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function $e(t){Ye(t);Ue(t);return this}function qe(t){if(t.composedPath){return t.composedPath()}var e=[];var i=t.target;while(i){e.push(i);i=i.parentNode}return e}function Qe(t,e){if(!e){return new O(t.clientX,t.clientY)}var i=Be(e),n=i.boundingClientRect;return new O((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ke=Dt.linux&&Dt.chrome?window.devicePixelRatio:Dt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Je(t){return Dt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ke:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Xe(t,e){var i=e.relatedTarget;if(!i){return true}try{while(i&&i!==t){i=i.parentNode}}catch(n){return false}return i!==t}var ti={__proto__:null,on:je,off:Fe,stopPropagation:Ue,disableScrollPropagation:Ve,disableClickPropagation:We,preventDefault:Ye,stop:$e,getPropagationPath:qe,getMousePosition:Qe,getWheelDelta:Je,isExternalTarget:Xe,addListener:je,removeListener:Fe};var ei=z.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=xe(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=T(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(e<i){this._runFrame(this._easeOut(e/i),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));if(e){i._round()}ke(this._el,i);this.fire("step")},_complete:function(){C(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ii=z.extend({options:{crs:$,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=d(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=r(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(Z(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=re&&Dt.any3d&&!Dt.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();je(this._proxy,oe,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(Z(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=i({animate:n.animate},n.zoom);n.pan=i({animate:n.animate,duration:n.duration},n.pan)}var r=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(r){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e,n.pan&&n.pan.noMoveStart);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(Dt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(Dt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),r=this.getSize().divideBy(2),o=t instanceof O?t:this.latLngToContainerPoint(t),a=o.subtract(r).multiplyBy(1-1/n),s=this.containerPointToLatLng(r.add(a));return this.setView(s,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():F(t);var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,false,i.add(n));r=typeof e.maxZoom==="number"?Math.min(e.maxZoom,r):r;if(r===Infinity){return{center:t.getCenter(),zoom:r}}var o=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),r),s=this.project(t.getNorthEast(),r),l=this.unproject(a.add(s).divideBy(2).add(o),r);return{center:l,zoom:r}},fitBounds:function(t,e){t=F(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=B(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ei;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){fe(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,e,i){i=i||{};if(i.animate===false||!Dt.any3d){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),a=this._zoom;t=Z(t);e=e===undefined?a:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,e),c=r.distanceTo(n)||1,p=1.42,u=p*p;function h(t){var e=t?-1:1,i=t?l:s,n=l*l-s*s+e*u*u*c*c,r=2*i*u*c,o=n/r,a=Math.sqrt(o*o+1)-o;var p=a<1e-9?-18:Math.log(a);return p}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return d(t)/f(t)}var g=h(0);function v(t){return s*(f(g)/f(g+p*t))}function _(t){return s*(f(g)*m(g+p*t)-d(g))/u}function y(t){return 1-Math.pow(1-t,1.5)}var w=Date.now(),b=(h(1)-g)/p,k=i.duration?1e3*i.duration:1e3*b*.8;function x(){var i=(Date.now()-w)/k,o=y(i)*b;if(i<=1){this._flyToFrame=T(x,this);this._move(this.unproject(n.add(r.subtract(n).multiplyBy(_(o)/c)),a),this.getScaleZoom(s/v(o),a),{flyTo:true})}else{this._move(t,e)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);x.call(this);return this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){t=F(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,F(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),r=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),s=j([a.min.add(i),a.max.subtract(n)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=true;var c=o.subtract(s.getCenter());var p=s.extend(o).getSize().subtract(l);r.x+=c.x<0?-p.x:p.x;r.y+=c.y<0?-p.y:p.y;this.panTo(this.unproject(r),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=i({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),s=o.subtract(a);if(!s.x&&!s.y){return this}if(t.animate&&t.pan){this.panBy(s)}else{if(t.pan){this._rawPanBy(s)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=i({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=r(this._handleGeolocationResponse,this),n=r(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var e=t.coords.latitude,i=t.coords.longitude,n=new N(e,i),r=n.toBounds(t.coords.accuracy*2),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(r);this.setView(n,o.maxZoom?Math.min(a,o.maxZoom):a)}var s={latlng:n,bounds:r,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){s[l]=t.coords[l]}}this.fire("locationfound",s)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(e){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ce(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){C(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ce(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=le("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter.clone()}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new R(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=F(t);i=B(i||[0,0]);var n=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(i),c=j(this.project(s,n),this.project(a,n)).getSize(),p=Dt.any3d?this.options.zoomSnap:1,u=l.x/c.x,h=l.y/c.y,d=e?Math.max(u,h):Math.min(u,h);n=this.getScaleZoom(d,n);if(p){n=Math.round(n/(p/100))*(p/100);n=e?Math.ceil(n/p)*p:Math.floor(n/p)*p}return Math.max(r,Math.min(o,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new D(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(Z(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Qe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ae(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}je(e,"scroll",this._onScroll,this);this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Dt.any3d;fe(t,"leaflet-container"+(Dt.touch?" leaflet-touch":"")+(Dt.retina?" leaflet-retina":"")+(Dt.ielt9?" leaflet-oldie":"")+(Dt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=se(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);ke(this._mapPane,new O(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){fe(t.markerPane,"leaflet-zoom-hide");fe(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e,i){ke(this._mapPane,new O(0,0));var n=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,i)._move(t,e)._moveEnd(r);this.fire("viewreset");if(n){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i,n){if(e===undefined){e=this._zoom}var r=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!n){if(r||i&&i.pinch){this.fire("zoom",i)}this.fire("move",i)}else if(i&&i.pinch){this.fire("zoom",i)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){C(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){ke(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(t){this._targets={};this._targets[a(this._container)]=this;var e=t?Fe:je;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(Dt.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){C(this._resizeRequest);this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,r=e==="mouseout"||e==="mouseover",o=t.target||t.srcElement,s=false;while(o){n=this._targets[a(o)];if(n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){s=true;break}if(n&&n.listens(e,true)){if(r&&!Xe(o,t)){break}i.push(n);if(r){break}}if(o===this._container){break}o=o.parentNode}if(!i.length&&!s&&!r&&this.listens(e,true)){i=[this]}return i},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!this._loaded||e["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(e)){return}var i=t.type;if(i==="mousedown"){ze(e)}this._fireDOMEvent(t,i)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var r=i({},t);r.type="preclick";this._fireDOMEvent(r,r.type,n)}var o=this._findEventTargets(t,e);if(n){var a=[];for(var s=0;s<n.length;s++){if(n[s].listens(e,true)){a.push(n[s])}}o=a.concat(o)}if(!o.length){return}if(e==="contextmenu"){Ye(t)}var l=o[0];var c={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var p=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=p?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);c.layerPoint=this.containerPointToLayerPoint(c.containerPoint);c.latlng=p?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<o.length;s++){o[s].fire(e,c,true);if(c.originalEvent._stopped||o[s].options.bubblingMouseEvents===false&&_(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return xe(this._mapPane)||new O(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return j([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i){return t}var n=this.project(t,e),r=this.getSize().divideBy(2),o=new D(n.subtract(r),n.add(r)),a=this._getBoundsOffset(o,i,e);if(Math.abs(a.x)<=1&&Math.abs(a.y)<=1){return t}return this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new D(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=j(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),r=n.min.subtract(t.min),o=n.max.subtract(t.max),a=this._rebound(r.x,-o.x),s=this._rebound(r.y,-o.y);return new O(a,s)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Dt.any3d?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){me(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=le("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ne,i=this._proxy.style[e];be(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ce(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();be(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(r)){return false}T((function(){this._moveStart(true,i.noMoveStart||false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;fe(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(r(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){me(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function ni(t,e){return new ii(t,e)}var ri=S.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];fe(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ce(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var oi=function(t){return new ri(t)};ii.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=le("div",e+"control-container",this._container);function n(n,r){var o=e+n+" "+e+r;t[n+r]=le("div",o,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ce(this._controlCorners[t])}ce(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var ai=ri.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){d(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var n in t){this._addLayer(t[n],n)}for(n in e){this._addLayer(e[n],n,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ri.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){fe(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){fe(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{me(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){me(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=le("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);We(e);Ve(e);var n=this._section=le("section",t+"-list");if(i){this._map.on("click",this.collapse,this);je(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var r=this._layersLink=le("a",t+"-toggle",e);r.href="#";r.title="Layers";r.setAttribute("role","button");je(r,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){Ye(t);this._expandSafely()}},this);if(!i){this.expand()}this._baseLayersList=le("div",t+"-base",n);this._separator=le("div",t+"-separator",n);this._overlaysList=le("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&a(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,i){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:i});if(this.options.sortLayers){this._layers.sort(r((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}pe(this._baseLayersList);pe(this._overlaysList);this._layerControlInputs=[];var t,e,i,n,r=0;for(i=0;i<this._layers.length;i++){n=this._layers[i];this._addItem(n);e=e||n.overlay;t=t||!n.overlay;r+=!n.overlay?1:0}if(this.options.hideSingleBase){t=t&&r>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(a(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+a(this),i)}this._layerControlInputs.push(n);n.layerId=a(t.layer);je(n,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("span");e.appendChild(o);o.appendChild(n);o.appendChild(r);var s=t.overlay?this._overlaysList:this._baseLayersList;s.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){if(this._preventClick){return}var t=this._layerControlInputs,e,i;var n=[],r=[];this._handlingClick=true;for(var o=t.length-1;o>=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){r.push(i)}}for(o=0;o<r.length;o++){if(this._map.hasLayer(r[o])){this._map.removeLayer(r[o])}}for(o=0;o<n.length;o++){if(!this._map.hasLayer(n[o])){this._map.addLayer(n[o])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,i,n=this._map.getZoom();for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&n<i.options.minZoom||i.options.maxZoom!==undefined&&n>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;this._preventClick=true;je(t,"click",Ye);this.expand();var e=this;setTimeout((function(){Fe(t,"click",Ye);e._preventClick=false}))}});var si=function(t,e,i){return new ai(t,e,i)};var li=ri.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=le("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,r){var o=le("a",i,n);o.innerHTML=t;o.href="#";o.title=e;o.setAttribute("role","button");o.setAttribute("aria-label",e);We(o);je(o,"click",$e);je(o,"click",r,this);je(o,"click",this._refocusOnMap,this);return o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";me(this._zoomInButton,e);me(this._zoomOutButton,e);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){fe(this._zoomOutButton,e);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){fe(this._zoomInButton,e);this._zoomInButton.setAttribute("aria-disabled","true")}}});ii.mergeOptions({zoomControl:true});ii.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new li;this.addControl(this.zoomControl)}}));var ci=function(t){return new li(t)};var pi=ri.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=le("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=le("div",e,i)}if(t.imperial){this._iScale=le("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,r;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{r=this._getRoundNum(e);this._updateScale(this._iScale,r+" ft",r/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var ui=function(t){return new pi(t)};var hi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var di=ri.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Dt.inlineSvg?hi+" ":"")+"Leaflet</a>"},initialize:function(t){d(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=le("div","leaflet-control-attribution");We(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}});ii.mergeOptions({attributionControl:true});ii.addInitHook((function(){if(this.options.attributionControl){(new di).addTo(this)}}));var fi=function(t){return new di(t)};ri.Layers=ai;ri.Zoom=li;ri.Scale=pi;ri.Attribution=di;oi.layers=si;oi.zoom=ci;oi.scale=ui;oi.attribution=fi;var mi=S.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){t.addHandler(e,this);return this};var gi={Events:E};var vi=Dt.touch?"touchstart mousedown":"mousedown";var _i=z.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){d(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}je(this._dragStartTarget,vi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(_i._dragging===this){this.finishDrag(true)}Fe(this._dragStartTarget,vi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(de(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(_i._dragging===this){this.finishDrag()}return}if(_i._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}_i._dragging=this;if(this._preventOutline){ze(this._element)}Pe();Ae();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ie(this._element);this._startPoint=new O(e.clientX,e.clientY);this._startPos=xe(this._element);this._parentScale=Be(i);var n=t.type==="mousedown";je(document,n?"mousemove":"touchmove",this._onMove,this);je(document,n?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new O(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;Ye(t);if(!this._moved){this.fire("dragstart");this._moved=true;fe(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}fe(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);ke(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){me(document.body,"leaflet-dragging");if(this._lastTarget){me(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Fe(document,"mousemove touchmove",this._onMove,this);Fe(document,"mouseup touchend touchcancel",this._onUp,this);Se();Le();var e=this._moved&&this._moving;this._moving=false;_i._dragging=false;if(e){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}});function yi(t,e,i){var n,r=[1,4,2,8],o,a,s,l,c,p,u,h;for(o=0,p=t.length;o<p;o++){t[o]._code=zi(t[o],e)}for(s=0;s<4;s++){u=r[s];n=[];for(o=0,p=t.length,a=p-1;o<p;a=o++){l=t[o];c=t[a];if(!(l._code&u)){if(c._code&u){h=Ei(c,l,u,e,i);h._code=zi(h,e);n.push(h)}n.push(l)}else if(!(c._code&u)){h=Ei(c,l,u,e,i);h._code=zi(h,e);n.push(h)}}t=n}return t}function wi(t,e){var i,n,r,o,a,s,l,c,p;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Bi(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var u=Z([0,0]);var h=F(t);var d=h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest());if(d<1700){u=bi(t)}var f=t.length;var m=[];for(i=0;i<f;i++){var g=Z(t[i]);m.push(e.project(Z([g.lat-u.lat,g.lng-u.lng])))}s=l=c=0;for(i=0,n=f-1;i<f;n=i++){r=m[i];o=m[n];a=r.y*o.x-o.y*r.x;l+=(r.x+o.x)*a;c+=(r.y+o.y)*a;s+=a*3}if(s===0){p=m[0]}else{p=[l/s,c/s]}var v=e.unproject(B(p));return Z([v.lat+u.lat,v.lng+u.lng])}function bi(t){var e=0;var i=0;var n=0;for(var r=0;r<t.length;r++){var o=Z(t[r]);e+=o.lat;i+=o.lng;n++}return Z([e/n,i/n])}var ki={__proto__:null,clipPolygon:yi,polygonCenter:wi,centroid:bi};function xi(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=Pi(t,i);t=Ti(t,i);return t}function Ai(t,e,i){return Math.sqrt(Ii(t,e,i,true))}function Li(t,e,i){return Ii(t,e,i)}function Ti(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,r=new n(i);r[0]=r[i-1]=1;Ci(t,r,e,0,i-1);var o,a=[];for(o=0;o<i;o++){if(r[o]){a.push(t[o])}}return a}function Ci(t,e,i,n,r){var o=0,a,s,l;for(s=n+1;s<=r-1;s++){l=Ii(t[s],t[n],t[r],true);if(l>o){a=s;o=l}}if(o>i){e[a]=1;Ci(t,e,i,n,a);Ci(t,e,i,a,r)}}function Pi(t,e){var i=[t[0]];for(var n=1,r=0,o=t.length;n<o;n++){if(Oi(t[n],t[r])>e){i.push(t[n]);r=n}}if(r<o-1){i.push(t[o-1])}return i}var Si;function Mi(t,e,i,n,r){var o=n?Si:zi(t,i),a=zi(e,i),s,l,c;Si=a;while(true){if(!(o|a)){return[t,e]}if(o&a){return false}s=o||a;l=Ei(t,e,s,i,r);c=zi(l,i);if(s===o){t=l;o=c}else{e=l;a=c}}}function Ei(t,e,i,n,r){var o=e.x-t.x,a=e.y-t.y,s=n.min,l=n.max,c,p;if(i&8){c=t.x+o*(l.y-t.y)/a;p=l.y}else if(i&4){c=t.x+o*(s.y-t.y)/a;p=s.y}else if(i&2){c=l.x;p=t.y+a*(l.x-t.x)/o}else if(i&1){c=s.x;p=t.y+a*(s.x-t.x)/o}return new O(c,p,r)}function zi(t,e){var i=0;if(t.x<e.min.x){i|=1}else if(t.x>e.max.x){i|=2}if(t.y<e.min.y){i|=4}else if(t.y>e.max.y){i|=8}return i}function Oi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ii(t,e,i,n){var r=e.x,o=e.y,a=i.x-r,s=i.y-o,l=a*a+s*s,c;if(l>0){c=((t.x-r)*a+(t.y-o)*s)/l;if(c>1){r=i.x;o=i.y}else if(c>0){r+=a*c;o+=s*c}}a=t.x-r;s=t.y-o;return n?a*a+s*s:new O(r,o)}function Bi(t){return!v(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Di(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Bi(t)}function ji(t,e){var i,n,r,o,a,s,l,c;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Bi(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var p=Z([0,0]);var u=F(t);var h=u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest());if(h<1700){p=bi(t)}var d=t.length;var f=[];for(i=0;i<d;i++){var m=Z(t[i]);f.push(e.project(Z([m.lat-p.lat,m.lng-p.lng])))}for(i=0,n=0;i<d-1;i++){n+=f[i].distanceTo(f[i+1])/2}if(n===0){c=f[0]}else{for(i=0,o=0;i<d-1;i++){a=f[i];s=f[i+1];r=a.distanceTo(s);o+=r;if(o>n){l=(o-n)/r;c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}}}var g=e.unproject(B(c));return Z([g.lat+p.lat,g.lng+p.lng])}var Ri={__proto__:null,simplify:xi,pointToSegmentDistance:Ai,closestPointOnSegment:Li,clipSegment:Mi,_getEdgeIntersection:Ei,_getBitCode:zi,_sqClosestPointOnSegment:Ii,isFlat:Bi,_flat:Di,polylineCenter:ji};var Fi={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new D([-180,-90],[180,90])};var Ni={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),a=o*Math.sin(n);var s=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),o/2);n=-i*Math.log(Math.max(s,1e-10));return new O(t.lng*e*i,n)},unproject:function(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,r=Math.sqrt(1-n*n),o=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(o);for(var s=0,l=.1,c;s<15&&Math.abs(l)>1e-7;s++){c=r*Math.sin(a);c=Math.pow((1-c)/(1+c),r/2);l=Math.PI/2-2*Math.atan(o*c)-a;a+=l}return new N(a*e,t.x*e/i)}};var Zi={__proto__:null,LonLat:Fi,Mercator:Ni,SphericalMercator:V};var Gi=i({},H,{code:"EPSG:3395",projection:Ni,transformation:function(){var t=.5/(Math.PI*Ni.R);return Y(t,.5,-t,.5)}()});var Hi=i({},H,{code:"EPSG:4326",projection:Fi,transformation:Y(1/180,1,-1/180,.5)});var Ui=i({},G,{projection:Fi,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});G.Earth=H;G.EPSG3395=Gi;G.EPSG3857=$;G.EPSG900913=q;G.EPSG4326=Hi;G.Simple=Ui;var Vi=z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[a(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[a(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);this.fire("add");e.fire("layeradd",{layer:this})}});ii.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=a(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=a(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},_addLayers:function(t){t=t?v(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[a(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=a(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var r=this._zoomBoundLayers[n].options;t=r.minZoom===undefined?t:Math.min(t,r.minZoom);e=r.maxZoom===undefined?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Wi=Vi.extend({initialize:function(t,e){d(this,e);this._layers={};var i,n;if(t){for(i=0,n=t.length;i<n;i++){this.addLayer(t[i])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){var e=typeof t==="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers){n=this._layers[i];if(n[t]){n[t].apply(n,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}});var Yi=function(t,e){return new Wi(t,e)};var $i=Wi.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Wi.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Wi.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var qi=function(t,e){return new $i(t,e)};var Qi=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);this._setIconStyles(n,t);if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return n},_setIconStyles:function(t,e){var i=this.options;var n=i[e+"Size"];if(typeof n==="number"){n=[n,n]}var r=B(n),o=B(e==="shadow"&&i.shadowAnchor||i.iconAnchor||r&&r.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(o){t.style.marginLeft=-o.x+"px";t.style.marginTop=-o.y+"px"}if(r){t.style.width=r.x+"px";t.style.height=r.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return Dt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ki(t){return new Qi(t)}var Ji=Qi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(typeof Ji.imagePath!=="string"){Ji.imagePath=this._detectIconPath()}return(this.options.imagePath||Ji.imagePath)+Qi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};t=e(t,/^url\((['"])?(.+)\1\)$/,2);return t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=le("div","leaflet-default-icon-path",document.body);var e=se(t,"background-image")||se(t,"backgroundImage");document.body.removeChild(t);e=this._stripUrl(e);if(e){return e}var i=document.querySelector('link[href$="leaflet.css"]');if(!i){return""}return i.href.substring(0,i.href.length-"leaflet.css".length-1)}});var Xi=mi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new _i(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();fe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){me(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=xe(e._icon),a=i.getPixelBounds(),s=i.getPixelOrigin();var l=j(a.min._subtract(s).add(r),a.max._subtract(s).subtract(r));if(!l.contains(o)){var c=B((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(n);i.panBy(c,{animate:false});this._draggable._newPos._add(c);this._draggable._startPos._add(c);ke(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){C(this._panRequest);this._panRequest=T(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=xe(e._icon),r=e._map.layerPointToLatLng(n);if(i){ke(i,n)}e._latlng=r;t.latlng=r;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){C(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var tn=Vi.extend({options:{icon:new Ji,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e);this._latlng=Z(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=Z(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=t.icon.createIcon(this._icon),n=false;if(i!==this._icon){if(this._icon){this._removeIcon()}n=true;if(t.title){i.title=t.title}if(i.tagName==="IMG"){i.alt=t.alt||""}}fe(i,e);if(t.keyboard){i.tabIndex="0";i.setAttribute("role","button")}this._icon=i;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){je(i,"focus",this._panOnFocus,this)}var r=t.icon.createShadow(this._shadow),o=false;if(r!==this._shadow){this._removeShadow();o=true}if(r){fe(r,e);r.alt=""}this._shadow=r;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(r&&o){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Fe(this._icon,"focus",this._panOnFocus,this)}ce(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ce(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){ke(this._icon,t)}if(this._shadow){ke(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}fe(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Xi){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Xi(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){_e(this._icon,t)}if(this._shadow){_e(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var e=this.options.icon.options;var i=e.iconSize?B(e.iconSize):B(0,0);var n=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function en(t,e){return new tn(t,e)}var nn=Vi.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){d(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var rn=nn.extend({options:{fill:true,radius:10},initialize:function(t,e){d(this,e);this._latlng=Z(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=Z(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;nn.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new D(this._point.subtract(n),this._point.add(n))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function on(t,e){return new rn(t,e)}var an=rn.extend({initialize:function(t,e,n){if(typeof e==="number"){e=i({},n,{radius:e})}d(this,e);this._latlng=Z(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:nn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===H.distance){var r=Math.PI/180,o=this._mRadius/H.R/r,a=i.project([e+o,t]),s=i.project([e-o,t]),l=a.add(s).divideBy(2),c=i.unproject(l).lat,p=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(c*r))/(Math.cos(e*r)*Math.cos(c*r)))/r;if(isNaN(p)||p===0){p=o/Math.cos(Math.PI/180*e)}this._point=l.subtract(i.getPixelOrigin());this._radius=isNaN(p)?0:l.x-i.project([c,t-p]).x;this._radiusY=l.y-a.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function sn(t,e,i){return new an(t,e,i)}var ln=nn.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){d(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,i=null,n=Ii,r,o;for(var a=0,s=this._parts.length;a<s;a++){var l=this._parts[a];for(var c=1,p=l.length;c<p;c++){r=l[c-1];o=l[c];var u=n(t,r,o,true);if(u<e){e=u;i=n(t,r,o)}}}if(i){i.distance=Math.sqrt(e)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return ji(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=Z(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Bi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Bi(t);for(var n=0,r=t.length;n<r;n++){if(i){e[n]=Z(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new D;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new O(t,t);if(!this._rawPxBounds){return}this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof N,r=t.length,o,a;if(n){a=[];for(o=0;o<r;o++){a[o]=this._map.latLngToLayerPoint(t[o]);i.extend(a[o])}e.push(a)}else{for(o=0;o<r;o++){this._projectLatlngs(t[o],e,i)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,r,o,a,s,l;for(i=0,r=0,o=this._rings.length;i<o;i++){l=this._rings[i];for(n=0,a=l.length;n<a-1;n++){s=Mi(l[n],l[n+1],t,n,true);if(!s){continue}e[r]=e[r]||[];e[r].push(s[0]);if(s[1]!==l[n+1]||n===a-2){e[r].push(s[1]);r++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var i=0,n=t.length;i<n;i++){t[i]=xi(t[i],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,r,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,o=this._parts.length;i<o;i++){s=this._parts[i];for(n=0,a=s.length,r=a-1;n<a;r=n++){if(!e&&n===0){continue}if(Ai(t,s[r],s[n])<=l){return true}}}return false}});function cn(t,e){return new ln(t,e)}ln._flat=Di;var pn=ln.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return wi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ln.prototype._convertLatLngs.call(this,t),i=e.length;if(i>=2&&e[0]instanceof N&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){ln.prototype._setLatLngs.call(this,t);if(Bi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Bi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new O(e,e);t=new D(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,r=this._rings.length,o;n<r;n++){o=yi(this._rings[n],t,true);if(o.length){this._parts.push(o)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,r,o,a,s,l,c;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(o=0,l=this._parts.length;o<l;o++){i=this._parts[o];for(a=0,c=i.length,s=c-1;a<c;s=a++){n=i[a];r=i[s];if(n.y>t.y!==r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x){e=!e}}}return e||ln.prototype._containsPoint.call(this,t,true)}});function un(t,e){return new pn(t,e)}var hn=$i.extend({initialize:function(t,e){d(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=v(t)?t:t.features,i,n,r;if(e){for(i=0,n=e.length;i<n;i++){r=e[i];if(r.geometries||r.geometry||r.features||r.coordinates){this.addData(r)}}return this}var o=this.options;if(o.filter&&!o.filter(t)){return this}var a=dn(t,o);if(!a){return this}a.feature=wn(t);a.defaultOptions=a.options;this.resetStyle(a);if(o.onEachFeature){o.onEachFeature(t,a)}return this.addLayer(a)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=i({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function dn(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,r=[],o=e&&e.pointToLayer,a=e&&e.coordsToLatLng||mn,s,l,c,p;if(!n&&!i){return null}switch(i.type){case"Point":s=a(n);return fn(o,t,s,e);case"MultiPoint":for(c=0,p=n.length;c<p;c++){s=a(n[c]);r.push(fn(o,t,s,e))}return new $i(r);case"LineString":case"MultiLineString":l=gn(n,i.type==="LineString"?0:1,a);return new ln(l,e);case"Polygon":case"MultiPolygon":l=gn(n,i.type==="Polygon"?1:2,a);return new pn(l,e);case"GeometryCollection":for(c=0,p=i.geometries.length;c<p;c++){var u=dn({geometry:i.geometries[c],type:"Feature",properties:t.properties},e);if(u){r.push(u)}}return new $i(r);case"FeatureCollection":for(c=0,p=i.features.length;c<p;c++){var h=dn(i.features[c],e);if(h){r.push(h)}}return new $i(r);default:throw new Error("Invalid GeoJSON object.")}}function fn(t,e,i,n){return t?t(e,i):new tn(i,n&&n.markersInheritOptions&&n)}function mn(t){return new N(t[1],t[0],t[2])}function gn(t,e,i){var n=[];for(var r=0,o=t.length,a;r<o;r++){a=e?gn(t[r],e-1,i):(i||mn)(t[r]);n.push(a)}return n}function vn(t,e){t=Z(t);return t.alt!==undefined?[p(t.lng,e),p(t.lat,e),p(t.alt,e)]:[p(t.lng,e),p(t.lat,e)]}function _n(t,e,i,n){var r=[];for(var o=0,a=t.length;o<a;o++){r.push(e?_n(t[o],Bi(t[o])?0:e-1,i,n):vn(t[o],n))}if(!e&&i&&r.length>0){r.push(r[0].slice())}return r}function yn(t,e){return t.feature?i({},t.feature,{geometry:e}):wn(e)}function wn(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var bn={toGeoJSON:function(t){return yn(this,{type:"Point",coordinates:vn(this.getLatLng(),t)})}};tn.include(bn);an.include(bn);rn.include(bn);ln.include({toGeoJSON:function(t){var e=!Bi(this._latlngs);var i=_n(this._latlngs,e?1:0,false,t);return yn(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});pn.include({toGeoJSON:function(t){var e=!Bi(this._latlngs),i=e&&!Bi(this._latlngs[0]);var n=_n(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return yn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});Wi.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return yn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint"){return this.toMultiPoint(t)}var i=e==="GeometryCollection",n=[];this.eachLayer((function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(i){n.push(r.geometry)}else{var o=wn(r);if(o.type==="FeatureCollection"){n.push.apply(n,o.features)}else{n.push(o)}}}}));if(i){return yn(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function kn(t,e){return new hn(t,e)}var xn=kn;var An=Vi.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=F(e);d(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){fe(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ce(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){ue(this._image)}return this},bringToBack:function(){if(this._map){he(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=F(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:le("img");fe(e,"leaflet-image-layer");if(this._zoomAnimated){fe(e,"leaflet-zoom-animated")}if(this.options.className){fe(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onload=r(this.fire,this,"load");e.onerror=r(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;be(this._image,i,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ke(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){_e(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var Ln=function(t,e,i){return new An(t,e,i)};var Tn=An.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:le("video");fe(e,"leaflet-image-layer");if(this._zoomAnimated){fe(e,"leaflet-zoom-animated")}if(this.options.className){fe(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onloadeddata=r(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var o=0;o<i.length;o++){n.push(i[o].src)}this._url=i.length>0?n:[e.src];return}if(!v(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;e.muted=!!this.options.muted;e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=le("source");s.src=this._url[a];e.appendChild(s)}}});function Cn(t,e,i){return new Tn(t,e,i)}var Pn=An.extend({_initImage:function(){var t=this._image=this._url;fe(t,"leaflet-image-layer");if(this._zoomAnimated){fe(t,"leaflet-zoom-animated")}if(this.options.className){fe(t,this.options.className)}t.onselectstart=c;t.onmousemove=c}});function Sn(t,e,i){return new Pn(t,e,i)}var Mn=Vi.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,e){if(t&&(t instanceof N||v(t))){this._latlng=Z(t);d(this,e)}else{d(this,t);this._source=e}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){_e(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){_e(this._container,1)}this.bringToFront();if(this.options.interactive){fe(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){_e(this._container,0);this._removeTimeout=setTimeout(r(ce,undefined,this._container),200)}else{ce(this._container)}if(this.options.interactive){me(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=Z(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ue(this._container)}return this},bringToBack:function(){if(this._map){he(this._container)}return this},_prepareOpen:function(t){var e=this._source;if(!e._map){return false}if(e instanceof $i){e=null;var i=this._source._layers;for(var n in i){if(i[n]._map){e=i[n];break}}if(!e){return false}this._source=e}if(!t){if(e.getCenter){t=e.getCenter()}else if(e.getLatLng){t=e.getLatLng()}else if(e.getBounds){t=e.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){ke(this._container,t.add(i))}else{e=e.add(t).add(i)}var n=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px";this._container.style.left=r+"px"},_getAnchor:function(){return[0,0]}});ii.include({_initOverlay:function(t,e,i,n){var r=e;if(!(r instanceof t)){r=new t(n).setContent(e)}if(i){r.setLatLng(i)}return r}});Vi.include({_initOverlay:function(t,e,i,n){var r=i;if(r instanceof t){d(r,n);r._source=this}else{r=e&&!n?e:new t(n,this);r.setContent(i)}return r}});var En=Mn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Mn.prototype.openOn.call(this,t)},onAdd:function(t){Mn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof nn)){this._source.on("preclick",Ue)}}},onRemove:function(t){Mn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof nn)){this._source.off("preclick",Ue)}}},getEvents:function(){var t=Mn.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",e=this._container=le("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=le("div",t+"-content-wrapper",e);this._contentNode=le("div",t+"-content",i);We(e);Ve(this._contentNode);je(e,"contextmenu",Ue);this._tipContainer=le("div",t+"-tip-container",e);this._tip=le("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=le("a",t+"-close-button",e);n.setAttribute("role","button");n.setAttribute("aria-label","Close popup");n.href="#close";n.innerHTML='<span aria-hidden="true">&#215;</span>';je(n,"click",(function(t){Ye(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);e.width=i+1+"px";e.whiteSpace="";e.height="";var n=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";if(r&&n>r){e.height=r+"px";fe(t,o)}else{me(t,o)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ke(this._container,e.add(i))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,e=parseInt(se(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,r=new O(this._containerLeft,-i-this._containerBottom);r._add(xe(this._container));var o=t.layerPointToContainerPoint(r),a=B(this.options.autoPanPadding),s=B(this.options.autoPanPaddingTopLeft||a),l=B(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,u=0;if(o.x+n+l.x>c.x){p=o.x+n-c.x+l.x}if(o.x-p-s.x<0){p=o.x-s.x}if(o.y+i+l.y>c.y){u=o.y+i-c.y+l.y}if(o.y-u-s.y<0){u=o.y-s.y}if(p||u){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([p,u])}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var zn=function(t,e){return new En(t,e)};ii.mergeOptions({closePopupOnClick:true});ii.include({openPopup:function(t,e,i){this._initOverlay(En,t,e,i).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});Vi.include({bindPopup:function(t,e){this._popup=this._initOverlay(En,this._popup,t,e);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup){if(!(this instanceof $i)){this._popup._source=this}if(this._popup._prepareOpen(t||this._latlng)){this._popup.openOn(this._map)}}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}$e(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof nn)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=e;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var On=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Mn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Mn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Mn.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=le("div",e);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,r=this._container,o=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),s=this.options.direction,l=r.offsetWidth,c=r.offsetHeight,p=B(this.options.offset),u=this._getAnchor();if(s==="top"){e=l/2;i=c}else if(s==="bottom"){e=l/2;i=0}else if(s==="center"){e=l/2;i=c/2}else if(s==="right"){e=0;i=c/2}else if(s==="left"){e=l;i=c/2}else if(a.x<o.x){s="right";e=0;i=c/2}else{s="left";e=l+(p.x+u.x)*2;i=c/2}t=t.subtract(B(e,i,true)).add(p).add(u);me(r,"leaflet-tooltip-right");me(r,"leaflet-tooltip-left");me(r,"leaflet-tooltip-top");me(r,"leaflet-tooltip-bottom");fe(r,"leaflet-tooltip-"+s);ke(r,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){_e(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var In=function(t,e){return new On(t,e)};ii.include({openTooltip:function(t,e,i){this._initOverlay(On,t,e,i).openOn(this);return this},closeTooltip:function(t){t.close();return this}});Vi.include({bindTooltip:function(t,e){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(On,this._tooltip,t,e);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;i.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{i.add=this._addFocusListeners}}else{i.add=this._openTooltip}if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}this[e](i);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof $i)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map);if(this.getElement){this._setAriaDescribedByOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._setAriaDescribedByOnLayer,this)}}}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){if(this.getElement){this._addFocusListenersOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._addFocusListenersOnLayer,this)}},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement==="function"&&t.getElement();if(e){je(e,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);je(e,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement==="function"&&t.getElement();if(e){e.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=false;e._openTooltip(t)}));return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,i,n;if(this._tooltip.options.sticky&&t.originalEvent){i=this._map.mouseEventToContainerPoint(t.originalEvent);n=this._map.containerPointToLayerPoint(i);e=this._map.layerPointToLatLng(n)}this._tooltip.setLatLng(e)}});var Bn=Qi.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element){pe(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=B(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Dn(t){return new Bn(t)}Qi.Default=Ji;var jn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Dt.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ce(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ue(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){he(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof O?t:new O(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,i=-t(-Infinity,Infinity);for(var n=0,r=e.length,o;n<r;n++){o=e[n].style.zIndex;if(e[n]!==this._container&&o){i=t(i,+o)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Dt.ielt9){return}_e(this._container,this.options.opacity);var t=+new Date,e=false,i=false;for(var n in this._tiles){var r=this._tiles[n];if(!r.current||!r.loaded){continue}var o=Math.min(1,(t-r.loaded)/200);_e(r.el,o);if(o<1){e=true}else{if(r.active){i=true}else{this._onOpaqueTile(r)}r.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){C(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=le("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var i in this._levels){i=Number(i);if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{ce(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var n=this._levels[t],r=this._map;if(!n){n=this._levels[t]={};n.el=le("div","leaflet-tile-container leaflet-zoom-animated",this._container);n.el.style.zIndex=e;n.origin=r.project(r.unproject(r.getPixelOrigin()),t).round();n.zoom=t;this._setZoomTransform(n,r.getCenter(),r.getZoom());this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(!this._map){return}var t,e;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var n=e.coords;if(!this._retainParent(n.x,n.y,n.z,n.z-5)){this._retainChildren(n.x,n.y,n.z,n.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ce(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var r=Math.floor(t/2),o=Math.floor(e/2),a=i-1,s=new O(+r,+o);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];if(c&&c.active){c.retain=true;return true}else if(c&&c.loaded){c.retain=true}if(a>n){return this._retainParent(r,o,a,n)}return false},_retainChildren:function(t,e,i,n){for(var r=2*t;r<2*t+2;r++){for(var o=2*e;o<2*e+2;o++){var a=new O(r,o);a.z=i+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(i+1<n){this._retainChildren(r,o,i+1,n)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,i,n){var r=Math.round(e);if(this.options.maxZoom!==undefined&&r>this.options.maxZoom||this.options.minZoom!==undefined&&r<this.options.minZoom){r=undefined}else{r=this._clampZoom(r)}var o=this.options.updateWhenZooming&&r!==this._tileZoom;if(!n||o){this._tileZoom=r;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(r!==undefined){this._update(t)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels){this._setZoomTransform(this._levels[i],t,e)}},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),r=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();if(Dt.any3d){be(t.el,r,n)}else{ke(t.el,r)}},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom;var r=this._map.getPixelWorldBounds(this._tileZoom);if(r){this._globalTileRange=this._pxBoundsToTileRange(r)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(n*2);return new D(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(!e){return}var i=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var n=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(n),o=r.getCenter(),a=[],s=this.options.keepBuffer,l=new D(r.getBottomLeft().subtract([s,-s]),r.getTopRight().add([s,-s]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var c in this._tiles){var p=this._tiles[c].coords;if(p.z!==this._tileZoom||!l.contains(new O(p.x,p.y))){this._tiles[c].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var u=r.min.y;u<=r.max.y;u++){for(var h=r.min.x;h<=r.max.x;h++){var d=new O(h,u);d.z=this._tileZoom;if(!this._isValidTile(d)){continue}var f=this._tiles[this._tileCoordsToKey(d)];if(f){f.current=true}else{a.push(d)}}}a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)}));if(a.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(h=0;h<a.length;h++){this._addTile(a[h],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),r=n.add(i),o=e.unproject(n,t.z),a=e.unproject(r,t.z);return[o,a]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new R(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new O(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}ce(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){fe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=c;t.onmousemove=c;if(Dt.ielt9&&this.options.opacity<1){_e(t,this.options.opacity)}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o);if(this.createTile.length<2){T(r(this._tileReady,this,t,null,o))}ke(o,i);this._tiles[n]={el:o,coords:t,current:true};e.appendChild(o);this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){_e(i.el,0);C(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){fe(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Dt.ielt9||!this._map._fadeAnimated){T(this._pruneTiles,this)}else{setTimeout(r(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new O(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Rn(t){return new jn(t)}var Fn=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,e){this._url=t;e=d(this,e);if(e.detectRetina&&Dt.retina&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)}else{e.zoomOffset--;e.minZoom=Math.min(e.maxZoom,e.minZoom+1)}e.minZoom=Math.max(0,e.minZoom)}else if(!e.zoomReverse){e.maxZoom=Math.max(e.minZoom,e.maxZoom)}else{e.minZoom=Math.min(e.maxZoom,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");je(i,"load",r(this._tileOnLoad,this,e,i));je(i,"error",r(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){i.referrerPolicy=this.options.referrerPolicy}i.alt="";i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:Dt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return g(this._url,i(e,this.options))},_tileOnLoad:function(t,e){if(Dt.ielt9){setTimeout(r(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=c;e.onerror=c;if(!e.complete){e.src=y;var i=this._tiles[t].coords;ce(e);delete this._tiles[t];this.fire("tileabort",{tile:e,coords:i})}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}e.el.setAttribute("src",y);return jn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===y){return}return jn.prototype._tileReady.call(this,t,e,i)}});function Nn(t,e){return new Fn(t,e)}var Zn=Fn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var r in e){if(!(r in this.options)){n[r]=e[r]}}e=d(this,e);var o=e.detectRetina&&Dt.retina?2:1;var a=this.getTileSize();n.width=a.x*o;n.height=a.y*o;this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;Fn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=j(i.project(e[0]),i.project(e[1])),r=n.min,o=n.max,a=(this._wmsVersion>=1.3&&this._crs===Hi?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=Fn.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){i(this.wmsParams,t);if(!e){this.redraw()}return this}});function Gn(t,e){return new Zn(t,e)}Fn.WMS=Zn;Nn.wms=Gn;var Hn=Vi.extend({options:{padding:.1},initialize:function(t){d(this,t);a(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();fe(this._container,"leaflet-zoom-animated")}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),o=n.multiplyBy(-i).add(r).subtract(this._map._getNewPixelOrigin(t,e));if(Dt.any3d){be(this._container,o,i)}else{ke(this._container,o)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Un=Hn.extend({options:{tolerance:0},getEvents:function(){var t=Hn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Hn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this);je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);je(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest);delete this._ctx;ce(this._container);Fe(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Hn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Dt.retina?2:1;ke(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(Dt.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Hn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[a(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,r;for(r=0;r<e.length;r++){n=Number(e[r]);if(isNaN(n)){return}i.push(n)}t.options._dashArray=i}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||T(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var i=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var n=this._drawFirst;n;n=n.next){t=n.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var i,n,r,o,a=t._parts,s=a.length,l=this._ctx;if(!s){return}l.beginPath();for(i=0;i<s;i++){for(n=0,r=a[i].length;n<r;n++){o=a[i][n];l[n?"lineTo":"moveTo"](o.x,o.y)}if(e){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||n)/n;if(r!==1){i.save();i.scale(1,r)}i.beginPath();i.arc(e.x,e.y/r,n,0,Math.PI*2,false);if(r!==1){i.restore()}this._fillStroke(i,t)},_fillStroke:function(t,e){var i=e.options;if(i.fill){t.globalAlpha=i.fillOpacity;t.fillStyle=i.fillColor||i.color;t.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=i.opacity;t.lineWidth=i.weight;t.strokeStyle=i.color;t.lineCap=i.lineCap;t.lineJoin=i.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),i,n;for(var r=this._drawFirst;r;r=r.next){i=r.layer;if(i.options.interactive&&i._containsPoint(e)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i)){n=i}}}this._fireEvent(n?[n]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){me(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){fe(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(r((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(i){i.prev=n}else{return}if(n){n.next=i}else if(i){this._drawFirst=i}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(n){n.next=i}else{return}if(i){i.prev=n}else if(n){this._drawLast=n}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function Vn(t){return Dt.canvas?new Un(t):null}var Wn=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Yn={_initContainer:function(){this._container=le("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Hn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Wn("shape");fe(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Wn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;ce(e);t.removeInteractiveTarget(e);delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,r=t._container;r.stroked=!!n.stroke;r.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=Wn("stroke")}r.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){r.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=Wn("fill")}r.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){r.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ue(t._container)},_bringToBack:function(t){he(t._container)}};var $n=Dt.vml?Wn:Q;var qn=Hn.extend({_initContainer:function(){this._container=$n("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=$n("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ce(this._container);Fe(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Hn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}ke(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=$n("path");if(t.options.className){fe(e,t.options.className)}if(t.options.interactive){fe(e,"leaflet-interactive")}this._updateStyle(t);this._layers[a(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ce(t._path);t.removeInteractiveTarget(t._path);delete this._layers[a(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,r="a"+i+","+n+" 0 1,0 ";var o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+r+i*2+",0 "+r+-i*2+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ue(t._path)},_bringToBack:function(t){he(t._path)}});if(Dt.vml){qn.include(Yn)}function Qn(t){return Dt.svg||Dt.vml?new qn(t):null}ii.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Qn(t)}});var Kn=pn.extend({initialize:function(t,e){pn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=F(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Jn(t,e){return new Kn(t,e)}qn.create=$n;qn.pointsToPath=K;hn.geometryToLayer=dn;hn.coordsToLatLng=mn;hn.coordsToLatLngs=gn;hn.latLngToCoords=vn;hn.latLngsToCoords=_n;hn.getFeature=yn;hn.asFeature=wn;ii.mergeOptions({boxZoom:true});var Xn=mi.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ce(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();Ae();Pe();this._startPoint=this._map.mouseEventToContainerPoint(t);je(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=le("div","leaflet-zoom-box",this._container);fe(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),i=e.getSize();ke(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ce(this._box);me(this._container,"leaflet-crosshair")}Le();Se();Fe(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ii.addInitHook("addHandler","boxZoom",Xn);ii.mergeOptions({doubleClickZoom:true});var tr=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,r=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(r)}else{e.setZoomAround(t.containerPoint,r)}}});ii.addInitHook("addHandler","doubleClickZoom",tr);ii.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var er=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new _i(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}fe(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){me(this._map._container,"leaflet-grab");me(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=j(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,r=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,a=Math.abs(r+i)<Math.abs(o+i)?r:o;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;e.fire("dragend",t);if(n){e.fire("moveend")}else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,s=r.multiplyBy(a/o),l=s.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),p=s.multiplyBy(c/l),u=c/(i.inertiaDeceleration*a),h=p.multiplyBy(-u/2).round();if(!h.x&&!h.y){e.fire("moveend")}else{h=e._limitOffset(h,e.options.maxBounds);T((function(){e.panBy(h,{duration:u,easeLinearity:a,noMoveStart:true,animate:true})}))}}}});ii.addInitHook("addHandler","dragging",er);ii.mergeOptions({keyboard:true,keyboardPanDelta:80});var ir=mi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Fe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(n,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,r;for(n=0,r=i.left.length;n<r;n++){e[i.left[n]]=[-1*t,0]}for(n=0,r=i.right.length;n<r;n++){e[i.right[n]]=[t,0]}for(n=0,r=i.down.length;n<r;n++){e[i.down[n]]=[0,t]}for(n=0,r=i.up.length;n<r;n++){e[i.up[n]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,r;for(n=0,r=i.zoomIn.length;n<r;n++){e[i.zoomIn[n]]=t}for(n=0,r=i.zoomOut.length;n<r;n++){e[i.zoomOut[n]]=-t}},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){n=this._panKeys[e];if(t.shiftKey){n=B(n).multiplyBy(3)}if(i.options.maxBounds){n=i._limitOffset(B(n),i.options.maxBounds)}if(i.options.worldCopyJump){var r=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(n)));i.panTo(r)}else{i.panBy(n)}}}else if(e in this._zoomKeys){i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}$e(t)}});ii.addInitHook("addHandler","keyboard",ir);ii.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nr=mi.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Je(t);var i=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(r(this._performZoom,this),n);$e(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),r=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(r/i)*i:r,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0;this._startTime=null;if(!a){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+a)}else{t.setZoomAround(this._lastMousePos,e+a)}}});ii.addInitHook("addHandler","scrollWheelZoom",nr);var rr=600;ii.mergeOptions({tapHold:Dt.touchNative&&Dt.safari&&Dt.mobile,tapTolerance:15});var or=mi.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var e=t.touches[0];this._startPos=this._newPos=new O(e.clientX,e.clientY);this._holdTimeout=setTimeout(r((function(){this._cancel();if(!this._isTapValid()){return}je(document,"touchend",Ye);je(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",e)}),this),rr);je(document,"touchend touchcancel contextmenu",this._cancel,this);je(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Fe(document,"touchend",Ye);Fe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Fe(document,"touchend touchcancel contextmenu",this._cancel,this);Fe(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new O(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=true;e.target.dispatchEvent(i)}});ii.addInitHook("addHandler","tapHold",or);ii.mergeOptions({touchZoom:Dt.touch,bounceAtZoomLimits:true});var ar=mi.extend({addHooks:function(){fe(this._map._container,"leaflet-touch-zoom");je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){me(this._map._container,"leaflet-touch-zoom");Fe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();je(document,"touchmove",this._onTouchMove,this);je(document,"touchend touchcancel",this._onTouchEnd,this);Ye(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(o,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(o===1){return}}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&a.x===0&&a.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}C(this._animRequest);var s=r(e._move,e,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=T(s,this,true);Ye(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;C(this._animRequest);Fe(document,"touchmove",this._onTouchMove,this);Fe(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});ii.addInitHook("addHandler","touchZoom",ar);ii.BoxZoom=Xn;ii.DoubleClickZoom=tr;ii.Drag=er;ii.Keyboard=ir;ii.ScrollWheelZoom=nr;ii.TapHold=or;ii.TouchZoom=ar;t.Bounds=D;t.Browser=Dt;t.CRS=G;t.Canvas=Un;t.Circle=an;t.CircleMarker=rn;t.Class=S;t.Control=ri;t.DivIcon=Bn;t.DivOverlay=Mn;t.DomEvent=ti;t.DomUtil=De;t.Draggable=_i;t.Evented=z;t.FeatureGroup=$i;t.GeoJSON=hn;t.GridLayer=jn;t.Handler=mi;t.Icon=Qi;t.ImageOverlay=An;t.LatLng=N;t.LatLngBounds=R;t.Layer=Vi;t.LayerGroup=Wi;t.LineUtil=Ri;t.Map=ii;t.Marker=tn;t.Mixin=gi;t.Path=nn;t.Point=O;t.PolyUtil=ki;t.Polygon=pn;t.Polyline=ln;t.Popup=En;t.PosAnimation=ei;t.Projection=Zi;t.Rectangle=Kn;t.Renderer=Hn;t.SVG=qn;t.SVGOverlay=Pn;t.TileLayer=Fn;t.Tooltip=On;t.Transformation=W;t.Util=P;t.VideoOverlay=Tn;t.bind=r;t.bounds=j;t.canvas=Vn;t.circle=sn;t.circleMarker=on;t.control=oi;t.divIcon=Dn;t.extend=i;t.featureGroup=qi;t.geoJSON=kn;t.geoJson=xn;t.gridLayer=Rn;t.icon=Ki;t.imageOverlay=Ln;t.latLng=Z;t.latLngBounds=F;t.layerGroup=Yi;t.map=ni;t.marker=en;t.point=B;t.polygon=un;t.polyline=cn;t.popup=zn;t.rectangle=Jn;t.setOptions=d;t.stamp=a;t.svg=Qn;t.svgOverlay=Sn;t.tileLayer=Nn;t.tooltip=In;t.transformation=Y;t.version=e;t.videoOverlay=Cn;var sr=window.L;t.noConflict=function(){window.L=sr;return this};window.L=t}))}));!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,n,r,o){var a=i||new L.Point(0,0);if(!r)return i=a._round(),t.setTransform.apply(this,arguments);a=a.rotateFrom(r,o),e.style[L.DomUtil.TRANSFORM]="translate3d("+a.x+"px,"+a.y+"px,0)"+(n?" scale("+n+")":"")+" rotate("+r+"rad)"},setPosition:function(e,i,n,r,o){if(!n)return t.setPosition.apply(this,arguments);e._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(e,i,o,n,r):(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),n=Math.cos(t),r=e.x,o=e.y,a=this.x-r,s=this.y-o;return new L.Point(a*n-s*i+r,a*i+s*n+o)}});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(),n=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(n).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,n=this._containerWidth,r=new L.Point(this._containerLeft,-i-this._containerBottom);r._add(L.DomUtil.getPosition(this._container));var o=r._add(this._map._getMapPanePos()),a=L.point(this.options.autoPanPadding),s=L.point(this.options.autoPanPaddingTopLeft||a),l=L.point(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,u=0;o.x+n+l.x>c.x&&(p=o.x+n-c.x+l.x),o.x-p-s.x<0&&(p=o.x-s.x),o.y+i+l.y>c.y&&(u=o.y+i-c.y+l.y),o.y-u-s.y<0&&(u=o.y-s.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,u]))}}});var n=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return n._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 n._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,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var r=L.point(n),o=L.point("shadow"===e&&i.shadowAnchor||i.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")}});var r=L.extend({},L.Marker.prototype);var o;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,n=e._shadow,r=L.DomUtil.getPosition(e._icon);!i&&n&&L.DomUtil.setPosition(n,r),e._map._rotate&&(r=e._map.mapPanePointToRotatedPoint(r));var o=e._map.layerPointToLatLng(r);e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i?e.setLatLng(o):e.fire("move",t),e.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),o._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(r.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=r._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(o=o||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 s=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=s.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):s._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),n=this._map._latLngToNewLayerPoint(this._topLeft,e,t);L.DomUtil.setTransform(this._container,n,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)),n=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(e)),r=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(e)),o=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(e));return L.bounds([L.point(Math.min(i.x,n.x,o.x,r.x),Math.min(i.y,n.y,o.y,r.y)),L.point(Math.max(i.x,n.x,o.x,r.x),Math.max(i.y,n.y,o.y,r.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(),n=this._getRotatePanePos().rotateFrom(-this._bearing,i),r=n.rotateFrom(e,i);L.DomUtil.setPosition(this._rotatePane,n,e,i),this._pivot=i,this._bearing=e,this._rotatePanePos=r,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]),n=L.point(e.paddingBottomRight||e.padding||[0,0]),r=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(t),a=L.bounds([L.point(r),L.point(r).add(this.getSize())]),s=a.getCenter(),l=L.bounds([a.min.add(i),a.max.subtract(n)]),p=l.getSize();if(!l.contains(o)){this._enforcingBounds=!0;var u=o.subtract(l.getCenter()),h=l.extend(o).getSize().subtract(p);s.x+=u.x<0?-h.x:h.x,s.y+=u.y<0?-h.y:h.y,this.panTo(this.containerPointToLatLng(s),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 n=this.getZoom()||0;var r=this.getMinZoom(),o=this.getMaxZoom(),a=this.getSize().subtract(i),s=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,p=a.x/s.x,u=a.y/s.y,h=e?Math.max(p,u):Math.min(p,u);return n=this.getScaleZoom(h,n),l&&(n=Math.round(n/(l/100))*(l/100),n=e?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(r,Math.min(o,n))},_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(),n=this.getZoomScale(i,e),r=this.project(t,e).floor(),o=this.getSize(),a=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([o.x,0]).floor(),this.containerPointToLayerPoint([0,o.y]).floor(),this.containerPointToLayerPoint([o.x,o.y]).floor()]).getSize().divideBy(2*n);return new L.Bounds(r.subtract(a),r.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(),n=i.multiplyBy(-e),r=i.multiplyBy(1+e);return new L.Bounds([this.containerPointToLayerPoint([n.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([r.x,r.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=t.coords.heading,r=new L.LatLng(e,i),o=r.toBounds(t.coords.accuracy),a=this._locateOptions;if(a.setView){var s=this.getBoundsZoom(o);this.setView(r,a.maxZoom?Math.min(s,a.maxZoom):s)}var l={latlng:r,bounds:o,timestamp:t.timestamp,heading:n};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]),n=e.mouseEventToContainerPoint(t.touches[1]),r=i.subtract(n);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(r.x/r.y),this._startBearing=e.getBearing(),r.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,n=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),o=n.subtract(r),a=n.distanceTo(r)/this._startDist;if(this._rotating){var s=(Math.atan(o.x/o.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;o.y<0&&(s+=180),s&&i.setBearing(this._startBearing-s)}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=n._add(r)._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 n=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",e);return n.appendChild(i),n.href="#",n.title="Rotate map",L.DomEvent.on(n,"dblclick",L.DomEvent.stopPropagation).on(n,"mousedown",this._handleMouseDown,this).on(n,"click",L.DomEvent.stop).on(n,"click",this._cycleState,this).on(n,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(n,"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)}}))}));createCommonjsModule((function(t,e){
7
7
  /*!
8
8
  Copyright (c) 2016 Dominik Moritz
9
9
 
10
10
  This file is part of the leaflet locate control. It is licensed under the MIT license.
11
11
  You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
12
12
  */
13
- (function(e,i){{if(typeof i!=="undefined"&&i.L){t.exports=e(L)}else{t.exports=e(leafletSrc)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=e(L)}})((function(t){var e=function(e,i,n){n=n.split(" ");n.forEach((function(n){t.DomUtil[e].call(this,i,n)}))};var i=function(t,i){return e("addClass",t,i)};var n=function(t,i){return e("removeClass",t,i)};var r=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 n=this._getIconSVG(e,i);this._locationIcon=t.divIcon({className:n.className,html:n.svg,iconSize:[n.w,n.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(t,e){var i=t.radius;var n=t.weight;var r=i+n;var o=r*2;var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" height="').concat(o,'" version="1.1" viewBox="-').concat(r," -").concat(r," ").concat(o," ").concat(o,'">')+'<circle r="'+i+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:a,w:o,h:o}},setStyle:function(e){t.Util.setOptions(this,e);this.createIcon()}});var o=r.extend({initialize:function(e,i,n){t.Util.setOptions(this,n);this._latlng=e;this._heading=i;this.createIcon()},setHeading:function(t){this._heading=t},_getIconSVG:function(t,e){var i=t.radius;var n=t.width+t.weight;var r=(i+t.depth+t.weight)*2;var o="M0,0 l".concat(t.width/2,",").concat(t.depth," l-").concat(n,",0 z");var a="transform: rotate(".concat(this._heading,"deg)");var s='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(n,'" height="').concat(r,'" version="1.1" viewBox="-').concat(n/2," 0 ").concat(n," ").concat(r,'" style="').concat(a,'">')+'<path d="'+o+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:s,w:n,h:r}}});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:r,compassClass:o,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 n=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);n.title=i.strings.title;n.href="#";n.setAttribute("role","button");var r=t.DomUtil.create(i.iconElementTag,i.icon,n);if(i.strings.text!==undefined){var o=t.DomUtil.create(i.textElementTag,"leaflet-locate-text",n);o.textContent=i.strings.text;n.classList.add("leaflet-locate-text-active");n.parentNode.style.display="flex";if(i.icon.length>0){r.classList.add("leaflet-locate-icon")}}return{link:n,icon:r}},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 n=this.options.createButtonCallback(i,this.options);this._link=n.link;this._icon=n.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 n=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;n.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 n=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"){n()}}))}else{n()}}}},_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 n=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(i,e,n).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(e).setStyle(n)}}var r;var o;if(this.options.metric){r=e.toFixed(0);o=this.options.strings.metersUnit}else{r=(e*3.2808399).toFixed(0);o=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 s=this.options.strings.popup;function l(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:o})}else if(typeof s==="function"){return s({distance:r,unit:o})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&s&&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"){n(this._container,"active following");i(this._container,"requesting");n(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(t=="active"){n(this._container,"requesting following");i(this._container,"active");n(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(t=="following"){n(this._container,"requesting");i(this._container,"active following");n(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");n(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)}));var punycode=createCommonjsModule((function(t,e){(function(i){var n=e&&!e.nodeType&&e;var r=t&&!t.nodeType&&t;var o=typeof commonjsGlobal=="object"&&commonjsGlobal;if(o.global===o||o.window===o||o.self===o){i=o}var a,s=2147483647,l=36,c=1,p=26,u=38,h=700,d=72,f=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-c,b=Math.floor,k=String.fromCharCode,x;function L(t){throw new RangeError(y[t])}function A(t,e){var i=t.length;var n=[];while(i--){n[i]=e(t[i])}return n}function T(t,e){var i=t.split("@");var n="";if(i.length>1){n=i[0]+"@";t=i[1]}t=t.replace(_,".");var r=t.split(".");var o=A(r,e).join(".");return n+o}function C(t){var e=[],i=0,n=t.length,r,o;while(i<n){r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){o=t.charCodeAt(i++);if((o&64512)==56320){e.push(((r&1023)<<10)+(o&1023)+65536)}else{e.push(r);i--}}else{e.push(r)}}return e}function P(t){return A(t,(function(t){var e="";if(t>65535){t-=65536;e+=k(t>>>10&1023|55296);t=56320|t&1023}e+=k(t);return e})).join("")}function S(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function M(t,e){return t+22+75*(t<26)-((e!=0)<<5)}function E(t,e,i){var n=0;t=i?b(t/h):t>>1;t+=b(t/e);for(;t>w*p>>1;n+=l){t=b(t/w)}return b(n+(w+1)*t/(t+u))}function z(t){var e=[],i=t.length,n,r=0,o=f,a=d,u,h,g,v,_,y,w,k,x;u=t.lastIndexOf(m);if(u<0){u=0}for(h=0;h<u;++h){if(t.charCodeAt(h)>=128){L("not-basic")}e.push(t.charCodeAt(h))}for(g=u>0?u+1:0;g<i;){for(v=r,_=1,y=l;;y+=l){if(g>=i){L("invalid-input")}w=S(t.charCodeAt(g++));if(w>=l||w>b((s-r)/_)){L("overflow")}r+=w*_;k=y<=a?c:y>=a+p?p:y-a;if(w<k){break}x=l-k;if(_>b(s/x)){L("overflow")}_*=x}n=e.length+1;a=E(r-v,n,v==0);if(b(r/n)>s-o){L("overflow")}o+=b(r/n);r%=n;e.splice(r++,0,o)}return P(e)}function O(t){var e,i,n,r,o,a,u,h,g,v,_,y=[],w,x,A,T;t=C(t);w=t.length;e=f;i=0;o=d;for(a=0;a<w;++a){_=t[a];if(_<128){y.push(k(_))}}n=r=y.length;if(r){y.push(m)}while(n<w){for(u=s,a=0;a<w;++a){_=t[a];if(_>=e&&_<u){u=_}}x=n+1;if(u-e>b((s-i)/x)){L("overflow")}i+=(u-e)*x;e=u;for(a=0;a<w;++a){_=t[a];if(_<e&&++i>s){L("overflow")}if(_==e){for(h=i,g=l;;g+=l){v=g<=o?c:g>=o+p?p:g-o;if(h<v){break}T=h-v;A=l-v;y.push(k(M(v+T%A,0)));h=b(T/A)}y.push(k(M(h,0)));o=E(i,x,n==r);i=0;++n}}++i;++e}return y.join("")}function I(t){return T(t,(function(t){return g.test(t)?z(t.slice(4).toLowerCase()):t}))}function B(t){return T(t,(function(t){return v.test(t)?"xn--"+O(t):t}))}a={version:"1.4.1",ucs2:{decode:C,encode:P},decode:z,encode:O,toASCII:B,toUnicode:I};if(n&&r){if(t.exports==n){r.exports=a}else{for(x in a){a.hasOwnProperty(x)&&(n[x]=a[x])}}}else{i.punycode=a}})(commonjsGlobal)}));var shams=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var i=Symbol("test");var n=Object(i);if(typeof i==="string"){return false}if(Object.prototype.toString.call(i)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(n)!=="[object Symbol]"){return false}var r=42;e[i]=r;for(i in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==i){return false}if(!Object.prototype.propertyIsEnumerable.call(e,i)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var a=Object.getOwnPropertyDescriptor(e,i);if(a.value!==r||a.enumerable!==true){return false}}return true};var origSymbol=typeof Symbol!=="undefined"&&Symbol;var hasSymbols$1=function t(){if(typeof origSymbol!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof origSymbol("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return shams()};var test={foo:{}};var $Object=Object;var hasProto$1=function t(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)};var ERROR_MESSAGE="Function.prototype.bind called on incompatible ";var slice=Array.prototype.slice;var toStr$1=Object.prototype.toString;var funcType="[object Function]";var implementation=function t(e){var i=this;if(typeof i!=="function"||toStr$1.call(i)!==funcType){throw new TypeError(ERROR_MESSAGE+i)}var n=slice.call(arguments,1);var r;var o=function(){if(this instanceof r){var t=i.apply(this,n.concat(slice.call(arguments)));if(Object(t)===t){return t}return this}else{return i.apply(e,n.concat(slice.call(arguments)))}};var a=Math.max(0,i.length-n.length);var s=[];for(var l=0;l<a;l++){s.push("$"+l)}r=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(o);if(i.prototype){var c=function t(){};c.prototype=i.prototype;r.prototype=new c;c.prototype=null}return r};var functionBind=Function.prototype.bind||implementation;var src=functionBind.call(Function.call,Object.prototype.hasOwnProperty);var undefined$1;var $SyntaxError=SyntaxError;var $Function=Function;var $TypeError$1=TypeError;var getEvalledConstructor=function(t){try{return $Function('"use strict"; return ('+t+").constructor;")()}catch(e){}};var $gOPD=Object.getOwnPropertyDescriptor;var throwTypeError=function(){throw new $TypeError$1};var ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(t){try{return $gOPD(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var hasSymbols=hasSymbols$1();var hasProto=hasProto$1();var getProto=Object.getPrototypeOf||(hasProto?function(t){return t.__proto__}:null);var needsEval={};var TypedArray=typeof Uint8Array==="undefined"||!getProto?undefined$1:getProto(Uint8Array);var INTRINSICS={"%AggregateError%":typeof AggregateError==="undefined"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics==="undefined"?undefined$1:Atomics,"%BigInt%":typeof BigInt==="undefined"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array==="undefined"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==="object"?JSON:undefined$1,"%Map%":typeof Map==="undefined"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?undefined$1:Promise,"%Proxy%":typeof Proxy==="undefined"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array==="undefined"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?undefined$1:WeakSet};var doEval=function t(e){var i;if(e==="%AsyncFunction%"){i=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){i=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){i=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");if(n){i=n.prototype}}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");if(r&&getProto){i=getProto(r.prototype)}}INTRINSICS[e]=i;return i};var LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var $concat$1=functionBind.call(Function.call,Array.prototype.concat);var $spliceApply=functionBind.call(Function.apply,Array.prototype.splice);var $replace$1=functionBind.call(Function.call,String.prototype.replace);var $strSlice=functionBind.call(Function.call,String.prototype.slice);var $exec=functionBind.call(Function.call,RegExp.prototype.exec);var rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=function t(e){var i=$strSlice(e,0,1);var n=$strSlice(e,-1);if(i==="%"&&n!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`")}else if(n==="%"&&i!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`")}var r=[];$replace$1(e,rePropName,(function(t,e,i,n){r[r.length]=i?$replace$1(n,reEscapeChar,"$1"):e||t}));return r};var getBaseIntrinsic=function t(e,i){var n=e;var r;if(src(LEGACY_ALIASES,n)){r=LEGACY_ALIASES[n];n="%"+r[0]+"%"}if(src(INTRINSICS,n)){var o=INTRINSICS[n];if(o===needsEval){o=doEval(n)}if(typeof o==="undefined"&&!i){throw new $TypeError$1("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:r,name:n,value:o}}throw new $SyntaxError("intrinsic "+e+" does not exist!")};var getIntrinsic=function t(e,i){if(typeof e!=="string"||e.length===0){throw new $TypeError$1("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof i!=="boolean"){throw new $TypeError$1('"allowMissing" argument must be a boolean')}if($exec(/^%?[^%]*%?$/,e)===null){throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var n=stringToPath(e);var r=n.length>0?n[0]:"";var o=getBaseIntrinsic("%"+r+"%",i);var a=o.name;var s=o.value;var l=false;var c=o.alias;if(c){r=c[0];$spliceApply(n,$concat$1([0,1],c))}for(var p=1,u=true;p<n.length;p+=1){var h=n[p];var d=$strSlice(h,0,1);var f=$strSlice(h,-1);if((d==='"'||d==="'"||d==="`"||(f==='"'||f==="'"||f==="`"))&&d!==f){throw new $SyntaxError("property names with quotes must have matching quotes")}if(h==="constructor"||!u){l=true}r+="."+h;a="%"+r+"%";if(src(INTRINSICS,a)){s=INTRINSICS[a]}else if(s!=null){if(!(h in s)){if(!i){throw new $TypeError$1("base intrinsic for "+e+" exists, but the property is not available.")}return void undefined$1}if($gOPD&&p+1>=n.length){var m=$gOPD(s,h);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){s=m.get}else{s=s[h]}}else{u=src(s,h);s=s[h]}if(u&&!l){INTRINSICS[a]=s}}}return s};var callBind=createCommonjsModule((function(t){var e=getIntrinsic("%Function.prototype.apply%");var i=getIntrinsic("%Function.prototype.call%");var n=getIntrinsic("%Reflect.apply%",true)||functionBind.call(i,e);var r=getIntrinsic("%Object.getOwnPropertyDescriptor%",true);var o=getIntrinsic("%Object.defineProperty%",true);var a=getIntrinsic("%Math.max%");if(o){try{o({},"a",{value:1})}catch(l){o=null}}t.exports=function t(e){var s=n(functionBind,i,arguments);if(r&&o){var l=r(s,"length");if(l.configurable){o(s,"length",{value:1+a(0,e.length-(arguments.length-1))})}}return s};var s=function t(){return n(functionBind,e,arguments)};if(o){o(t.exports,"apply",{value:s})}else{t.exports.apply=s}}));var $indexOf=callBind(getIntrinsic("String.prototype.indexOf"));var callBound=function t(e,i){var n=getIntrinsic(e,!!i);if(typeof n==="function"&&$indexOf(e,".prototype.")>-1){return callBind(n)}return n};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var utilInspect=getAugmentedNamespace(_nodeResolve_empty$1);var hasMap=typeof Map==="function"&&Map.prototype;var mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get==="function"?mapSizeDescriptor.get:null;var mapForEach=hasMap&&Map.prototype.forEach;var hasSet=typeof Set==="function"&&Set.prototype;var setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get==="function"?setSizeDescriptor.get:null;var setForEach=hasSet&&Set.prototype.forEach;var hasWeakMap=typeof WeakMap==="function"&&WeakMap.prototype;var weakMapHas=hasWeakMap?WeakMap.prototype.has:null;var hasWeakSet=typeof WeakSet==="function"&&WeakSet.prototype;var weakSetHas=hasWeakSet?WeakSet.prototype.has:null;var hasWeakRef=typeof WeakRef==="function"&&WeakRef.prototype;var weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null;var booleanValueOf=Boolean.prototype.valueOf;var objectToString=Object.prototype.toString;var functionToString=Function.prototype.toString;var $match=String.prototype.match;var $slice=String.prototype.slice;var $replace=String.prototype.replace;var $toUpperCase=String.prototype.toUpperCase;var $toLowerCase=String.prototype.toLowerCase;var $test=RegExp.prototype.test;var $concat=Array.prototype.concat;var $join=Array.prototype.join;var $arrSlice=Array.prototype.slice;var $floor=Math.floor;var bigIntValueOf=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gOPS=Object.getOwnPropertySymbols;var symToString=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var hasShammedSymbols=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var toStringTag=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols?"object":"symbol")?Symbol.toStringTag:null;var isEnumerable=Object.prototype.propertyIsEnumerable;var gPO=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function addNumericSeparator(t,e){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||$test.call(/e/,e)){return e}var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var n=t<0?-$floor(-t):$floor(t);if(n!==t){var r=String(n);var o=$slice.call(e,r.length+1);return $replace.call(r,i,"$&_")+"."+$replace.call($replace.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(e,i,"$&_")}var inspectCustom=utilInspect.custom;var inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null;var objectInspect=function t(e,i,n,r){var o=i||{};if(has$3(o,"quoteStyle")&&(o.quoteStyle!=="single"&&o.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has$3(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var a=has$3(o,"customInspect")?o.customInspect:true;if(typeof a!=="boolean"&&a!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has$3(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has$3(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var s=o.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,o)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var l=String(e);return s?addNumericSeparator(e,l):l}if(typeof e==="bigint"){var c=String(e)+"n";return s?addNumericSeparator(e,c):c}var p=typeof o.depth==="undefined"?5:o.depth;if(typeof n==="undefined"){n=0}if(n>=p&&p>0&&typeof e==="object"){return isArray$3(e)?"[Array]":"[Object]"}var u=getIndent(o,n);if(typeof r==="undefined"){r=[]}else if(indexOf(r,e)>=0){return"[Circular]"}function h(e,i,a){if(i){r=$arrSlice.call(r);r.push(i)}if(a){var s={depth:o.depth};if(has$3(o,"quoteStyle")){s.quoteStyle=o.quoteStyle}return t(e,s,n+1,r)}return t(e,o,n+1,r)}if(typeof e==="function"&&!isRegExp$1(e)){var d=nameOf(e);var f=arrObjKeys(e,h);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(e)){var m=hasShammedSymbols?$replace.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(e);return typeof e==="object"&&!hasShammedSymbols?markBoxed(m):m}if(isElement(e)){var g="<"+$toLowerCase.call(String(e.nodeName));var v=e.attributes||[];for(var _=0;_<v.length;_++){g+=" "+v[_].name+"="+wrapQuotes(quote(v[_].value),"double",o)}g+=">";if(e.childNodes&&e.childNodes.length){g+="..."}g+="</"+$toLowerCase.call(String(e.nodeName))+">";return g}if(isArray$3(e)){if(e.length===0){return"[]"}var y=arrObjKeys(e,h);if(u&&!singleLineValues(y)){return"["+indentedJoin(y,u)+"]"}return"[ "+$join.call(y,", ")+" ]"}if(isError(e)){var w=arrObjKeys(e,h);if(!("cause"in Error.prototype)&&"cause"in e&&!isEnumerable.call(e,"cause")){return"{ ["+String(e)+"] "+$join.call($concat.call("[cause]: "+h(e.cause),w),", ")+" }"}if(w.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+$join.call(w,", ")+" }"}if(typeof e==="object"&&a){if(inspectSymbol&&typeof e[inspectSymbol]==="function"&&utilInspect){return utilInspect(e,{depth:p-n})}else if(a!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var b=[];if(mapForEach){mapForEach.call(e,(function(t,i){b.push(h(i,e,true)+" => "+h(t,e))}))}return collectionOf("Map",mapSize.call(e),b,u)}if(isSet(e)){var k=[];if(setForEach){setForEach.call(e,(function(t){k.push(h(t,e))}))}return collectionOf("Set",setSize.call(e),k,u)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(h(Number(e)))}if(isBigInt(e)){return markBoxed(h(bigIntValueOf.call(e)))}if(isBoolean(e)){return markBoxed(booleanValueOf.call(e))}if(isString(e)){return markBoxed(h(String(e)))}if(!isDate(e)&&!isRegExp$1(e)){var x=arrObjKeys(e,h);var L=gPO?gPO(e)===Object.prototype:e instanceof Object||e.constructor===Object;var A=e instanceof Object?"":"null prototype";var T=!L&&toStringTag&&Object(e)===e&&toStringTag in e?$slice.call(toStr(e),8,-1):A?"Object":"";var C=L||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var P=C+(T||A?"["+$join.call($concat.call([],T||[],A||[]),": ")+"] ":"");if(x.length===0){return P+"{}"}if(u){return P+"{"+indentedJoin(x,u)+"}"}return P+"{ "+$join.call(x,", ")+" }"}return String(e)};function wrapQuotes(t,e,i){var n=(i.quoteStyle||e)==="double"?'"':"'";return n+t+n}function quote(t){return $replace.call(String(t),/"/g,"&quot;")}function isArray$3(t){return toStr(t)==="[object Array]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isDate(t){return toStr(t)==="[object Date]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isRegExp$1(t){return toStr(t)==="[object RegExp]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isError(t){return toStr(t)==="[object Error]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isString(t){return toStr(t)==="[object String]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isNumber(t){return toStr(t)==="[object Number]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isBoolean(t){return toStr(t)==="[object Boolean]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isSymbol(t){if(hasShammedSymbols){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!symToString){return false}try{symToString.call(t);return true}catch(e){}return false}function isBigInt(t){if(!t||typeof t!=="object"||!bigIntValueOf){return false}try{bigIntValueOf.call(t);return true}catch(e){}return false}var hasOwn=Object.prototype.hasOwnProperty||function(t){return t in this};function has$3(t,e){return hasOwn.call(t,e)}function toStr(t){return objectToString.call(t)}function nameOf(t){if(t.name){return t.name}var e=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);if(e){return e[1]}return null}function indexOf(t,e){if(t.indexOf){return t.indexOf(e)}for(var i=0,n=t.length;i<n;i++){if(t[i]===e){return i}}return-1}function isMap(t){if(!mapSize||!t||typeof t!=="object"){return false}try{mapSize.call(t);try{setSize.call(t)}catch(e){return true}return t instanceof Map}catch(i){}return false}function isWeakMap(t){if(!weakMapHas||!t||typeof t!=="object"){return false}try{weakMapHas.call(t,weakMapHas);try{weakSetHas.call(t,weakSetHas)}catch(e){return true}return t instanceof WeakMap}catch(i){}return false}function isWeakRef(t){if(!weakRefDeref||!t||typeof t!=="object"){return false}try{weakRefDeref.call(t);return true}catch(e){}return false}function isSet(t){if(!setSize||!t||typeof t!=="object"){return false}try{setSize.call(t);try{mapSize.call(t)}catch(e){return true}return t instanceof Set}catch(i){}return false}function isWeakSet(t){if(!weakSetHas||!t||typeof t!=="object"){return false}try{weakSetHas.call(t,weakSetHas);try{weakMapHas.call(t,weakMapHas)}catch(e){return true}return t instanceof WeakSet}catch(i){}return false}function isElement(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function inspectString(t,e){if(t.length>e.maxStringLength){var i=t.length-e.maxStringLength;var n="... "+i+" more character"+(i>1?"s":"");return inspectString($slice.call(t,0,e.maxStringLength),e)+n}var r=$replace.call($replace.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(r,"single",e)}function lowbyte(t){var e=t.charCodeAt(0);var i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];if(i){return"\\"+i}return"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,e,i,n){var r=n?indentedJoin(i,n):$join.call(i,", ");return t+" ("+e+") {"+r+"}"}function singleLineValues(t){for(var e=0;e<t.length;e++){if(indexOf(t[e],"\n")>=0){return false}}return true}function getIndent(t,e){var i;if(t.indent==="\t"){i="\t"}else if(typeof t.indent==="number"&&t.indent>0){i=$join.call(Array(t.indent+1)," ")}else{return null}return{base:i,prev:$join.call(Array(e+1),i)}}function indentedJoin(t,e){if(t.length===0){return""}var i="\n"+e.prev+e.base;return i+$join.call(t,","+i)+"\n"+e.prev}function arrObjKeys(t,e){var i=isArray$3(t);var n=[];if(i){n.length=t.length;for(var r=0;r<t.length;r++){n[r]=has$3(t,r)?e(t[r],t):""}}var o=typeof gOPS==="function"?gOPS(t):[];var a;if(hasShammedSymbols){a={};for(var s=0;s<o.length;s++){a["$"+o[s]]=o[s]}}for(var l in t){if(!has$3(t,l)){continue}if(i&&String(Number(l))===l&&l<t.length){continue}if(hasShammedSymbols&&a["$"+l]instanceof Symbol){continue}else if($test.call(/[^\w$]/,l)){n.push(e(l,t)+": "+e(t[l],t))}else{n.push(l+": "+e(t[l],t))}}if(typeof gOPS==="function"){for(var c=0;c<o.length;c++){if(isEnumerable.call(t,o[c])){n.push("["+e(o[c])+"]: "+e(t[o[c]],t))}}}return n}var $TypeError=getIntrinsic("%TypeError%");var $WeakMap=getIntrinsic("%WeakMap%",true);var $Map=getIntrinsic("%Map%",true);var $weakMapGet=callBound("WeakMap.prototype.get",true);var $weakMapSet=callBound("WeakMap.prototype.set",true);var $weakMapHas=callBound("WeakMap.prototype.has",true);var $mapGet=callBound("Map.prototype.get",true);var $mapSet=callBound("Map.prototype.set",true);var $mapHas=callBound("Map.prototype.has",true);var listGetNode=function(t,e){for(var i=t,n;(n=i.next)!==null;i=n){if(n.key===e){i.next=n.next;n.next=t.next;t.next=n;return n}}};var listGet=function(t,e){var i=listGetNode(t,e);return i&&i.value};var listSet=function(t,e,i){var n=listGetNode(t,e);if(n){n.value=i}else{t.next={key:e,next:t.next,value:i}}};var listHas=function(t,e){return!!listGetNode(t,e)};var sideChannel=function t(){var e;var i;var n;var r={assert:function(t){if(!r.has(t)){throw new $TypeError("Side channel does not contain "+objectInspect(t))}},get:function(t){if($WeakMap&&t&&(typeof t==="object"||typeof t==="function")){if(e){return $weakMapGet(e,t)}}else if($Map){if(i){return $mapGet(i,t)}}else{if(n){return listGet(n,t)}}},has:function(t){if($WeakMap&&t&&(typeof t==="object"||typeof t==="function")){if(e){return $weakMapHas(e,t)}}else if($Map){if(i){return $mapHas(i,t)}}else{if(n){return listHas(n,t)}}return false},set:function(t,r){if($WeakMap&&t&&(typeof t==="object"||typeof t==="function")){if(!e){e=new $WeakMap}$weakMapSet(e,t,r)}else if($Map){if(!i){i=new $Map}$mapSet(i,t,r)}else{if(!n){n={key:{},next:null}}listSet(n,t,r)}}};return r};var replace=String.prototype.replace;var percentTwenties=/%20/g;var Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};var formats={default:Format.RFC3986,formatters:{RFC1738:function(t){return replace.call(t,percentTwenties,"+")},RFC3986:function(t){return String(t)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};var has$2=Object.prototype.hasOwnProperty;var isArray$2=Array.isArray;var hexTable=function(){var t=[];for(var e=0;e<256;++e){t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase())}return t}();var compactQueue=function t(e){while(e.length>1){var i=e.pop();var n=i.obj[i.prop];if(isArray$2(n)){var r=[];for(var o=0;o<n.length;++o){if(typeof n[o]!=="undefined"){r.push(n[o])}}i.obj[i.prop]=r}}};var arrayToObject=function t(e,i){var n=i&&i.plainObjects?Object.create(null):{};for(var r=0;r<e.length;++r){if(typeof e[r]!=="undefined"){n[r]=e[r]}}return n};var merge=function t(e,i,n){if(!i){return e}if(typeof i!=="object"){if(isArray$2(e)){e.push(i)}else if(e&&typeof e==="object"){if(n&&(n.plainObjects||n.allowPrototypes)||!has$2.call(Object.prototype,i)){e[i]=true}}else{return[e,i]}return e}if(!e||typeof e!=="object"){return[e].concat(i)}var r=e;if(isArray$2(e)&&!isArray$2(i)){r=arrayToObject(e,n)}if(isArray$2(e)&&isArray$2(i)){i.forEach((function(i,r){if(has$2.call(e,r)){var o=e[r];if(o&&typeof o==="object"&&i&&typeof i==="object"){e[r]=t(o,i,n)}else{e.push(i)}}else{e[r]=i}}));return e}return Object.keys(i).reduce((function(e,r){var o=i[r];if(has$2.call(e,r)){e[r]=t(e[r],o,n)}else{e[r]=o}return e}),r)};var assign=function t(e,i){return Object.keys(i).reduce((function(t,e){t[e]=i[e];return t}),e)};var decode=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(r){return n}};var encode=function t(e,i,n,r,o){if(e.length===0){return e}var a=e;if(typeof e==="symbol"){a=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){a=String(e)}if(n==="iso-8859-1"){return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var s="";for(var l=0;l<a.length;++l){var c=a.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===formats.RFC1738&&(c===40||c===41)){s+=a.charAt(l);continue}if(c<128){s=s+hexTable[c];continue}if(c<2048){s=s+(hexTable[192|c>>6]+hexTable[128|c&63]);continue}if(c<55296||c>=57344){s=s+(hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|a.charCodeAt(l)&1023);s+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|c&63]}return s};var compact=function t(e){var i=[{obj:{o:e},prop:"o"}];var n=[];for(var r=0;r<i.length;++r){var o=i[r];var a=o.obj[o.prop];var s=Object.keys(a);for(var l=0;l<s.length;++l){var c=s[l];var p=a[c];if(typeof p==="object"&&p!==null&&n.indexOf(p)===-1){i.push({obj:a,prop:c});n.push(p)}}}compactQueue(i);return e};var isRegExp=function t(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var isBuffer=function t(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var combine=function t(e,i){return[].concat(e,i)};var maybeMap=function t(e,i){if(isArray$2(e)){var n=[];for(var r=0;r<e.length;r+=1){n.push(i(e[r]))}return n}return i(e)};var utils={arrayToObject:arrayToObject,assign:assign,combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isRegExp:isRegExp,maybeMap:maybeMap,merge:merge};var has$1=Object.prototype.hasOwnProperty;var arrayPrefixGenerators={brackets:function t(e){return e+"[]"},comma:"comma",indices:function t(e,i){return e+"["+i+"]"},repeat:function t(e){return e}};var isArray$1=Array.isArray;var push=Array.prototype.push;var pushToArray=function(t,e){push.apply(t,isArray$1(e)?e:[e])};var toISO=Date.prototype.toISOString;var defaultFormat=formats["default"];var defaults$1={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:utils.encode,encodeValuesOnly:false,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:false,serializeDate:function t(e){return toISO.call(e)},skipNulls:false,strictNullHandling:false};var isNonNullishPrimitive=function t(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var sentinel={};var stringify=function t(e,i,n,r,o,a,s,l,c,p,u,h,d,f,m,g){var v=e;var _=g;var y=0;var w=false;while((_=_.get(sentinel))!==void undefined&&!w){var b=_.get(e);y+=1;if(typeof b!=="undefined"){if(b===y){throw new RangeError("Cyclic object value")}else{w=true}}if(typeof _.get(sentinel)==="undefined"){y=0}}if(typeof l==="function"){v=l(i,v)}else if(v instanceof Date){v=u(v)}else if(n==="comma"&&isArray$1(v)){v=utils.maybeMap(v,(function(t){if(t instanceof Date){return u(t)}return t}))}if(v===null){if(o){return s&&!f?s(i,defaults$1.encoder,m,"key",h):i}v=""}if(isNonNullishPrimitive(v)||utils.isBuffer(v)){if(s){var k=f?i:s(i,defaults$1.encoder,m,"key",h);return[d(k)+"="+d(s(v,defaults$1.encoder,m,"value",h))]}return[d(i)+"="+d(String(v))]}var x=[];if(typeof v==="undefined"){return x}var L;if(n==="comma"&&isArray$1(v)){if(f&&s){v=utils.maybeMap(v,s)}L=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(isArray$1(l)){L=l}else{var A=Object.keys(v);L=c?A.sort(c):A}var T=r&&isArray$1(v)&&v.length===1?i+"[]":i;for(var C=0;C<L.length;++C){var P=L[C];var S=typeof P==="object"&&typeof P.value!=="undefined"?P.value:v[P];if(a&&S===null){continue}var M=isArray$1(v)?typeof n==="function"?n(T,P):T:T+(p?"."+P:"["+P+"]");g.set(e,y);var E=sideChannel();E.set(sentinel,g);pushToArray(x,t(S,M,n,r,o,a,n==="comma"&&f&&isArray$1(v)?null:s,l,c,p,u,h,d,f,m,E))}return x};var normalizeStringifyOptions=function t(e){if(!e){return defaults$1}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var i=e.charset||defaults$1.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var n=formats["default"];if(typeof e.format!=="undefined"){if(!has$1.call(formats.formatters,e.format)){throw new TypeError("Unknown format option provided.")}n=e.format}var r=formats.formatters[n];var o=defaults$1.filter;if(typeof e.filter==="function"||isArray$1(e.filter)){o=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?defaults$1.allowDots:!!e.allowDots,charset:i,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?defaults$1.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:defaults$1.encode,encoder:typeof e.encoder==="function"?e.encoder:defaults$1.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:defaults$1.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:defaults$1.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:defaults$1.strictNullHandling}};var stringify_1=function(t,e){var i=t;var n=normalizeStringifyOptions(e);var r;var o;if(typeof n.filter==="function"){o=n.filter;i=o("",i)}else if(isArray$1(n.filter)){o=n.filter;r=o}var a=[];if(typeof i!=="object"||i===null){return""}var s;if(e&&e.arrayFormat in arrayPrefixGenerators){s=e.arrayFormat}else if(e&&"indices"in e){s=e.indices?"indices":"repeat"}else{s="indices"}var l=arrayPrefixGenerators[s];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&e&&e.commaRoundTrip;if(!r){r=Object.keys(i)}if(n.sort){r.sort(n.sort)}var p=sideChannel();for(var u=0;u<r.length;++u){var h=r[u];if(n.skipNulls&&i[h]===null){continue}pushToArray(a,stringify(i[h],h,l,c,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var d=a.join(n.delimiter);var f=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){f+="utf8=%26%2310003%3B&"}else{f+="utf8=%E2%9C%93&"}}return d.length>0?f+d:""};var has=Object.prototype.hasOwnProperty;var isArray=Array.isArray;var defaults={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))};var parseArrayValue=function(t,e){if(t&&typeof t==="string"&&e.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var isoSentinel="utf8=%26%2310003%3B";var charsetSentinel="utf8=%E2%9C%93";var parseValues=function t(e,i){var n={__proto__:null};var r=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;var o=i.parameterLimit===Infinity?undefined:i.parameterLimit;var a=r.split(i.delimiter,o);var s=-1;var l;var c=i.charset;if(i.charsetSentinel){for(l=0;l<a.length;++l){if(a[l].indexOf("utf8=")===0){if(a[l]===charsetSentinel){c="utf-8"}else if(a[l]===isoSentinel){c="iso-8859-1"}s=l;l=a.length}}}for(l=0;l<a.length;++l){if(l===s){continue}var p=a[l];var u=p.indexOf("]=");var h=u===-1?p.indexOf("="):u+1;var d,f;if(h===-1){d=i.decoder(p,defaults.decoder,c,"key");f=i.strictNullHandling?null:""}else{d=i.decoder(p.slice(0,h),defaults.decoder,c,"key");f=utils.maybeMap(parseArrayValue(p.slice(h+1),i),(function(t){return i.decoder(t,defaults.decoder,c,"value")}))}if(f&&i.interpretNumericEntities&&c==="iso-8859-1"){f=interpretNumericEntities(f)}if(p.indexOf("[]=")>-1){f=isArray(f)?[f]:f}if(has.call(n,d)){n[d]=utils.combine(n[d],f)}else{n[d]=f}}return n};var parseObject=function(t,e,i,n){var r=n?e:parseArrayValue(e,i);for(var o=t.length-1;o>=0;--o){var a;var s=t[o];if(s==="[]"&&i.parseArrays){a=[].concat(r)}else{a=i.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(l,10);if(!i.parseArrays&&l===""){a={0:r}}else if(!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){a=[];a[c]=r}else if(l!=="__proto__"){a[l]=r}}r=a}return r};var parseKeys=function t(e,i,n,r){if(!e){return}var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var a=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var l=n.depth>0&&a.exec(o);var c=l?o.slice(0,l.index):o;var p=[];if(c){if(!n.plainObjects&&has.call(Object.prototype,c)){if(!n.allowPrototypes){return}}p.push(c)}var u=0;while(n.depth>0&&(l=s.exec(o))!==null&&u<n.depth){u+=1;if(!n.plainObjects&&has.call(Object.prototype,l[1].slice(1,-1))){if(!n.allowPrototypes){return}}p.push(l[1])}if(l){p.push("["+o.slice(l.index)+"]")}return parseObject(p,i,n,r)};var normalizeParseOptions=function t(e){if(!e){return defaults}if(e.decoder!==null&&e.decoder!==undefined&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var i=typeof e.charset==="undefined"?defaults.charset:e.charset;return{allowDots:typeof e.allowDots==="undefined"?defaults.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:defaults.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:defaults.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:defaults.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:defaults.comma,decoder:typeof e.decoder==="function"?e.decoder:defaults.decoder,delimiter:typeof e.delimiter==="string"||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:defaults.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:defaults.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:defaults.plainObjects,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:defaults.strictNullHandling}};var parse$1=function(t,e){var i=normalizeParseOptions(e);if(t===""||t===null||typeof t==="undefined"){return i.plainObjects?Object.create(null):{}}var n=typeof t==="string"?parseValues(t,i):t;var r=i.plainObjects?Object.create(null):{};var o=Object.keys(n);for(var a=0;a<o.length;++a){var s=o[a];var l=parseKeys(s,n[s],i,typeof t==="string");r=utils.merge(r,l,i)}if(i.allowSparse===true){return r}return utils.compact(r)};var lib={formats:formats,parse:parse$1,stringify:stringify_1};function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:true,"javascript:":true},hostlessProtocol={javascript:true,"javascript:":true},slashedProtocol={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function urlParse(t,e,i){if(t&&typeof t==="object"&&t instanceof Url){return t}var n=new Url;n.parse(t,e,i);return n}Url.prototype.parse=function(t,e,i){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var n=t.indexOf("?"),r=n!==-1&&n<t.indexOf("#")?"?":"#",o=t.split(r),a=/\\/g;o[0]=o[0].replace(a,"/");t=o.join(r);var s=t;s=s.trim();if(!i&&t.split("#").length===1){var l=simplePathPattern.exec(s);if(l){this.path=s;this.href=s;this.pathname=l[1];if(l[2]){this.search=l[2];if(e){this.query=lib.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(e){this.search="";this.query={}}return this}}var c=protocolPattern.exec(s);if(c){c=c[0];var p=c.toLowerCase();this.protocol=p;s=s.substr(c.length)}if(i||c||s.match(/^\/\/[^@/]+@[^@/]+/)){var u=s.substr(0,2)==="//";if(u&&!(c&&hostlessProtocol[c])){s=s.substr(2);this.slashes=true}}if(!hostlessProtocol[c]&&(u||c&&!slashedProtocol[c])){var h=-1;for(var d=0;d<hostEndingChars.length;d++){var f=s.indexOf(hostEndingChars[d]);if(f!==-1&&(h===-1||f<h)){h=f}}var m,g;if(h===-1){g=s.lastIndexOf("@")}else{g=s.lastIndexOf("@",h)}if(g!==-1){m=s.slice(0,g);s=s.slice(g+1);this.auth=decodeURIComponent(m)}h=-1;for(var d=0;d<nonHostChars.length;d++){var f=s.indexOf(nonHostChars[d]);if(f!==-1&&(h===-1||f<h)){h=f}}if(h===-1){h=s.length}this.host=s.slice(0,h);s=s.slice(h);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var _=this.hostname.split(/\./);for(var d=0,y=_.length;d<y;d++){var w=_[d];if(!w){continue}if(!w.match(hostnamePartPattern)){var b="";for(var k=0,x=w.length;k<x;k++){if(w.charCodeAt(k)>127){b+="x"}else{b+=w[k]}}if(!b.match(hostnamePartPattern)){var L=_.slice(0,d);var A=_.slice(d+1);var T=w.match(hostnamePartStart);if(T){L.push(T[1]);A.unshift(T[2])}if(A.length){s="/"+A.join(".")+s}this.hostname=L.join(".");break}}}}if(this.hostname.length>hostnameMaxLen){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=punycode.toASCII(this.hostname)}var C=this.port?":"+this.port:"";var P=this.hostname||"";this.host=P+C;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(s[0]!=="/"){s="/"+s}}}if(!unsafeProtocol[p]){for(var d=0,y=autoEscape.length;d<y;d++){var S=autoEscape[d];if(s.indexOf(S)===-1){continue}var M=encodeURIComponent(S);if(M===S){M=escape(S)}s=s.split(S).join(M)}}var E=s.indexOf("#");if(E!==-1){this.hash=s.substr(E);s=s.slice(0,E)}var z=s.indexOf("?");if(z!==-1){this.search=s.substr(z);this.query=s.substr(z+1);if(e){this.query=lib.parse(this.query)}s=s.slice(0,z)}else if(e){this.search="";this.query={}}if(s){this.pathname=s}if(slashedProtocol[p]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var C=this.pathname||"";var O=this.search||"";this.path=C+O}this.href=this.format();return this};function urlFormat(t){if(typeof t==="string"){t=urlParse(t)}if(!(t instanceof Url)){return Url.prototype.format.call(t)}return t.format()}Url.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var e=this.protocol||"",i=this.pathname||"",n=this.hash||"",r=false,o="";if(this.host){r=t+this.host}else if(this.hostname){r=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){r+=":"+this.port}}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length){o=lib.stringify(this.query)}var a=this.search||o&&"?"+o||"";if(e&&e.substr(-1)!==":"){e+=":"}if(this.slashes||(!e||slashedProtocol[e])&&r!==false){r="//"+(r||"");if(i&&i.charAt(0)!=="/"){i="/"+i}}else if(!r){r=""}if(n&&n.charAt(0)!=="#"){n="#"+n}if(a&&a.charAt(0)!=="?"){a="?"+a}i=i.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));a=a.replace("#","%23");return e+r+i+a+n};function urlResolve(t,e){return urlParse(t,false,true).resolve(e)}Url.prototype.resolve=function(t){return this.resolveObject(urlParse(t,false,true)).format()};function urlResolveObject(t,e){if(!t){return e}return urlParse(t,false,true).resolveObject(e)}Url.prototype.resolveObject=function(t){if(typeof t==="string"){var e=new Url;e.parse(t,false,true);t=e}var i=new Url;var n=Object.keys(this);for(var r=0;r<n.length;r++){var o=n[r];i[o]=this[o]}i.hash=t.hash;if(t.href===""){i.href=i.format();return i}if(t.slashes&&!t.protocol){var a=Object.keys(t);for(var s=0;s<a.length;s++){var l=a[s];if(l!=="protocol"){i[l]=t[l]}}if(slashedProtocol[i.protocol]&&i.hostname&&!i.pathname){i.pathname="/";i.path=i.pathname}i.href=i.format();return i}if(t.protocol&&t.protocol!==i.protocol){if(!slashedProtocol[t.protocol]){var c=Object.keys(t);for(var p=0;p<c.length;p++){var u=c[p];i[u]=t[u]}i.href=i.format();return i}i.protocol=t.protocol;if(!t.host&&!hostlessProtocol[t.protocol]){var h=(t.pathname||"").split("/");while(h.length&&!(t.host=h.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(h[0]!==""){h.unshift("")}if(h.length<2){h.unshift("")}i.pathname=h.join("/")}else{i.pathname=t.pathname}i.search=t.search;i.query=t.query;i.host=t.host||"";i.auth=t.auth;i.hostname=t.hostname||t.host;i.port=t.port;if(i.pathname||i.search){var d=i.pathname||"";var f=i.search||"";i.path=d+f}i.slashes=i.slashes||t.slashes;i.href=i.format();return i}var m=i.pathname&&i.pathname.charAt(0)==="/",g=t.host||t.pathname&&t.pathname.charAt(0)==="/",v=g||m||i.host&&t.pathname,_=v,y=i.pathname&&i.pathname.split("/")||[],h=t.pathname&&t.pathname.split("/")||[],w=i.protocol&&!slashedProtocol[i.protocol];if(w){i.hostname="";i.port=null;if(i.host){if(y[0]===""){y[0]=i.host}else{y.unshift(i.host)}}i.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(h[0]===""){h[0]=t.host}else{h.unshift(t.host)}}t.host=null}v=v&&(h[0]===""||y[0]==="")}if(g){i.host=t.host||t.host===""?t.host:i.host;i.hostname=t.hostname||t.hostname===""?t.hostname:i.hostname;i.search=t.search;i.query=t.query;y=h}else if(h.length){if(!y){y=[]}y.pop();y=y.concat(h);i.search=t.search;i.query=t.query}else if(t.search!=null){if(w){i.host=y.shift();i.hostname=i.host;var b=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(b){i.auth=b.shift();i.hostname=b.shift();i.host=i.hostname}}i.search=t.search;i.query=t.query;if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.href=i.format();return i}if(!y.length){i.pathname=null;if(i.search){i.path="/"+i.search}else{i.path=null}i.href=i.format();return i}var k=y.slice(-1)[0];var x=(i.host||t.host||y.length>1)&&(k==="."||k==="..")||k==="";var L=0;for(var A=y.length;A>=0;A--){k=y[A];if(k==="."){y.splice(A,1)}else if(k===".."){y.splice(A,1);L++}else if(L){y.splice(A,1);L--}}if(!v&&!_){for(;L--;L){y.unshift("..")}}if(v&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")){y.unshift("")}if(x&&y.join("/").substr(-1)!=="/"){y.push("")}var T=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(w){i.hostname=T?"":y.length?y.shift():"";i.host=i.hostname;var b=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(b){i.auth=b.shift();i.hostname=b.shift();i.host=i.hostname}}v=v||i.host&&y.length;if(v&&!T){y.unshift("")}if(y.length>0){i.pathname=y.join("/")}else{i.pathname=null;i.path=null}if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.auth=t.auth||i.auth;i.slashes=i.slashes||t.slashes;i.href=i.format();return i};Url.prototype.parseHost=function(){var t=this.host;var e=portPattern.exec(t);if(e){e=e[0];if(e!==":"){this.port=e.substr(1)}t=t.substr(0,t.length-e.length)}if(t){this.hostname=t}};var parse=urlParse;var resolve=urlResolve;var resolveObject=urlResolveObject;var format=urlFormat;var Url_1=Url;var url={parse:parse,resolve:resolve,resolveObject:resolveObject,format:format,Url:Url_1};!function(t){t()}((function(){var t={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},e=6e4,i=60*e,n=24*i;function r(t,e){return new URL(t,t.startsWith("../")||t.startsWith("./")?e:void 0).toString()}function o(t,e){var i=m("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),n=document.body;n.appendChild(i),i.click(),n.removeChild(i)}function a(t,e,i){var n=this;return t&&function(r){var o=r.props,a=r.point,l=r.id,c=r.isMulti;if(o)for(var p=0,u=t;p<u.length;p++){var h=u[p];if(h in o){a.meta[e]=(i||s).call(n,c?o[h][c]:o[h],l);break}}}}var s=function(t,e){return parseInt("object"==typeof t?t[e]:t)},l=function(t,e){return t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))},c=function(t,e){return t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))},p=function(t,e,i){return(i?l:c)(t,e)},u=function(t,e,i){return e&&c(t,e)||i&&l(t,i)},h=function(t,e,i){return void 0===i&&L.DomUtil.getStyle(t,e)||t.style.setProperty(e,i)},d=function(t,e){for(var i in e)t.setAttribute(i,e[i])},f=function(t,e,i,n){return t[n?"on":"off"](e,i)},m=function(t,e,i,n){var r=L.DomUtil.create(t,e||"");return i&&d(r,i),n&&g(n,r),r},g=function(t,e){return t.appendChild(e)},v=function(t,e,i){return t.insertAdjacentElement(i,e)},_=function(t,e){return(e||document).querySelector(t)},y=function(t,e){for(var i in t)e(t[i],i)},w=function(){return Math.random().toString(36).substr(2,9)},b=L.DomEvent,k=b.on,x=b.off,A=L.Util,T=A.throttle,C=A.wrapNum,P=L.DomUtil.hasClass,S=L.Util.formatNum,M=function(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t},E=function(t,e,i){return Math.abs(t-e)>i?e+i*Math.sign(t-e):t};function z(t,e,i){if(e===void 0){e=[]}if(i===void 0){i=[]}switch(!t||typeof t){case"object":var n=i.filter((function(e){return t===e.original}))[0];if(n)return n.copy;var r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return i.push({original:t,copy:r}),Object.getOwnPropertyNames(t).forEach((function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:e.includes(n)?o.value:z(o.value,e,i)})})),r;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var O=Object.freeze({__proto__:null,Colors:t,addClass:l,append:g,clamp:M,cloneDeep:z,coordPropsToMeta:a,create:m,drawCanvas:function(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()},each:y,formatDate:function(t){return t?"time"==t?function(t){return new Date(t).toLocaleTimeString()}:"date"==t?function(t){return new Date(t).toLocaleDateString()}:function(e){return t(e)}:function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")}},formatTime:function(t){var r=Math.floor(t/n),o=Math.floor((t-r*n)/i),a=Math.floor((t-r*n-o*i)/e),s=Math.round((t-r*n-o*i-a*e)/1e3);return 60===s&&(a++,s=0),60===a&&(o++,a=0),24===o&&(r++,o=0),(r?r+"d ":"")+o.toString().padStart(2,0)+":"+a.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'},hasClass:P,iAvg:function(t,e,i){if(e===void 0){e=0}if(i===void 0){i=1}return(t+e*(i-1))/i},iMax:function(t,e){if(e===void 0){e=-1/0}return t>e?t:e},iMin:function(t,e){if(e===void 0){e=1/0}return t<e?t:e},iSum:function(t,e){if(e===void 0){e=0}return t+e},insert:v,off:x,on:k,parseDate:function(t,e){return new Date(Date.parse("object"==typeof t?t[e]:t))},parseNumeric:s,randomId:w,removeClass:c,replaceClass:u,resolveURL:r,round:S,saveFile:o,select:_,setAttributes:d,style:h,throttle:T,toggleClass:p,toggleEvent:f,toggleStyle:function(t,e,i,n){return h(t,e,n?i:"")},wrapDelta:E,wrapNum:C}),I={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?url.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?url.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=function(t,e){return t});var B=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:I,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData:function(t,e){var i=this;this.import(this.__D3).then((function(){i._modulesLoaded?(e=e!==null&&e!==void 0?e:t.on&&t,i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})):i.once("modules_loaded",(function(){return i.addData(t,e)}))}))},addTo:function(t){if(this.options.detached){var e=_(this.options.elevationDiv),i=this.onAdd(t);e?g(e,i):v(t.getContainer(),i,"afterend")}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._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((function(t){return t.options.renderer.remove()})),this._hotline&&this._clearLayers(this._hotline),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){var i=e.fn,n=e.ctx;return t.off("elechart_updated",i,n)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((function(t){return t.remove()})),t.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 L.latLngBounds((t||this._data).map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){h(this._container,"display","none")},initialize:function(e){e=L.setOptions(this,L.extend({},z(I),e)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],e.trkStart||I.trkStart),this._end=L.circleMarker([0,0],e.trkEnd||I.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},e.followMarker&&(this._setMapView=T(this._setMapView,300,this)),e.legend&&(e.margins.bottom+=30),e.theme&&(e.polylineSegments.className+=" "+e.theme),!0===e.wptIcons&&(e.wptIcons=I.wptIcons),!0===e.distanceMarkers&&(e.distanceMarkers=I.distanceMarkers),e.trkStart&&this._start.addTo(this._circleMarkers),e.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(e.polylineSegments),L.extend(t,e.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import:function(t,e){switch(t){case this.__D3:e="object"!=typeof d3;break;case this.__TOGEOJSON:e="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:e="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:e="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:e="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:e="function"!=typeof L.Hotline}return!1!==e?import(r(t,this.options.srcFolder)):Promise.resolve()},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=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+w()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((function(){e._initChart(i),e._initButton(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),e._modulesLoaded=!0,e.fire("modules_loaded")})),this.fire("add"),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(t.getContainer(),"mousewheel",this._resetDrag,this),x(t.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove")},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){if("FeatureCollection"===t.type)return y(t.features,(function(t){return e._addData(t)}));if("Feature"===t.type){var i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return y(i.coordinates,(function(i,n){return e._addGeoJSONData(i,t.properties,n)}));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData:function(t,e,i){var n=this;var r=e&&e.coordinateProperties||e;t.forEach((function(t,e){var o,a,s,l,c;t.meta=(o=t.meta)!==null&&o!==void 0?o:{time:null,ele:null},t.prev=function(t){return t?n._data[e>0?e-1:0][t]:n._data[e>0?e-1:0]},n.fire("elepoint_init",{point:t,props:r,id:e,isMulti:i}),n._addPoint((a=t.lat)!==null&&a!==void 0?a:t[1],(s=t.lng)!==null&&s!==void 0?s:t[0],(c=(l=t.alt)!==null&&l!==void 0?l:t.meta.ele)!==null&&c!==void 0?c:t[2]),n.fire("elepoint_added",{point:t,index:n._data.length-1}),n._yCoordMax<n._data[n._data.length-1][n.options.yAttr]&&(n._yCoordMax=n._data[n._data.length-1][n.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){var n;this.options.reverseCoords&&(n=[e,t],t=n[0],e=n[1],n),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){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){var e=t.target,i=t.type;return L.DistanceMarkers&&e instanceof L.Polyline&&e[i+"DistanceMarkers"]()})),t},_addMarker:function(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler:function(t,e){var i=this;return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",i._onMouseMoveLayer,i).on("almost:out",i._onMouseOut,i),i.once("eledata_clear",(function(){t.almostOver.removeLayer(e),t.off("almost:move",i._onMouseMoveLayer,i).off("almost:out",i._onMouseOut,i)})))})):Promise.resolve()},_initDistanceMarkers:function(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale:function(t){var e=this;return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((function(){t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof e.options.edgeScale?e.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine:function(t){var e=this;var i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((function(){t.eachLayer((function(t){if("Point"!=t.feature.geometry.type){var n=L.geoJson(t.toGeoJSON(),{coordsToLatLng:function(t){return L.latLng(t[0],t[1],t[2]*(e.options.altitudeFactor||1))}}),r=L.hotline(n.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(e.track_info[i+"_min"])?e.track_info[i+"_min"]:0,max:isFinite(e.track_info[i+"_max"])?e.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(e._hotline),o=t.options.style&&t.options.style.opacity||1;t.on("add remove",(function(e){var i=e.type;t.setStyle({opacity:"add"==i?0:o}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations:function(t){var e=this;var i=this._map;i?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((function(){e.options.polyline&&(e._layers.addLayer(t.addTo(i)),e._circleMarkers.addTo(i)),e.options.autofitBounds&&e.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(function(){return e._initMapIntegrations(t)}))},_collapse:function(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand:function(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths:function(){var e=L.Canvas.prototype._fillStroke,i=this,n=this.options.theme.split(" ")[0].replace("-theme",""),r=t[n]||{};L.Canvas.include({_fillStroke:function(t,o){if(i._layers.hasLayer(o)){var a=o.options;if(a.color=r.line||r.area||n,a.stroke=!!a.color,e.call(this,t,o),a.stroke&&0!==a.weight){var s=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=r.outline||"#FFF",t.lineWidth=1.75*a.weight,t.stroke(),t.globalCompositeOperation=s}}else e.call(this,t,o)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){var i=e.data,n=e.xCoord;t._chartEnabled&&(t._chart._showDiagramIndicator(i,n),t._chart._showDiagramIndicator(i,n)),t._updateMarker(i)}))}))},_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)},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this;var i=this.options,n=this._map;if(i.detached){var r=this.eleDiv,o=r.offsetWidth,a=r.offsetHeight;o>0&&(i.width=o),a>20&&(i.height=a-20)}else{var s=n.getContainer().clientWidth;i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>s&&(i.width=s-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((function(r){var o=e._chart=new(r[1]||B).Chart(i,e);e._x=e._chart._x,e._y=e._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",e._hideMarker,e).on("mouse_enter",e._onMouseEnter,e).on("dragged",e._onDragEnd,e).on("mouse_move",e._onMouseMove,e).on("mouse_out",e._onMouseOut,e).on("ruler_filter",e._onRulerFilter,e).on("zoom",e._updateChart,e).on("elepath_toggle",e._onToggleChart,e).on("margins_updated",e._resizeChart,e),e.fire("elechart_init"),n.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),k(n.getContainer(),"mousewheel",e._resetDrag,e),k(n.getContainer(),"touchstart",e._resetDrag,e),k(document,"keydown",e._onKeyDown,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()}))},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer,n=e.type;var r=i.getElement&&i.getElement();p(r,t.options.polyline.className+" "+t.options.theme,"layeradd"==n),f(i,"mousemove",t._onMouseMoveLayer.bind(t),"layeradd"==n),f(i,"mouseout",t._onMouseOut.bind(t),"layeradd"==n)}))},_initMarker:function(t){var e=this;var i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),i.style.zIndex=625,i.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((function(t){e._marker=new(t[1]||B).Marker(e.options,e),e.fire("elechart_marker")}))},_initButton:function(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(k(t,"mouseover",this._expand,this),k(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){var e=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);k(e,"click",L.DomEvent.stop),k(e,"click",this._toggle,this),k(e,"focus",this._toggle,this),fetch(r(this.__btnIcon,this.options.srcFolder)).then((function(t){return t.ok&&t.text().then((function(t){return e.innerHTML=t}))}))}},_initSummary:function(t){var e=this;this.import(this.__LSUMMARY).then((function(i){e._summary=new(i||B).Summary({summary:e.options.summary},e),e.on("elechart_init",(function(){d3.select(t).call(e._summary.render())}))}))},_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)}))},_loadModules:function(t){var e=this;var i=(t=t.map((function(t){return"string"==typeof t&&void 0!==B[t]?B[t]:t}))).map((function(t){return"string"==typeof t&&e.import(e.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()}));return Promise.all(i).then((function(i){y(i,(function(e,i){var n;var r=e&&Object.keys(e)[0];r&&(t[i]=B[r]=(n=B[r])!==null&&n!==void 0?n:e[r])})),y(t,(function(t){return["function","object"].includes(typeof t)&&e._registerHandler(t)}))}))},_loadLayer:function(t){var e=this;var i=this.options,n=i.polyline,r=i.theme,o=i.waypoints,a=i.wptIcons,s=i.wptLabels,l=i.distanceMarkers,c=L.extend({},n);r&&(c.className+=" "+r),t.name&&(this.track_info.name=t.name);var p=L.geoJson(t,{distanceMarkers:l,style:c,pointToLayer:function(t,i){if(o){var n=t.properties,r=n.desc,l=n.name,c=n.sym;if(r=r||"",l=l||"",[!0,"dots"].includes(o)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?l:""}),[!0,"markers"].includes(o)&&0!=a)return e._registerMarker({latlng:i,sym:(c!==null&&c!==void 0?c:l).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(l||r)&&decodeURI("<b>"+l+"</b>"+(r.length>0?"<br>"+r:""))})}},onEachFeature:function(t,i){return t.geometry&&"Point"!=t.geometry.type&&e.addData(t,i)}});return this.import(this.__D3).then((function(){e._initMapIntegrations(p);var i={data:t,layer:p,name:e.track_info.name,track_info:e.track_info};e._modulesLoaded?e._fireEvt("eledata_loaded",i):e.once("modules_loaded",(function(){return e._fireEvt("eledata_loaded",i)}))})),p},_onDragEnd:function(t){var e=t.dragstart,i=t.dragend;this._hideMarker(),this.fitBounds(L.latLngBounds([e.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown:function(t){var e=t.key;this.options.detached||"Escape"!==e||this._collapse()},_onMouseEnter:function(){this.fire("elechart_enter")},_onMouseMove:function(t){var e=t.xCoord;if(this._chartEnabled&&this._data.length){var i=this._findItemForX(e);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,e),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:e}),this.fire("elechart_hover",{data:i,xCoord:e}))}},_onMouseMoveLayer:function(t){var e=t.latlng;if(this._data.length){var i=this._findItemForLatLng(e);if(i){var n=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,n),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:n})}}},_onMouseOut:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter:function(t){var e=t.coords;this._updateMapSegments(e)},_onToggleChart:function(t){var e=this;var i=t.name,n=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return p(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=n||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.import(e.__TOGEOJSON).then((function(){var n;try{n=e._parseFromXMLString(t.trim())}catch(i){n=e._parseFromGeoJSONString(t.toString())}n&&(n.name=n.name||(e._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(n)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),n=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";n in toGeoJSON||(n="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[n](i);return o.name=r.length>0?((e=Array.from(r).find((function(t){return"trk"==t.parentElement.tagName})))!==null&&e!==void 0?e:r[0]).textContent:"",o},_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;var i=function(){return e._chart._registerCheckPoint(t)};this.on("elechart_updated",i).once("eledata_clear",(function(){return e.off("elechart_updated",i)}))},_registerDataAttribute:function(t){var e=this;t.coordPropsToMeta&&this.on("elepoint_init",(function(i){return t.coordPropsToMeta.call(e,i)}));var i,n,r,o=t.attr||t.name,a={};this.on("elepoint_added",(function(s){var l=s.index,c=s.point;if(i=l,r=n!==null&&n!==void 0?n:e._data[i],n=e._data[i],n[o]=t.pointToAttr.call(e,c,i),i>0&&isNaN(r[o])&&(isNaN(a[o])||isNaN(n[o])?isNaN(a[o])?isNaN(n[o])||(r[o]=n[o]):r[o]=a[o]:r[o]=(a[o]+n[o])/2,t.meta&&(r[t.meta]=r[o])),!isNaN(n[o])){if(a[o]=n[o],t.deltaMax&&(n[o]=E(n[o],r[o],t.deltaMax)),t.clampRange&&(n[o]=M(n[o],t.clampRange)),isNaN(t.decimals)||(n[o]=S(n[o],t.decimals)),t.stats)for(var p in t.stats){var u=(t.statsName||o)+(""!=p?"_":"");e.track_info[u+p]=t.stats[p].call(e,n[o],e.track_info[u+p],e._data.length)}t.onPointAdded&&t.onPointAdded.call(e,n[o],i,c)}}))},_registerHandler:function(t){var e=this;if("function"==typeof t)return this._registerHandler(t.call(this));var i=t.name,n=t.attr,r=t.required,o=t.deltaMax,s=t.clampRange,l=t.decimals,c=t.meta,p=t.unit,u=t.coordinateProperties,h=t.coordPropsToMeta,d=t.pointToAttr,f=t.onPointAdded,m=t.stats,g=t.statsName,v=t.grid,_=t.scale,w=t.path,b=t.tooltip,k=t.summary;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:n,meta:c,deltaMax:o,clampRange:s,decimals:l,coordPropsToMeta:a(u,c||i,h),pointToAttr:d,onPointAdded:f,stats:m,statsName:g}),v&&this._registerAxisGrid(L.extend({name:i},v)),"summary"!==this.options[i]&&(_&&this._registerAxisScale(L.extend({name:i,label:p},_)),w&&this._registerAreaPath(L.extend({name:i},w))),(b||t.tooltips)&&y(__spreadArray([b],t.tooltips||[],true),(function(t){return t&&e._registerTooltip(L.extend({name:i},t))})),k&&(y(k,(function(t,e){return k[e]=L.extend({unit:p},t)})),this._registerSummary(k)))},_registerMarker:function(t){var e=t.latlng,i=t.sym,n=t.content;var r=this.options.wptIcons;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));var o=L.marker(e,{icon:r[i]});return n&&(o.bindPopup(n,{className:"elevation-popup",keepInView:!0}).openPopup(),o.bindTooltip(n,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(o)},_registerTooltip:function(t){var e=this;t.chart&&this.on("elechart_init",(function(){return e._chart._registerTooltip(L.extend({},t,{value:t.chart}))})),t.marker&&this.on("elechart_marker",(function(){return e._marker._registerTooltip(L.extend({},t,{value:t.marker}))}))},_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=this.options,e=t.detached?(this.eleDiv||this._container).offsetWidth:M(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);e&&(t.width=e,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle:function(){P(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this._map&&this.options.followMarker){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})}},_updateChart:function(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||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&&(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>",_(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:o.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)}))},_width:function(){if(this._chart)return this._chart._width();var t=this.options,e=t.width,i=t.margins;return e-i.left-i.right},_height:function(){if(this._chart)return this._chart._height();var t=this.options,e=t.height,i=t.margins;return e-i.top-i.bottom}});B.Utils=O,L.control.elevation=function(t){return new B(t)}}));createCommonjsModule((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,n=this._featureGroup,r=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,s=this.options.chunkProgress,l=t.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),h=L.bind((function(){var d=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-d;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];n.removeLayer(g)}}else r.addLayer(i),e||this.fire("layeradd",{layer:i})}s&&s(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var d=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)||d.push(i):r.addLayer(i);return this},removeLayers:function(t){var e,i,n=t.length,r=this._featureGroup,o=this._nonPointGroup,a=!0;if(!this._map){for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var s=t.slice(),l=n;for(e=0;e<l;e++)(i=s[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),l=s.length):this._unspiderfyLayer(i)}for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),r.hasLayer(i)&&(r.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,r,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),n=o.length-1;0<=n;n--){for(i=!0,r=a.length-1;0<=r;r--)if(a[r].layer===o[n]){i=!1;break}i&&t.call(e,o[n])}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 n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,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",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,n;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++)(n=this._needsRemoving[e]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],this._removeLayer(n.layer,!0),n.layer._latlng=n.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,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());r<=e&&n[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 n=this._gridClusters,r=this._gridUnclustered,o=this._featureGroup,a=this._map,s=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<s));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],n[c._zoom].removeObject(c,a.project(c._cLatLng,c._zoom)),r[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&&(o.removeLayer(c),i||o.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,n=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom;(e||n||r)&&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,n=this.options.spiderfyOnEveryZoom,r=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),r.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,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var r=t;e<=r;r--)this._gridClusters[r]=new L.DistanceGrid(n(r)),this._gridUnclustered[r]=new L.DistanceGrid(n(r));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,r=this._gridClusters,o=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 s=r[e].getNearObject(i);if(s)return s._addChild(t),void(t.__parent=s);if(s=o[e].getNearObject(i)){var l=s.__parent;l&&this._removeLayer(s,!1);var c=new this._markerCluster(this,e,s,t);r[e].addObject(c,this._map.project(c._cLatLng,e)),s.__parent=c;var p=t.__parent=c;for(n=e-1;n>l._zoom;n--)p=new this._markerCluster(this,n,p),r[n].addObject(p,this._map.project(s.getLatLng(),n));return l._addChild(p),void this._removeFromGridUnclustered(s,e)}o[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),r=0;for(e=e||[];r<n.length;r++)(i=n[r])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,n=this._getExpandedVisibleBounds(),r=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,t,o,(function(o){var a,s=o._latlng,l=o._markers;for(n.contains(s)||(s=null),o._isSingleParent()&&t+1===e?(r.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,n)):(o.clusterHide(),o._recursivelyAddChildrenToMap(s,e,n)),i=l.length-1;0<=i;i--)a=l[i],n.contains(a._latlng)||r.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),r.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,o,(function(t){r.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,n=this._featureGroup;n.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(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,r,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,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(n,i,r,(function(t){t._recursivelyRemoveChildrenFromMap(n,r,e+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){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),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;0<=n;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),n=this._group._map,r=n.getBoundsZoom(this._bounds),o=this._zoom+1,a=n.getZoom();0<i.length&&o<r;){o++;var s=[];for(e=0;e<i.length;e++)s=s.concat(i[e]._childClusters);i=s}o<r?this._group._map.setView(this._latlng,o):r<=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,n,r=this._markers,o=this._childClusters,a=0,s=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<r.length;t++)i=r[t]._latlng,this._bounds.extend(i),a+=i.lat,s+=i.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,a+=i.lat*n,s+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(a/l,s/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,n,r=t._markers;for(i=r.length-1;0<=i;i--)(n=r[i])._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,r=t._childClusters;for(i=r.length-1;0<=i;i--)(n=r[i])._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(r){r._recursivelyAnimateChildrenIn(t,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),i),r._isSingleParent()&&i-1===n?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(t,e,i)):r.clusterHide(),r._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(n){if(e!==n._zoom)for(var r=n._markers.length-1;0<=r;r--){var o=n._markers[r];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),n._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._restorePosition();else for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var r,o;this._recursively(t,e-1,i-1,(function(t){for(o=t._markers.length-1;0<=o;o--)r=t._markers[o],n&&n.contains(r._latlng)||(t._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}),(function(t){for(o=t._childClusters.length-1;0<=o;o--)r=t._childClusters[o],n&&n.contains(r._latlng)||(t._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}))},_recursively:function(t,e,i,n,r){var o,a,s=this._childClusters,l=this._zoom;if(e<=l&&(n&&n(this),r&&l===i&&r(this)),l<e||l<i)for(o=s.length-1;0<=o;o--)(a=s[o])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,i,n,r)},_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),n=this._getCoord(e.y),r=this._grid,o=r[n]=r[n]||{},a=o[i]=o[i]||[],s=L.Util.stamp(t);this._objectPoint[s]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,r=this._getCoord(e.x),o=this._getCoord(e.y),a=this._grid,s=a[o]=a[o]||{},l=s[r]=s[r]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=l.length;i<n;i++)if(l[i]===t)return l.splice(i,1),1===n&&delete s[r],!0},eachObject:function(t,e){var i,n,r,o,a,s,l=this._grid;for(i in l)for(n in a=l[i])for(r=0,o=(s=a[n]).length;r<o;r++)t.call(e,s[r])&&(r--,o--)},getNearObject:function(t){var e,i,n,r,o,a,s,l,c=this._getCoord(t.x),p=this._getCoord(t.y),u=this._objectPoint,h=this._sqCellSize,d=null;for(e=p-1;e<=p+1;e++)if(r=this._grid[e])for(i=c-1;i<=c+1;i++)if(o=r[i])for(n=0,a=o.length;n<a;n++)s=o[n],((l=this._sqDist(u[L.Util.stamp(s)],t))<h||l<=h&&null===d)&&(h=l,d=s);return d},_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,n=e.y-t.y;return i*i+n*n}},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,n,r,o=0,a=null,s=[];for(i=e.length-1;0<=i;i--)n=e[i],0<(r=this.getDistant(n,t))&&(s.push(n),o<r&&(o=r,a=n));return{maxPoint:a,newPoints:s}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,r=!1,o=!1,a=null,s=null,l=null,c=null,p=null,u=null;for(e=t.length-1;0<=e;e--){var h=t[e];(!1===i||h.lat>i)&&(i=(a=h).lat),(!1===n||h.lat<n)&&(n=(s=h).lat),(!1===r||h.lng>r)&&(r=(l=h).lng),(!1===o||h.lng<o)&&(o=(c=h).lng)}return p=n!==i?(u=s,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(),n=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),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,n,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,a=[];for(r=Math.max(r,35),a.length=t,i=0;i<t;i++)n=this._circleStartAngle+i*o,a[i]=new L.Point(e.x+r*Math.cos(n),e.y+r*Math.sin(n))._round();return a},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,r=n*this._spiralLengthStart,o=n*this._spiralFootSeparation,a=n*this._spiralLengthFactor*this._2PI,s=0,l=[];for(i=l.length=t;0<=i;i--)i<t&&(l[i]=new L.Point(e.x+r*Math.cos(s),e.y+r*Math.sin(s))._round()),r+=a/(s+=o/r+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,r=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;0<=e;e--)t=o[e],r.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,r,o,a=this._group,s=a._map,l=a._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<t.length;i++)o=s.layerPointToLatLng(e[i]),n=t[i],r=new L.Polyline([this._latlng,o],c),s.addLayer(r),n._spiderLeg=r,n._preSpiderfyLatlng=n._latlng,n.setLatLng(o),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);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,n,r,o,a,s,l=this,c=this._group,p=c._map,u=c._featureGroup,h=this._latlng,d=p.latLngToLayerPoint(h),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++)n=t[i],s=p.layerPointToLatLng(e[i]),r=new L.Polyline([h,s],m),p.addLayer(r),n._spiderLeg=r,f&&(a=(o=r._path).getTotalLength()+.1,o.style.strokeDasharray=a,o.style.strokeDashoffset=a),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),u.addLayer(n),n._setPos&&n._setPos(d);for(c._forceLayout(),c._animationStart(),i=t.length-1;0<=i;i--)s=p.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.clusterShow&&n.clusterShow(),f&&((o=(r=n._spiderLeg)._path).style.strokeDashoffset=0,r.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,n,r,o,a,s=this,l=this._group,c=l._map,p=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),d=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=h.length-1;0<=i;i--)(e=h[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),d&&(o=(r=(n=e._spiderLeg)._path).getTotalLength()+.1,r.style.strokeDashoffset=o,n.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=h.length-1;0<=i;i--)(e=h[i])._spiderLeg&&t++;for(i=h.length-1;0<=i;i--)(e=h[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:s,markers:h})}),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})}))}));function getTrekGeometry(t){return fetch("".concat(state.api,"trek/").concat(t,"/?language=").concat(state.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(t){return t.json()}))}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-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, "")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:"✖";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:"";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:" — "}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:"Roboto";display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container{background-color:var(--color-surface-variant)}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{width:64px;height:64px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number{width:48px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup,.touristic-content-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{border-top-left-radius:8px;border-top-right-radius:8px}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}';var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.maxZoom=19;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}t.prototype.onCenterOnMap=function(t){this.map.setView(new leafletSrc.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationDesksIsInViewport=function(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}};t.prototype.touristicContentsIsInViewport=function(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}};t.prototype.touristicEventsIsInViewport=function(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}};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.currentStepsLayer){state.selectedStepId=null;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.componentDidLoad=function(){var t=this;this.map=leafletSrc.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});leafletSrc.control.scale({metric:true,imperial:false}).addTo(this.map);leafletSrc.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 n=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,r){t.tileLayer.push({key:"".concat(e[r]),value:leafletSrc.tileLayer(i,{maxZoom:t.maxZoom,attribution:"".concat(n[r]&&n[r]!==""?n[r].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>')})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=leafletSrc.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);leafletSrc.Control.Contract=leafletSrc.Control.extend({onAdd:function(){var e=leafletSrc.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(leafletSrc.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}});leafletSrc.control.contract=function(t){return new leafletSrc.Control.Contract(t)};leafletSrc.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.touristicContents){this.addTouristicContents()}onChange("currentTreks",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));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.addTouristicEvent()}else if(state.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(state.currentTreks){t.removeTouristicEvent();t.addTreks()}}));onChange("currentTouristicContents",(function(){if(state.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(state.currentTouristicContents){t.removeTouristicContent();t.addTouristicContents()}}));onChange("mode",(function(){if(state.mode==="treks"){t.removeTouristicContents();t.addTreks()}else if(state.mode==="touristicContents"){t.removeTreks();t.addTouristicContents()}}))};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(){var t=this;var e;state.treksWithinBounds=state.currentTreks;var i=[];var n={type:"FeatureCollection",features:[]};if(state.currentTreks){var r=function(t){i.push(t.departure_geom);n.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(var o=0,a=state.currentTreks;o<a.length;o++){var s=a[o];r(s)}}if(!this.treksLayer){if(i.length>0&&!state.currentMapBounds){this.bounds=leafletSrc.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.treksLayer=leafletSrc.geoJSON(n,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="trek-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(e.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return t.trekCardPress.emit(e.properties.id)};n.appendChild(a);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.hideTrekLine();t.showTrekLine(e.properties.id);t.addSelectedCurrentTrek(e.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return leafletSrc.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,24]})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(i.length>0){this.bounds=leafletSrc.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)};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(leafletSrc.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(leafletSrc.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.addTrek=function(){var t=this;var e,i,n,r;this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();var o={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=leafletSrc.geoJSON(o,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){var a={type:"Feature",properties:{},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=leafletSrc.geoJSON(a,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){var s={type:"FeatureCollection",features:[]};for(var l=0,c=state.currentSensitiveAreas;l<c.length;l++){var p=c[l];s.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=leafletSrc.geoJSON(s,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="sensitive-area-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:t.colorSensitiveArea}}})}if(state.currentPois&&state.currentPois.length>0){var u={type:"FeatureCollection",features:[]};var h=function(t){u.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=state.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(var d=0,f=state.currentPois;d<f.length;d++){var m=f[d];h(m)}this.currentPoisLayer=leafletSrc.geoJSON(u,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="poi-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.trekTouristicContents&&state.trekTouristicContents.length>0){var g={type:"FeatureCollection",features:[]};var v=function(t){g.features.push({type:"Feature",properties:{name:t.name,category_pictogram:(i=state.touristicContentCategories.find((function(e){return e.id===t.category})))===null||i===void 0?void 0:i.pictogram},geometry:t.geometry})};for(var _=0,y=state.trekTouristicContents;_<y.length;_++){var w=y[_];v(w)}this.currentToutisticContentsLayer=leafletSrc.geoJSON(g,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.category_pictogram?"<img src=".concat(t.properties.category_pictogram," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-content-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="touristic-content-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.touristicEvents&&state.touristicEvents.length>0){var b={type:"FeatureCollection",features:[]};var k=function(t){b.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(n=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||n===void 0?void 0:n.pictogram},geometry:t.geometry})};for(var x=0,L=state.touristicEvents;x<L.length;x++){var A=L[x];k(A)}this.currentToutisticEventsLayer=leafletSrc.geoJSON(b,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-event-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="touristic-event-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.currentInformationDesks&&state.currentInformationDesks.length>0){var T={type:"FeatureCollection",features:[]};for(var C=0,P=state.currentInformationDesks.filter((function(t){return state.currentTrek.information_desks.includes(t.id)}));C<P.length;C++){var S=P[C];if(S.latitude&&S.longitude){T.features.push({type:"Feature",properties:{name:S.name,type_pictogram:S.type.pictogram},geometry:{type:"Point",coordinates:[Number(S.longitude),Number(S.latitude)]}})}}this.currentInformationDesksLayer=leafletSrc.geoJSON(T,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="information-desks-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.currentTrek.points_reference){var M={type:"FeatureCollection",features:[]};M.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});var E=0;this.currentReferencePointsLayer=leafletSrc.geoJSON(M,{pointToLayer:function(t,e){E+=1;return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:E,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){var z={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var O=function(t){z.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(r=state.practices.find((function(e){return e.id===t.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(var I=0,B=state.currentTrekSteps;I<B.length;I++){var D=B[I];O(D)}}var j=0;this.currentStepsLayer=leafletSrc.geoJSON(z,{pointToLayer:function(t,e){j+=1;return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(j,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(e.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return t.trekCardPress.emit(e.properties.id)};n.appendChild(a);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedCurrentStep(e.properties.id,i.latlng)}))}})}var R={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:250,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:false,time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=leafletSrc.control.elevation(Object.assign({},R)).addTo(this.map);var F=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(F);var N={};if(this.currentStepsLayer){N[translate[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){N[translate[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){N[translate[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){N[translate[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){N[translate[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){N[translate[state.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){N[translate[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){N[translate[state.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(N).forEach((function(e){t.layersControl.addOverlay(N[e],e)}))}else{this.layersControl=leafletSrc.control.layers({},N,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=leafletSrc.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.addSelectedCurrentTrek=function(t,e){var i=this;var n;var r={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=state.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(n=state.practices.find((function(t){return t.id===o.practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();state.selectedTrekId=t;this.selectedCurrentTrekLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="trek-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:64,iconAnchor:[36,36]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return i.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!i.trekPopupIsOpen){state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){i.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){i.trekPopupIsOpen=false;state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}))}}).addTo(this.map)};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 n;var r={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var o=state.currentTrekSteps.findIndex((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[o].departure_geom},properties:{id:state.currentTrekSteps[o].id,name:state.currentTrekSteps[o].name,practice:(n=state.practices.find((function(t){return t.id===state.currentTrekSteps[o].practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:state.currentTrekSteps[o].attachments&&state.currentTrekSteps[o].attachments.length>0&&state.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(t.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:64,iconAnchor:[36,36]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return i.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));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(){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null};t.prototype.handleLayersControlEvent=function(){var t=this;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(){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.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentToutisticEventsLayer){this.map.removeLayer(this.currentToutisticEventsLayer);this.currentToutisticEventsLayer=null}};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};t.prototype.showTrekLine=function(t){var e=this;getTrekGeometry(t).then((function(t){var i={type:"Feature",geometry:t.geometry,properties:{}};e.currentTrekLayer=leafletSrc.geoJSON(i,{style:function(){return{color:e.colorTrekLine}},interactive:false}).addTo(e.map)}))};t.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();var 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){this.currentToutisticContentLayer=leafletSrc.geoJSON(t,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="touristic-content-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(){var t=this;state.touristicContentsWithinBounds=state.touristicContents;var e=[];var i={type:"FeatureCollection",features:[]};if(state.touristicContents){if(e.length>0&&!state.currentMapBounds){this.bounds=leafletSrc.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}var n=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}})};for(var r=0,o=state.currentTouristicContents;r<o.length;r++){var a=o[r];n(a)}}if(!this.toutisticContentsLayer){if(e.length>0&&!state.currentMapBounds){this.bounds=leafletSrc.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.toutisticContentsLayer=leafletSrc.geoJSON(i,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="touristic-content-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="touristic-content-button";a.onclick=function(){return t.touristicContentCardPress.emit(e.properties.id)};n.appendChild(a);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicContent(e.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return leafletSrc.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,24]})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(e.length>0){this.bounds=leafletSrc.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)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)};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(){var t={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type})).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=leafletSrc.geoJSON(t,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type?'<div class="touristic-event-marker-container"><img src='.concat(t.properties.type," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){var i=this;var n;var r={type:"FeatureCollection",features:[]};if(state.touristicContents){var o=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(n=state.touristicContentCategories.find((function(t){return t.id===o.category})))===null||n===void 0?void 0:n.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;this.selectedTouristicContentLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:t.properties.category?'<div class="touristic-content-marker-container"><img src='.concat(t.properties.category," /></div>"):'<div class="touristic-content-trek-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[36,36]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="touristic-content-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="touristic-content-button";a.onclick=function(){return i.touristicContentCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!i.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){i.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){i.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}))}}).addTo(this.map)};t.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=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,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(i,")"),"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},h("div",{id:"map",style:{},class:state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}}),state.currentTrek&&h("div",null,h("div",{id:"elevation",ref:function(e){return t.elevationRef=e}}),h("div",{class:"map-bottom-space"})),!this.mapIsReady&&h("div",{class:"map-loader-container"},h("span",{class:"loader"})))};return t}();GrwMap.style=grwMapCss;var grwSearchCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host span{font-size:24px;position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:40px;color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:400;font-family:"Roboto";height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}';var GrwSearch=function(){function t(t){registerInstance(this,t)}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()}};t.prototype.render=function(){var t=this;return h(Host,null,h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),h("input",{onInput:function(e){return t.onSearchChange(e)},class:"search-input",type:"search",placeholder:"Rechercher",value:state.searchValue}))};return t}();GrwSearch.style=grwSearchCss;function Mousewheel(t){var e=t.swiper,i=t.extendParams,n=t.on,r=t.emit;var o=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 s=now();var l;var c=[];function p(t){var e=10;var i=40;var n=800;var r=0;var o=0;var a=0;var s=0;if("detail"in t){o=t.detail}if("wheelDelta"in t){o=-t.wheelDelta/120}if("wheelDeltaY"in t){o=-t.wheelDeltaY/120}if("wheelDeltaX"in t){r=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){r=o;o=0}a=r*e;s=o*e;if("deltaY"in t){s=t.deltaY}if("deltaX"in t){a=t.deltaX}if(t.shiftKey&&!a){a=s;s=0}if((a||s)&&t.deltaMode){if(t.deltaMode===1){a*=i;s*=i}else{a*=n;s*=n}}if(a&&!r){r=a<1?-1:1}if(s&&!o){o=s<1?-1:1}return{spinX:r,spinY:o,pixelX:a,pixelY:s}}function u(){if(!e.enabled)return;e.mouseEntered=true}function h(){if(!e.enabled)return;e.mouseEntered=false}function d(t){if(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta){return false}if(e.params.mousewheel.thresholdTime&&now()-s<e.params.mousewheel.thresholdTime){return false}if(t.delta>=6&&now()-s<60){return true}if(t.direction<0){if((!e.isEnd||e.params.loop)&&!e.animating){e.slideNext();r("scroll",t.raw)}}else if((!e.isBeginning||e.params.loop)&&!e.animating){e.slidePrev();r("scroll",t.raw)}s=(new o.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 n=true;if(!e.enabled)return;if(t.target.closest(".".concat(e.params.mousewheel.noMousewheelClass)))return;var o=e.params.mousewheel;if(e.params.cssMode){i.preventDefault()}var s=e.el;if(e.params.mousewheel.eventsTarget!=="container"){s=document.querySelector(e.params.mousewheel.eventsTarget)}var u=s&&s.contains(i.target);if(!e.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var h=0;var m=e.rtlTranslate?-1:1;var g=p(i);if(o.forceToAxis){if(e.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))h=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))h=-g.pixelY;else return true}else{h=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(h===0)return true;if(o.invert)h=-h;var v=e.getTranslate()+h*o.sensitivity;if(v>=e.minTranslate())v=e.minTranslate();if(v<=e.maxTranslate())v=e.maxTranslate();n=e.params.loop?true:!(v===e.minTranslate()||v===e.maxTranslate());if(n&&e.params.nested)i.stopPropagation();if(!e.params.freeMode||!e.params.freeMode.enabled){var _={time:now(),delta:Math.abs(h),direction:Math.sign(h),raw:t};if(c.length>=2){c.shift()}var y=c.length?c[c.length-1]:undefined;c.push(_);if(y){if(_.direction!==y.direction||_.delta>y.delta||_.time>y.time+150){d(_)}}else{d(_)}if(f(_)){return true}}else{var w={time:now(),delta:Math.abs(h),direction:Math.sign(h)};var b=l&&w.time<l.time+500&&w.delta<=l.delta&&w.direction===l.direction;if(!b){l=undefined;var k=e.getTranslate()+h*o.sensitivity;var x=e.isBeginning;var L=e.isEnd;if(k>=e.minTranslate())k=e.minTranslate();if(k<=e.maxTranslate())k=e.maxTranslate();e.setTransition(0);e.setTranslate(k);e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses();if(!x&&e.isBeginning||!L&&e.isEnd){e.updateSlidesClasses()}if(e.params.loop){e.loopFix({direction:w.direction<0?"next":"prev",byMousewheel:true})}if(e.params.freeMode.sticky){clearTimeout(a);a=undefined;if(c.length>=15){c.shift()}var y=c.length?c[c.length-1]:undefined;var A=c[0];c.push(w);if(y&&(w.delta>y.delta||w.direction!==y.direction)){c.splice(0)}else if(c.length>=15&&w.time-A.time<500&&A.delta-w.delta>=1&&w.delta<=6){var T=h>0?.8:.2;l=w;c.splice(0);a=nextTick((function(){e.slideToClosest(e.params.speed,true,undefined,T)}),0)}if(!a){a=nextTick((function(){var t=.5;l=w;c.splice(0);e.slideToClosest(e.params.speed,true,undefined,t)}),500)}}if(!b)r("scroll",i);if(e.params.autoplay&&e.params.autoplayDisableOnInteraction)e.autoplay.stop();if(k===e.minTranslate()||k===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",h);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 _(){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}n("init",(function(){if(!e.params.mousewheel.enabled&&e.params.cssMode){_()}if(e.params.mousewheel.enabled)v()}));n("destroy",(function(){if(e.params.cssMode){v()}if(e.mousewheel.enabled)_()}));Object.assign(e.mousewheel,{enable:v,disable:_})}function freeMode(t){var e=t.swiper,i=t.extendParams,n=t.emit,r=t.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){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 s(t){var i=t.currentPos;if(e.params.cssMode)return;var o=e.params,a=e.wrapperEl,s=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(o.freeMode.momentum){if(c.velocities.length>1){var h=c.velocities.pop();var d=c.velocities.pop();var f=h.position-d.position;var m=h.time-d.time;e.velocity=f/m;e.velocity/=2;if(Math.abs(e.velocity)<o.freeMode.minimumVelocity){e.velocity=0}if(m>150||now()-h.time>300){e.velocity=0}}else{e.velocity=0}e.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=e.velocity*g;var _=e.translate+v;if(s)_=-_;var y=false;var w;var b=Math.abs(e.velocity)*20*o.freeMode.momentumBounceRatio;var k=void 0;if(_<e.maxTranslate()){if(o.freeMode.momentumBounce){if(_+e.maxTranslate()<-b){_=e.maxTranslate()-b}w=e.maxTranslate();y=true;c.allowMomentumBounce=true}else{_=e.maxTranslate()}if(o.loop&&o.centeredSlides)k=true}else if(_>e.minTranslate()){if(o.freeMode.momentumBounce){if(_-e.minTranslate()>b){_=e.minTranslate()+b}w=e.minTranslate();y=true;c.allowMomentumBounce=true}else{_=e.minTranslate()}if(o.loop&&o.centeredSlides)k=true}else if(o.freeMode.sticky){var x=void 0;for(var L=0;L<l.length;L+=1){if(l[L]>-_){x=L;break}}if(Math.abs(l[x]-_)<Math.abs(l[x-1]-_)||e.swipeDirection==="next"){_=l[x]}else{_=l[x-1]}_=-_}if(k){r("transitionEnd",(function(){e.loopFix()}))}if(e.velocity!==0){if(s){g=Math.abs((-_-e.translate)/e.velocity)}else{g=Math.abs((_-e.translate)/e.velocity)}if(o.freeMode.sticky){var A=Math.abs((s?-_:_)-e.translate);var T=e.slidesSizesGrid[e.activeIndex];if(A<T){g=o.speed}else if(A<2*T){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){e.slideToClosest();return}if(o.freeMode.momentumBounce&&y){e.updateProgress(w);e.setTransition(g);e.setTranslate(_);e.transitionStart(true,e.swipeDirection);e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed||!c.allowMomentumBounce)return;n("momentumBounce");e.setTransition(o.speed);setTimeout((function(){e.setTranslate(w);elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}),0)}))}else if(e.velocity){n("_freeModeNoMomentumRelease");e.updateProgress(_);e.setTransition(g);e.setTranslate(_);e.transitionStart(true,e.swipeDirection);if(!e.animating){e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}}else{e.updateProgress(_)}e.updateActiveIndex();e.updateSlidesClasses()}else if(o.freeMode.sticky){e.slideToClosest();return}else if(o.freeMode){n("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses()}}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:s}})}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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var GrwTouristicContentDetail=function(){function t(t){registerInstance(this,t);this.displayFullscreen=false;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}t.prototype.componentDidLoad=function(){var t=this;if(this.swiperImagesRef){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});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}};t.prototype.handleFullscreen=function(){if(state.currentTouristicContent.attachments&&state.currentTouristicContent.attachments[0]&&state.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};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 n=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,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},state.currentTouristicContent&&h("div",{class:"touristic-content-detail-container",ref:function(e){return t.touristicContentDetailContainerRef=e}},h("div",{class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{class:"swiper-wrapper"},state.currentTouristicContent.attachments.length>0?state.currentTouristicContent.attachments.filter((function(t){return t.type==="image"})).map((function(e){return h("div",{class:"swiper-slide"},h("img",{class:"image",src:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{class:"default-poi-img",src:e,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{class:"touristic-content-category-container"},h("img",{src:i.pictogram}),h("div",{class:"touristic-content-category-name"},i.label)),h("div",{class:"name"},state.currentTouristicContent.name),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicContent.pdf)},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicContent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicContent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicContent.practical_info&&h("div",{class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{class:"description-title"},translate[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicContent.description})),n&&n.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate[state.language].city," : "),h("div",{innerHTML:n.join(", ")})),state.currentTouristicContent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicContent.practical_info}))),(state.currentTouristicContent.contact||state.currentTouristicContent.email||state.currentTouristicContent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicContent.contact&&h("div",{innerHTML:state.currentTouristicContent.contact}),state.currentTouristicContent.email&&h("div",{class:"email-container"},h("div",null,translate[state.language].email," : "),h("div",{innerHTML:state.currentTouristicContent.email})),state.currentTouristicContent.website&&h("div",{class:"website-container"},h("div",null,translate[state.language].website," : "),h("div",{innerHTML:state.currentTouristicContent.website})))),h("div",{class:"detail-bottom-space"})))};return t}();GrwTouristicContentDetail.style=grwTouristicContentDetailCss;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}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(){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,"&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(state.api,"touristiccontent/").concat(this.touristicContentId,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website"),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],n=t[2];state.trekNetworkError=false;if(e){state.cities=e.results}if(i){state.touristicContentCategories=i.results}state.currentTouristicContent=n})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();var grwTouristicContentsListCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto";width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var GrwTouristicContentsList=function(){function t(t){registerInstance(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}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(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{style:{"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{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",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return h("grw-touristic-content-card",{"reset-store-on-disconnected":"false",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})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList.style=grwTouristicContentsListCss;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.touristicContentId=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,"&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));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],n=t[2],r=t[3];state.trekNetworkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(n){state.touristicContentCategories=n.results}state.touristicContents=r.results;state.currentTouristicContents=r.results})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var GrwTouristicEventDetail=function(){function t(t){registerInstance(this,t);this.displayFullscreen=false;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}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});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}};t.prototype.handleFullscreen=function(){if(state.currentTouristicEvent.attachments&&state.currentTouristicEvent.attachments[0]&&state.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};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 n=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,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},state.currentTouristicEvent&&h("div",{class:"touristic-event-detail-container",ref:function(e){return t.touristicEventDetailContainerRef=e}},h("div",{class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{class:"swiper-wrapper"},state.currentTouristicEvent.attachments.length>0?state.currentTouristicEvent.attachments.filter((function(t){return t.type==="image"})).map((function(e){return h("div",{class:"swiper-slide"},h("img",{class:"image",src:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{class:"default-poi-img",src:e,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{class:"touristic-event-category-container"},h("img",{src:i.pictogram}),h("div",{class:"touristic-event-category-name"},i.type)),h("div",{class:"name"},state.currentTouristicEvent.name),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicEvent.pdf)},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicEvent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicEvent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicEvent.practical_info&&h("div",{class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{class:"description-title"},translate[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicEvent.description})),n&&n.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate[state.language].city," : "),h("div",{innerHTML:n.join(", ")})),state.currentTouristicEvent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicEvent.practical_info}))),(state.currentTouristicEvent.contact||state.currentTouristicEvent.email||state.currentTouristicEvent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicEvent.contact&&h("div",{innerHTML:state.currentTouristicEvent.contact}),state.currentTouristicEvent.email&&h("div",{class:"email-container"},h("div",null,translate[state.language].email," : "),h("div",{innerHTML:state.currentTouristicEvent.email})),state.currentTouristicEvent.website&&h("div",{class:"website-container"},h("div",null,translate[state.language].website," : "),h("div",{innerHTML:state.currentTouristicEvent.website})))),h("div",{class:"detail-bottom-space"})))};return t}();GrwTouristicEventDetail.style=grwTouristicEventDetailCss;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}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-options .presentation.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .steps.selected-trek-option~.indicator-selected-trek-option{width:160px;background-size:80px 100%}.trek-options .description.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .recommendations.selected-trek-option~.indicator-selected-trek-option{width:380px;background-size:190px 100%}.trek-options .sensitive-areas.selected-trek-option~.indicator-selected-trek-option{width:320px;background-size:160px 100%}.trek-options .information-places.selected-trek-option~.indicator-selected-trek-option{width:400px;background-size:200px 100%}.trek-options .pois.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-content.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-event.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .presentation{min-width:120px;width:120px}.trek-options .steps{min-width:80px;width:80px}.trek-options .description{min-width:120px;width:120px}.trek-options .recommendations{min-width:190px;width:190px}.trek-options .sensitive-areas{min-width:160px;width:160px}.trek-options .information-places{min-width:200px;width:200px}.trek-options .pois{min-width:120px;width:120px}.trek-options .touristic-content{min-width:120px;width:120px}.trek-options .touristic-event{min-width:120px;width:120px}.trek-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a{color:var(--color-primary-app)}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:8px;border-bottom-left-radius:8px}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}';var presentation={visible:true,width:120,indicator:false};var steps={visible:false,width:80,indicator:false};var description={visible:false,width:120,indicator:false};var recommendations={visible:false,width:190,indicator:false};var sensitiveArea={visible:false,width:160,indicator:false};var informationPlaces={visible:false,width:200,indicator:false};var pois={visible:false,width:120,indicator:false};var touristicContents={visible:false,width:120,indicator:false};var touristicEvents={visible:false,width:120,indicator:false};var options={presentation:presentation,steps:steps,description:description,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,pois:pois,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.informationDeskIsInViewport=createEvent(this,"informationDeskIsInViewport",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.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.trek=undefined;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}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});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){var e=new IntersectionObserver((function(e){var i=e[0].isIntersecting;if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})})}}));e.observe(this.presentationRef)}if(this.stepsRef){var i=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})})}}));i.observe(this.stepsRef)}if(this.descriptionRef){var n=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})})}}));n.observe(this.descriptionRef)}if(this.recommendationRef){var r=new IntersectionObserver((function(e){var i=e[0].isIntersecting;if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})})}}));r.observe(this.recommendationRef)}if(this.parkingRef){var o=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}));o.observe(this.parkingRef)}if(this.sensitiveAreaRef){var a=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})})}}));a.observe(this.sensitiveAreaRef)}if(this.informationDeskRef){var s=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationDeskIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})})}}));s.observe(this.informationDeskRef)}if(this.poiRef){var l=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})})}}));l.observe(this.poiRef)}if(this.touristicContentsRef){var c=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})})}}));c.observe(this.touristicContentsRef)}if(this.touristicEventsRef){var p=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})})}}));p.observe(this.touristicContentsRef)}};t.prototype.connectedCallback=function(){var t=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));this.route=state.routes.find((function(e){return e.id===t.currentTrek.route}));this.practice=state.practices.find((function(e){return e.id===t.currentTrek.practice}));this.themes=state.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));this.labels=state.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));this.sources=state.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));this.accessibilities=state.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}this.cities=this.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=this.currentTrek.children.length>0}onChange("currentTrek",(function(){t.currentTrek=t.trek?t.trek:state.currentTrek;if(t.currentTrek){t.defaultOptions=t.handleOptions();t.options=Object.assign(Object.assign({},t.defaultOptions),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:true})});t.difficulty=state.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));t.route=state.routes.find((function(e){return e.id===t.currentTrek.route}));t.practice=state.practices.find((function(e){return e.id===t.currentTrek.practice}));t.themes=state.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));t.labels=state.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));t.sources=state.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));t.accessibilities=state.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(state.accessibilitiesLevel){t.accessibilityLevel=state.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}t.cities=t.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}));t.hasStep=t.currentTrek.children.length>0}}))};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};t.prototype.handleOptions=function(){var t=this;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(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(this.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(e){return t.currentTrek.information_desks.includes(e.id)})).length>0)}),pois:Object.assign(Object.assign({},pois),{visible:Boolean(state.currentPois&&state.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:Boolean(state.trekTouristicContents&&state.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:Boolean(state.touristicEvents&&state.touristicEvents.length>0)})})};t.prototype.handleFullscreen=function(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t=0;var e;var i=0;var n=Object.values(this.options);var r=0;while(!e&&r<n.length){if(n[r].indicator){e=n[r]}else{if(n[r].visible){t+=1;i+=n[r].width}}r++}return"".concat(i+16*t-e.width/2,"px")};t.prototype.handleScrollTo=function(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-48})};t.prototype.render=function(){var t=this;var e,i,n,r,o,a,s;return h(Host,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},this.currentTrek&&h("div",{class:"trek-options"},h("a",{onClick:function(){return t.handleScrollTo(t.presentationRef)},class:"presentation trek-option".concat(this.options.presentation.indicator?" selected-trek-option":"")},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.stepsRef)},class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":"")},translate[state.language].options.steps),this.options.description.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.descriptionRef)},class:"description trek-option".concat(this.options.description.indicator?" selected-trek-option":"")},translate[state.language].options.description),this.options.recommendations.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.recommendationRef)},class:"recommendations trek-option".concat(this.options.recommendations.indicator?" selected-trek-option":"")},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)},class:"sensitive-areas trek-option".concat(this.options.sensitiveArea.indicator?" selected-trek-option":"")},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.informationDeskRef)},class:"information-places trek-option".concat(this.options.informationPlaces.indicator?" selected-trek-option":"")},translate[state.language].options.informationPlaces),this.options.pois.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.poiRef)},class:"pois trek-option".concat(this.options.pois.indicator?" selected-trek-option":"")},translate[state.language].options.pois),this.options.touristicContents.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.touristicContentsRef)},class:"touristic-content trek-option".concat(this.options.touristicContents.indicator?" selected-trek-option":"")},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.touristicEventsRef)},class:"touristic-event trek-option".concat(this.options.touristicEvents.indicator?" selected-trek-option":"")},translate[state.language].options.touristicEvents),h("span",{class:"indicator-selected-trek-option",style:{transform:"translateX(".concat(this.handleIndicatorSelectedTrekOption(),")")}})),this.currentTrek&&h("div",{class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){return h("div",{class:"swiper-slide"},h("img",{class:"image",src:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()}}))}))),h("div",{class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&h("div",{class:"themes-container"},this.themes.map((function(t){return h("div",{class:"theme"},t.label)}))),h("div",{class:"sub-container"},h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((e=this.difficulty)===null||e===void 0?void 0:e.pictogram)&&h("img",{src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),h("div",{class:"icon-label duration"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration((n=this.currentTrek)===null||n===void 0?void 0:n.duration)),h("div",{class:"icon-label route"},((r=this.route)===null||r===void 0?void 0:r.pictogram)&&h("img",{src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent)),h("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&h("img",{src:this.practice.pictogram}),(s=this.practice)===null||s===void 0?void 0:s.name)))),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate[state.language].downloads),h("div",{class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx)},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),h("a",{href:"".concat(this.currentTrek.kml)},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),h("a",{href:"".concat(this.currentTrek.pdf)},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),h("div",{class:"divider"}),this.currentTrek.description_teaser&&h("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",null,h("div",{class:"divider"}),h("div",{class:"parent-trek-container"},h("button",{class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",null,"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{class:"step-container",ref:function(e){return t.stepsRef=e}},h("div",{class:"step-title"},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(e){return h("div",{class:"swiper-slide"},h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,"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",{class:"divider"}),this.currentTrek.description&&h("div",{class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{class:"description-title"},translate[state.language].description),h("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{class:"departure-container"},h("div",{class:"departure-title"},translate[state.language].departure," : "),h("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{class:"arrival-container"},h("div",{class:"arrival-title"},translate[state.language].arrival," : "),h("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&h("div",{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",{class:"divider"}),h("div",{class:"access-container"},h("div",{class:"access-title"},translate[state.language].roadAccess),h("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&h("div",null,h("div",{class:"divider"}),h("div",{class:"public-transport-container"},h("div",{class:"public-transport-title"},translate[state.language].transport),h("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advice-container",ref:function(e){return t.recommendationRef=e}},h("div",{class:"advice-title"},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{class:"current-advice-container"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),h("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((function(t){return h("div",{class:"label-container"},h("div",{class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram}),h("div",{class:"label-name",innerHTML:t.name})),h("div",{class:"label-advice",innerHTML:t.advice}))})))),this.currentTrek.advised_parking&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advised-parking-container",ref:function(e){return t.parkingRef=e}},h("div",{class:"advised-parking-title"},translate[state.language].recommendedParking),h("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&h("div",null,h("div",{class:"divider"}),h("div",{class:"gear-container"},h("div",{class:"gear-title"},translate[state.language].equipments),h("div",{class:"gear",innerHTML:this.currentTrek.gear}))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"sensitive-areas-container",ref:function(e){return t.sensitiveAreaRef=e}},h("div",{class:"sensitive-areas-title"},translate[state.language].environmentalSensitiveAreas),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{sensitiveArea:t})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"information-desks-container",ref:function(e){return t.informationDeskRef=e}},h("div",{class:"information-desks-title"},translate[state.language].informationPlaces),h("div",{class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(t){return h("div",{class:"swiper-slide"},h("grw-information-desk",{informationDesk:t}))})))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"accessibilities-container"},h("div",{class:"accessibilities-title"},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{innerHTML:this.currentTrek.disabled_infrastructure}),h("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{class:"accessibility-content-container"},h("img",{src:t.pictogram}),h("div",{innerHTML:t.name}))}))),this.currentTrek.accessibility_level&&h("div",{class:"accessibility-level-container"},h("div",{class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{class:"accessibility-slope-container"},h("div",{class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{class:"accessibility-width-container"},h("div",{class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{class:"accessibility-signage-container"},h("div",{class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{class:"accessibility-covering-container"},h("div",{class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{class:"accessibility-exposure-container"},h("div",{class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{class:"accessibility-advice-container"},h("div",{class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{innerHTML:this.currentTrek.accessibility_advice})))),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{class:"pois-title"},translate[state.language].pois(state.currentPois.length)),h("div",{class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{class:"swiper-slide"},h("grw-poi",{poi:t}))})))))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{class:"touristic-content-title"},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{class:"swiper-wrapper"},state.trekTouristicContents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-content-card",{touristicContent:t,isInsideHorizontalList:true}))})))))),state.touristicEvents&&state.touristicEvents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{class:"touristic-event-title"},translate[state.language].touristicEvents(state.touristicEvents.length)),h("div",{class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{class:"swiper-wrapper"},state.touristicEvents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-event-card",{touristicEvent:t}))})))))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"source-container"},h("div",{class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram}),h("div",null,h("div",{class:"source-name",innerHTML:t.name}),h("a",{class:"source-advice",href:t.website,innerHTML:t.website})))})))),h("div",{class:"detail-bottom-space"})))};return t}();GrwTrekDetail.style=grwTrekDetailCss;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}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTrek()};t.prototype.handleTrek=function(){var t=this;var e=[];e.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language,"&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language,"&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language,"&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language,"&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,"&fields=id,name,pictogram"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(state.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),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"),this.init),fetch("".concat(state.api,"source/?language=").concat(state.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(state.api,"poi/?language=").concat(state.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init),fetch("".concat(state.api,"informationdesk/?language=").concat(state.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,category,geometry&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"touristicevent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),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/").concat(this.trekId,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,information_desks,children"),this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],p=e[8],u=e[9],h=e[10],d=e[11],f=e[12],m=e[13],g=e[14],v=e[15],_=e[16],y=e[17];return __awaiter(t,void 0,void 0,(function(){var t,e,w,b;return __generator(this,(function(k){switch(k.label){case 0:state.trekNetworkError=false;if(!(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=k.sent();state.parentTrek=e;t.push.apply(t,e.children);k.label=3;case 3:w=[];t.forEach((function(t){w.push(fetch("".concat(state.api,"trek/").concat(t,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts")))}));b=state;return[4,Promise.all(__spreadArray([],w,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:b.currentTrekSteps=k.sent();k.label=5;case 5:if(i){state.difficulties=i.results}if(n){state.routes=n.results}if(r){state.practices=r.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){state.themes=o.results}if(a){state.cities=a.results}if(s){state.accessibilities=s.results}if(l){state.currentSensitiveAreas=l.results}state.labels=c.results;state.sources=p.results;if(u){state.accessibilitiesLevel=u.results}if(m){state.trekTouristicContents=m.results}if(g){state.touristicContentCategories=g.results}if(v){state.touristicEvents=v.results}if(_){state.touristicEventTypes=_.results}state.currentPois=h.results;state.poiTypes=d.results;state.currentInformationDesks=f.results;state.currentTrek=y;return[2]}}))}))})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();var grwTreksListCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto";width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var GrwTreksList=function(){function t(t){registerInstance(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}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(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{style:{"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{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",{class:"treks-list-container"},this.treksToDisplay.map((function(e){return h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(e.id),trek: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})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=grwTreksListCss;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}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.treksNetworkError=false};t.prototype.handleTreks=function(){var t="".concat(this.api,"trek/?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));this.routes&&(t+="&routes=".concat(this.routes));this.practices&&(t+="&practices=".concat(this.practices));t+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999";Promise.all([fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language,"&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language,"&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language,"&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language,"&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,"&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch(t,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];state.treksNetworkError=false;state.difficulties=e.results;state.routes=i.results;state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=r.results;state.cities=o.results;state.accessibilities=a.results;state.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];state.lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];state.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];state.labels=s.results;state.districts=l.results;state.treks=c.results;state.currentTreks=c.results})).catch((function(){return state.treksNetworkError=true}))};t.prototype.render=function(){return h(Host,null)};return t}();export{GrwFilters as grw_filters,GrwMap as grw_map,GrwSearch as grw_search,GrwTouristicContentDetail as grw_touristic_content_detail,GrwTouristicContentProvider as grw_touristic_content_provider,GrwTouristicContentsList as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicEventDetail as grw_touristic_event_detail,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
13
+ (function(e,i){{if(typeof i!=="undefined"&&i.L){t.exports=e(L)}else{t.exports=e(leafletSrc)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=e(L)}})((function(t){var e=function(e,i,n){n=n.split(" ");n.forEach((function(n){t.DomUtil[e].call(this,i,n)}))};var i=function(t,i){return e("addClass",t,i)};var n=function(t,i){return e("removeClass",t,i)};var r=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 n=this._getIconSVG(e,i);this._locationIcon=t.divIcon({className:n.className,html:n.svg,iconSize:[n.w,n.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(t,e){var i=t.radius;var n=t.weight;var r=i+n;var o=r*2;var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" height="').concat(o,'" version="1.1" viewBox="-').concat(r," -").concat(r," ").concat(o," ").concat(o,'">')+'<circle r="'+i+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:a,w:o,h:o}},setStyle:function(e){t.Util.setOptions(this,e);this.createIcon()}});var o=r.extend({initialize:function(e,i,n){t.Util.setOptions(this,n);this._latlng=e;this._heading=i;this.createIcon()},setHeading:function(t){this._heading=t},_getIconSVG:function(t,e){var i=t.radius;var n=t.width+t.weight;var r=(i+t.depth+t.weight)*2;var o="M0,0 l".concat(t.width/2,",").concat(t.depth," l-").concat(n,",0 z");var a="transform: rotate(".concat(this._heading,"deg)");var s='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(n,'" height="').concat(r,'" version="1.1" viewBox="-').concat(n/2," 0 ").concat(n," ").concat(r,'" style="').concat(a,'">')+'<path d="'+o+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:s,w:n,h:r}}});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:r,compassClass:o,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 n=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);n.title=i.strings.title;n.href="#";n.setAttribute("role","button");var r=t.DomUtil.create(i.iconElementTag,i.icon,n);if(i.strings.text!==undefined){var o=t.DomUtil.create(i.textElementTag,"leaflet-locate-text",n);o.textContent=i.strings.text;n.classList.add("leaflet-locate-text-active");n.parentNode.style.display="flex";if(i.icon.length>0){r.classList.add("leaflet-locate-icon")}}return{link:n,icon:r}},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 n=this.options.createButtonCallback(i,this.options);this._link=n.link;this._icon=n.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 n=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;n.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 n=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"){n()}}))}else{n()}}}},_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 n=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(i,e,n).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(e).setStyle(n)}}var r;var o;if(this.options.metric){r=e.toFixed(0);o=this.options.strings.metersUnit}else{r=(e*3.2808399).toFixed(0);o=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 s=this.options.strings.popup;function l(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:o})}else if(typeof s==="function"){return s({distance:r,unit:o})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&s&&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"){n(this._container,"active following");i(this._container,"requesting");n(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(t=="active"){n(this._container,"requesting following");i(this._container,"active");n(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(t=="following"){n(this._container,"requesting");i(this._container,"active following");n(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");n(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)}));var punycode=createCommonjsModule((function(t,e){(function(i){var n=e&&!e.nodeType&&e;var r=t&&!t.nodeType&&t;var o=typeof commonjsGlobal=="object"&&commonjsGlobal;if(o.global===o||o.window===o||o.self===o){i=o}var a,s=2147483647,l=36,c=1,p=26,u=38,h=700,d=72,f=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-c,b=Math.floor,k=String.fromCharCode,x;function A(t){throw new RangeError(y[t])}function L(t,e){var i=t.length;var n=[];while(i--){n[i]=e(t[i])}return n}function T(t,e){var i=t.split("@");var n="";if(i.length>1){n=i[0]+"@";t=i[1]}t=t.replace(_,".");var r=t.split(".");var o=L(r,e).join(".");return n+o}function C(t){var e=[],i=0,n=t.length,r,o;while(i<n){r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){o=t.charCodeAt(i++);if((o&64512)==56320){e.push(((r&1023)<<10)+(o&1023)+65536)}else{e.push(r);i--}}else{e.push(r)}}return e}function P(t){return L(t,(function(t){var e="";if(t>65535){t-=65536;e+=k(t>>>10&1023|55296);t=56320|t&1023}e+=k(t);return e})).join("")}function S(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function M(t,e){return t+22+75*(t<26)-((e!=0)<<5)}function E(t,e,i){var n=0;t=i?b(t/h):t>>1;t+=b(t/e);for(;t>w*p>>1;n+=l){t=b(t/w)}return b(n+(w+1)*t/(t+u))}function z(t){var e=[],i=t.length,n,r=0,o=f,a=d,u,h,g,v,_,y,w,k,x;u=t.lastIndexOf(m);if(u<0){u=0}for(h=0;h<u;++h){if(t.charCodeAt(h)>=128){A("not-basic")}e.push(t.charCodeAt(h))}for(g=u>0?u+1:0;g<i;){for(v=r,_=1,y=l;;y+=l){if(g>=i){A("invalid-input")}w=S(t.charCodeAt(g++));if(w>=l||w>b((s-r)/_)){A("overflow")}r+=w*_;k=y<=a?c:y>=a+p?p:y-a;if(w<k){break}x=l-k;if(_>b(s/x)){A("overflow")}_*=x}n=e.length+1;a=E(r-v,n,v==0);if(b(r/n)>s-o){A("overflow")}o+=b(r/n);r%=n;e.splice(r++,0,o)}return P(e)}function O(t){var e,i,n,r,o,a,u,h,g,v,_,y=[],w,x,L,T;t=C(t);w=t.length;e=f;i=0;o=d;for(a=0;a<w;++a){_=t[a];if(_<128){y.push(k(_))}}n=r=y.length;if(r){y.push(m)}while(n<w){for(u=s,a=0;a<w;++a){_=t[a];if(_>=e&&_<u){u=_}}x=n+1;if(u-e>b((s-i)/x)){A("overflow")}i+=(u-e)*x;e=u;for(a=0;a<w;++a){_=t[a];if(_<e&&++i>s){A("overflow")}if(_==e){for(h=i,g=l;;g+=l){v=g<=o?c:g>=o+p?p:g-o;if(h<v){break}T=h-v;L=l-v;y.push(k(M(v+T%L,0)));h=b(T/L)}y.push(k(M(h,0)));o=E(i,x,n==r);i=0;++n}}++i;++e}return y.join("")}function I(t){return T(t,(function(t){return g.test(t)?z(t.slice(4).toLowerCase()):t}))}function B(t){return T(t,(function(t){return v.test(t)?"xn--"+O(t):t}))}a={version:"1.4.1",ucs2:{decode:C,encode:P},decode:z,encode:O,toASCII:B,toUnicode:I};if(n&&r){if(t.exports==n){r.exports=a}else{for(x in a){a.hasOwnProperty(x)&&(n[x]=a[x])}}}else{i.punycode=a}})(commonjsGlobal)}));var shams=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var i=Symbol("test");var n=Object(i);if(typeof i==="string"){return false}if(Object.prototype.toString.call(i)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(n)!=="[object Symbol]"){return false}var r=42;e[i]=r;for(i in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==i){return false}if(!Object.prototype.propertyIsEnumerable.call(e,i)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var a=Object.getOwnPropertyDescriptor(e,i);if(a.value!==r||a.enumerable!==true){return false}}return true};var origSymbol=typeof Symbol!=="undefined"&&Symbol;var hasSymbols$1=function t(){if(typeof origSymbol!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof origSymbol("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return shams()};var test={foo:{}};var $Object=Object;var hasProto$1=function t(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)};var ERROR_MESSAGE="Function.prototype.bind called on incompatible ";var slice=Array.prototype.slice;var toStr$1=Object.prototype.toString;var funcType="[object Function]";var implementation=function t(e){var i=this;if(typeof i!=="function"||toStr$1.call(i)!==funcType){throw new TypeError(ERROR_MESSAGE+i)}var n=slice.call(arguments,1);var r;var o=function(){if(this instanceof r){var t=i.apply(this,n.concat(slice.call(arguments)));if(Object(t)===t){return t}return this}else{return i.apply(e,n.concat(slice.call(arguments)))}};var a=Math.max(0,i.length-n.length);var s=[];for(var l=0;l<a;l++){s.push("$"+l)}r=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(o);if(i.prototype){var c=function t(){};c.prototype=i.prototype;r.prototype=new c;c.prototype=null}return r};var functionBind=Function.prototype.bind||implementation;var src=functionBind.call(Function.call,Object.prototype.hasOwnProperty);var undefined$1;var $SyntaxError=SyntaxError;var $Function=Function;var $TypeError$1=TypeError;var getEvalledConstructor=function(t){try{return $Function('"use strict"; return ('+t+").constructor;")()}catch(e){}};var $gOPD=Object.getOwnPropertyDescriptor;var throwTypeError=function(){throw new $TypeError$1};var ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(t){try{return $gOPD(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var hasSymbols=hasSymbols$1();var hasProto=hasProto$1();var getProto=Object.getPrototypeOf||(hasProto?function(t){return t.__proto__}:null);var needsEval={};var TypedArray=typeof Uint8Array==="undefined"||!getProto?undefined$1:getProto(Uint8Array);var INTRINSICS={"%AggregateError%":typeof AggregateError==="undefined"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics==="undefined"?undefined$1:Atomics,"%BigInt%":typeof BigInt==="undefined"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array==="undefined"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==="object"?JSON:undefined$1,"%Map%":typeof Map==="undefined"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?undefined$1:Promise,"%Proxy%":typeof Proxy==="undefined"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array==="undefined"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?undefined$1:WeakSet};var doEval=function t(e){var i;if(e==="%AsyncFunction%"){i=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){i=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){i=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");if(n){i=n.prototype}}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");if(r&&getProto){i=getProto(r.prototype)}}INTRINSICS[e]=i;return i};var LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var $concat$1=functionBind.call(Function.call,Array.prototype.concat);var $spliceApply=functionBind.call(Function.apply,Array.prototype.splice);var $replace$1=functionBind.call(Function.call,String.prototype.replace);var $strSlice=functionBind.call(Function.call,String.prototype.slice);var $exec=functionBind.call(Function.call,RegExp.prototype.exec);var rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=function t(e){var i=$strSlice(e,0,1);var n=$strSlice(e,-1);if(i==="%"&&n!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`")}else if(n==="%"&&i!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`")}var r=[];$replace$1(e,rePropName,(function(t,e,i,n){r[r.length]=i?$replace$1(n,reEscapeChar,"$1"):e||t}));return r};var getBaseIntrinsic=function t(e,i){var n=e;var r;if(src(LEGACY_ALIASES,n)){r=LEGACY_ALIASES[n];n="%"+r[0]+"%"}if(src(INTRINSICS,n)){var o=INTRINSICS[n];if(o===needsEval){o=doEval(n)}if(typeof o==="undefined"&&!i){throw new $TypeError$1("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:r,name:n,value:o}}throw new $SyntaxError("intrinsic "+e+" does not exist!")};var getIntrinsic=function t(e,i){if(typeof e!=="string"||e.length===0){throw new $TypeError$1("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof i!=="boolean"){throw new $TypeError$1('"allowMissing" argument must be a boolean')}if($exec(/^%?[^%]*%?$/,e)===null){throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var n=stringToPath(e);var r=n.length>0?n[0]:"";var o=getBaseIntrinsic("%"+r+"%",i);var a=o.name;var s=o.value;var l=false;var c=o.alias;if(c){r=c[0];$spliceApply(n,$concat$1([0,1],c))}for(var p=1,u=true;p<n.length;p+=1){var h=n[p];var d=$strSlice(h,0,1);var f=$strSlice(h,-1);if((d==='"'||d==="'"||d==="`"||(f==='"'||f==="'"||f==="`"))&&d!==f){throw new $SyntaxError("property names with quotes must have matching quotes")}if(h==="constructor"||!u){l=true}r+="."+h;a="%"+r+"%";if(src(INTRINSICS,a)){s=INTRINSICS[a]}else if(s!=null){if(!(h in s)){if(!i){throw new $TypeError$1("base intrinsic for "+e+" exists, but the property is not available.")}return void undefined$1}if($gOPD&&p+1>=n.length){var m=$gOPD(s,h);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){s=m.get}else{s=s[h]}}else{u=src(s,h);s=s[h]}if(u&&!l){INTRINSICS[a]=s}}}return s};var callBind=createCommonjsModule((function(t){var e=getIntrinsic("%Function.prototype.apply%");var i=getIntrinsic("%Function.prototype.call%");var n=getIntrinsic("%Reflect.apply%",true)||functionBind.call(i,e);var r=getIntrinsic("%Object.getOwnPropertyDescriptor%",true);var o=getIntrinsic("%Object.defineProperty%",true);var a=getIntrinsic("%Math.max%");if(o){try{o({},"a",{value:1})}catch(l){o=null}}t.exports=function t(e){var s=n(functionBind,i,arguments);if(r&&o){var l=r(s,"length");if(l.configurable){o(s,"length",{value:1+a(0,e.length-(arguments.length-1))})}}return s};var s=function t(){return n(functionBind,e,arguments)};if(o){o(t.exports,"apply",{value:s})}else{t.exports.apply=s}}));var $indexOf=callBind(getIntrinsic("String.prototype.indexOf"));var callBound=function t(e,i){var n=getIntrinsic(e,!!i);if(typeof n==="function"&&$indexOf(e,".prototype.")>-1){return callBind(n)}return n};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var utilInspect=getAugmentedNamespace(_nodeResolve_empty$1);var hasMap=typeof Map==="function"&&Map.prototype;var mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get==="function"?mapSizeDescriptor.get:null;var mapForEach=hasMap&&Map.prototype.forEach;var hasSet=typeof Set==="function"&&Set.prototype;var setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get==="function"?setSizeDescriptor.get:null;var setForEach=hasSet&&Set.prototype.forEach;var hasWeakMap=typeof WeakMap==="function"&&WeakMap.prototype;var weakMapHas=hasWeakMap?WeakMap.prototype.has:null;var hasWeakSet=typeof WeakSet==="function"&&WeakSet.prototype;var weakSetHas=hasWeakSet?WeakSet.prototype.has:null;var hasWeakRef=typeof WeakRef==="function"&&WeakRef.prototype;var weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null;var booleanValueOf=Boolean.prototype.valueOf;var objectToString=Object.prototype.toString;var functionToString=Function.prototype.toString;var $match=String.prototype.match;var $slice=String.prototype.slice;var $replace=String.prototype.replace;var $toUpperCase=String.prototype.toUpperCase;var $toLowerCase=String.prototype.toLowerCase;var $test=RegExp.prototype.test;var $concat=Array.prototype.concat;var $join=Array.prototype.join;var $arrSlice=Array.prototype.slice;var $floor=Math.floor;var bigIntValueOf=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gOPS=Object.getOwnPropertySymbols;var symToString=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var hasShammedSymbols=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var toStringTag=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols?"object":"symbol")?Symbol.toStringTag:null;var isEnumerable=Object.prototype.propertyIsEnumerable;var gPO=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function addNumericSeparator(t,e){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||$test.call(/e/,e)){return e}var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var n=t<0?-$floor(-t):$floor(t);if(n!==t){var r=String(n);var o=$slice.call(e,r.length+1);return $replace.call(r,i,"$&_")+"."+$replace.call($replace.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(e,i,"$&_")}var inspectCustom=utilInspect.custom;var inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null;var objectInspect=function t(e,i,n,r){var o=i||{};if(has$3(o,"quoteStyle")&&(o.quoteStyle!=="single"&&o.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has$3(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var a=has$3(o,"customInspect")?o.customInspect:true;if(typeof a!=="boolean"&&a!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has$3(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has$3(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var s=o.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,o)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var l=String(e);return s?addNumericSeparator(e,l):l}if(typeof e==="bigint"){var c=String(e)+"n";return s?addNumericSeparator(e,c):c}var p=typeof o.depth==="undefined"?5:o.depth;if(typeof n==="undefined"){n=0}if(n>=p&&p>0&&typeof e==="object"){return isArray$3(e)?"[Array]":"[Object]"}var u=getIndent(o,n);if(typeof r==="undefined"){r=[]}else if(indexOf(r,e)>=0){return"[Circular]"}function h(e,i,a){if(i){r=$arrSlice.call(r);r.push(i)}if(a){var s={depth:o.depth};if(has$3(o,"quoteStyle")){s.quoteStyle=o.quoteStyle}return t(e,s,n+1,r)}return t(e,o,n+1,r)}if(typeof e==="function"&&!isRegExp$1(e)){var d=nameOf(e);var f=arrObjKeys(e,h);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(e)){var m=hasShammedSymbols?$replace.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(e);return typeof e==="object"&&!hasShammedSymbols?markBoxed(m):m}if(isElement(e)){var g="<"+$toLowerCase.call(String(e.nodeName));var v=e.attributes||[];for(var _=0;_<v.length;_++){g+=" "+v[_].name+"="+wrapQuotes(quote(v[_].value),"double",o)}g+=">";if(e.childNodes&&e.childNodes.length){g+="..."}g+="</"+$toLowerCase.call(String(e.nodeName))+">";return g}if(isArray$3(e)){if(e.length===0){return"[]"}var y=arrObjKeys(e,h);if(u&&!singleLineValues(y)){return"["+indentedJoin(y,u)+"]"}return"[ "+$join.call(y,", ")+" ]"}if(isError(e)){var w=arrObjKeys(e,h);if(!("cause"in Error.prototype)&&"cause"in e&&!isEnumerable.call(e,"cause")){return"{ ["+String(e)+"] "+$join.call($concat.call("[cause]: "+h(e.cause),w),", ")+" }"}if(w.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+$join.call(w,", ")+" }"}if(typeof e==="object"&&a){if(inspectSymbol&&typeof e[inspectSymbol]==="function"&&utilInspect){return utilInspect(e,{depth:p-n})}else if(a!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var b=[];if(mapForEach){mapForEach.call(e,(function(t,i){b.push(h(i,e,true)+" => "+h(t,e))}))}return collectionOf("Map",mapSize.call(e),b,u)}if(isSet(e)){var k=[];if(setForEach){setForEach.call(e,(function(t){k.push(h(t,e))}))}return collectionOf("Set",setSize.call(e),k,u)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(h(Number(e)))}if(isBigInt(e)){return markBoxed(h(bigIntValueOf.call(e)))}if(isBoolean(e)){return markBoxed(booleanValueOf.call(e))}if(isString(e)){return markBoxed(h(String(e)))}if(!isDate(e)&&!isRegExp$1(e)){var x=arrObjKeys(e,h);var A=gPO?gPO(e)===Object.prototype:e instanceof Object||e.constructor===Object;var L=e instanceof Object?"":"null prototype";var T=!A&&toStringTag&&Object(e)===e&&toStringTag in e?$slice.call(toStr(e),8,-1):L?"Object":"";var C=A||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var P=C+(T||L?"["+$join.call($concat.call([],T||[],L||[]),": ")+"] ":"");if(x.length===0){return P+"{}"}if(u){return P+"{"+indentedJoin(x,u)+"}"}return P+"{ "+$join.call(x,", ")+" }"}return String(e)};function wrapQuotes(t,e,i){var n=(i.quoteStyle||e)==="double"?'"':"'";return n+t+n}function quote(t){return $replace.call(String(t),/"/g,"&quot;")}function isArray$3(t){return toStr(t)==="[object Array]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isDate(t){return toStr(t)==="[object Date]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isRegExp$1(t){return toStr(t)==="[object RegExp]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isError(t){return toStr(t)==="[object Error]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isString(t){return toStr(t)==="[object String]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isNumber(t){return toStr(t)==="[object Number]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isBoolean(t){return toStr(t)==="[object Boolean]"&&(!toStringTag||!(typeof t==="object"&&toStringTag in t))}function isSymbol(t){if(hasShammedSymbols){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!symToString){return false}try{symToString.call(t);return true}catch(e){}return false}function isBigInt(t){if(!t||typeof t!=="object"||!bigIntValueOf){return false}try{bigIntValueOf.call(t);return true}catch(e){}return false}var hasOwn=Object.prototype.hasOwnProperty||function(t){return t in this};function has$3(t,e){return hasOwn.call(t,e)}function toStr(t){return objectToString.call(t)}function nameOf(t){if(t.name){return t.name}var e=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);if(e){return e[1]}return null}function indexOf(t,e){if(t.indexOf){return t.indexOf(e)}for(var i=0,n=t.length;i<n;i++){if(t[i]===e){return i}}return-1}function isMap(t){if(!mapSize||!t||typeof t!=="object"){return false}try{mapSize.call(t);try{setSize.call(t)}catch(e){return true}return t instanceof Map}catch(i){}return false}function isWeakMap(t){if(!weakMapHas||!t||typeof t!=="object"){return false}try{weakMapHas.call(t,weakMapHas);try{weakSetHas.call(t,weakSetHas)}catch(e){return true}return t instanceof WeakMap}catch(i){}return false}function isWeakRef(t){if(!weakRefDeref||!t||typeof t!=="object"){return false}try{weakRefDeref.call(t);return true}catch(e){}return false}function isSet(t){if(!setSize||!t||typeof t!=="object"){return false}try{setSize.call(t);try{mapSize.call(t)}catch(e){return true}return t instanceof Set}catch(i){}return false}function isWeakSet(t){if(!weakSetHas||!t||typeof t!=="object"){return false}try{weakSetHas.call(t,weakSetHas);try{weakMapHas.call(t,weakMapHas)}catch(e){return true}return t instanceof WeakSet}catch(i){}return false}function isElement(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function inspectString(t,e){if(t.length>e.maxStringLength){var i=t.length-e.maxStringLength;var n="... "+i+" more character"+(i>1?"s":"");return inspectString($slice.call(t,0,e.maxStringLength),e)+n}var r=$replace.call($replace.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(r,"single",e)}function lowbyte(t){var e=t.charCodeAt(0);var i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];if(i){return"\\"+i}return"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,e,i,n){var r=n?indentedJoin(i,n):$join.call(i,", ");return t+" ("+e+") {"+r+"}"}function singleLineValues(t){for(var e=0;e<t.length;e++){if(indexOf(t[e],"\n")>=0){return false}}return true}function getIndent(t,e){var i;if(t.indent==="\t"){i="\t"}else if(typeof t.indent==="number"&&t.indent>0){i=$join.call(Array(t.indent+1)," ")}else{return null}return{base:i,prev:$join.call(Array(e+1),i)}}function indentedJoin(t,e){if(t.length===0){return""}var i="\n"+e.prev+e.base;return i+$join.call(t,","+i)+"\n"+e.prev}function arrObjKeys(t,e){var i=isArray$3(t);var n=[];if(i){n.length=t.length;for(var r=0;r<t.length;r++){n[r]=has$3(t,r)?e(t[r],t):""}}var o=typeof gOPS==="function"?gOPS(t):[];var a;if(hasShammedSymbols){a={};for(var s=0;s<o.length;s++){a["$"+o[s]]=o[s]}}for(var l in t){if(!has$3(t,l)){continue}if(i&&String(Number(l))===l&&l<t.length){continue}if(hasShammedSymbols&&a["$"+l]instanceof Symbol){continue}else if($test.call(/[^\w$]/,l)){n.push(e(l,t)+": "+e(t[l],t))}else{n.push(l+": "+e(t[l],t))}}if(typeof gOPS==="function"){for(var c=0;c<o.length;c++){if(isEnumerable.call(t,o[c])){n.push("["+e(o[c])+"]: "+e(t[o[c]],t))}}}return n}var $TypeError=getIntrinsic("%TypeError%");var $WeakMap=getIntrinsic("%WeakMap%",true);var $Map=getIntrinsic("%Map%",true);var $weakMapGet=callBound("WeakMap.prototype.get",true);var $weakMapSet=callBound("WeakMap.prototype.set",true);var $weakMapHas=callBound("WeakMap.prototype.has",true);var $mapGet=callBound("Map.prototype.get",true);var $mapSet=callBound("Map.prototype.set",true);var $mapHas=callBound("Map.prototype.has",true);var listGetNode=function(t,e){for(var i=t,n;(n=i.next)!==null;i=n){if(n.key===e){i.next=n.next;n.next=t.next;t.next=n;return n}}};var listGet=function(t,e){var i=listGetNode(t,e);return i&&i.value};var listSet=function(t,e,i){var n=listGetNode(t,e);if(n){n.value=i}else{t.next={key:e,next:t.next,value:i}}};var listHas=function(t,e){return!!listGetNode(t,e)};var sideChannel=function t(){var e;var i;var n;var r={assert:function(t){if(!r.has(t)){throw new $TypeError("Side channel does not contain "+objectInspect(t))}},get:function(t){if($WeakMap&&t&&(typeof t==="object"||typeof t==="function")){if(e){return $weakMapGet(e,t)}}else if($Map){if(i){return $mapGet(i,t)}}else{if(n){return listGet(n,t)}}},has:function(t){if($WeakMap&&t&&(typeof t==="object"||typeof t==="function")){if(e){return $weakMapHas(e,t)}}else if($Map){if(i){return $mapHas(i,t)}}else{if(n){return listHas(n,t)}}return false},set:function(t,r){if($WeakMap&&t&&(typeof t==="object"||typeof t==="function")){if(!e){e=new $WeakMap}$weakMapSet(e,t,r)}else if($Map){if(!i){i=new $Map}$mapSet(i,t,r)}else{if(!n){n={key:{},next:null}}listSet(n,t,r)}}};return r};var replace=String.prototype.replace;var percentTwenties=/%20/g;var Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};var formats={default:Format.RFC3986,formatters:{RFC1738:function(t){return replace.call(t,percentTwenties,"+")},RFC3986:function(t){return String(t)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};var has$2=Object.prototype.hasOwnProperty;var isArray$2=Array.isArray;var hexTable=function(){var t=[];for(var e=0;e<256;++e){t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase())}return t}();var compactQueue=function t(e){while(e.length>1){var i=e.pop();var n=i.obj[i.prop];if(isArray$2(n)){var r=[];for(var o=0;o<n.length;++o){if(typeof n[o]!=="undefined"){r.push(n[o])}}i.obj[i.prop]=r}}};var arrayToObject=function t(e,i){var n=i&&i.plainObjects?Object.create(null):{};for(var r=0;r<e.length;++r){if(typeof e[r]!=="undefined"){n[r]=e[r]}}return n};var merge=function t(e,i,n){if(!i){return e}if(typeof i!=="object"){if(isArray$2(e)){e.push(i)}else if(e&&typeof e==="object"){if(n&&(n.plainObjects||n.allowPrototypes)||!has$2.call(Object.prototype,i)){e[i]=true}}else{return[e,i]}return e}if(!e||typeof e!=="object"){return[e].concat(i)}var r=e;if(isArray$2(e)&&!isArray$2(i)){r=arrayToObject(e,n)}if(isArray$2(e)&&isArray$2(i)){i.forEach((function(i,r){if(has$2.call(e,r)){var o=e[r];if(o&&typeof o==="object"&&i&&typeof i==="object"){e[r]=t(o,i,n)}else{e.push(i)}}else{e[r]=i}}));return e}return Object.keys(i).reduce((function(e,r){var o=i[r];if(has$2.call(e,r)){e[r]=t(e[r],o,n)}else{e[r]=o}return e}),r)};var assign=function t(e,i){return Object.keys(i).reduce((function(t,e){t[e]=i[e];return t}),e)};var decode=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(r){return n}};var encode=function t(e,i,n,r,o){if(e.length===0){return e}var a=e;if(typeof e==="symbol"){a=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){a=String(e)}if(n==="iso-8859-1"){return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var s="";for(var l=0;l<a.length;++l){var c=a.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===formats.RFC1738&&(c===40||c===41)){s+=a.charAt(l);continue}if(c<128){s=s+hexTable[c];continue}if(c<2048){s=s+(hexTable[192|c>>6]+hexTable[128|c&63]);continue}if(c<55296||c>=57344){s=s+(hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|a.charCodeAt(l)&1023);s+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|c&63]}return s};var compact=function t(e){var i=[{obj:{o:e},prop:"o"}];var n=[];for(var r=0;r<i.length;++r){var o=i[r];var a=o.obj[o.prop];var s=Object.keys(a);for(var l=0;l<s.length;++l){var c=s[l];var p=a[c];if(typeof p==="object"&&p!==null&&n.indexOf(p)===-1){i.push({obj:a,prop:c});n.push(p)}}}compactQueue(i);return e};var isRegExp=function t(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var isBuffer=function t(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var combine=function t(e,i){return[].concat(e,i)};var maybeMap=function t(e,i){if(isArray$2(e)){var n=[];for(var r=0;r<e.length;r+=1){n.push(i(e[r]))}return n}return i(e)};var utils={arrayToObject:arrayToObject,assign:assign,combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isRegExp:isRegExp,maybeMap:maybeMap,merge:merge};var has$1=Object.prototype.hasOwnProperty;var arrayPrefixGenerators={brackets:function t(e){return e+"[]"},comma:"comma",indices:function t(e,i){return e+"["+i+"]"},repeat:function t(e){return e}};var isArray$1=Array.isArray;var push=Array.prototype.push;var pushToArray=function(t,e){push.apply(t,isArray$1(e)?e:[e])};var toISO=Date.prototype.toISOString;var defaultFormat=formats["default"];var defaults$1={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:utils.encode,encodeValuesOnly:false,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:false,serializeDate:function t(e){return toISO.call(e)},skipNulls:false,strictNullHandling:false};var isNonNullishPrimitive=function t(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var sentinel={};var stringify=function t(e,i,n,r,o,a,s,l,c,p,u,h,d,f,m,g){var v=e;var _=g;var y=0;var w=false;while((_=_.get(sentinel))!==void undefined&&!w){var b=_.get(e);y+=1;if(typeof b!=="undefined"){if(b===y){throw new RangeError("Cyclic object value")}else{w=true}}if(typeof _.get(sentinel)==="undefined"){y=0}}if(typeof l==="function"){v=l(i,v)}else if(v instanceof Date){v=u(v)}else if(n==="comma"&&isArray$1(v)){v=utils.maybeMap(v,(function(t){if(t instanceof Date){return u(t)}return t}))}if(v===null){if(o){return s&&!f?s(i,defaults$1.encoder,m,"key",h):i}v=""}if(isNonNullishPrimitive(v)||utils.isBuffer(v)){if(s){var k=f?i:s(i,defaults$1.encoder,m,"key",h);return[d(k)+"="+d(s(v,defaults$1.encoder,m,"value",h))]}return[d(i)+"="+d(String(v))]}var x=[];if(typeof v==="undefined"){return x}var A;if(n==="comma"&&isArray$1(v)){if(f&&s){v=utils.maybeMap(v,s)}A=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(isArray$1(l)){A=l}else{var L=Object.keys(v);A=c?L.sort(c):L}var T=r&&isArray$1(v)&&v.length===1?i+"[]":i;for(var C=0;C<A.length;++C){var P=A[C];var S=typeof P==="object"&&typeof P.value!=="undefined"?P.value:v[P];if(a&&S===null){continue}var M=isArray$1(v)?typeof n==="function"?n(T,P):T:T+(p?"."+P:"["+P+"]");g.set(e,y);var E=sideChannel();E.set(sentinel,g);pushToArray(x,t(S,M,n,r,o,a,n==="comma"&&f&&isArray$1(v)?null:s,l,c,p,u,h,d,f,m,E))}return x};var normalizeStringifyOptions=function t(e){if(!e){return defaults$1}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var i=e.charset||defaults$1.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var n=formats["default"];if(typeof e.format!=="undefined"){if(!has$1.call(formats.formatters,e.format)){throw new TypeError("Unknown format option provided.")}n=e.format}var r=formats.formatters[n];var o=defaults$1.filter;if(typeof e.filter==="function"||isArray$1(e.filter)){o=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?defaults$1.allowDots:!!e.allowDots,charset:i,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?defaults$1.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:defaults$1.encode,encoder:typeof e.encoder==="function"?e.encoder:defaults$1.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:defaults$1.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:defaults$1.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:defaults$1.strictNullHandling}};var stringify_1=function(t,e){var i=t;var n=normalizeStringifyOptions(e);var r;var o;if(typeof n.filter==="function"){o=n.filter;i=o("",i)}else if(isArray$1(n.filter)){o=n.filter;r=o}var a=[];if(typeof i!=="object"||i===null){return""}var s;if(e&&e.arrayFormat in arrayPrefixGenerators){s=e.arrayFormat}else if(e&&"indices"in e){s=e.indices?"indices":"repeat"}else{s="indices"}var l=arrayPrefixGenerators[s];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&e&&e.commaRoundTrip;if(!r){r=Object.keys(i)}if(n.sort){r.sort(n.sort)}var p=sideChannel();for(var u=0;u<r.length;++u){var h=r[u];if(n.skipNulls&&i[h]===null){continue}pushToArray(a,stringify(i[h],h,l,c,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var d=a.join(n.delimiter);var f=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){f+="utf8=%26%2310003%3B&"}else{f+="utf8=%E2%9C%93&"}}return d.length>0?f+d:""};var has=Object.prototype.hasOwnProperty;var isArray=Array.isArray;var defaults={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))};var parseArrayValue=function(t,e){if(t&&typeof t==="string"&&e.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var isoSentinel="utf8=%26%2310003%3B";var charsetSentinel="utf8=%E2%9C%93";var parseValues=function t(e,i){var n={__proto__:null};var r=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;var o=i.parameterLimit===Infinity?undefined:i.parameterLimit;var a=r.split(i.delimiter,o);var s=-1;var l;var c=i.charset;if(i.charsetSentinel){for(l=0;l<a.length;++l){if(a[l].indexOf("utf8=")===0){if(a[l]===charsetSentinel){c="utf-8"}else if(a[l]===isoSentinel){c="iso-8859-1"}s=l;l=a.length}}}for(l=0;l<a.length;++l){if(l===s){continue}var p=a[l];var u=p.indexOf("]=");var h=u===-1?p.indexOf("="):u+1;var d,f;if(h===-1){d=i.decoder(p,defaults.decoder,c,"key");f=i.strictNullHandling?null:""}else{d=i.decoder(p.slice(0,h),defaults.decoder,c,"key");f=utils.maybeMap(parseArrayValue(p.slice(h+1),i),(function(t){return i.decoder(t,defaults.decoder,c,"value")}))}if(f&&i.interpretNumericEntities&&c==="iso-8859-1"){f=interpretNumericEntities(f)}if(p.indexOf("[]=")>-1){f=isArray(f)?[f]:f}if(has.call(n,d)){n[d]=utils.combine(n[d],f)}else{n[d]=f}}return n};var parseObject=function(t,e,i,n){var r=n?e:parseArrayValue(e,i);for(var o=t.length-1;o>=0;--o){var a;var s=t[o];if(s==="[]"&&i.parseArrays){a=[].concat(r)}else{a=i.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(l,10);if(!i.parseArrays&&l===""){a={0:r}}else if(!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){a=[];a[c]=r}else if(l!=="__proto__"){a[l]=r}}r=a}return r};var parseKeys=function t(e,i,n,r){if(!e){return}var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var a=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var l=n.depth>0&&a.exec(o);var c=l?o.slice(0,l.index):o;var p=[];if(c){if(!n.plainObjects&&has.call(Object.prototype,c)){if(!n.allowPrototypes){return}}p.push(c)}var u=0;while(n.depth>0&&(l=s.exec(o))!==null&&u<n.depth){u+=1;if(!n.plainObjects&&has.call(Object.prototype,l[1].slice(1,-1))){if(!n.allowPrototypes){return}}p.push(l[1])}if(l){p.push("["+o.slice(l.index)+"]")}return parseObject(p,i,n,r)};var normalizeParseOptions=function t(e){if(!e){return defaults}if(e.decoder!==null&&e.decoder!==undefined&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var i=typeof e.charset==="undefined"?defaults.charset:e.charset;return{allowDots:typeof e.allowDots==="undefined"?defaults.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:defaults.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:defaults.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:defaults.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:defaults.comma,decoder:typeof e.decoder==="function"?e.decoder:defaults.decoder,delimiter:typeof e.delimiter==="string"||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:defaults.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:defaults.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:defaults.plainObjects,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:defaults.strictNullHandling}};var parse$1=function(t,e){var i=normalizeParseOptions(e);if(t===""||t===null||typeof t==="undefined"){return i.plainObjects?Object.create(null):{}}var n=typeof t==="string"?parseValues(t,i):t;var r=i.plainObjects?Object.create(null):{};var o=Object.keys(n);for(var a=0;a<o.length;++a){var s=o[a];var l=parseKeys(s,n[s],i,typeof t==="string");r=utils.merge(r,l,i)}if(i.allowSparse===true){return r}return utils.compact(r)};var lib={formats:formats,parse:parse$1,stringify:stringify_1};function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:true,"javascript:":true},hostlessProtocol={javascript:true,"javascript:":true},slashedProtocol={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function urlParse(t,e,i){if(t&&typeof t==="object"&&t instanceof Url){return t}var n=new Url;n.parse(t,e,i);return n}Url.prototype.parse=function(t,e,i){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var n=t.indexOf("?"),r=n!==-1&&n<t.indexOf("#")?"?":"#",o=t.split(r),a=/\\/g;o[0]=o[0].replace(a,"/");t=o.join(r);var s=t;s=s.trim();if(!i&&t.split("#").length===1){var l=simplePathPattern.exec(s);if(l){this.path=s;this.href=s;this.pathname=l[1];if(l[2]){this.search=l[2];if(e){this.query=lib.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(e){this.search="";this.query={}}return this}}var c=protocolPattern.exec(s);if(c){c=c[0];var p=c.toLowerCase();this.protocol=p;s=s.substr(c.length)}if(i||c||s.match(/^\/\/[^@/]+@[^@/]+/)){var u=s.substr(0,2)==="//";if(u&&!(c&&hostlessProtocol[c])){s=s.substr(2);this.slashes=true}}if(!hostlessProtocol[c]&&(u||c&&!slashedProtocol[c])){var h=-1;for(var d=0;d<hostEndingChars.length;d++){var f=s.indexOf(hostEndingChars[d]);if(f!==-1&&(h===-1||f<h)){h=f}}var m,g;if(h===-1){g=s.lastIndexOf("@")}else{g=s.lastIndexOf("@",h)}if(g!==-1){m=s.slice(0,g);s=s.slice(g+1);this.auth=decodeURIComponent(m)}h=-1;for(var d=0;d<nonHostChars.length;d++){var f=s.indexOf(nonHostChars[d]);if(f!==-1&&(h===-1||f<h)){h=f}}if(h===-1){h=s.length}this.host=s.slice(0,h);s=s.slice(h);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var _=this.hostname.split(/\./);for(var d=0,y=_.length;d<y;d++){var w=_[d];if(!w){continue}if(!w.match(hostnamePartPattern)){var b="";for(var k=0,x=w.length;k<x;k++){if(w.charCodeAt(k)>127){b+="x"}else{b+=w[k]}}if(!b.match(hostnamePartPattern)){var A=_.slice(0,d);var L=_.slice(d+1);var T=w.match(hostnamePartStart);if(T){A.push(T[1]);L.unshift(T[2])}if(L.length){s="/"+L.join(".")+s}this.hostname=A.join(".");break}}}}if(this.hostname.length>hostnameMaxLen){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=punycode.toASCII(this.hostname)}var C=this.port?":"+this.port:"";var P=this.hostname||"";this.host=P+C;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(s[0]!=="/"){s="/"+s}}}if(!unsafeProtocol[p]){for(var d=0,y=autoEscape.length;d<y;d++){var S=autoEscape[d];if(s.indexOf(S)===-1){continue}var M=encodeURIComponent(S);if(M===S){M=escape(S)}s=s.split(S).join(M)}}var E=s.indexOf("#");if(E!==-1){this.hash=s.substr(E);s=s.slice(0,E)}var z=s.indexOf("?");if(z!==-1){this.search=s.substr(z);this.query=s.substr(z+1);if(e){this.query=lib.parse(this.query)}s=s.slice(0,z)}else if(e){this.search="";this.query={}}if(s){this.pathname=s}if(slashedProtocol[p]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var C=this.pathname||"";var O=this.search||"";this.path=C+O}this.href=this.format();return this};function urlFormat(t){if(typeof t==="string"){t=urlParse(t)}if(!(t instanceof Url)){return Url.prototype.format.call(t)}return t.format()}Url.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var e=this.protocol||"",i=this.pathname||"",n=this.hash||"",r=false,o="";if(this.host){r=t+this.host}else if(this.hostname){r=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){r+=":"+this.port}}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length){o=lib.stringify(this.query)}var a=this.search||o&&"?"+o||"";if(e&&e.substr(-1)!==":"){e+=":"}if(this.slashes||(!e||slashedProtocol[e])&&r!==false){r="//"+(r||"");if(i&&i.charAt(0)!=="/"){i="/"+i}}else if(!r){r=""}if(n&&n.charAt(0)!=="#"){n="#"+n}if(a&&a.charAt(0)!=="?"){a="?"+a}i=i.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));a=a.replace("#","%23");return e+r+i+a+n};function urlResolve(t,e){return urlParse(t,false,true).resolve(e)}Url.prototype.resolve=function(t){return this.resolveObject(urlParse(t,false,true)).format()};function urlResolveObject(t,e){if(!t){return e}return urlParse(t,false,true).resolveObject(e)}Url.prototype.resolveObject=function(t){if(typeof t==="string"){var e=new Url;e.parse(t,false,true);t=e}var i=new Url;var n=Object.keys(this);for(var r=0;r<n.length;r++){var o=n[r];i[o]=this[o]}i.hash=t.hash;if(t.href===""){i.href=i.format();return i}if(t.slashes&&!t.protocol){var a=Object.keys(t);for(var s=0;s<a.length;s++){var l=a[s];if(l!=="protocol"){i[l]=t[l]}}if(slashedProtocol[i.protocol]&&i.hostname&&!i.pathname){i.pathname="/";i.path=i.pathname}i.href=i.format();return i}if(t.protocol&&t.protocol!==i.protocol){if(!slashedProtocol[t.protocol]){var c=Object.keys(t);for(var p=0;p<c.length;p++){var u=c[p];i[u]=t[u]}i.href=i.format();return i}i.protocol=t.protocol;if(!t.host&&!hostlessProtocol[t.protocol]){var h=(t.pathname||"").split("/");while(h.length&&!(t.host=h.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(h[0]!==""){h.unshift("")}if(h.length<2){h.unshift("")}i.pathname=h.join("/")}else{i.pathname=t.pathname}i.search=t.search;i.query=t.query;i.host=t.host||"";i.auth=t.auth;i.hostname=t.hostname||t.host;i.port=t.port;if(i.pathname||i.search){var d=i.pathname||"";var f=i.search||"";i.path=d+f}i.slashes=i.slashes||t.slashes;i.href=i.format();return i}var m=i.pathname&&i.pathname.charAt(0)==="/",g=t.host||t.pathname&&t.pathname.charAt(0)==="/",v=g||m||i.host&&t.pathname,_=v,y=i.pathname&&i.pathname.split("/")||[],h=t.pathname&&t.pathname.split("/")||[],w=i.protocol&&!slashedProtocol[i.protocol];if(w){i.hostname="";i.port=null;if(i.host){if(y[0]===""){y[0]=i.host}else{y.unshift(i.host)}}i.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(h[0]===""){h[0]=t.host}else{h.unshift(t.host)}}t.host=null}v=v&&(h[0]===""||y[0]==="")}if(g){i.host=t.host||t.host===""?t.host:i.host;i.hostname=t.hostname||t.hostname===""?t.hostname:i.hostname;i.search=t.search;i.query=t.query;y=h}else if(h.length){if(!y){y=[]}y.pop();y=y.concat(h);i.search=t.search;i.query=t.query}else if(t.search!=null){if(w){i.host=y.shift();i.hostname=i.host;var b=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(b){i.auth=b.shift();i.hostname=b.shift();i.host=i.hostname}}i.search=t.search;i.query=t.query;if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.href=i.format();return i}if(!y.length){i.pathname=null;if(i.search){i.path="/"+i.search}else{i.path=null}i.href=i.format();return i}var k=y.slice(-1)[0];var x=(i.host||t.host||y.length>1)&&(k==="."||k==="..")||k==="";var A=0;for(var L=y.length;L>=0;L--){k=y[L];if(k==="."){y.splice(L,1)}else if(k===".."){y.splice(L,1);A++}else if(A){y.splice(L,1);A--}}if(!v&&!_){for(;A--;A){y.unshift("..")}}if(v&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")){y.unshift("")}if(x&&y.join("/").substr(-1)!=="/"){y.push("")}var T=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(w){i.hostname=T?"":y.length?y.shift():"";i.host=i.hostname;var b=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(b){i.auth=b.shift();i.hostname=b.shift();i.host=i.hostname}}v=v||i.host&&y.length;if(v&&!T){y.unshift("")}if(y.length>0){i.pathname=y.join("/")}else{i.pathname=null;i.path=null}if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.auth=t.auth||i.auth;i.slashes=i.slashes||t.slashes;i.href=i.format();return i};Url.prototype.parseHost=function(){var t=this.host;var e=portPattern.exec(t);if(e){e=e[0];if(e!==":"){this.port=e.substr(1)}t=t.substr(0,t.length-e.length)}if(t){this.hostname=t}};var parse=urlParse;var resolve=urlResolve;var resolveObject=urlResolveObject;var format=urlFormat;var Url_1=Url;var url={parse:parse,resolve:resolve,resolveObject:resolveObject,format:format,Url:Url_1};!function(t){t()}((function(){var t={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},e=6e4,i=60*e,n=24*i;function r(t,e){return new URL(t,t.startsWith("../")||t.startsWith("./")?e:void 0).toString()}function o(t,e){var i=m("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),n=document.body;n.appendChild(i),i.click(),n.removeChild(i)}function a(t,e,i){var n=this;return t&&function(r){var o=r.props,a=r.point,l=r.id,c=r.isMulti;if(o)for(var p=0,u=t;p<u.length;p++){var h=u[p];if(h in o){a.meta[e]=(i||s).call(n,c?o[h][c]:o[h],l);break}}}}var s=function(t,e){return parseInt("object"==typeof t?t[e]:t)},l=function(t,e){return t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))},c=function(t,e){return t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))},p=function(t,e,i){return(i?l:c)(t,e)},u=function(t,e,i){return e&&c(t,e)||i&&l(t,i)},h=function(t,e,i){return void 0===i&&L.DomUtil.getStyle(t,e)||t.style.setProperty(e,i)},d=function(t,e){for(var i in e)t.setAttribute(i,e[i])},f=function(t,e,i,n){return t[n?"on":"off"](e,i)},m=function(t,e,i,n){var r=L.DomUtil.create(t,e||"");return i&&d(r,i),n&&g(n,r),r},g=function(t,e){return t.appendChild(e)},v=function(t,e,i){return t.insertAdjacentElement(i,e)},_=function(t,e){return(e||document).querySelector(t)},y=function(t,e){for(var i in t)e(t[i],i)},w=function(){return Math.random().toString(36).substr(2,9)},b=L.DomEvent,k=b.on,x=b.off,A=L.Util,T=A.throttle,C=A.wrapNum,P=L.DomUtil.hasClass,S=L.Util.formatNum,M=function(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t},E=function(t,e,i){return Math.abs(t-e)>i?e+i*Math.sign(t-e):t};function z(t,e,i){if(e===void 0){e=[]}if(i===void 0){i=[]}switch(!t||typeof t){case"object":var n=i.filter((function(e){return t===e.original}))[0];if(n)return n.copy;var r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return i.push({original:t,copy:r}),Object.getOwnPropertyNames(t).forEach((function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:e.includes(n)?o.value:z(o.value,e,i)})})),r;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var O=Object.freeze({__proto__:null,Colors:t,addClass:l,append:g,clamp:M,cloneDeep:z,coordPropsToMeta:a,create:m,drawCanvas:function(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()},each:y,formatDate:function(t){return t?"time"==t?function(t){return new Date(t).toLocaleTimeString()}:"date"==t?function(t){return new Date(t).toLocaleDateString()}:function(e){return t(e)}:function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")}},formatTime:function(t){var r=Math.floor(t/n),o=Math.floor((t-r*n)/i),a=Math.floor((t-r*n-o*i)/e),s=Math.round((t-r*n-o*i-a*e)/1e3);return 60===s&&(a++,s=0),60===a&&(o++,a=0),24===o&&(r++,o=0),(r?r+"d ":"")+o.toString().padStart(2,0)+":"+a.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'},hasClass:P,iAvg:function(t,e,i){if(e===void 0){e=0}if(i===void 0){i=1}return(t+e*(i-1))/i},iMax:function(t,e){if(e===void 0){e=-1/0}return t>e?t:e},iMin:function(t,e){if(e===void 0){e=1/0}return t<e?t:e},iSum:function(t,e){if(e===void 0){e=0}return t+e},insert:v,off:x,on:k,parseDate:function(t,e){return new Date(Date.parse("object"==typeof t?t[e]:t))},parseNumeric:s,randomId:w,removeClass:c,replaceClass:u,resolveURL:r,round:S,saveFile:o,select:_,setAttributes:d,style:h,throttle:T,toggleClass:p,toggleEvent:f,toggleStyle:function(t,e,i,n){return h(t,e,n?i:"")},wrapDelta:E,wrapNum:C}),I={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?url.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?url.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=function(t,e){return t});var B=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:I,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData:function(t,e){var i=this;this.import(this.__D3).then((function(){i._modulesLoaded?(e=e!==null&&e!==void 0?e:t.on&&t,i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})):i.once("modules_loaded",(function(){return i.addData(t,e)}))}))},addTo:function(t){if(this.options.detached){var e=_(this.options.elevationDiv),i=this.onAdd(t);e?g(e,i):v(t.getContainer(),i,"afterend")}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._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((function(t){return t.options.renderer.remove()})),this._hotline&&this._clearLayers(this._hotline),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){var i=e.fn,n=e.ctx;return t.off("elechart_updated",i,n)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((function(t){return t.remove()})),t.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 L.latLngBounds((t||this._data).map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){h(this._container,"display","none")},initialize:function(e){e=L.setOptions(this,L.extend({},z(I),e)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],e.trkStart||I.trkStart),this._end=L.circleMarker([0,0],e.trkEnd||I.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},e.followMarker&&(this._setMapView=T(this._setMapView,300,this)),e.legend&&(e.margins.bottom+=30),e.theme&&(e.polylineSegments.className+=" "+e.theme),!0===e.wptIcons&&(e.wptIcons=I.wptIcons),!0===e.distanceMarkers&&(e.distanceMarkers=I.distanceMarkers),e.trkStart&&this._start.addTo(this._circleMarkers),e.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(e.polylineSegments),L.extend(t,e.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import:function(t,e){switch(t){case this.__D3:e="object"!=typeof d3;break;case this.__TOGEOJSON:e="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:e="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:e="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:e="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:e="function"!=typeof L.Hotline}return!1!==e?import(r(t,this.options.srcFolder)):Promise.resolve()},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=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+w()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((function(){e._initChart(i),e._initButton(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),e._modulesLoaded=!0,e.fire("modules_loaded")})),this.fire("add"),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(t.getContainer(),"mousewheel",this._resetDrag,this),x(t.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove")},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){if("FeatureCollection"===t.type)return y(t.features,(function(t){return e._addData(t)}));if("Feature"===t.type){var i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return y(i.coordinates,(function(i,n){return e._addGeoJSONData(i,t.properties,n)}));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData:function(t,e,i){var n=this;var r=e&&e.coordinateProperties||e;t.forEach((function(t,e){var o,a,s,l,c;t.meta=(o=t.meta)!==null&&o!==void 0?o:{time:null,ele:null},t.prev=function(t){return t?n._data[e>0?e-1:0][t]:n._data[e>0?e-1:0]},n.fire("elepoint_init",{point:t,props:r,id:e,isMulti:i}),n._addPoint((a=t.lat)!==null&&a!==void 0?a:t[1],(s=t.lng)!==null&&s!==void 0?s:t[0],(c=(l=t.alt)!==null&&l!==void 0?l:t.meta.ele)!==null&&c!==void 0?c:t[2]),n.fire("elepoint_added",{point:t,index:n._data.length-1}),n._yCoordMax<n._data[n._data.length-1][n.options.yAttr]&&(n._yCoordMax=n._data[n._data.length-1][n.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){var n;this.options.reverseCoords&&(n=[e,t],t=n[0],e=n[1],n),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){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){var e=t.target,i=t.type;return L.DistanceMarkers&&e instanceof L.Polyline&&e[i+"DistanceMarkers"]()})),t},_addMarker:function(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler:function(t,e){var i=this;return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",i._onMouseMoveLayer,i).on("almost:out",i._onMouseOut,i),i.once("eledata_clear",(function(){t.almostOver.removeLayer(e),t.off("almost:move",i._onMouseMoveLayer,i).off("almost:out",i._onMouseOut,i)})))})):Promise.resolve()},_initDistanceMarkers:function(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale:function(t){var e=this;return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((function(){t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof e.options.edgeScale?e.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine:function(t){var e=this;var i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((function(){t.eachLayer((function(t){if("Point"!=t.feature.geometry.type){var n=L.geoJson(t.toGeoJSON(),{coordsToLatLng:function(t){return L.latLng(t[0],t[1],t[2]*(e.options.altitudeFactor||1))}}),r=L.hotline(n.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(e.track_info[i+"_min"])?e.track_info[i+"_min"]:0,max:isFinite(e.track_info[i+"_max"])?e.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(e._hotline),o=t.options.style&&t.options.style.opacity||1;t.on("add remove",(function(e){var i=e.type;t.setStyle({opacity:"add"==i?0:o}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations:function(t){var e=this;var i=this._map;i?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((function(){e.options.polyline&&(e._layers.addLayer(t.addTo(i)),e._circleMarkers.addTo(i)),e.options.autofitBounds&&e.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(function(){return e._initMapIntegrations(t)}))},_collapse:function(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand:function(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths:function(){var e=L.Canvas.prototype._fillStroke,i=this,n=this.options.theme.split(" ")[0].replace("-theme",""),r=t[n]||{};L.Canvas.include({_fillStroke:function(t,o){if(i._layers.hasLayer(o)){var a=o.options;if(a.color=r.line||r.area||n,a.stroke=!!a.color,e.call(this,t,o),a.stroke&&0!==a.weight){var s=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=r.outline||"#FFF",t.lineWidth=1.75*a.weight,t.stroke(),t.globalCompositeOperation=s}}else e.call(this,t,o)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){var i=e.data,n=e.xCoord;t._chartEnabled&&(t._chart._showDiagramIndicator(i,n),t._chart._showDiagramIndicator(i,n)),t._updateMarker(i)}))}))},_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)},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this;var i=this.options,n=this._map;if(i.detached){var r=this.eleDiv,o=r.offsetWidth,a=r.offsetHeight;o>0&&(i.width=o),a>20&&(i.height=a-20)}else{var s=n.getContainer().clientWidth;i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>s&&(i.width=s-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((function(r){var o=e._chart=new(r[1]||B).Chart(i,e);e._x=e._chart._x,e._y=e._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",e._hideMarker,e).on("mouse_enter",e._onMouseEnter,e).on("dragged",e._onDragEnd,e).on("mouse_move",e._onMouseMove,e).on("mouse_out",e._onMouseOut,e).on("ruler_filter",e._onRulerFilter,e).on("zoom",e._updateChart,e).on("elepath_toggle",e._onToggleChart,e).on("margins_updated",e._resizeChart,e),e.fire("elechart_init"),n.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),k(n.getContainer(),"mousewheel",e._resetDrag,e),k(n.getContainer(),"touchstart",e._resetDrag,e),k(document,"keydown",e._onKeyDown,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()}))},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer,n=e.type;var r=i.getElement&&i.getElement();p(r,t.options.polyline.className+" "+t.options.theme,"layeradd"==n),f(i,"mousemove",t._onMouseMoveLayer.bind(t),"layeradd"==n),f(i,"mouseout",t._onMouseOut.bind(t),"layeradd"==n)}))},_initMarker:function(t){var e=this;var i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),i.style.zIndex=625,i.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((function(t){e._marker=new(t[1]||B).Marker(e.options,e),e.fire("elechart_marker")}))},_initButton:function(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(k(t,"mouseover",this._expand,this),k(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){var e=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);k(e,"click",L.DomEvent.stop),k(e,"click",this._toggle,this),k(e,"focus",this._toggle,this),fetch(r(this.__btnIcon,this.options.srcFolder)).then((function(t){return t.ok&&t.text().then((function(t){return e.innerHTML=t}))}))}},_initSummary:function(t){var e=this;this.import(this.__LSUMMARY).then((function(i){e._summary=new(i||B).Summary({summary:e.options.summary},e),e.on("elechart_init",(function(){d3.select(t).call(e._summary.render())}))}))},_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)}))},_loadModules:function(t){var e=this;var i=(t=t.map((function(t){return"string"==typeof t&&void 0!==B[t]?B[t]:t}))).map((function(t){return"string"==typeof t&&e.import(e.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()}));return Promise.all(i).then((function(i){y(i,(function(e,i){var n;var r=e&&Object.keys(e)[0];r&&(t[i]=B[r]=(n=B[r])!==null&&n!==void 0?n:e[r])})),y(t,(function(t){return["function","object"].includes(typeof t)&&e._registerHandler(t)}))}))},_loadLayer:function(t){var e=this;var i=this.options,n=i.polyline,r=i.theme,o=i.waypoints,a=i.wptIcons,s=i.wptLabels,l=i.distanceMarkers,c=L.extend({},n);r&&(c.className+=" "+r),t.name&&(this.track_info.name=t.name);var p=L.geoJson(t,{distanceMarkers:l,style:c,pointToLayer:function(t,i){if(o){var n=t.properties,r=n.desc,l=n.name,c=n.sym;if(r=r||"",l=l||"",[!0,"dots"].includes(o)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?l:""}),[!0,"markers"].includes(o)&&0!=a)return e._registerMarker({latlng:i,sym:(c!==null&&c!==void 0?c:l).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(l||r)&&decodeURI("<b>"+l+"</b>"+(r.length>0?"<br>"+r:""))})}},onEachFeature:function(t,i){return t.geometry&&"Point"!=t.geometry.type&&e.addData(t,i)}});return this.import(this.__D3).then((function(){e._initMapIntegrations(p);var i={data:t,layer:p,name:e.track_info.name,track_info:e.track_info};e._modulesLoaded?e._fireEvt("eledata_loaded",i):e.once("modules_loaded",(function(){return e._fireEvt("eledata_loaded",i)}))})),p},_onDragEnd:function(t){var e=t.dragstart,i=t.dragend;this._hideMarker(),this.fitBounds(L.latLngBounds([e.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown:function(t){var e=t.key;this.options.detached||"Escape"!==e||this._collapse()},_onMouseEnter:function(){this.fire("elechart_enter")},_onMouseMove:function(t){var e=t.xCoord;if(this._chartEnabled&&this._data.length){var i=this._findItemForX(e);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,e),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:e}),this.fire("elechart_hover",{data:i,xCoord:e}))}},_onMouseMoveLayer:function(t){var e=t.latlng;if(this._data.length){var i=this._findItemForLatLng(e);if(i){var n=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,n),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:n})}}},_onMouseOut:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter:function(t){var e=t.coords;this._updateMapSegments(e)},_onToggleChart:function(t){var e=this;var i=t.name,n=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return p(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=n||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.import(e.__TOGEOJSON).then((function(){var n;try{n=e._parseFromXMLString(t.trim())}catch(i){n=e._parseFromGeoJSONString(t.toString())}n&&(n.name=n.name||(e._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(n)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),n=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";n in toGeoJSON||(n="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[n](i);return o.name=r.length>0?((e=Array.from(r).find((function(t){return"trk"==t.parentElement.tagName})))!==null&&e!==void 0?e:r[0]).textContent:"",o},_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;var i=function(){return e._chart._registerCheckPoint(t)};this.on("elechart_updated",i).once("eledata_clear",(function(){return e.off("elechart_updated",i)}))},_registerDataAttribute:function(t){var e=this;t.coordPropsToMeta&&this.on("elepoint_init",(function(i){return t.coordPropsToMeta.call(e,i)}));var i,n,r,o=t.attr||t.name,a={};this.on("elepoint_added",(function(s){var l=s.index,c=s.point;if(i=l,r=n!==null&&n!==void 0?n:e._data[i],n=e._data[i],n[o]=t.pointToAttr.call(e,c,i),i>0&&isNaN(r[o])&&(isNaN(a[o])||isNaN(n[o])?isNaN(a[o])?isNaN(n[o])||(r[o]=n[o]):r[o]=a[o]:r[o]=(a[o]+n[o])/2,t.meta&&(r[t.meta]=r[o])),!isNaN(n[o])){if(a[o]=n[o],t.deltaMax&&(n[o]=E(n[o],r[o],t.deltaMax)),t.clampRange&&(n[o]=M(n[o],t.clampRange)),isNaN(t.decimals)||(n[o]=S(n[o],t.decimals)),t.stats)for(var p in t.stats){var u=(t.statsName||o)+(""!=p?"_":"");e.track_info[u+p]=t.stats[p].call(e,n[o],e.track_info[u+p],e._data.length)}t.onPointAdded&&t.onPointAdded.call(e,n[o],i,c)}}))},_registerHandler:function(t){var e=this;if("function"==typeof t)return this._registerHandler(t.call(this));var i=t.name,n=t.attr,r=t.required,o=t.deltaMax,s=t.clampRange,l=t.decimals,c=t.meta,p=t.unit,u=t.coordinateProperties,h=t.coordPropsToMeta,d=t.pointToAttr,f=t.onPointAdded,m=t.stats,g=t.statsName,v=t.grid,_=t.scale,w=t.path,b=t.tooltip,k=t.summary;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:n,meta:c,deltaMax:o,clampRange:s,decimals:l,coordPropsToMeta:a(u,c||i,h),pointToAttr:d,onPointAdded:f,stats:m,statsName:g}),v&&this._registerAxisGrid(L.extend({name:i},v)),"summary"!==this.options[i]&&(_&&this._registerAxisScale(L.extend({name:i,label:p},_)),w&&this._registerAreaPath(L.extend({name:i},w))),(b||t.tooltips)&&y(__spreadArray([b],t.tooltips||[],true),(function(t){return t&&e._registerTooltip(L.extend({name:i},t))})),k&&(y(k,(function(t,e){return k[e]=L.extend({unit:p},t)})),this._registerSummary(k)))},_registerMarker:function(t){var e=t.latlng,i=t.sym,n=t.content;var r=this.options.wptIcons;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));var o=L.marker(e,{icon:r[i]});return n&&(o.bindPopup(n,{className:"elevation-popup",keepInView:!0}).openPopup(),o.bindTooltip(n,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(o)},_registerTooltip:function(t){var e=this;t.chart&&this.on("elechart_init",(function(){return e._chart._registerTooltip(L.extend({},t,{value:t.chart}))})),t.marker&&this.on("elechart_marker",(function(){return e._marker._registerTooltip(L.extend({},t,{value:t.marker}))}))},_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=this.options,e=t.detached?(this.eleDiv||this._container).offsetWidth:M(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);e&&(t.width=e,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle:function(){P(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this._map&&this.options.followMarker){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})}},_updateChart:function(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||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&&(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>",_(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:o.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)}))},_width:function(){if(this._chart)return this._chart._width();var t=this.options,e=t.width,i=t.margins;return e-i.left-i.right},_height:function(){if(this._chart)return this._chart._height();var t=this.options,e=t.height,i=t.margins;return e-i.top-i.bottom}});B.Utils=O,L.control.elevation=function(t){return new B(t)}}));createCommonjsModule((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,n=this._featureGroup,r=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,s=this.options.chunkProgress,l=t.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),h=L.bind((function(){var d=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-d;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];n.removeLayer(g)}}else r.addLayer(i),e||this.fire("layeradd",{layer:i})}s&&s(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var d=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)||d.push(i):r.addLayer(i);return this},removeLayers:function(t){var e,i,n=t.length,r=this._featureGroup,o=this._nonPointGroup,a=!0;if(!this._map){for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var s=t.slice(),l=n;for(e=0;e<l;e++)(i=s[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),l=s.length):this._unspiderfyLayer(i)}for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),r.hasLayer(i)&&(r.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,r,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),n=o.length-1;0<=n;n--){for(i=!0,r=a.length-1;0<=r;r--)if(a[r].layer===o[n]){i=!1;break}i&&t.call(e,o[n])}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 n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,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",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,n;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++)(n=this._needsRemoving[e]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],this._removeLayer(n.layer,!0),n.layer._latlng=n.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,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());r<=e&&n[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 n=this._gridClusters,r=this._gridUnclustered,o=this._featureGroup,a=this._map,s=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<s));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],n[c._zoom].removeObject(c,a.project(c._cLatLng,c._zoom)),r[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&&(o.removeLayer(c),i||o.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,n=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom;(e||n||r)&&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,n=this.options.spiderfyOnEveryZoom,r=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),r.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,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var r=t;e<=r;r--)this._gridClusters[r]=new L.DistanceGrid(n(r)),this._gridUnclustered[r]=new L.DistanceGrid(n(r));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,r=this._gridClusters,o=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 s=r[e].getNearObject(i);if(s)return s._addChild(t),void(t.__parent=s);if(s=o[e].getNearObject(i)){var l=s.__parent;l&&this._removeLayer(s,!1);var c=new this._markerCluster(this,e,s,t);r[e].addObject(c,this._map.project(c._cLatLng,e)),s.__parent=c;var p=t.__parent=c;for(n=e-1;n>l._zoom;n--)p=new this._markerCluster(this,n,p),r[n].addObject(p,this._map.project(s.getLatLng(),n));return l._addChild(p),void this._removeFromGridUnclustered(s,e)}o[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),r=0;for(e=e||[];r<n.length;r++)(i=n[r])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,n=this._getExpandedVisibleBounds(),r=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,t,o,(function(o){var a,s=o._latlng,l=o._markers;for(n.contains(s)||(s=null),o._isSingleParent()&&t+1===e?(r.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,n)):(o.clusterHide(),o._recursivelyAddChildrenToMap(s,e,n)),i=l.length-1;0<=i;i--)a=l[i],n.contains(a._latlng)||r.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),r.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,o,(function(t){r.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,n=this._featureGroup;n.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(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,r,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,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(n,i,r,(function(t){t._recursivelyRemoveChildrenFromMap(n,r,e+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){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),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;0<=n;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),n=this._group._map,r=n.getBoundsZoom(this._bounds),o=this._zoom+1,a=n.getZoom();0<i.length&&o<r;){o++;var s=[];for(e=0;e<i.length;e++)s=s.concat(i[e]._childClusters);i=s}o<r?this._group._map.setView(this._latlng,o):r<=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,n,r=this._markers,o=this._childClusters,a=0,s=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<r.length;t++)i=r[t]._latlng,this._bounds.extend(i),a+=i.lat,s+=i.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,a+=i.lat*n,s+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(a/l,s/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,n,r=t._markers;for(i=r.length-1;0<=i;i--)(n=r[i])._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,r=t._childClusters;for(i=r.length-1;0<=i;i--)(n=r[i])._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(r){r._recursivelyAnimateChildrenIn(t,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),i),r._isSingleParent()&&i-1===n?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(t,e,i)):r.clusterHide(),r._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(n){if(e!==n._zoom)for(var r=n._markers.length-1;0<=r;r--){var o=n._markers[r];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),n._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._restorePosition();else for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var r,o;this._recursively(t,e-1,i-1,(function(t){for(o=t._markers.length-1;0<=o;o--)r=t._markers[o],n&&n.contains(r._latlng)||(t._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}),(function(t){for(o=t._childClusters.length-1;0<=o;o--)r=t._childClusters[o],n&&n.contains(r._latlng)||(t._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}))},_recursively:function(t,e,i,n,r){var o,a,s=this._childClusters,l=this._zoom;if(e<=l&&(n&&n(this),r&&l===i&&r(this)),l<e||l<i)for(o=s.length-1;0<=o;o--)(a=s[o])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,i,n,r)},_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),n=this._getCoord(e.y),r=this._grid,o=r[n]=r[n]||{},a=o[i]=o[i]||[],s=L.Util.stamp(t);this._objectPoint[s]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,r=this._getCoord(e.x),o=this._getCoord(e.y),a=this._grid,s=a[o]=a[o]||{},l=s[r]=s[r]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=l.length;i<n;i++)if(l[i]===t)return l.splice(i,1),1===n&&delete s[r],!0},eachObject:function(t,e){var i,n,r,o,a,s,l=this._grid;for(i in l)for(n in a=l[i])for(r=0,o=(s=a[n]).length;r<o;r++)t.call(e,s[r])&&(r--,o--)},getNearObject:function(t){var e,i,n,r,o,a,s,l,c=this._getCoord(t.x),p=this._getCoord(t.y),u=this._objectPoint,h=this._sqCellSize,d=null;for(e=p-1;e<=p+1;e++)if(r=this._grid[e])for(i=c-1;i<=c+1;i++)if(o=r[i])for(n=0,a=o.length;n<a;n++)s=o[n],((l=this._sqDist(u[L.Util.stamp(s)],t))<h||l<=h&&null===d)&&(h=l,d=s);return d},_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,n=e.y-t.y;return i*i+n*n}},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,n,r,o=0,a=null,s=[];for(i=e.length-1;0<=i;i--)n=e[i],0<(r=this.getDistant(n,t))&&(s.push(n),o<r&&(o=r,a=n));return{maxPoint:a,newPoints:s}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,r=!1,o=!1,a=null,s=null,l=null,c=null,p=null,u=null;for(e=t.length-1;0<=e;e--){var h=t[e];(!1===i||h.lat>i)&&(i=(a=h).lat),(!1===n||h.lat<n)&&(n=(s=h).lat),(!1===r||h.lng>r)&&(r=(l=h).lng),(!1===o||h.lng<o)&&(o=(c=h).lng)}return p=n!==i?(u=s,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(),n=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),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,n,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,a=[];for(r=Math.max(r,35),a.length=t,i=0;i<t;i++)n=this._circleStartAngle+i*o,a[i]=new L.Point(e.x+r*Math.cos(n),e.y+r*Math.sin(n))._round();return a},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,r=n*this._spiralLengthStart,o=n*this._spiralFootSeparation,a=n*this._spiralLengthFactor*this._2PI,s=0,l=[];for(i=l.length=t;0<=i;i--)i<t&&(l[i]=new L.Point(e.x+r*Math.cos(s),e.y+r*Math.sin(s))._round()),r+=a/(s+=o/r+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,r=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;0<=e;e--)t=o[e],r.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,r,o,a=this._group,s=a._map,l=a._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<t.length;i++)o=s.layerPointToLatLng(e[i]),n=t[i],r=new L.Polyline([this._latlng,o],c),s.addLayer(r),n._spiderLeg=r,n._preSpiderfyLatlng=n._latlng,n.setLatLng(o),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);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,n,r,o,a,s,l=this,c=this._group,p=c._map,u=c._featureGroup,h=this._latlng,d=p.latLngToLayerPoint(h),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++)n=t[i],s=p.layerPointToLatLng(e[i]),r=new L.Polyline([h,s],m),p.addLayer(r),n._spiderLeg=r,f&&(a=(o=r._path).getTotalLength()+.1,o.style.strokeDasharray=a,o.style.strokeDashoffset=a),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),u.addLayer(n),n._setPos&&n._setPos(d);for(c._forceLayout(),c._animationStart(),i=t.length-1;0<=i;i--)s=p.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.clusterShow&&n.clusterShow(),f&&((o=(r=n._spiderLeg)._path).style.strokeDashoffset=0,r.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,n,r,o,a,s=this,l=this._group,c=l._map,p=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),d=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=h.length-1;0<=i;i--)(e=h[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),d&&(o=(r=(n=e._spiderLeg)._path).getTotalLength()+.1,r.style.strokeDashoffset=o,n.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=h.length-1;0<=i;i--)(e=h[i])._spiderLeg&&t++;for(i=h.length-1;0<=i;i--)(e=h[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:s,markers:h})}),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})}))}));function getTrekGeometry(t){return fetch("".concat(state.api,"trek/").concat(t,"/?language=").concat(state.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(t){return t.json()}))}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-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, "")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:"✖";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:"";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:" — "}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:"Roboto";display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container{background-color:var(--color-surface-variant)}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{width:64px;height:64px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number{width:48px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup,.touristic-content-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{border-top-left-radius:8px;border-top-right-radius:8px}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}';var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.maxZoom=19;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}t.prototype.onCenterOnMap=function(t){this.map.setView(new leafletSrc.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationDesksIsInViewport=function(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}};t.prototype.touristicContentsIsInViewport=function(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}};t.prototype.touristicEventsIsInViewport=function(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}};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.currentStepsLayer){state.selectedStepId=null;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.componentDidLoad=function(){var t=this;this.map=leafletSrc.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});leafletSrc.control.scale({metric:true,imperial:false}).addTo(this.map);leafletSrc.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 n=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,r){t.tileLayer.push({key:"".concat(e[r]),value:leafletSrc.tileLayer(i,{maxZoom:t.maxZoom,attribution:"".concat(n[r]&&n[r]!==""?n[r].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>')})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=leafletSrc.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);leafletSrc.Control.Contract=leafletSrc.Control.extend({onAdd:function(){var e=leafletSrc.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(leafletSrc.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}});leafletSrc.control.contract=function(t){return new leafletSrc.Control.Contract(t)};leafletSrc.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.touristicContents){this.addTouristicContents()}onChange("currentTreks",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));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.addTouristicEvent()}else if(state.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(state.currentTreks){t.removeTouristicEvent();t.addTreks()}}));onChange("currentTouristicContents",(function(){if(state.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(state.currentTouristicContents){t.removeTouristicContent();t.addTouristicContents(true)}}));onChange("mode",(function(){if(state.mode==="treks"){if(state.treks){t.removeTouristicContents();t.addTreks(true)}}else if(state.mode==="touristicContents"){if(state.touristicContents){t.removeTreks();t.addTouristicContents(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){var e=this;if(t===void 0){t=false}var i;state.treksWithinBounds=state.currentTreks;var n=[];var r={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=function(t){n.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=state.practices.find((function(e){return e.id===t.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(var a=0,s=state.currentTreks;a<s.length;a++){var l=s[a];o(l)}}if(!this.treksLayer){if(n.length>0&&!state.currentMapBounds||t){this.bounds=leafletSrc.latLngBounds(n.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.treksLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="trek-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return e.trekCardPress.emit(t.properties.id)};n.appendChild(a);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){e.hideTrekLine();e.showTrekLine(t.properties.id);e.addSelectedCurrentTrek(t.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return leafletSrc.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,24]})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(n.length>0){this.bounds=leafletSrc.latLngBounds(n.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)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)};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(leafletSrc.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(leafletSrc.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.addTrek=function(){var t=this;var e,i,n,r;this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();var o={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=leafletSrc.geoJSON(o,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){var a={type:"Feature",properties:{},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=leafletSrc.geoJSON(a,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){var s={type:"FeatureCollection",features:[]};for(var l=0,c=state.currentSensitiveAreas;l<c.length;l++){var p=c[l];s.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=leafletSrc.geoJSON(s,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="sensitive-area-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:t.colorSensitiveArea}}})}if(state.currentPois&&state.currentPois.length>0){var u={type:"FeatureCollection",features:[]};var h=function(t){u.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=state.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(var d=0,f=state.currentPois;d<f.length;d++){var m=f[d];h(m)}this.currentPoisLayer=leafletSrc.geoJSON(u,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="poi-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.trekTouristicContents&&state.trekTouristicContents.length>0){var g={type:"FeatureCollection",features:[]};var v=function(t){g.features.push({type:"Feature",properties:{name:t.name,category_pictogram:(i=state.touristicContentCategories.find((function(e){return e.id===t.category})))===null||i===void 0?void 0:i.pictogram},geometry:t.geometry})};for(var _=0,y=state.trekTouristicContents;_<y.length;_++){var w=y[_];v(w)}this.currentToutisticContentsLayer=leafletSrc.geoJSON(g,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.category_pictogram?"<img src=".concat(t.properties.category_pictogram," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-content-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="touristic-content-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.touristicEvents&&state.touristicEvents.length>0){var b={type:"FeatureCollection",features:[]};var k=function(t){b.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(n=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||n===void 0?void 0:n.pictogram},geometry:t.geometry})};for(var x=0,A=state.touristicEvents;x<A.length;x++){var L=A[x];k(L)}this.currentToutisticEventsLayer=leafletSrc.geoJSON(b,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-event-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="touristic-event-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.currentInformationDesks&&state.currentInformationDesks.length>0){var T={type:"FeatureCollection",features:[]};for(var C=0,P=state.currentInformationDesks.filter((function(t){return state.currentTrek.information_desks.includes(t.id)}));C<P.length;C++){var S=P[C];if(S.latitude&&S.longitude){T.features.push({type:"Feature",properties:{name:S.name,type_pictogram:S.type.pictogram},geometry:{type:"Point",coordinates:[Number(S.longitude),Number(S.latitude)]}})}}this.currentInformationDesksLayer=leafletSrc.geoJSON(T,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="information-desks-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}})}if(state.currentTrek.points_reference){var M={type:"FeatureCollection",features:[]};M.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});var E=0;this.currentReferencePointsLayer=leafletSrc.geoJSON(M,{pointToLayer:function(t,e){E+=1;return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:E,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){var z={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var O=function(t){z.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(r=state.practices.find((function(e){return e.id===t.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(var I=0,B=state.currentTrekSteps;I<B.length;I++){var D=B[I];O(D)}}var j=0;this.currentStepsLayer=leafletSrc.geoJSON(z,{pointToLayer:function(t,e){j+=1;return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(j,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(e.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return t.trekCardPress.emit(e.properties.id)};n.appendChild(a);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedCurrentStep(e.properties.id,i.latlng)}))}})}var R={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:250,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:false,time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=leafletSrc.control.elevation(Object.assign({},R)).addTo(this.map);var F=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(F);var N={};if(this.currentStepsLayer){N[translate[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){N[translate[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){N[translate[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){N[translate[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){N[translate[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){N[translate[state.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){N[translate[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){N[translate[state.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(N).forEach((function(e){t.layersControl.addOverlay(N[e],e)}))}else{this.layersControl=leafletSrc.control.layers({},N,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=leafletSrc.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.addSelectedCurrentTrek=function(t,e){var i=this;var n;var r={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=state.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(n=state.practices.find((function(t){return t.id===o.practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();state.selectedTrekId=t;this.selectedCurrentTrekLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="trek-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:64,iconAnchor:[36,36]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return i.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!i.trekPopupIsOpen){state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){i.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){i.trekPopupIsOpen=false;state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}))}}).addTo(this.map)};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 n;var r={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var o=state.currentTrekSteps.findIndex((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[o].departure_geom},properties:{id:state.currentTrekSteps[o].id,name:state.currentTrekSteps[o].name,practice:(n=state.practices.find((function(t){return t.id===state.currentTrekSteps[o].practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:state.currentTrekSteps[o].attachments&&state.currentTrekSteps[o].attachments.length>0&&state.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(t.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:64,iconAnchor:[36,36]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="trek-button";a.onclick=function(){return i.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));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(){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null};t.prototype.handleLayersControlEvent=function(){var t=this;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(){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.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentToutisticEventsLayer){this.map.removeLayer(this.currentToutisticEventsLayer);this.currentToutisticEventsLayer=null}};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};t.prototype.showTrekLine=function(t){var e=this;getTrekGeometry(t).then((function(t){var i={type:"Feature",geometry:t.geometry,properties:{}};e.currentTrekLayer=leafletSrc.geoJSON(i,{style:function(){return{color:e.colorTrekLine}},interactive:false}).addTo(e.map)}))};t.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();var 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){this.currentToutisticContentLayer=leafletSrc.geoJSON(t,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="touristic-content-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(t){var e=this;if(t===void 0){t=false}state.touristicContentsWithinBounds=state.currentTouristicContents;var i=[];var n={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){var r=function(t){i.push(t.geometry.coordinates);n.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}})};for(var o=0,a=state.currentTouristicContents;o<a.length;o++){var s=a[o];r(s)}}if(!this.toutisticContentsLayer){if(i.length>0&&!state.currentMapBounds||t){this.bounds=leafletSrc.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.toutisticContentsLayer=leafletSrc.geoJSON(n,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?'<div class="touristic-content-marker-container"><img src='.concat(t.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="touristic-content-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="touristic-content-button";a.onclick=function(){return e.touristicContentCardPress.emit(t.properties.id)};n.appendChild(a);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){e.addSelectedTouristicContent(t.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return leafletSrc.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,24]})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(i.length>0){this.bounds=leafletSrc.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(n);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)};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(){var t={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type})).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=leafletSrc.geoJSON(t,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type?'<div class="touristic-event-marker-container"><img src='.concat(t.properties.type," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[18,0]}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){var i=this;var n;var r={type:"FeatureCollection",features:[]};if(state.touristicContents){var o=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(n=state.touristicContentCategories.find((function(t){return t.id===o.category})))===null||n===void 0?void 0:n.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;this.selectedTouristicContentLayer=leafletSrc.geoJSON(r,{pointToLayer:function(t,e){return leafletSrc.marker(e,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:t.properties.category?'<div class="touristic-content-marker-container"><img src='.concat(t.properties.category," /></div>"):'<div class="touristic-content-trek-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[36,36]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=leafletSrc.DomUtil.create("img");r.src=t.properties.imgSrc;n.appendChild(r)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="touristic-content-name";n.appendChild(o);var a=leafletSrc.DomUtil.create("button");a.innerHTML="Afficher le détail";a.className="touristic-content-button";a.onclick=function(){return i.touristicContentCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!i.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){i.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){i.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}))}}).addTo(this.map)};t.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=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,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(i,")"),"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},h("div",{id:"map",style:{},class:state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}}),state.currentTrek&&h("div",null,h("div",{id:"elevation",ref:function(e){return t.elevationRef=e}}),h("div",{class:"map-bottom-space"})),!this.mapIsReady&&h("div",{class:"map-loader-container"},h("span",{class:"loader"})))};return t}();GrwMap.style=grwMapCss;var grwSearchCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host span{font-size:24px;position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:40px;color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:400;font-family:"Roboto";height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}';var GrwSearch=function(){function t(t){registerInstance(this,t)}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()}};t.prototype.render=function(){var t=this;return h(Host,null,h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),h("input",{onInput:function(e){return t.onSearchChange(e)},class:"search-input",type:"search",placeholder:"Rechercher",value:state.searchValue}))};return t}();GrwSearch.style=grwSearchCss;function Mousewheel(t){var e=t.swiper,i=t.extendParams,n=t.on,r=t.emit;var o=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 s=now();var l;var c=[];function p(t){var e=10;var i=40;var n=800;var r=0;var o=0;var a=0;var s=0;if("detail"in t){o=t.detail}if("wheelDelta"in t){o=-t.wheelDelta/120}if("wheelDeltaY"in t){o=-t.wheelDeltaY/120}if("wheelDeltaX"in t){r=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){r=o;o=0}a=r*e;s=o*e;if("deltaY"in t){s=t.deltaY}if("deltaX"in t){a=t.deltaX}if(t.shiftKey&&!a){a=s;s=0}if((a||s)&&t.deltaMode){if(t.deltaMode===1){a*=i;s*=i}else{a*=n;s*=n}}if(a&&!r){r=a<1?-1:1}if(s&&!o){o=s<1?-1:1}return{spinX:r,spinY:o,pixelX:a,pixelY:s}}function u(){if(!e.enabled)return;e.mouseEntered=true}function h(){if(!e.enabled)return;e.mouseEntered=false}function d(t){if(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta){return false}if(e.params.mousewheel.thresholdTime&&now()-s<e.params.mousewheel.thresholdTime){return false}if(t.delta>=6&&now()-s<60){return true}if(t.direction<0){if((!e.isEnd||e.params.loop)&&!e.animating){e.slideNext();r("scroll",t.raw)}}else if((!e.isBeginning||e.params.loop)&&!e.animating){e.slidePrev();r("scroll",t.raw)}s=(new o.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 n=true;if(!e.enabled)return;if(t.target.closest(".".concat(e.params.mousewheel.noMousewheelClass)))return;var o=e.params.mousewheel;if(e.params.cssMode){i.preventDefault()}var s=e.el;if(e.params.mousewheel.eventsTarget!=="container"){s=document.querySelector(e.params.mousewheel.eventsTarget)}var u=s&&s.contains(i.target);if(!e.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var h=0;var m=e.rtlTranslate?-1:1;var g=p(i);if(o.forceToAxis){if(e.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))h=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))h=-g.pixelY;else return true}else{h=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(h===0)return true;if(o.invert)h=-h;var v=e.getTranslate()+h*o.sensitivity;if(v>=e.minTranslate())v=e.minTranslate();if(v<=e.maxTranslate())v=e.maxTranslate();n=e.params.loop?true:!(v===e.minTranslate()||v===e.maxTranslate());if(n&&e.params.nested)i.stopPropagation();if(!e.params.freeMode||!e.params.freeMode.enabled){var _={time:now(),delta:Math.abs(h),direction:Math.sign(h),raw:t};if(c.length>=2){c.shift()}var y=c.length?c[c.length-1]:undefined;c.push(_);if(y){if(_.direction!==y.direction||_.delta>y.delta||_.time>y.time+150){d(_)}}else{d(_)}if(f(_)){return true}}else{var w={time:now(),delta:Math.abs(h),direction:Math.sign(h)};var b=l&&w.time<l.time+500&&w.delta<=l.delta&&w.direction===l.direction;if(!b){l=undefined;var k=e.getTranslate()+h*o.sensitivity;var x=e.isBeginning;var A=e.isEnd;if(k>=e.minTranslate())k=e.minTranslate();if(k<=e.maxTranslate())k=e.maxTranslate();e.setTransition(0);e.setTranslate(k);e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses();if(!x&&e.isBeginning||!A&&e.isEnd){e.updateSlidesClasses()}if(e.params.loop){e.loopFix({direction:w.direction<0?"next":"prev",byMousewheel:true})}if(e.params.freeMode.sticky){clearTimeout(a);a=undefined;if(c.length>=15){c.shift()}var y=c.length?c[c.length-1]:undefined;var L=c[0];c.push(w);if(y&&(w.delta>y.delta||w.direction!==y.direction)){c.splice(0)}else if(c.length>=15&&w.time-L.time<500&&L.delta-w.delta>=1&&w.delta<=6){var T=h>0?.8:.2;l=w;c.splice(0);a=nextTick((function(){e.slideToClosest(e.params.speed,true,undefined,T)}),0)}if(!a){a=nextTick((function(){var t=.5;l=w;c.splice(0);e.slideToClosest(e.params.speed,true,undefined,t)}),500)}}if(!b)r("scroll",i);if(e.params.autoplay&&e.params.autoplayDisableOnInteraction)e.autoplay.stop();if(k===e.minTranslate()||k===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",h);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 _(){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}n("init",(function(){if(!e.params.mousewheel.enabled&&e.params.cssMode){_()}if(e.params.mousewheel.enabled)v()}));n("destroy",(function(){if(e.params.cssMode){v()}if(e.mousewheel.enabled)_()}));Object.assign(e.mousewheel,{enable:v,disable:_})}function freeMode(t){var e=t.swiper,i=t.extendParams,n=t.emit,r=t.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){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 s(t){var i=t.currentPos;if(e.params.cssMode)return;var o=e.params,a=e.wrapperEl,s=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(o.freeMode.momentum){if(c.velocities.length>1){var h=c.velocities.pop();var d=c.velocities.pop();var f=h.position-d.position;var m=h.time-d.time;e.velocity=f/m;e.velocity/=2;if(Math.abs(e.velocity)<o.freeMode.minimumVelocity){e.velocity=0}if(m>150||now()-h.time>300){e.velocity=0}}else{e.velocity=0}e.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=e.velocity*g;var _=e.translate+v;if(s)_=-_;var y=false;var w;var b=Math.abs(e.velocity)*20*o.freeMode.momentumBounceRatio;var k=void 0;if(_<e.maxTranslate()){if(o.freeMode.momentumBounce){if(_+e.maxTranslate()<-b){_=e.maxTranslate()-b}w=e.maxTranslate();y=true;c.allowMomentumBounce=true}else{_=e.maxTranslate()}if(o.loop&&o.centeredSlides)k=true}else if(_>e.minTranslate()){if(o.freeMode.momentumBounce){if(_-e.minTranslate()>b){_=e.minTranslate()+b}w=e.minTranslate();y=true;c.allowMomentumBounce=true}else{_=e.minTranslate()}if(o.loop&&o.centeredSlides)k=true}else if(o.freeMode.sticky){var x=void 0;for(var A=0;A<l.length;A+=1){if(l[A]>-_){x=A;break}}if(Math.abs(l[x]-_)<Math.abs(l[x-1]-_)||e.swipeDirection==="next"){_=l[x]}else{_=l[x-1]}_=-_}if(k){r("transitionEnd",(function(){e.loopFix()}))}if(e.velocity!==0){if(s){g=Math.abs((-_-e.translate)/e.velocity)}else{g=Math.abs((_-e.translate)/e.velocity)}if(o.freeMode.sticky){var L=Math.abs((s?-_:_)-e.translate);var T=e.slidesSizesGrid[e.activeIndex];if(L<T){g=o.speed}else if(L<2*T){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){e.slideToClosest();return}if(o.freeMode.momentumBounce&&y){e.updateProgress(w);e.setTransition(g);e.setTranslate(_);e.transitionStart(true,e.swipeDirection);e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed||!c.allowMomentumBounce)return;n("momentumBounce");e.setTransition(o.speed);setTimeout((function(){e.setTranslate(w);elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}),0)}))}else if(e.velocity){n("_freeModeNoMomentumRelease");e.updateProgress(_);e.setTransition(g);e.setTranslate(_);e.transitionStart(true,e.swipeDirection);if(!e.animating){e.animating=true;elementTransitionEnd(a,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}}else{e.updateProgress(_)}e.updateActiveIndex();e.updateSlidesClasses()}else if(o.freeMode.sticky){e.slideToClosest();return}else if(o.freeMode){n("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses()}}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:s}})}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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var GrwTouristicContentDetail=function(){function t(t){registerInstance(this,t);this.displayFullscreen=false;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}t.prototype.componentDidLoad=function(){var t=this;if(this.swiperImagesRef){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});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}};t.prototype.handleFullscreen=function(){if(state.currentTouristicContent.attachments&&state.currentTouristicContent.attachments[0]&&state.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};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 n=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,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},state.currentTouristicContent&&h("div",{class:"touristic-content-detail-container",ref:function(e){return t.touristicContentDetailContainerRef=e}},h("div",{class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{class:"swiper-wrapper"},state.currentTouristicContent.attachments.length>0?state.currentTouristicContent.attachments.filter((function(t){return t.type==="image"})).map((function(e){return h("div",{class:"swiper-slide"},h("img",{class:"image",src:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{class:"default-poi-img",src:e,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{class:"touristic-content-category-container"},h("img",{src:i.pictogram}),h("div",{class:"touristic-content-category-name"},i.label)),h("div",{class:"name"},state.currentTouristicContent.name),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicContent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicContent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicContent.practical_info&&h("div",{class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{class:"description-title"},translate[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicContent.description})),n&&n.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate[state.language].city," : "),h("div",{innerHTML:n.join(", ")})),state.currentTouristicContent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicContent.practical_info}))),(state.currentTouristicContent.contact||state.currentTouristicContent.email||state.currentTouristicContent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicContent.contact&&h("div",{innerHTML:state.currentTouristicContent.contact}),state.currentTouristicContent.email&&h("div",{class:"email-container"},h("div",null,translate[state.language].email," : "),h("div",{innerHTML:state.currentTouristicContent.email})),state.currentTouristicContent.website&&h("div",{class:"website-container"},h("div",null,translate[state.language].website," : "),h("div",{innerHTML:state.currentTouristicContent.website})))),h("div",{class:"detail-bottom-space"})))};return t}();GrwTouristicContentDetail.style=grwTouristicContentDetailCss;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(){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"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(state.api,"touristiccontent/").concat(this.touristicContentId,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website"),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],n=t[2];state.trekNetworkError=false;if(e){state.cities=e.results}if(i){state.touristicContentCategories=i.results}state.currentTouristicContent=n})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();var grwTouristicContentsListCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto";width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var GrwTouristicContentsList=function(){function t(t){registerInstance(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}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(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{style:{"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{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",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return h("grw-touristic-content-card",{"reset-store-on-disconnected":"false",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})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList.style=grwTouristicContentsListCss;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.touristicContentId=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"));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],n=t[2],r=t[3];state.trekNetworkError=false;if(e){state.cities=e.results}if(i){state.districts=i.results}if(n){state.touristicContentCategories=n.results}state.touristicContents=r.results;state.currentTouristicContents=r.results})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var GrwTouristicEventDetail=function(){function t(t){registerInstance(this,t);this.displayFullscreen=false;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}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});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}};t.prototype.handleFullscreen=function(){if(state.currentTouristicEvent.attachments&&state.currentTouristicEvent.attachments[0]&&state.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};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 n=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,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},state.currentTouristicEvent&&h("div",{class:"touristic-event-detail-container",ref:function(e){return t.touristicEventDetailContainerRef=e}},h("div",{class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{class:"swiper-wrapper"},state.currentTouristicEvent.attachments.length>0?state.currentTouristicEvent.attachments.filter((function(t){return t.type==="image"})).map((function(e){return h("div",{class:"swiper-slide"},h("img",{class:"image",src:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{class:"default-poi-img",src:e,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{class:"touristic-event-category-container"},h("img",{src:i.pictogram}),h("div",{class:"touristic-event-category-name"},i.type)),h("div",{class:"name"},state.currentTouristicEvent.name),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicEvent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicEvent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicEvent.practical_info&&h("div",{class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{class:"description-title"},translate[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicEvent.description})),n&&n.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate[state.language].city," : "),h("div",{innerHTML:n.join(", ")})),state.currentTouristicEvent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicEvent.practical_info}))),(state.currentTouristicEvent.contact||state.currentTouristicEvent.email||state.currentTouristicEvent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate[state.language].contact," : "),state.currentTouristicEvent.contact&&h("div",{innerHTML:state.currentTouristicEvent.contact}),state.currentTouristicEvent.email&&h("div",{class:"email-container"},h("div",null,translate[state.language].email," : "),h("div",{innerHTML:state.currentTouristicEvent.email})),state.currentTouristicEvent.website&&h("div",{class:"website-container"},h("div",null,translate[state.language].website," : "),h("div",{innerHTML:state.currentTouristicEvent.website})))),h("div",{class:"detail-bottom-space"})))};return t}();GrwTouristicEventDetail.style=grwTouristicEventDetailCss;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}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-options .presentation.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .steps.selected-trek-option~.indicator-selected-trek-option{width:160px;background-size:80px 100%}.trek-options .description.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .recommendations.selected-trek-option~.indicator-selected-trek-option{width:380px;background-size:190px 100%}.trek-options .sensitive-areas.selected-trek-option~.indicator-selected-trek-option{width:320px;background-size:160px 100%}.trek-options .information-places.selected-trek-option~.indicator-selected-trek-option{width:400px;background-size:200px 100%}.trek-options .pois.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-content.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-event.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .presentation{min-width:120px;width:120px}.trek-options .steps{min-width:80px;width:80px}.trek-options .description{min-width:120px;width:120px}.trek-options .recommendations{min-width:190px;width:190px}.trek-options .sensitive-areas{min-width:160px;width:160px}.trek-options .information-places{min-width:200px;width:200px}.trek-options .pois{min-width:120px;width:120px}.trek-options .touristic-content{min-width:120px;width:120px}.trek-options .touristic-event{min-width:120px;width:120px}.trek-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a{color:var(--color-primary-app)}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:8px;border-bottom-left-radius:8px}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}';var presentation={visible:true,width:120,indicator:false};var steps={visible:false,width:80,indicator:false};var description={visible:false,width:120,indicator:false};var recommendations={visible:false,width:190,indicator:false};var sensitiveArea={visible:false,width:160,indicator:false};var informationPlaces={visible:false,width:200,indicator:false};var pois={visible:false,width:120,indicator:false};var touristicContents={visible:false,width:120,indicator:false};var touristicEvents={visible:false,width:120,indicator:false};var options={presentation:presentation,steps:steps,description:description,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,pois:pois,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.informationDeskIsInViewport=createEvent(this,"informationDeskIsInViewport",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.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.trek=undefined;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}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});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){var e=new IntersectionObserver((function(e){var i=e[0].isIntersecting;if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})})}}));e.observe(this.presentationRef)}if(this.stepsRef){var i=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})})}}));i.observe(this.stepsRef)}if(this.descriptionRef){var n=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})})}}));n.observe(this.descriptionRef)}if(this.recommendationRef){var r=new IntersectionObserver((function(e){var i=e[0].isIntersecting;if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})})}}));r.observe(this.recommendationRef)}if(this.parkingRef){var o=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}));o.observe(this.parkingRef)}if(this.sensitiveAreaRef){var a=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})})}}));a.observe(this.sensitiveAreaRef)}if(this.informationDeskRef){var s=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationDeskIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})})}}));s.observe(this.informationDeskRef)}if(this.poiRef){var l=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})})}}));l.observe(this.poiRef)}if(this.touristicContentsRef){var c=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})})}}));c.observe(this.touristicContentsRef)}if(this.touristicEventsRef){var p=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);if(i){t.options=Object.assign(Object.assign({},t.defaultOptions),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})})}}));p.observe(this.touristicContentsRef)}};t.prototype.connectedCallback=function(){var t=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));this.route=state.routes.find((function(e){return e.id===t.currentTrek.route}));this.practice=state.practices.find((function(e){return e.id===t.currentTrek.practice}));this.themes=state.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));this.labels=state.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));this.sources=state.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));this.accessibilities=state.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}this.cities=this.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=this.currentTrek.children.length>0}onChange("currentTrek",(function(){t.currentTrek=t.trek?t.trek:state.currentTrek;if(t.currentTrek){t.defaultOptions=t.handleOptions();t.options=Object.assign(Object.assign({},t.defaultOptions),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:true})});t.difficulty=state.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));t.route=state.routes.find((function(e){return e.id===t.currentTrek.route}));t.practice=state.practices.find((function(e){return e.id===t.currentTrek.practice}));t.themes=state.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));t.labels=state.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));t.sources=state.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));t.accessibilities=state.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(state.accessibilitiesLevel){t.accessibilityLevel=state.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}t.cities=t.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}));t.hasStep=t.currentTrek.children.length>0}}))};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};t.prototype.handleOptions=function(){var t=this;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(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(this.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(e){return t.currentTrek.information_desks.includes(e.id)})).length>0)}),pois:Object.assign(Object.assign({},pois),{visible:Boolean(state.currentPois&&state.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:Boolean(state.trekTouristicContents&&state.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:Boolean(state.touristicEvents&&state.touristicEvents.length>0)})})};t.prototype.handleFullscreen=function(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t=0;var e;var i=0;var n=Object.values(this.options);var r=0;while(!e&&r<n.length){if(n[r].indicator){e=n[r]}else{if(n[r].visible){t+=1;i+=n[r].width}}r++}return"".concat(i+16*t-e.width/2,"px")};t.prototype.handleScrollTo=function(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-48})};t.prototype.render=function(){var t=this;var e,i,n,r,o,a,s;return h(Host,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?"8px":"104px"}},this.currentTrek&&h("div",{class:"trek-options"},h("a",{onClick:function(){return t.handleScrollTo(t.presentationRef)},class:"presentation trek-option".concat(this.options.presentation.indicator?" selected-trek-option":"")},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.stepsRef)},class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":"")},translate[state.language].options.steps),this.options.description.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.descriptionRef)},class:"description trek-option".concat(this.options.description.indicator?" selected-trek-option":"")},translate[state.language].options.description),this.options.recommendations.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.recommendationRef)},class:"recommendations trek-option".concat(this.options.recommendations.indicator?" selected-trek-option":"")},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)},class:"sensitive-areas trek-option".concat(this.options.sensitiveArea.indicator?" selected-trek-option":"")},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.informationDeskRef)},class:"information-places trek-option".concat(this.options.informationPlaces.indicator?" selected-trek-option":"")},translate[state.language].options.informationPlaces),this.options.pois.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.poiRef)},class:"pois trek-option".concat(this.options.pois.indicator?" selected-trek-option":"")},translate[state.language].options.pois),this.options.touristicContents.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.touristicContentsRef)},class:"touristic-content trek-option".concat(this.options.touristicContents.indicator?" selected-trek-option":"")},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{onClick:function(){return t.handleScrollTo(t.touristicEventsRef)},class:"touristic-event trek-option".concat(this.options.touristicEvents.indicator?" selected-trek-option":"")},translate[state.language].options.touristicEvents),h("span",{class:"indicator-selected-trek-option",style:{transform:"translateX(".concat(this.handleIndicatorSelectedTrekOption(),")")}})),this.currentTrek&&h("div",{class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{class:"images-container",ref:function(e){return t.presentationRef=e}},h("div",{class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){return h("div",{class:"swiper-slide"},h("img",{class:"image",src:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()}}))}))),h("div",{class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&h("div",{class:"themes-container"},this.themes.map((function(t){return h("div",{class:"theme"},t.label)}))),h("div",{class:"sub-container"},h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((e=this.difficulty)===null||e===void 0?void 0:e.pictogram)&&h("img",{src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),h("div",{class:"icon-label duration"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration((n=this.currentTrek)===null||n===void 0?void 0:n.duration)),h("div",{class:"icon-label route"},((r=this.route)===null||r===void 0?void 0:r.pictogram)&&h("img",{src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent)),h("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&h("img",{src:this.practice.pictogram}),(s=this.practice)===null||s===void 0?void 0:s.name)))),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate[state.language].downloads),h("div",{class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),h("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),h("a",{href:"".concat(this.currentTrek.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),h("div",{class:"divider"}),this.currentTrek.description_teaser&&h("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",null,h("div",{class:"divider"}),h("div",{class:"parent-trek-container"},h("button",{class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",null,"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{class:"step-container",ref:function(e){return t.stepsRef=e}},h("div",{class:"step-title"},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(e){return h("div",{class:"swiper-slide"},h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,"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",{class:"divider"}),this.currentTrek.description&&h("div",{class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{class:"description-title"},translate[state.language].description),h("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{class:"departure-container"},h("div",{class:"departure-title"},translate[state.language].departure," : "),h("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{class:"arrival-container"},h("div",{class:"arrival-title"},translate[state.language].arrival," : "),h("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&h("div",{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",{class:"divider"}),h("div",{class:"access-container"},h("div",{class:"access-title"},translate[state.language].roadAccess),h("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&h("div",null,h("div",{class:"divider"}),h("div",{class:"public-transport-container"},h("div",{class:"public-transport-title"},translate[state.language].transport),h("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advice-container",ref:function(e){return t.recommendationRef=e}},h("div",{class:"advice-title"},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{class:"current-advice-container"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),h("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((function(t){return h("div",{class:"label-container"},h("div",{class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram}),h("div",{class:"label-name",innerHTML:t.name})),h("div",{class:"label-advice",innerHTML:t.advice}))})))),this.currentTrek.advised_parking&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advised-parking-container",ref:function(e){return t.parkingRef=e}},h("div",{class:"advised-parking-title"},translate[state.language].recommendedParking),h("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&h("div",null,h("div",{class:"divider"}),h("div",{class:"gear-container"},h("div",{class:"gear-title"},translate[state.language].equipments),h("div",{class:"gear",innerHTML:this.currentTrek.gear}))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"sensitive-areas-container",ref:function(e){return t.sensitiveAreaRef=e}},h("div",{class:"sensitive-areas-title"},translate[state.language].environmentalSensitiveAreas),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{sensitiveArea:t})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"information-desks-container",ref:function(e){return t.informationDeskRef=e}},h("div",{class:"information-desks-title"},translate[state.language].informationPlaces),h("div",{class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(t){return h("div",{class:"swiper-slide"},h("grw-information-desk",{informationDesk:t}))})))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"accessibilities-container"},h("div",{class:"accessibilities-title"},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{innerHTML:this.currentTrek.disabled_infrastructure}),h("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{class:"accessibility-content-container"},h("img",{src:t.pictogram}),h("div",{innerHTML:t.name}))}))),this.currentTrek.accessibility_level&&h("div",{class:"accessibility-level-container"},h("div",{class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{class:"accessibility-slope-container"},h("div",{class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{class:"accessibility-width-container"},h("div",{class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{class:"accessibility-signage-container"},h("div",{class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{class:"accessibility-covering-container"},h("div",{class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{class:"accessibility-exposure-container"},h("div",{class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{class:"accessibility-advice-container"},h("div",{class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{innerHTML:this.currentTrek.accessibility_advice})))),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{class:"pois-title"},translate[state.language].pois(state.currentPois.length)),h("div",{class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{class:"swiper-slide"},h("grw-poi",{poi:t}))})))))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{class:"touristic-content-title"},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{class:"swiper-wrapper"},state.trekTouristicContents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-content-card",{touristicContent:t,isInsideHorizontalList:true}))})))))),state.touristicEvents&&state.touristicEvents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{class:"touristic-event-title"},translate[state.language].touristicEvents(state.touristicEvents.length)),h("div",{class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{class:"swiper-wrapper"},state.touristicEvents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-event-card",{touristicEvent:t}))})))))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"source-container"},h("div",{class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram}),h("div",null,h("div",{class:"source-name",innerHTML:t.name}),h("a",{class:"source-advice",href:t.website,innerHTML:t.website})))})))),h("div",{class:"detail-bottom-space"})))};return t}();GrwTrekDetail.style=grwTrekDetailCss;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}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTrek()};t.prototype.handleTrek=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"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(state.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),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"),this.init),fetch("".concat(state.api,"source/?language=").concat(state.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(state.api,"poi/?language=").concat(state.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init),fetch("".concat(state.api,"informationdesk/?language=").concat(state.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,category,geometry&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"touristicevent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),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/").concat(this.trekId,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,information_desks,children"),this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],p=e[8],u=e[9],h=e[10],d=e[11],f=e[12],m=e[13],g=e[14],v=e[15],_=e[16],y=e[17];return __awaiter(t,void 0,void 0,(function(){var t,e,w,b;return __generator(this,(function(k){switch(k.label){case 0:state.trekNetworkError=false;if(!(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=k.sent();state.parentTrek=e;t.push.apply(t,e.children);k.label=3;case 3:w=[];t.forEach((function(t){w.push(fetch("".concat(state.api,"trek/").concat(t,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts")))}));b=state;return[4,Promise.all(__spreadArray([],w,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:b.currentTrekSteps=k.sent();k.label=5;case 5:if(i){state.difficulties=i.results}if(n){state.routes=n.results}if(r){state.practices=r.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){state.themes=o.results}if(a){state.cities=a.results}if(s){state.accessibilities=s.results}if(l){state.currentSensitiveAreas=l.results}state.labels=c.results;state.sources=p.results;if(u){state.accessibilitiesLevel=u.results}if(m){state.trekTouristicContents=m.results}if(g){state.touristicContentCategories=g.results}if(v){state.touristicEvents=v.results}if(_){state.touristicEventTypes=_.results}state.currentPois=h.results;state.poiTypes=d.results;state.currentInformationDesks=f.results;state.currentTrek=y;return[2]}}))}))})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();var grwTreksListCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto";width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var GrwTreksList=function(){function t(t){registerInstance(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}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(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{style:{"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{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",{class:"treks-list-container"},this.treksToDisplay.map((function(e){return h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(e.id),trek: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})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=grwTreksListCss;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}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.treksNetworkError=false};t.prototype.handleTreks=function(){var t="".concat(this.api,"trek/?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));this.routes&&(t+="&routes=".concat(this.routes));this.practices&&(t+="&practices=".concat(this.practices));t+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999";Promise.all([fetch("".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&published=true&page_size=999"),this.init),fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch(t,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];state.treksNetworkError=false;state.difficulties=e.results;state.routes=i.results;state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=r.results;state.cities=o.results;state.accessibilities=a.results;state.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];state.lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];state.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];state.labels=s.results;state.districts=l.results;state.treks=c.results;state.currentTreks=c.results})).catch((function(){return state.treksNetworkError=true}))};t.prototype.render=function(){return h(Host,null)};return t}();export{GrwFilters as grw_filters,GrwMap as grw_map,GrwSearch as grw_search,GrwTouristicContentDetail as grw_touristic_content_detail,GrwTouristicContentProvider as grw_touristic_content_provider,GrwTouristicContentsList as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicEventDetail as grw_touristic_event_detail,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
14
14
  //# sourceMappingURL=grw-filters_12.entry.js.map