@geotrekce/geotrek-rando-widget 0.2.4 → 0.2.6

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 (226) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +2 -2
  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 +11 -5
  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-filter_7.cjs.entry.js +24 -15
  9. package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filter_7.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +2 -2
  13. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-trek-card.cjs.entry.js +2 -2
  16. package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
  17. package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/{index-4f1ea0dc.js → index-4965ff38.js} +13 -392
  19. package/dist/cjs/index-4965ff38.js.br +0 -0
  20. package/dist/cjs/index-4965ff38.js.gz +0 -0
  21. package/dist/cjs/index-4965ff38.js.map +1 -0
  22. package/dist/cjs/loader.cjs.js +2 -2
  23. package/dist/cjs/loader.cjs.js.br +0 -0
  24. package/dist/cjs/loader.cjs.js.gz +0 -0
  25. package/dist/cjs/{store-6635208a.js → store-dea1bb76.js} +2 -2
  26. package/dist/cjs/store-dea1bb76.js.br +0 -0
  27. package/dist/cjs/store-dea1bb76.js.gz +0 -0
  28. package/dist/cjs/{store-6635208a.js.map → store-dea1bb76.js.map} +1 -1
  29. package/dist/collection/components/grw-app/grw-app.css +8 -0
  30. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  31. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  32. package/dist/collection/components/grw-app/grw-app.js +8 -2
  33. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  34. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  35. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  36. package/dist/collection/components/grw-map/grw-map.js +20 -10
  37. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  38. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  39. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  40. package/dist/collection/components/grw-select-language/grw-select-language.css +8 -0
  41. package/dist/collection/components/grw-select-language/grw-select-language.css.br +0 -0
  42. package/dist/collection/components/grw-select-language/grw-select-language.css.gz +0 -0
  43. package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
  44. package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
  45. package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
  46. package/dist/collection/components/grw-select-language/grw-select-language.js.map +1 -1
  47. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +3 -2
  48. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  49. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  50. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
  51. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  52. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  53. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  54. package/dist/esm/geotrek-rando-widget.js +3 -3
  55. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  56. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  57. package/dist/esm/grw-app.entry.js +11 -5
  58. package/dist/esm/grw-app.entry.js.br +0 -0
  59. package/dist/esm/grw-app.entry.js.gz +0 -0
  60. package/dist/esm/grw-app.entry.js.map +1 -1
  61. package/dist/esm/grw-filter_7.entry.js +24 -15
  62. package/dist/esm/grw-filter_7.entry.js.br +0 -0
  63. package/dist/esm/grw-filter_7.entry.js.gz +0 -0
  64. package/dist/esm/grw-filter_7.entry.js.map +1 -1
  65. package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
  66. package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
  67. package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
  68. package/dist/esm/grw-trek-card.entry.js +2 -2
  69. package/dist/esm/grw-trek-card.entry.js.br +0 -0
  70. package/dist/esm/grw-trek-card.entry.js.gz +0 -0
  71. package/dist/esm/{index-54f82b03.js → index-e3b2b3c7.js} +13 -392
  72. package/dist/esm/index-e3b2b3c7.js.br +0 -0
  73. package/dist/esm/index-e3b2b3c7.js.gz +0 -0
  74. package/dist/esm/index-e3b2b3c7.js.map +1 -0
  75. package/dist/esm/loader.js +3 -3
  76. package/dist/esm/loader.js.br +0 -0
  77. package/dist/esm/loader.js.gz +0 -0
  78. package/dist/esm/{store-0fc1faf0.js → store-c65221a3.js} +2 -2
  79. package/dist/esm/store-c65221a3.js.br +0 -0
  80. package/dist/esm/store-c65221a3.js.gz +0 -0
  81. package/dist/esm/{store-0fc1faf0.js.map → store-c65221a3.js.map} +1 -1
  82. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  83. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  84. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  85. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  86. package/dist/esm-es5/grw-app.entry.js +1 -1
  87. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  88. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  89. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  90. package/dist/esm-es5/grw-filter_7.entry.js +2 -2
  91. package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
  92. package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
  93. package/dist/esm-es5/grw-filter_7.entry.js.map +1 -1
  94. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  95. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
  96. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
  97. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  98. package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
  99. package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
  100. package/dist/esm-es5/index-e3b2b3c7.js +3 -0
  101. package/dist/esm-es5/index-e3b2b3c7.js.br +0 -0
  102. package/dist/esm-es5/index-e3b2b3c7.js.gz +0 -0
  103. package/dist/esm-es5/index-e3b2b3c7.js.map +1 -0
  104. package/dist/esm-es5/loader.js +1 -1
  105. package/dist/esm-es5/loader.js.br +0 -0
  106. package/dist/esm-es5/loader.js.gz +0 -0
  107. package/dist/esm-es5/loader.js.map +1 -1
  108. package/dist/esm-es5/{store-0fc1faf0.js → store-c65221a3.js} +2 -2
  109. package/dist/esm-es5/store-c65221a3.js.br +0 -0
  110. package/dist/esm-es5/store-c65221a3.js.gz +0 -0
  111. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  112. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  113. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  114. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  115. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  116. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
  117. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
  118. package/dist/geotrek-rando-widget/{p-664e5947.entry.js → p-58780538.entry.js} +2 -2
  119. package/dist/geotrek-rando-widget/p-58780538.entry.js.br +0 -0
  120. package/dist/geotrek-rando-widget/p-58780538.entry.js.gz +0 -0
  121. package/dist/geotrek-rando-widget/{p-756407ef.system.entry.js → p-5d3b30cf.system.entry.js} +2 -2
  122. package/dist/geotrek-rando-widget/p-5d3b30cf.system.entry.js.br +0 -0
  123. package/dist/geotrek-rando-widget/p-5d3b30cf.system.entry.js.gz +0 -0
  124. package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js +2 -0
  125. package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js.br +0 -0
  126. package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js.gz +0 -0
  127. package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js.map +1 -0
  128. package/dist/geotrek-rando-widget/{p-ce85e24a.entry.js → p-739b3529.entry.js} +2 -2
  129. package/dist/geotrek-rando-widget/p-739b3529.entry.js.br +0 -0
  130. package/dist/geotrek-rando-widget/p-739b3529.entry.js.gz +0 -0
  131. package/dist/geotrek-rando-widget/p-7505c6d0.entry.js +2 -0
  132. package/dist/geotrek-rando-widget/p-7505c6d0.entry.js.br +0 -0
  133. package/dist/geotrek-rando-widget/p-7505c6d0.entry.js.gz +0 -0
  134. package/dist/geotrek-rando-widget/p-7505c6d0.entry.js.map +1 -0
  135. package/dist/geotrek-rando-widget/{p-648e7a24.system.entry.js → p-9347e4aa.system.entry.js} +2 -2
  136. package/dist/geotrek-rando-widget/p-9347e4aa.system.entry.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-9347e4aa.system.entry.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/{p-66b39d3f.system.entry.js → p-94ff5569.system.entry.js} +3 -3
  139. package/dist/geotrek-rando-widget/p-94ff5569.system.entry.js.br +0 -0
  140. package/dist/geotrek-rando-widget/p-94ff5569.system.entry.js.gz +0 -0
  141. package/dist/geotrek-rando-widget/p-94ff5569.system.entry.js.map +1 -0
  142. package/dist/geotrek-rando-widget/p-b3dbf860.js +3 -0
  143. package/dist/geotrek-rando-widget/p-b3dbf860.js.br +0 -0
  144. package/dist/geotrek-rando-widget/p-b3dbf860.js.gz +0 -0
  145. package/dist/geotrek-rando-widget/p-b3dbf860.js.map +1 -0
  146. package/dist/geotrek-rando-widget/p-b6f2002a.system.js +3 -0
  147. package/dist/geotrek-rando-widget/p-b6f2002a.system.js.br +0 -0
  148. package/dist/geotrek-rando-widget/p-b6f2002a.system.js.gz +0 -0
  149. package/dist/geotrek-rando-widget/p-b6f2002a.system.js.map +1 -0
  150. package/dist/geotrek-rando-widget/{p-9330bbdb.entry.js → p-c321886e.entry.js} +3 -3
  151. package/dist/geotrek-rando-widget/p-c321886e.entry.js.br +0 -0
  152. package/dist/geotrek-rando-widget/p-c321886e.entry.js.gz +0 -0
  153. package/dist/geotrek-rando-widget/p-c321886e.entry.js.map +1 -0
  154. package/dist/geotrek-rando-widget/{p-b73f1de1.system.js → p-dbc7b7b1.system.js} +2 -2
  155. package/dist/geotrek-rando-widget/p-dbc7b7b1.system.js.br +0 -0
  156. package/dist/geotrek-rando-widget/p-dbc7b7b1.system.js.gz +0 -0
  157. package/dist/geotrek-rando-widget/{p-7ff4047d.js → p-dffaf93c.js} +2 -2
  158. package/dist/geotrek-rando-widget/p-dffaf93c.js.br +0 -0
  159. package/dist/geotrek-rando-widget/p-dffaf93c.js.gz +0 -0
  160. package/dist/geotrek-rando-widget/{p-243113ed.system.js → p-edf31fdc.system.js} +2 -2
  161. package/dist/geotrek-rando-widget/p-edf31fdc.system.js.br +0 -0
  162. package/dist/geotrek-rando-widget/p-edf31fdc.system.js.gz +0 -0
  163. package/dist/geotrek-rando-widget/p-edf31fdc.system.js.map +1 -0
  164. package/dist/types/components/grw-app/grw-app.d.ts +2 -0
  165. package/dist/types/components/grw-map/grw-map.d.ts +6 -0
  166. package/package.json +1 -1
  167. package/dist/cjs/index-4f1ea0dc.js.br +0 -0
  168. package/dist/cjs/index-4f1ea0dc.js.gz +0 -0
  169. package/dist/cjs/index-4f1ea0dc.js.map +0 -1
  170. package/dist/cjs/store-6635208a.js.br +0 -0
  171. package/dist/cjs/store-6635208a.js.gz +0 -0
  172. package/dist/esm/index-54f82b03.js.br +0 -0
  173. package/dist/esm/index-54f82b03.js.gz +0 -0
  174. package/dist/esm/index-54f82b03.js.map +0 -1
  175. package/dist/esm/store-0fc1faf0.js.br +0 -0
  176. package/dist/esm/store-0fc1faf0.js.gz +0 -0
  177. package/dist/esm-es5/index-54f82b03.js +0 -3
  178. package/dist/esm-es5/index-54f82b03.js.br +0 -0
  179. package/dist/esm-es5/index-54f82b03.js.gz +0 -0
  180. package/dist/esm-es5/index-54f82b03.js.map +0 -1
  181. package/dist/esm-es5/store-0fc1faf0.js.br +0 -0
  182. package/dist/esm-es5/store-0fc1faf0.js.gz +0 -0
  183. package/dist/geotrek-rando-widget/p-17823624.entry.js +0 -2
  184. package/dist/geotrek-rando-widget/p-17823624.entry.js.br +0 -0
  185. package/dist/geotrek-rando-widget/p-17823624.entry.js.gz +0 -0
  186. package/dist/geotrek-rando-widget/p-17823624.entry.js.map +0 -1
  187. package/dist/geotrek-rando-widget/p-243113ed.system.js.br +0 -0
  188. package/dist/geotrek-rando-widget/p-243113ed.system.js.gz +0 -0
  189. package/dist/geotrek-rando-widget/p-243113ed.system.js.map +0 -1
  190. package/dist/geotrek-rando-widget/p-648e7a24.system.entry.js.br +0 -0
  191. package/dist/geotrek-rando-widget/p-648e7a24.system.entry.js.gz +0 -0
  192. package/dist/geotrek-rando-widget/p-664e5947.entry.js.br +0 -0
  193. package/dist/geotrek-rando-widget/p-664e5947.entry.js.gz +0 -0
  194. package/dist/geotrek-rando-widget/p-66b39d3f.system.entry.js.br +0 -0
  195. package/dist/geotrek-rando-widget/p-66b39d3f.system.entry.js.gz +0 -0
  196. package/dist/geotrek-rando-widget/p-66b39d3f.system.entry.js.map +0 -1
  197. package/dist/geotrek-rando-widget/p-756407ef.system.entry.js.br +0 -0
  198. package/dist/geotrek-rando-widget/p-756407ef.system.entry.js.gz +0 -0
  199. package/dist/geotrek-rando-widget/p-7ff4047d.js.br +0 -0
  200. package/dist/geotrek-rando-widget/p-7ff4047d.js.gz +0 -0
  201. package/dist/geotrek-rando-widget/p-9330bbdb.entry.js.br +0 -0
  202. package/dist/geotrek-rando-widget/p-9330bbdb.entry.js.gz +0 -0
  203. package/dist/geotrek-rando-widget/p-9330bbdb.entry.js.map +0 -1
  204. package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js +0 -2
  205. package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js.br +0 -0
  206. package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js.gz +0 -0
  207. package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js.map +0 -1
  208. package/dist/geotrek-rando-widget/p-b73f1de1.system.js.br +0 -0
  209. package/dist/geotrek-rando-widget/p-b73f1de1.system.js.gz +0 -0
  210. package/dist/geotrek-rando-widget/p-ce85e24a.entry.js.br +0 -0
  211. package/dist/geotrek-rando-widget/p-ce85e24a.entry.js.gz +0 -0
  212. package/dist/geotrek-rando-widget/p-fb7c407e.system.js +0 -3
  213. package/dist/geotrek-rando-widget/p-fb7c407e.system.js.br +0 -0
  214. package/dist/geotrek-rando-widget/p-fb7c407e.system.js.gz +0 -0
  215. package/dist/geotrek-rando-widget/p-fb7c407e.system.js.map +0 -1
  216. package/dist/geotrek-rando-widget/p-fc1a08e2.js +0 -3
  217. package/dist/geotrek-rando-widget/p-fc1a08e2.js.br +0 -0
  218. package/dist/geotrek-rando-widget/p-fc1a08e2.js.gz +0 -0
  219. package/dist/geotrek-rando-widget/p-fc1a08e2.js.map +0 -1
  220. /package/dist/esm-es5/{store-0fc1faf0.js.map → store-c65221a3.js.map} +0 -0
  221. /package/dist/geotrek-rando-widget/{p-664e5947.entry.js.map → p-58780538.entry.js.map} +0 -0
  222. /package/dist/geotrek-rando-widget/{p-756407ef.system.entry.js.map → p-5d3b30cf.system.entry.js.map} +0 -0
  223. /package/dist/geotrek-rando-widget/{p-ce85e24a.entry.js.map → p-739b3529.entry.js.map} +0 -0
  224. /package/dist/geotrek-rando-widget/{p-648e7a24.system.entry.js.map → p-9347e4aa.system.entry.js.map} +0 -0
  225. /package/dist/geotrek-rando-widget/{p-b73f1de1.system.js.map → p-dbc7b7b1.system.js.map} +0 -0
  226. /package/dist/geotrek-rando-widget/{p-7ff4047d.js.map → p-dffaf93c.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{r as t,h as i,H as e,e as n,i as r,g as s}from"./p-fc1a08e2.js";import{s as o,o as a,r as h}from"./p-7ff4047d.js";import{t as l}from"./p-0773c38f.js";import{g as f,n as c,a as u,e as d,S as p,N as v,P as m,K as g}from"./p-a06aacd4.js";import{f as b,a as w,b as y}from"./p-2d3ac9a0.js";const x='.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:roboto}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .filter-button,.filter-button-container .selected-filter-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-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:8px;-webkit-tap-highlight-color:transparent;line-height:20px;-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;min-width:100px;white-space:nowrap}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-family:"Material Symbols Outlined";font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}';const k=class{constructor(i){t(this,i);this.filters=[{property:"practices",trekProperty:"practice",type:"include"},{property:"difficulties",trekProperty:"difficulty",type:"include"},{property:"durations",trekProperty:"duration",type:"interval"}];this.filterType=undefined;this.filterName=undefined;this.filterNameProperty=undefined}handleFilter(t,i){const e=[...o[this.filterType]];e.find((t=>t.id===i.id)).selected=!e.find((t=>t.id===i.id)).selected;o[this.filterType]=e;let n=false;let r=[];for(const s of this.filters){const t=o[s.property].filter((t=>t.selected)).map((t=>t.id));if(t.length>0){if(r.length>0){if(s.type==="include"){r=[...r.filter((i=>t.includes(i[s.trekProperty])))]}else if(s.type==="interval"){r=[...r.filter((i=>{for(const e of t){const t=o[s.property].find((t=>t.id===e));if(i[s.trekProperty]>=t.minValue&&i[s.trekProperty]<=t.maxValue){return true}}return false}))]}}else{if(!n){n=true}if(s.type==="include"){r=[...o.treks.filter((i=>t.includes(i[s.trekProperty])))]}else if(s.type==="interval"){let i;let e;for(const n of t){const t=o[s.property].find((t=>t.id===n));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(e)||t.maxValue>e){e=t.maxValue}}r=[...o.treks.filter((t=>t[s.trekProperty]>=i&&t[s.trekProperty]<=e))]}}}}o.currentTreks=n?r:o.treks}render(){return i(e,null,i("div",{class:"filter-name display-large"},this.filterName),i("div",{class:"filter-button-container"},o[this.filterType].map((t=>i("button",{onClick:i=>this.handleFilter(i,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&i("span",{class:"material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}};k.style=x;var _=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function A(t,i,e){return e={path:i,exports:{},require:function(t,i){return z()}},t(e,e.exports),e.exports}function M(t){if(t.__esModule)return t;var i=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,n.get?n:{enumerable:true,get:function(){return t[e]}})}));return i}function z(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var P=A((function(t,i){
1
+ import{r as t,h as i,H as e,e as n,i as r,g as s}from"./p-b3dbf860.js";import{s as o,o as a,r as h}from"./p-dffaf93c.js";import{t as l}from"./p-0773c38f.js";import{g as f,n as c,a as u,e as d,S as p,N as v,P as m,K as g}from"./p-a06aacd4.js";import{f as b,a as w,b as y}from"./p-2d3ac9a0.js";const x='.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:roboto}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .filter-button,.filter-button-container .selected-filter-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-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:8px;-webkit-tap-highlight-color:transparent;line-height:20px;-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;min-width:100px;white-space:nowrap}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-family:"Material Symbols Outlined";font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}';const k=class{constructor(i){t(this,i);this.filters=[{property:"practices",trekProperty:"practice",type:"include"},{property:"difficulties",trekProperty:"difficulty",type:"include"},{property:"durations",trekProperty:"duration",type:"interval"}];this.filterType=undefined;this.filterName=undefined;this.filterNameProperty=undefined}handleFilter(t,i){const e=[...o[this.filterType]];e.find((t=>t.id===i.id)).selected=!e.find((t=>t.id===i.id)).selected;o[this.filterType]=e;let n=false;let r=[];for(const s of this.filters){const t=o[s.property].filter((t=>t.selected)).map((t=>t.id));if(t.length>0){if(r.length>0){if(s.type==="include"){r=[...r.filter((i=>t.includes(i[s.trekProperty])))]}else if(s.type==="interval"){r=[...r.filter((i=>{for(const e of t){const t=o[s.property].find((t=>t.id===e));if(i[s.trekProperty]>=t.minValue&&i[s.trekProperty]<=t.maxValue){return true}}return false}))]}}else{if(!n){n=true}if(s.type==="include"){r=[...o.treks.filter((i=>t.includes(i[s.trekProperty])))]}else if(s.type==="interval"){let i;let e;for(const n of t){const t=o[s.property].find((t=>t.id===n));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(e)||t.maxValue>e){e=t.maxValue}}r=[...o.treks.filter((t=>t[s.trekProperty]>=i&&t[s.trekProperty]<=e))]}}}}o.currentTreks=n?r:o.treks}render(){return i(e,null,i("div",{class:"filter-name display-large"},this.filterName),i("div",{class:"filter-button-container"},o[this.filterType].map((t=>i("button",{onClick:i=>this.handleFilter(i,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&i("span",{class:"material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}};k.style=x;var _=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function A(t,i,e){return e={path:i,exports:{},require:function(t,i){return z()}},t(e,e.exports),e.exports}function M(t){if(t.__esModule)return t;var i=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,n.get?n:{enumerable:true,get:function(){return t[e]}})}));return i}function z(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var P=A((function(t,i){
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
@@ -10,5 +10,5 @@ Copyright (c) 2016 Dominik Moritz
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(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(P)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,n)=>{n=n.split(" ");n.forEach((function(n){t.DomUtil[i].call(this,e,n)}))};const e=(t,e)=>i("addClass",t,e);const n=(t,e)=>i("removeClass",t,e);const r=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const n=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:n.className,html:n.svg,iconSize:[n.w,n.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const n=t.weight;const r=e+n;const s=r*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${r} -${r} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=r.extend({initialize(i,e,n){t.Util.setOptions(this,n);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const n=t.width+t.weight;const r=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${n},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${n}" height="${r}" version="1.1" viewBox="-${n/2} 0 ${n} ${r}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:n,h:r}}});const o=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds(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:s,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback(i,e){const n=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);n.title=e.strings.title;n.href="#";n.setAttribute("role","button");const r=t.DomUtil.create(e.iconElementTag,e.icon,n);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",n);i.textContent=e.strings.text;n.classList.add("leaflet-locate-text-active");n.parentNode.style.display="flex";if(e.icon.length>0){r.classList.add("leaflet-locate-icon")}}return{link:n,icon:r}},onLocationError(t,i){alert(t.message)},onLocationOutsideMapBounds(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(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}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(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const n=this.options.createButtonCallback(e,this.options);this._link=n.link;this._icon=n.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_onClick(){this._justClicked=true;const t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){const i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){const t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;t.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate(){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){const i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const n=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){n()}}))}else{n()}}}},_deactivate(){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(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.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(){if(!this._event){return}const t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){const i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker(){if(this._event.accuracy===undefined){this._event.accuracy=0}const i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const n=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,n).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(n)}}let n;let r;if(this.options.metric){n=i.toFixed(0);r=this.options.strings.metersUnit}else{n=(i*3.2808399).toFixed(0);r=this.options.strings.feetUnit}if(this.options.drawMarker){const t=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:n,unit:r})}else if(typeof s==="function"){return s({distance:n,unit:r})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound(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(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd(){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(){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(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){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(t){if(t=="requesting"){n(this._container,"active following");e(this._container,"requesting");n(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){n(this._container,"requesting following");e(this._container,"active");n(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){n(this._container,"requesting");e(this._container,"active following");n(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}},_cleanClasses(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");n(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));var j=A((function(t,i){(function(e){var n=i&&!i.nodeType&&i;var r=t&&!t.nodeType&&t;var s=typeof _=="object"&&_;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,h=36,l=1,f=26,c=38,u=700,d=72,p=128,v="-",m=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=h-l,x=Math.floor,k=String.fromCharCode,A;function M(t){throw new RangeError(w[t])}function z(t,i){var e=t.length;var n=[];while(e--){n[e]=i(t[e])}return n}function P(t,i){var e=t.split("@");var n="";if(e.length>1){n=e[0]+"@";t=e[1]}t=t.replace(b,".");var r=t.split(".");var s=z(r,i).join(".");return n+s}function L(t){var i=[],e=0,n=t.length,r,s;while(e<n){r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((r&1023)<<10)+(s&1023)+65536)}else{i.push(r);e--}}else{i.push(r)}}return i}function j(t){return z(t,(function(t){var i="";if(t>65535){t-=65536;i+=k(t>>>10&1023|55296);t=56320|t&1023}i+=k(t);return i})).join("")}function O(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return h}function S(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function T(t,i,e){var n=0;t=e?x(t/u):t>>1;t+=x(t/i);for(;t>y*f>>1;n+=h){t=x(t/y)}return x(n+(y+1)*t/(t+c))}function E(t){var i=[],e=t.length,n,r=0,s=p,o=d,c,u,m,g,b,w,y,k,_;c=t.lastIndexOf(v);if(c<0){c=0}for(u=0;u<c;++u){if(t.charCodeAt(u)>=128){M("not-basic")}i.push(t.charCodeAt(u))}for(m=c>0?c+1:0;m<e;){for(g=r,b=1,w=h;;w+=h){if(m>=e){M("invalid-input")}y=O(t.charCodeAt(m++));if(y>=h||y>x((a-r)/b)){M("overflow")}r+=y*b;k=w<=o?l:w>=o+f?f:w-o;if(y<k){break}_=h-k;if(b>x(a/_)){M("overflow")}b*=_}n=i.length+1;o=T(r-g,n,g==0);if(x(r/n)>a-s){M("overflow")}s+=x(r/n);r%=n;i.splice(r++,0,s)}return j(i)}function C(t){var i,e,n,r,s,o,c,u,m,g,b,w=[],y,_,A,z;t=L(t);y=t.length;i=p;e=0;s=d;for(o=0;o<y;++o){b=t[o];if(b<128){w.push(k(b))}}n=r=w.length;if(r){w.push(v)}while(n<y){for(c=a,o=0;o<y;++o){b=t[o];if(b>=i&&b<c){c=b}}_=n+1;if(c-i>x((a-e)/_)){M("overflow")}e+=(c-i)*_;i=c;for(o=0;o<y;++o){b=t[o];if(b<i&&++e>a){M("overflow")}if(b==i){for(u=e,m=h;;m+=h){g=m<=s?l:m>=s+f?f:m-s;if(u<g){break}z=u-g;A=h-g;w.push(k(S(g+z%A,0)));u=x(z/A)}w.push(k(S(u,0)));s=T(e,_,n==r);e=0;++n}}++e;++i}return w.join("")}function F(t){return P(t,(function(t){return m.test(t)?E(t.slice(4).toLowerCase()):t}))}function I(t){return P(t,(function(t){return g.test(t)?"xn--"+C(t):t}))}o={version:"1.4.1",ucs2:{decode:L,encode:j},decode:E,encode:C,toASCII:I,toUnicode:F};if(n&&r){if(t.exports==n){r.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(n[A]=o[A])}}}else{e.punycode=o}})(_)}));var O=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var n=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(n)!=="[object Symbol]"){return false}var r=42;i[e]=r;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==r||o.enumerable!==true){return false}}return true};var S=typeof Symbol!=="undefined"&&Symbol;var T=function t(){if(typeof S!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof S("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return O()};var E={foo:{}};var C=Object;var F=function t(){return{__proto__:E}.foo===E.foo&&!({__proto__:null}instanceof C)};var I="Function.prototype.bind called on incompatible ";var B=Array.prototype.slice;var R=Object.prototype.toString;var N="[object Function]";var D=function t(i){var e=this;if(typeof e!=="function"||R.call(e)!==N){throw new TypeError(I+e)}var n=B.call(arguments,1);var r;var s=function(){if(this instanceof r){var t=e.apply(this,n.concat(B.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,n.concat(B.call(arguments)))}};var o=Math.max(0,e.length-n.length);var a=[];for(var h=0;h<o;h++){a.push("$"+h)}r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var l=function t(){};l.prototype=e.prototype;r.prototype=new l;l.prototype=null}return r};var U=Function.prototype.bind||D;var Z=U.call(Function.call,Object.prototype.hasOwnProperty);var $;var G=SyntaxError;var H=Function;var V=TypeError;var W=function(t){try{return H('"use strict"; return ('+t+").constructor;")()}catch(i){}};var Y=Object.getOwnPropertyDescriptor;var Q=function(){throw new V};var q=Y?function(){try{return Q}catch(t){try{return Y(arguments,"callee").get}catch(i){return Q}}}():Q;var J=T();var X=F();var K=Object.getPrototypeOf||(X?function(t){return t.__proto__}:null);var tt={};var it=typeof Uint8Array==="undefined"||!K?$:K(Uint8Array);var et={"%AggregateError%":typeof AggregateError==="undefined"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?$:ArrayBuffer,"%ArrayIteratorPrototype%":J&&K?K([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":tt,"%AsyncGenerator%":tt,"%AsyncGeneratorFunction%":tt,"%AsyncIteratorPrototype%":tt,"%Atomics%":typeof Atomics==="undefined"?$:Atomics,"%BigInt%":typeof BigInt==="undefined"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?$:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?$:FinalizationRegistry,"%Function%":H,"%GeneratorFunction%":tt,"%Int8Array%":typeof Int8Array==="undefined"?$:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?$:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&K?K(K([][Symbol.iterator]())):$,"%JSON%":typeof JSON==="object"?JSON:$,"%Map%":typeof Map==="undefined"?$:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!J||!K?$:K((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?$:Promise,"%Proxy%":typeof Proxy==="undefined"?$:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?$:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!J||!K?$:K((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&K?K(""[Symbol.iterator]()):$,"%Symbol%":J?Symbol:$,"%SyntaxError%":G,"%ThrowTypeError%":q,"%TypedArray%":it,"%TypeError%":V,"%Uint8Array%":typeof Uint8Array==="undefined"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?$:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?$:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?$:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?$:WeakSet};var nt=function t(i){var e;if(i==="%AsyncFunction%"){e=W("async function () {}")}else if(i==="%GeneratorFunction%"){e=W("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=W("async function* () {}")}else if(i==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");if(n){e=n.prototype}}else if(i==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");if(r&&K){e=K(r.prototype)}}et[i]=e;return e};var rt={"%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 st=U.call(Function.call,Array.prototype.concat);var ot=U.call(Function.apply,Array.prototype.splice);var at=U.call(Function.call,String.prototype.replace);var ht=U.call(Function.call,String.prototype.slice);var lt=U.call(Function.call,RegExp.prototype.exec);var ft=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var ct=/\\(\\)?/g;var ut=function t(i){var e=ht(i,0,1);var n=ht(i,-1);if(e==="%"&&n!=="%"){throw new G("invalid intrinsic syntax, expected closing `%`")}else if(n==="%"&&e!=="%"){throw new G("invalid intrinsic syntax, expected opening `%`")}var r=[];at(i,ft,(function(t,i,e,n){r[r.length]=e?at(n,ct,"$1"):i||t}));return r};var dt=function t(i,e){var n=i;var r;if(Z(rt,n)){r=rt[n];n="%"+r[0]+"%"}if(Z(et,n)){var s=et[n];if(s===tt){s=nt(n)}if(typeof s==="undefined"&&!e){throw new V("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:r,name:n,value:s}}throw new G("intrinsic "+i+" does not exist!")};var pt=function t(i,e){if(typeof i!=="string"||i.length===0){throw new V("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new V('"allowMissing" argument must be a boolean')}if(lt(/^%?[^%]*%?$/,i)===null){throw new G("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var n=ut(i);var r=n.length>0?n[0]:"";var s=dt("%"+r+"%",e);var o=s.name;var a=s.value;var h=false;var l=s.alias;if(l){r=l[0];ot(n,st([0,1],l))}for(var f=1,c=true;f<n.length;f+=1){var u=n[f];var d=ht(u,0,1);var p=ht(u,-1);if((d==='"'||d==="'"||d==="`"||(p==='"'||p==="'"||p==="`"))&&d!==p){throw new G("property names with quotes must have matching quotes")}if(u==="constructor"||!c){h=true}r+="."+u;o="%"+r+"%";if(Z(et,o)){a=et[o]}else if(a!=null){if(!(u in a)){if(!e){throw new V("base intrinsic for "+i+" exists, but the property is not available.")}return void $}if(Y&&f+1>=n.length){var v=Y(a,u);c=!!v;if(c&&"get"in v&&!("originalValue"in v.get)){a=v.get}else{a=a[u]}}else{c=Z(a,u);a=a[u]}if(c&&!h){et[o]=a}}}return a};var vt=A((function(t){var i=pt("%Function.prototype.apply%");var e=pt("%Function.prototype.call%");var n=pt("%Reflect.apply%",true)||U.call(e,i);var r=pt("%Object.getOwnPropertyDescriptor%",true);var s=pt("%Object.defineProperty%",true);var o=pt("%Math.max%");if(s){try{s({},"a",{value:1})}catch(h){s=null}}t.exports=function t(i){var a=n(U,e,arguments);if(r&&s){var h=r(a,"length");if(h.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return n(U,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var mt=vt(pt("String.prototype.indexOf"));var gt=function t(i,e){var n=pt(i,!!e);if(typeof n==="function"&&mt(i,".prototype.")>-1){return vt(n)}return n};const bt={};const wt=Object.freeze({__proto__:null,default:bt});const yt=M(wt);var xt=typeof Map==="function"&&Map.prototype;var kt=Object.getOwnPropertyDescriptor&&xt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var _t=xt&&kt&&typeof kt.get==="function"?kt.get:null;var At=xt&&Map.prototype.forEach;var Mt=typeof Set==="function"&&Set.prototype;var zt=Object.getOwnPropertyDescriptor&&Mt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Pt=Mt&&zt&&typeof zt.get==="function"?zt.get:null;var Lt=Mt&&Set.prototype.forEach;var jt=typeof WeakMap==="function"&&WeakMap.prototype;var Ot=jt?WeakMap.prototype.has:null;var St=typeof WeakSet==="function"&&WeakSet.prototype;var Tt=St?WeakSet.prototype.has:null;var Et=typeof WeakRef==="function"&&WeakRef.prototype;var Ct=Et?WeakRef.prototype.deref:null;var Ft=Boolean.prototype.valueOf;var It=Object.prototype.toString;var Bt=Function.prototype.toString;var Rt=String.prototype.match;var Nt=String.prototype.slice;var Dt=String.prototype.replace;var Ut=String.prototype.toUpperCase;var Zt=String.prototype.toLowerCase;var $t=RegExp.prototype.test;var Gt=Array.prototype.concat;var Ht=Array.prototype.join;var Vt=Array.prototype.slice;var Wt=Math.floor;var Yt=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var Qt=Object.getOwnPropertySymbols;var qt=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var Jt=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var Xt=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Jt?"object":"symbol")?Symbol.toStringTag:null;var Kt=Object.prototype.propertyIsEnumerable;var ti=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ii(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||$t.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var n=t<0?-Wt(-t):Wt(t);if(n!==t){var r=String(n);var s=Nt.call(i,r.length+1);return Dt.call(r,e,"$&_")+"."+Dt.call(Dt.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Dt.call(i,e,"$&_")}var ei=yt.custom;var ni=pi(ei)?ei:null;var ri=function t(i,e,n,r){var s=e||{};if(gi(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(gi(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=gi(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(gi(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(gi(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Pi(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var h=String(i);return a?ii(i,h):h}if(typeof i==="bigint"){var l=String(i)+"n";return a?ii(i,l):l}var f=typeof s.depth==="undefined"?5:s.depth;if(typeof n==="undefined"){n=0}if(n>=f&&f>0&&typeof i==="object"){return ai(i)?"[Array]":"[Object]"}var c=Ei(s,n);if(typeof r==="undefined"){r=[]}else if(yi(r,i)>=0){return"[Circular]"}function u(i,e,o){if(e){r=Vt.call(r);r.push(e)}if(o){var a={depth:s.depth};if(gi(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,n+1,r)}return t(i,s,n+1,r)}if(typeof i==="function"&&!li(i)){var d=wi(i);var p=Fi(i,u);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(p.length>0?" { "+Ht.call(p,", ")+" }":"")}if(pi(i)){var v=Jt?Dt.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):qt.call(i);return typeof i==="object"&&!Jt?ji(v):v}if(zi(i)){var m="<"+Zt.call(String(i.nodeName));var g=i.attributes||[];for(var b=0;b<g.length;b++){m+=" "+g[b].name+"="+si(oi(g[b].value),"double",s)}m+=">";if(i.childNodes&&i.childNodes.length){m+="..."}m+="</"+Zt.call(String(i.nodeName))+">";return m}if(ai(i)){if(i.length===0){return"[]"}var w=Fi(i,u);if(c&&!Ti(w)){return"["+Ci(w,c)+"]"}return"[ "+Ht.call(w,", ")+" ]"}if(fi(i)){var y=Fi(i,u);if(!("cause"in Error.prototype)&&"cause"in i&&!Kt.call(i,"cause")){return"{ ["+String(i)+"] "+Ht.call(Gt.call("[cause]: "+u(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+Ht.call(y,", ")+" }"}if(typeof i==="object"&&o){if(ni&&typeof i[ni]==="function"&&yt){return yt(i,{depth:f-n})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if(xi(i)){var x=[];if(At){At.call(i,(function(t,e){x.push(u(e,i,true)+" => "+u(t,i))}))}return Si("Map",_t.call(i),x,c)}if(Ai(i)){var k=[];if(Lt){Lt.call(i,(function(t){k.push(u(t,i))}))}return Si("Set",Pt.call(i),k,c)}if(ki(i)){return Oi("WeakMap")}if(Mi(i)){return Oi("WeakSet")}if(_i(i)){return Oi("WeakRef")}if(ui(i)){return ji(u(Number(i)))}if(vi(i)){return ji(u(Yt.call(i)))}if(di(i)){return ji(Ft.call(i))}if(ci(i)){return ji(u(String(i)))}if(!hi(i)&&!li(i)){var _=Fi(i,u);var A=ti?ti(i)===Object.prototype:i instanceof Object||i.constructor===Object;var M=i instanceof Object?"":"null prototype";var z=!A&&Xt&&Object(i)===i&&Xt in i?Nt.call(bi(i),8,-1):M?"Object":"";var P=A||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var L=P+(z||M?"["+Ht.call(Gt.call([],z||[],M||[]),": ")+"] ":"");if(_.length===0){return L+"{}"}if(c){return L+"{"+Ci(_,c)+"}"}return L+"{ "+Ht.call(_,", ")+" }"}return String(i)};function si(t,i,e){var n=(e.quoteStyle||i)==="double"?'"':"'";return n+t+n}function oi(t){return Dt.call(String(t),/"/g,"&quot;")}function ai(t){return bi(t)==="[object Array]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function hi(t){return bi(t)==="[object Date]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function li(t){return bi(t)==="[object RegExp]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function fi(t){return bi(t)==="[object Error]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function ci(t){return bi(t)==="[object String]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function ui(t){return bi(t)==="[object Number]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function di(t){return bi(t)==="[object Boolean]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function pi(t){if(Jt){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!qt){return false}try{qt.call(t);return true}catch(i){}return false}function vi(t){if(!t||typeof t!=="object"||!Yt){return false}try{Yt.call(t);return true}catch(i){}return false}var mi=Object.prototype.hasOwnProperty||function(t){return t in this};function gi(t,i){return mi.call(t,i)}function bi(t){return It.call(t)}function wi(t){if(t.name){return t.name}var i=Rt.call(Bt.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function yi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,n=t.length;e<n;e++){if(t[e]===i){return e}}return-1}function xi(t){if(!_t||!t||typeof t!=="object"){return false}try{_t.call(t);try{Pt.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function ki(t){if(!Ot||!t||typeof t!=="object"){return false}try{Ot.call(t,Ot);try{Tt.call(t,Tt)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function _i(t){if(!Ct||!t||typeof t!=="object"){return false}try{Ct.call(t);return true}catch(i){}return false}function Ai(t){if(!Pt||!t||typeof t!=="object"){return false}try{Pt.call(t);try{_t.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Mi(t){if(!Tt||!t||typeof t!=="object"){return false}try{Tt.call(t,Tt);try{Ot.call(t,Ot)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function zi(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 Pi(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var n="... "+e+" more character"+(e>1?"s":"");return Pi(Nt.call(t,0,i.maxStringLength),i)+n}var r=Dt.call(Dt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Li);return si(r,"single",i)}function Li(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+Ut.call(i.toString(16))}function ji(t){return"Object("+t+")"}function Oi(t){return t+" { ? }"}function Si(t,i,e,n){var r=n?Ci(e,n):Ht.call(e,", ");return t+" ("+i+") {"+r+"}"}function Ti(t){for(var i=0;i<t.length;i++){if(yi(t[i],"\n")>=0){return false}}return true}function Ei(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=Ht.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:Ht.call(Array(i+1),e)}}function Ci(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+Ht.call(t,","+e)+"\n"+i.prev}function Fi(t,i){var e=ai(t);var n=[];if(e){n.length=t.length;for(var r=0;r<t.length;r++){n[r]=gi(t,r)?i(t[r],t):""}}var s=typeof Qt==="function"?Qt(t):[];var o;if(Jt){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var h in t){if(!gi(t,h)){continue}if(e&&String(Number(h))===h&&h<t.length){continue}if(Jt&&o["$"+h]instanceof Symbol){continue}else if($t.call(/[^\w$]/,h)){n.push(i(h,t)+": "+i(t[h],t))}else{n.push(h+": "+i(t[h],t))}}if(typeof Qt==="function"){for(var l=0;l<s.length;l++){if(Kt.call(t,s[l])){n.push("["+i(s[l])+"]: "+i(t[s[l]],t))}}}return n}var Ii=pt("%TypeError%");var Bi=pt("%WeakMap%",true);var Ri=pt("%Map%",true);var Ni=gt("WeakMap.prototype.get",true);var Di=gt("WeakMap.prototype.set",true);var Ui=gt("WeakMap.prototype.has",true);var Zi=gt("Map.prototype.get",true);var $i=gt("Map.prototype.set",true);var Gi=gt("Map.prototype.has",true);var Hi=function(t,i){for(var e=t,n;(n=e.next)!==null;e=n){if(n.key===i){e.next=n.next;n.next=t.next;t.next=n;return n}}};var Vi=function(t,i){var e=Hi(t,i);return e&&e.value};var Wi=function(t,i,e){var n=Hi(t,i);if(n){n.value=e}else{t.next={key:i,next:t.next,value:e}}};var Yi=function(t,i){return!!Hi(t,i)};var Qi=function t(){var i;var e;var n;var r={assert:function(t){if(!r.has(t)){throw new Ii("Side channel does not contain "+ri(t))}},get:function(t){if(Bi&&t&&(typeof t==="object"||typeof t==="function")){if(i){return Ni(i,t)}}else if(Ri){if(e){return Zi(e,t)}}else{if(n){return Vi(n,t)}}},has:function(t){if(Bi&&t&&(typeof t==="object"||typeof t==="function")){if(i){return Ui(i,t)}}else if(Ri){if(e){return Gi(e,t)}}else{if(n){return Yi(n,t)}}return false},set:function(t,r){if(Bi&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new Bi}Di(i,t,r)}else if(Ri){if(!e){e=new Ri}$i(e,t,r)}else{if(!n){n={key:{},next:null}}Wi(n,t,r)}}};return r};var qi=String.prototype.replace;var Ji=/%20/g;var Xi={RFC1738:"RFC1738",RFC3986:"RFC3986"};var Ki={default:Xi.RFC3986,formatters:{RFC1738:function(t){return qi.call(t,Ji,"+")},RFC3986:function(t){return String(t)}},RFC1738:Xi.RFC1738,RFC3986:Xi.RFC3986};var te=Object.prototype.hasOwnProperty;var ie=Array.isArray;var ee=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var ne=function t(i){while(i.length>1){var e=i.pop();var n=e.obj[e.prop];if(ie(n)){var r=[];for(var s=0;s<n.length;++s){if(typeof n[s]!=="undefined"){r.push(n[s])}}e.obj[e.prop]=r}}};var re=function t(i,e){var n=e&&e.plainObjects?Object.create(null):{};for(var r=0;r<i.length;++r){if(typeof i[r]!=="undefined"){n[r]=i[r]}}return n};var se=function t(i,e,n){if(!e){return i}if(typeof e!=="object"){if(ie(i)){i.push(e)}else if(i&&typeof i==="object"){if(n&&(n.plainObjects||n.allowPrototypes)||!te.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var r=i;if(ie(i)&&!ie(e)){r=re(i,n)}if(ie(i)&&ie(e)){e.forEach((function(e,r){if(te.call(i,r)){var s=i[r];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[r]=t(s,e,n)}else{i.push(e)}}else{i[r]=e}}));return i}return Object.keys(e).reduce((function(i,r){var s=e[r];if(te.call(i,r)){i[r]=t(i[r],s,n)}else{i[r]=s}return i}),r)};var oe=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var ae=function(t,i,e){var n=t.replace(/\+/g," ");if(e==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(r){return n}};var he=function t(i,e,n,r,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(n==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var h=0;h<o.length;++h){var l=o.charCodeAt(h);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===Ki.RFC1738&&(l===40||l===41)){a+=o.charAt(h);continue}if(l<128){a=a+ee[l];continue}if(l<2048){a=a+(ee[192|l>>6]+ee[128|l&63]);continue}if(l<55296||l>=57344){a=a+(ee[224|l>>12]+ee[128|l>>6&63]+ee[128|l&63]);continue}h+=1;l=65536+((l&1023)<<10|o.charCodeAt(h)&1023);a+=ee[240|l>>18]+ee[128|l>>12&63]+ee[128|l>>6&63]+ee[128|l&63]}return a};var le=function t(i){var e=[{obj:{o:i},prop:"o"}];var n=[];for(var r=0;r<e.length;++r){var s=e[r];var o=s.obj[s.prop];var a=Object.keys(o);for(var h=0;h<a.length;++h){var l=a[h];var f=o[l];if(typeof f==="object"&&f!==null&&n.indexOf(f)===-1){e.push({obj:o,prop:l});n.push(f)}}}ne(e);return i};var fe=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var ce=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var ue=function t(i,e){return[].concat(i,e)};var de=function t(i,e){if(ie(i)){var n=[];for(var r=0;r<i.length;r+=1){n.push(e(i[r]))}return n}return e(i)};var pe={arrayToObject:re,assign:oe,combine:ue,compact:le,decode:ae,encode:he,isBuffer:ce,isRegExp:fe,maybeMap:de,merge:se};var ve=Object.prototype.hasOwnProperty;var me={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var ge=Array.isArray;var be=Array.prototype.push;var we=function(t,i){be.apply(t,ge(i)?i:[i])};var ye=Date.prototype.toISOString;var xe=Ki["default"];var ke={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:pe.encode,encodeValuesOnly:false,format:xe,formatter:Ki.formatters[xe],indices:false,serializeDate:function t(i){return ye.call(i)},skipNulls:false,strictNullHandling:false};var _e=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var Ae={};var Me=function t(i,e,n,r,s,o,a,h,l,f,c,u,d,p,v,m){var g=i;var b=m;var w=0;var y=false;while((b=b.get(Ae))!==void undefined&&!y){var x=b.get(i);w+=1;if(typeof x!=="undefined"){if(x===w){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof b.get(Ae)==="undefined"){w=0}}if(typeof h==="function"){g=h(e,g)}else if(g instanceof Date){g=c(g)}else if(n==="comma"&&ge(g)){g=pe.maybeMap(g,(function(t){if(t instanceof Date){return c(t)}return t}))}if(g===null){if(s){return a&&!p?a(e,ke.encoder,v,"key",u):e}g=""}if(_e(g)||pe.isBuffer(g)){if(a){var k=p?e:a(e,ke.encoder,v,"key",u);return[d(k)+"="+d(a(g,ke.encoder,v,"value",u))]}return[d(e)+"="+d(String(g))]}var _=[];if(typeof g==="undefined"){return _}var A;if(n==="comma"&&ge(g)){if(p&&a){g=pe.maybeMap(g,a)}A=[{value:g.length>0?g.join(",")||null:void undefined}]}else if(ge(h)){A=h}else{var M=Object.keys(g);A=l?M.sort(l):M}var z=r&&ge(g)&&g.length===1?e+"[]":e;for(var P=0;P<A.length;++P){var L=A[P];var j=typeof L==="object"&&typeof L.value!=="undefined"?L.value:g[L];if(o&&j===null){continue}var O=ge(g)?typeof n==="function"?n(z,L):z:z+(f?"."+L:"["+L+"]");m.set(i,w);var S=Qi();S.set(Ae,m);we(_,t(j,O,n,r,s,o,n==="comma"&&p&&ge(g)?null:a,h,l,f,c,u,d,p,v,S))}return _};var ze=function t(i){if(!i){return ke}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||ke.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var n=Ki["default"];if(typeof i.format!=="undefined"){if(!ve.call(Ki.formatters,i.format)){throw new TypeError("Unknown format option provided.")}n=i.format}var r=Ki.formatters[n];var s=ke.filter;if(typeof i.filter==="function"||ge(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:ke.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?ke.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:ke.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?ke.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:ke.encode,encoder:typeof i.encoder==="function"?i.encoder:ke.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:ke.encodeValuesOnly,filter:s,format:n,formatter:r,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:ke.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:ke.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:ke.strictNullHandling}};var Pe=function(t,i){var e=t;var n=ze(i);var r;var s;if(typeof n.filter==="function"){s=n.filter;e=s("",e)}else if(ge(n.filter)){s=n.filter;r=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in me){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var h=me[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var l=h==="comma"&&i&&i.commaRoundTrip;if(!r){r=Object.keys(e)}if(n.sort){r.sort(n.sort)}var f=Qi();for(var c=0;c<r.length;++c){var u=r[c];if(n.skipNulls&&e[u]===null){continue}we(o,Me(e[u],u,h,l,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,f))}var d=o.join(n.delimiter);var p=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){p+="utf8=%26%2310003%3B&"}else{p+="utf8=%E2%9C%93&"}}return d.length>0?p+d:""};var Le=Object.prototype.hasOwnProperty;var je=Array.isArray;var Oe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:pe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Se=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var Te=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var Ee="utf8=%26%2310003%3B";var Ce="utf8=%E2%9C%93";var Fe=function t(i,e){var n={__proto__:null};var r=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=r.split(e.delimiter,s);var a=-1;var h;var l=e.charset;if(e.charsetSentinel){for(h=0;h<o.length;++h){if(o[h].indexOf("utf8=")===0){if(o[h]===Ce){l="utf-8"}else if(o[h]===Ee){l="iso-8859-1"}a=h;h=o.length}}}for(h=0;h<o.length;++h){if(h===a){continue}var f=o[h];var c=f.indexOf("]=");var u=c===-1?f.indexOf("="):c+1;var d,p;if(u===-1){d=e.decoder(f,Oe.decoder,l,"key");p=e.strictNullHandling?null:""}else{d=e.decoder(f.slice(0,u),Oe.decoder,l,"key");p=pe.maybeMap(Te(f.slice(u+1),e),(function(t){return e.decoder(t,Oe.decoder,l,"value")}))}if(p&&e.interpretNumericEntities&&l==="iso-8859-1"){p=Se(p)}if(f.indexOf("[]=")>-1){p=je(p)?[p]:p}if(Le.call(n,d)){n[d]=pe.combine(n[d],p)}else{n[d]=p}}return n};var Ie=function(t,i,e,n){var r=n?i:Te(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(r)}else{o=e.plainObjects?Object.create(null):{};var h=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var l=parseInt(h,10);if(!e.parseArrays&&h===""){o={0:r}}else if(!isNaN(l)&&a!==h&&String(l)===h&&l>=0&&(e.parseArrays&&l<=e.arrayLimit)){o=[];o[l]=r}else if(h!=="__proto__"){o[h]=r}}r=o}return r};var Be=function t(i,e,n,r){if(!i){return}var s=n.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var h=n.depth>0&&o.exec(s);var l=h?s.slice(0,h.index):s;var f=[];if(l){if(!n.plainObjects&&Le.call(Object.prototype,l)){if(!n.allowPrototypes){return}}f.push(l)}var c=0;while(n.depth>0&&(h=a.exec(s))!==null&&c<n.depth){c+=1;if(!n.plainObjects&&Le.call(Object.prototype,h[1].slice(1,-1))){if(!n.allowPrototypes){return}}f.push(h[1])}if(h){f.push("["+s.slice(h.index)+"]")}return Ie(f,e,n,r)};var Re=function t(i){if(!i){return Oe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?Oe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?Oe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:Oe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:Oe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:Oe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:Oe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:Oe.comma,decoder:typeof i.decoder==="function"?i.decoder:Oe.decoder,delimiter:typeof i.delimiter==="string"||pe.isRegExp(i.delimiter)?i.delimiter:Oe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:Oe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:Oe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:Oe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:Oe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:Oe.strictNullHandling}};var Ne=function(t,i){var e=Re(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var n=typeof t==="string"?Fe(t,e):t;var r=e.plainObjects?Object.create(null):{};var s=Object.keys(n);for(var o=0;o<s.length;++o){var a=s[o];var h=Be(a,n[a],e,typeof t==="string");r=pe.merge(r,h,e)}if(e.allowSparse===true){return r}return pe.compact(r)};var De={formats:Ki,parse:Ne,stringify:Pe};function Ue(){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 Ze=/^([a-z0-9.+-]+:)/i,$e=/:[0-9]*$/,Ge=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,He=["<",">",'"',"`"," ","\r","\n","\t"],Ve=["{","}","|","\\","^","`"].concat(He),We=["'"].concat(Ve),Ye=["%","/","?",";","#"].concat(We),Qe=["/","?","#"],qe=255,Je=/^[+a-z0-9A-Z_-]{0,63}$/,Xe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ke={javascript:true,"javascript:":true},tn={javascript:true,"javascript:":true},en={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function nn(t,i,e){if(t&&typeof t==="object"&&t instanceof Ue){return t}var n=new Ue;n.parse(t,i,e);return n}Ue.prototype.parse=function(t,i,e){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("#")?"?":"#",s=t.split(r),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(r);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var h=Ge.exec(a);if(h){this.path=a;this.href=a;this.pathname=h[1];if(h[2]){this.search=h[2];if(i){this.query=De.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var l=Ze.exec(a);if(l){l=l[0];var f=l.toLowerCase();this.protocol=f;a=a.substr(l.length)}if(e||l||a.match(/^\/\/[^@/]+@[^@/]+/)){var c=a.substr(0,2)==="//";if(c&&!(l&&tn[l])){a=a.substr(2);this.slashes=true}}if(!tn[l]&&(c||l&&!en[l])){var u=-1;for(var d=0;d<Qe.length;d++){var p=a.indexOf(Qe[d]);if(p!==-1&&(u===-1||p<u)){u=p}}var v,m;if(u===-1){m=a.lastIndexOf("@")}else{m=a.lastIndexOf("@",u)}if(m!==-1){v=a.slice(0,m);a=a.slice(m+1);this.auth=decodeURIComponent(v)}u=-1;for(var d=0;d<Ye.length;d++){var p=a.indexOf(Ye[d]);if(p!==-1&&(u===-1||p<u)){u=p}}if(u===-1){u=a.length}this.host=a.slice(0,u);a=a.slice(u);this.parseHost();this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var b=this.hostname.split(/\./);for(var d=0,w=b.length;d<w;d++){var y=b[d];if(!y){continue}if(!y.match(Je)){var x="";for(var k=0,_=y.length;k<_;k++){if(y.charCodeAt(k)>127){x+="x"}else{x+=y[k]}}if(!x.match(Je)){var A=b.slice(0,d);var M=b.slice(d+1);var z=y.match(Xe);if(z){A.push(z[1]);M.unshift(z[2])}if(M.length){a="/"+M.join(".")+a}this.hostname=A.join(".");break}}}}if(this.hostname.length>qe){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!g){this.hostname=j.toASCII(this.hostname)}var P=this.port?":"+this.port:"";var L=this.hostname||"";this.host=L+P;this.href+=this.host;if(g){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!Ke[f]){for(var d=0,w=We.length;d<w;d++){var O=We[d];if(a.indexOf(O)===-1){continue}var S=encodeURIComponent(O);if(S===O){S=escape(O)}a=a.split(O).join(S)}}var T=a.indexOf("#");if(T!==-1){this.hash=a.substr(T);a=a.slice(0,T)}var E=a.indexOf("?");if(E!==-1){this.search=a.substr(E);this.query=a.substr(E+1);if(i){this.query=De.parse(this.query)}a=a.slice(0,E)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(en[f]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var P=this.pathname||"";var C=this.search||"";this.path=P+C}this.href=this.format();return this};function rn(t){if(typeof t==="string"){t=nn(t)}if(!(t instanceof Ue)){return Ue.prototype.format.call(t)}return t.format()}Ue.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",n=this.hash||"",r=false,s="";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){s=De.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||en[i])&&r!==false){r="//"+(r||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!r){r=""}if(n&&n.charAt(0)!=="#"){n="#"+n}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+r+e+o+n};function sn(t,i){return nn(t,false,true).resolve(i)}Ue.prototype.resolve=function(t){return this.resolveObject(nn(t,false,true)).format()};function on(t,i){if(!t){return i}return nn(t,false,true).resolveObject(i)}Ue.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new Ue;i.parse(t,false,true);t=i}var e=new Ue;var n=Object.keys(this);for(var r=0;r<n.length;r++){var s=n[r];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var h=o[a];if(h!=="protocol"){e[h]=t[h]}}if(en[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!en[t.protocol]){var l=Object.keys(t);for(var f=0;f<l.length;f++){var c=l[f];e[c]=t[c]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!tn[t.protocol]){var u=(t.pathname||"").split("/");while(u.length&&!(t.host=u.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(u[0]!==""){u.unshift("")}if(u.length<2){u.unshift("")}e.pathname=u.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var d=e.pathname||"";var p=e.search||"";e.path=d+p}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var v=e.pathname&&e.pathname.charAt(0)==="/",m=t.host||t.pathname&&t.pathname.charAt(0)==="/",g=m||v||e.host&&t.pathname,b=g,w=e.pathname&&e.pathname.split("/")||[],u=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!en[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(w[0]===""){w[0]=e.host}else{w.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(u[0]===""){u[0]=t.host}else{u.unshift(t.host)}}t.host=null}g=g&&(u[0]===""||w[0]==="")}if(m){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;w=u}else if(u.length){if(!w){w=[]}w.pop();w=w.concat(u);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=w.shift();e.hostname=e.host;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!w.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var k=w.slice(-1)[0];var _=(e.host||t.host||w.length>1)&&(k==="."||k==="..")||k==="";var A=0;for(var M=w.length;M>=0;M--){k=w[M];if(k==="."){w.splice(M,1)}else if(k===".."){w.splice(M,1);A++}else if(A){w.splice(M,1);A--}}if(!g&&!b){for(;A--;A){w.unshift("..")}}if(g&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")){w.unshift("")}if(_&&w.join("/").substr(-1)!=="/"){w.push("")}var z=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(y){e.hostname=z?"":w.length?w.shift():"";e.host=e.hostname;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}g=g||e.host&&w.length;if(g&&!z){w.unshift("")}if(w.length>0){e.pathname=w.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};Ue.prototype.parseHost=function(){var t=this.host;var i=$e.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var an=nn;var hn=sn;var ln=on;var fn=rn;var cn=Ue;var un={parse:an,resolve:hn,resolveObject:ln,format:fn,Url:cn};!function(t){t()}((function(){const 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"}},i=6e4,e=60*i,n=24*e;function r(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=v("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),n=document.body;n.appendChild(e),e.click(),n.removeChild(e)}function o(t,i,e){return t&&(({props:n,point:r,id:s,isMulti:o})=>{if(n)for(const h of t)if(h in n){r.meta[i]=(e||a).call(this,o?n[h][o]:n[h],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),h=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),f=(t,i,e)=>(e?h:l)(t,i),c=(t,i,e)=>i&&l(t,i)||e&&h(t,e),u=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),d=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},p=(t,i,e,n)=>t[n?"on":"off"](i,e),v=(t,i,e,n)=>{let r=L.DomUtil.create(t,i||"");return e&&d(r,e),n&&m(n,r),r},m=(t,i)=>t.appendChild(i),g=(t,i,e)=>t.insertAdjacentElement(e,i),b=(t,i)=>(i||document).querySelector(t),w=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:x,off:k}=L.DomEvent,{throttle:_,wrapNum:A}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,P=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,j=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function O(t,i=[],e=[]){switch(!t||typeof t){case"object":const n=e.filter((i=>t===i.original))[0];if(n)return n.copy;const r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:r}),Object.getOwnPropertyNames(t).forEach((function(n){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(n)?s.value:O(s.value,i,e)})})),r;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var S=Object.freeze({__proto__:null,Colors:t,addClass:h,append:m,clamp:P,cloneDeep:O,coordPropsToMeta:o,create:v,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:w,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let r=Math.floor(t/n),s=Math.floor((t-r*n)/e),o=Math.floor((t-r*n-s*e)/i),a=Math.round((t-r*n-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(r++,s=0),(r?r+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:g,off:k,on:x,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:l,replaceClass:c,resolveURL:r,round:z,saveFile:s,select:b,setAttributes:d,style:u,throttle:_,toggleClass:f,toggleEvent:p,toggleStyle:(t,i,e,n)=>u(t,i,n?e:""),wrapDelta:j,wrapNum:A}),T={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?un.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?un.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=(t,i)=>t);const E=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:T,__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(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=b(this.options.elevationDiv),e=this.onAdd(t);i?m(i,e):g(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){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((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){u(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},O(T),i)),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],i.trkStart||T.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||T.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=_(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=T.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=T.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){case this.__D3:i="object"!=typeof d3;break;case this.__TOGEOJSON:i="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:i="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:i="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:i="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:i="function"!=typeof L.Hotline}return!1!==i?__sc_import_geotrek_rando_widget(r(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=v("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(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),k(t.getContainer(),"mousewheel",this._resetDrag,this),k(t.getContainer(),"touchstart",this._resetDrag,this),k(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(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){u(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return w(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return w(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));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(t,i,e){let n=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:n,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),n=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),r=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:r}),n["add"==i?"addTo":"removeFrom"](t._map),n._renderer&&n._renderer._container.parentElement.insertBefore(n._renderer._container,n._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let 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((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){c(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){c(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,n=this.options.theme.split(" ")[0].replace("-theme",""),r=t[n]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=r.line||r.area||n,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=r.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((n=>{let r=this._chart=new(n[1]||E).Chart(i,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(r.render()),r.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();f(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),p(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),p(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let 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((t=>{this._marker=new(t[1]||E).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=v("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);x(i,"click",L.DomEvent.stop),x(i,"click",this._toggle,this),x(i,"focus",this._toggle,this),fetch(r(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||E).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==E[t]?E[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{w(i,((i,e)=>{let n=i&&Object.keys(i)[0];n&&(t[e]=E[n]=E[n]??i[n])})),w(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:n,wptIcons:r,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let h=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(n){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(n)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(n)&&0!=r)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(h);const i={data:t,layer:h,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),h},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&h(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>f(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let r=toGeoJSON[e](i);return r.name=n.length>0?(Array.from(n).find((t=>"trk"==t.parentElement.tagName))??n[0]).textContent:"",r},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,n,r=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,n=e??this._data[i],e=this._data[i],e[r]=t.pointToAttr.call(this,a,i),i>0&&isNaN(n[r])&&(isNaN(s[r])||isNaN(e[r])?isNaN(s[r])?isNaN(e[r])||(n[r]=e[r]):n[r]=s[r]:n[r]=(s[r]+e[r])/2,t.meta&&(n[t.meta]=n[r])),!isNaN(e[r])){if(s[r]=e[r],t.deltaMax&&(e[r]=j(e[r],n[r],t.deltaMax)),t.clampRange&&(e[r]=P(e[r],t.clampRange)),isNaN(t.decimals)||(e[r]=z(e[r],t.decimals)),t.stats)for(const i in t.stats){let n=(t.statsName||r)+(""!=i?"_":"");this.track_info[n+i]=t.stats[i].call(this,e[r],this.track_info[n+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[r],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:n,deltaMax:r,clampRange:s,decimals:a,meta:h,unit:l,coordinateProperties:f,coordPropsToMeta:c,pointToAttr:u,onPointAdded:d,stats:p,statsName:v,grid:m,scale:g,path:b,tooltip:y,summary:x}=t;(this.options[i]||n)&&(this._registerDataAttribute({name:i,attr:e,meta:h,deltaMax:r,clampRange:s,decimals:a,coordPropsToMeta:o(f,h||i,c),pointToAttr:u,onPointAdded:d,stats:p,statsName:v}),m&&this._registerAxisGrid(L.extend({name:i},m)),"summary"!==this.options[i]&&(g&&this._registerAxisScale(L.extend({name:i,label:l},g)),b&&this._registerAreaPath(L.extend({name:i},b))),(y||t.tooltips)&&w([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),x&&(w(x,((t,i)=>x[i]=L.extend({unit:l},t))),this._registerSummary(x)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:n}=this.options;n.hasOwnProperty(i)||(n[i]=L.divIcon(L.extend({},n[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let r=L.marker(t,{icon:n[i]});return e&&(r.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),r.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(r)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=u(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:P(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){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(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){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>",b(".download a",this._summary._container).onclick=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});E.Utils=S,L.control.elevation=t=>new E(t)}));const dn='@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}.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;height:250px}.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)}.custom-theme.elevation-control .area path.altitude,.custom-theme .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,.start-marker,.end-marker{display:none}.departure-icon img,.arrival-icon img{width:48px;height:48px}.departure-icon img path,.arrival-icon img path{fill:currentColor;stroke:currentColor}.departure-icon{color:var(--color-departure-icon)}.arrival-icon{color:var(--color-arrival-icon)}.trek-marker{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}.trek-marker img{width:36px !important}.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{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100px;height:auto;padding:24px}.trek-departure-popup img{border-radius:8px}.trek-departure-popup .trek-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.trek-departure-popup .trek-name-margin-top{margin-top:12px}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-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{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{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)}';const pn=class{constructor(i){t(this,i);this.trekCardPress=n(this,"trekCardPress",7);this.userLayersState={};this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.mapIsReady=false;this.urlLayer=undefined;this.attribution=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.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.resetStoreOnDisconnected=true;this.isLargeView=false}onCenterOnMap(t){this.map.setView(new P.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}descriptionReferenceIsInViewport(t){if(this.currentPointsReferenceLayer){this.handleLayerVisibility(t.detail,this.currentPointsReferenceLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}componentDidLoad(){this.map=P.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});P.control.scale({metric:true,imperial:false}).addTo(this.map);P.control.locate({showPopup:false}).addTo(this.map);P.tileLayer(this.urlLayer,{maxZoom:19,attribution:this.attribution}).addTo(this.map);if(o.currentTrek){this.addTrek()}else if(o.currentTreks){this.addTreks()}a("currentTreks",(()=>{if(o.currentTrek){this.removeTreks();this.addTrek()}else if(o.currentTreks){this.removeTrek();this.addTreks()}}));a("currentTrek",(()=>{if(o.currentTrek){this.removeTreks();this.addTrek()}else{this.removeTrek();this.addTreks()}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(){var t;const i=[];const e={type:"FeatureCollection",features:[]};if(o.currentTreks){for(const n of o.currentTreks){i.push(n.departure_geom);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:n.departure_geom},properties:{id:n.id,name:n.name,practice:(t=o.practices.find((t=>t.id===n.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}}let n;if(!this.treksLayer){if(i.length>0&&!o.currentMapTreksBounds){n=P.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(o.currentMapTreksBounds){n=o.currentMapTreksBounds}}this.treksLayer=P.geoJSON(e,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:t.properties.practice?`<img src=${t.properties.practice} />`:`<img />`,className:"trek-marker",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=P.DomUtil.create("div");e.className="trek-departure-popup";e.onclick=()=>this.trekCardPress.emit(t.properties.id);const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="trek-name";if(t.properties.imgSrc){n.className+=" trek-name-margin-top";const i=P.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}))}}).addTo(this.map)}else{if(i.length>0){n=P.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(e)}n&&this.map.fitBounds(n);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){o.currentMapTreksBounds=this.map.getBounds();this.map.removeLayer(this.treksLayer);this.treksLayer=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(o.currentTreks&&!o.currentMapTreksBounds||o.currentTreks&&o.currentMapTreksBounds&&o.currentMapTreksBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){o.treksWithinBounds=o.currentTreks.filter((t=>this.map.getBounds().contains(P.latLng(t.departure_geom[1],t.departure_geom[0]))))}}addTrek(){var t;const i=r(`${""}assets/departure-arrival.svg`);const e={type:"Feature",geometry:o.currentTrek.geometry,properties:{}};this.currentTrekLayer=P.geoJSON(e,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);const n=[o.currentTrek.geometry.coordinates.at(0)[0],o.currentTrek.geometry.coordinates.at(0)[1]];const s=[o.currentTrek.geometry.coordinates.at(-1)[0],o.currentTrek.geometry.coordinates.at(-1)[1]];const a={type:"FeatureCollection",features:[{type:"Feature",properties:{type:"departure"},geometry:{type:"Point",coordinates:n}}]};if(n[0]!==s[0]||n[1]!==s[1]){a.features.push({type:"Feature",properties:{type:"arrival"},geometry:{type:"Point",coordinates:s}})}this.currentDepartureArrivalLayer=P.geoJSON(a,{pointToLayer:(t,e)=>P.marker(e,{icon:P.divIcon({html:`<img src=${i}>`,className:t.properties.type==="departure"?"departure-icon":"arrival-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}).addTo(this.map);if(o.currentTrek.parking_location){const t={type:"Feature",properties:{},geometry:{type:"Point",coordinates:o.currentTrek.parking_location}};this.currentParkingLayer=P.geoJSON(t,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})})}if(o.currentSensitiveAreas&&o.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of o.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=P.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=P.DomUtil.create("div");e.className="sensitive-area-tooltip";const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";e.appendChild(n);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(o.currentPois&&o.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of o.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=o.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=P.geoJSON(i,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=P.DomUtil.create("div");e.className="poi-tooltip";const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";e.appendChild(n);i.bindTooltip(e).openTooltip()}))}})}if(o.currentInformationDesks&&o.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of o.currentInformationDesks.filter((t=>o.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=P.geoJSON(t,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=P.DomUtil.create("div");e.className="information-desks-tooltip";const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";e.appendChild(n);i.bindTooltip(e).openTooltip()}))}})}if(o.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:o.currentTrek.points_reference});let i=0;this.currentPointsReferenceLayer=P.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return P.marker(e,{icon:P.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}const h={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#${this.elevationRef.id}`,theme:"custom-theme",detached:true,height:250,wptIcons:false,wptLabels:false,collapsed:false,autohide:false,distanceMarkers:false,hotline:false,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};this.elevationControl=P.control.elevation(Object.assign({},h)).addTo(this.map);const f=JSON.stringify({name:`${o.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:o.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(f);const c={};if(this.currentPointsReferenceLayer){c[l[o.language].layers.pointsReference]=this.currentPointsReferenceLayer}if(this.currentParkingLayer){c[l[o.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){c[l[o.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){c[l[o.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){c[l[o.language].layers.pois]=this.currentPoisLayer}this.layersControl=P.control.layers(null,c,{collapsed:true}).addTo(this.map);this.handleLayersControlEvent();const u=P.latLngBounds(o.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));u&&this.map.fitBounds(u);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}))}removeTrek(){if(this.layersControl){this.map.removeControl(this.layersControl);this.layersControl=null}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.currentDepartureArrivalLayer){this.map.removeLayer(this.currentDepartureArrivalLayer);this.currentDepartureArrivalLayer=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.currentPointsReferenceLayer){this.map.removeLayer(this.currentPointsReferenceLayer);this.currentPointsReferenceLayer=null}}disconnectedCallback(){if(this.resetStoreOnDisconnected){h()}}render(){const t=r(`${""}assets/layers.svg`);return i(e,{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-departure-icon":this.colorDepartureIcon,"--color-arrival-icon":this.colorArrivalIcon,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${t})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},i("div",{id:"map",class:o.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),i("div",{id:"elevation",ref:t=>this.elevationRef=t}),i("div",{class:"map-bottom-space"}),!this.mapIsReady&&i("div",{class:"map-loader-container"},i("span",{class:"loader"})))}};pn.style=dn;const vn='.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';const mn=class{constructor(i){t(this,i)}handleSelect(t){o.treks=null;o.currentTreks=null;o.currentTrek=null;o.language=t.target.value}render(){return i(e,null,i("slot",null,i("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},o.languages.map((t=>i("option",{selected:t===o.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase()))))))}};mn.style=vn;function gn({swiper:t,extendParams:i,on:e,emit:n}){const r=f();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});t.mousewheel={enabled:false};let s;let o=u();let a;const h=[];function l(t){const i=10;const e=40;const n=800;let r=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){r=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){r=s;s=0}o=r*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=n;a*=n}}if(o&&!r){r=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:r,spinY:s,pixelX:o,pixelY:a}}function d(){if(!t.enabled)return;t.mouseEntered=true}function p(){if(!t.enabled)return;t.mouseEntered=false}function v(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&u()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&u()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",i.raw)}o=(new r.Date).getTime();return false}function m(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function g(i){let e=i;let r=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let f=t.el;if(t.params.mousewheel.eventsTarget!=="container"){f=document.querySelector(t.params.mousewheel.eventsTarget)}const d=f&&f.contains(e.target);if(!t.mouseEntered&&!d&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let p=0;const g=t.rtlTranslate?-1:1;const b=l(e);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(b.pixelX)>Math.abs(b.pixelY))p=-b.pixelX*g;else return true}else if(Math.abs(b.pixelY)>Math.abs(b.pixelX))p=-b.pixelY;else return true}else{p=Math.abs(b.pixelX)>Math.abs(b.pixelY)?-b.pixelX*g:-b.pixelY}if(p===0)return true;if(o.invert)p=-p;let w=t.getTranslate()+p*o.sensitivity;if(w>=t.minTranslate())w=t.minTranslate();if(w<=t.maxTranslate())w=t.maxTranslate();r=t.params.loop?true:!(w===t.minTranslate()||w===t.maxTranslate());if(r&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:u(),delta:Math.abs(p),direction:Math.sign(p),raw:i};if(h.length>=2){h.shift()}const e=h.length?h[h.length-1]:undefined;h.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){v(t)}}else{v(t)}if(m(t)){return true}}else{const i={time:u(),delta:Math.abs(p),direction:Math.sign(p)};const r=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!r){a=undefined;let l=t.getTranslate()+p*o.sensitivity;const f=t.isBeginning;const u=t.isEnd;if(l>=t.minTranslate())l=t.minTranslate();if(l<=t.maxTranslate())l=t.maxTranslate();t.setTransition(0);t.setTranslate(l);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!f&&t.isBeginning||!u&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(h.length>=15){h.shift()}const e=h.length?h[h.length-1]:undefined;const n=h[0];h.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){h.splice(0)}else if(h.length>=15&&i.time-n.time<500&&n.delta-i.delta>=1&&i.delta<=6){const e=p>0?.8:.2;a=i;h.splice(0);s=c((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=c((()=>{const e=.5;a=i;h.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!r)n("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(l===t.minTranslate()||l===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function b(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",d);e[i]("mouseleave",p);e[i]("wheel",g)}function w(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",g);return true}if(t.mousewheel.enabled)return false;b("addEventListener");t.mousewheel.enabled=true;return true}function y(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,g);return true}if(!t.mousewheel.enabled)return false;b("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){y()}if(t.params.mousewheel.enabled)w()}));e("destroy",(()=>{if(t.params.cssMode){w()}if(t.mousewheel.enabled)y()}));Object.assign(t.mousewheel,{enable:w,disable:y})}function bn({swiper:t,extendParams:i,emit:e,once:n}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function r(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:u()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:r,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:h}=t;const l=u();const f=l-h.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(r.freeMode.momentum){if(h.velocities.length>1){const i=h.velocities.pop();const e=h.velocities.pop();const n=i.position-e.position;const s=i.time-e.time;t.velocity=n/s;t.velocity/=2;if(Math.abs(t.velocity)<r.freeMode.minimumVelocity){t.velocity=0}if(s>150||u()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=r.freeMode.momentumVelocityRatio;h.velocities.length=0;let i=1e3*r.freeMode.momentumRatio;const l=t.velocity*i;let f=t.translate+l;if(o)f=-f;let c=false;let p;const v=Math.abs(t.velocity)*20*r.freeMode.momentumBounceRatio;let m;if(f<t.maxTranslate()){if(r.freeMode.momentumBounce){if(f+t.maxTranslate()<-v){f=t.maxTranslate()-v}p=t.maxTranslate();c=true;h.allowMomentumBounce=true}else{f=t.maxTranslate()}if(r.loop&&r.centeredSlides)m=true}else if(f>t.minTranslate()){if(r.freeMode.momentumBounce){if(f-t.minTranslate()>v){f=t.minTranslate()+v}p=t.minTranslate();c=true;h.allowMomentumBounce=true}else{f=t.minTranslate()}if(r.loop&&r.centeredSlides)m=true}else if(r.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-f){i=t;break}}if(Math.abs(a[i]-f)<Math.abs(a[i-1]-f)||t.swipeDirection==="next"){f=a[i]}else{f=a[i-1]}f=-f}if(m){n("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-f-t.translate)/t.velocity)}else{i=Math.abs((f-t.translate)/t.velocity)}if(r.freeMode.sticky){const e=Math.abs((o?-f:f)-t.translate);const n=t.slidesSizesGrid[t.activeIndex];if(e<n){i=r.speed}else if(e<2*n){i=r.speed*1.5}else{i=r.speed*2.5}}}else if(r.freeMode.sticky){t.slideToClosest();return}if(r.freeMode.momentumBounce&&c){t.updateProgress(p);t.setTransition(i);t.setTranslate(f);t.transitionStart(true,t.swipeDirection);t.animating=true;d(s,(()=>{if(!t||t.destroyed||!h.allowMomentumBounce)return;e("momentumBounce");t.setTransition(r.speed);setTimeout((()=>{t.setTranslate(p);d(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(f);t.setTransition(i);t.setTranslate(f);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;d(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(f)}t.updateActiveIndex();t.updateSlidesClasses()}else if(r.freeMode.sticky){t.slideToClosest();return}else if(r.freeMode){e("_freeModeNoMomentumRelease")}if(!r.freeMode.momentum||f>=r.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:r,onTouchMove:s,onTouchEnd:o}})}const wn='@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-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}grw-trek-detail{--swiper-navigation-size:32px;--swiper-navigation-color:var(--color-primary-app);--swiper-pagination-color:var(--color-primary-app);--swiper-pagination-bullet-size:12px;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 .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 .presentation{min-width:120px;width:120px}.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-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:calc(100% - 48px);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-family:"Material Symbols Outlined";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;margin-bottom:8px}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex}.trek-detail-container .downloads-container .links-container a{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: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 .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{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{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{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title{padding:0px 24px 0px 24px}.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-family:"Material Symbols Outlined";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{padding-right:32px;padding-left:32px}.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)}';const yn=.5;const xn={visible:true,width:120,indicator:false};const kn={visible:false,width:120,indicator:false};const _n={visible:false,width:190,indicator:false};const An={visible:false,width:160,indicator:false};const Mn={visible:false,width:200,indicator:false};const zn={visible:false,width:120,indicator:false};const Pn={presentation:xn,description:kn,recommendations:_n,sensitiveArea:An,informationPlaces:Mn,pois:zn};const Ln=class{constructor(i){t(this,i);this.descriptionReferenceIsInViewport=n(this,"descriptionReferenceIsInViewport",7);this.parkingIsInViewport=n(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=n(this,"sensitiveAreaIsInViewport",7);this.informationDeskIsInViewport=n(this,"informationDeskIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",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.colorBackground="#fef7ff";this.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}componentDidLoad(){this.swiperImages=new p(this.swiperImagesRef,{modules:[v,m,g,bn,gn],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperPois=new p(this.swiperPoisRef,{modules:[bn,gn],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new p(this.swiperInformationDesksRef,{modules:[bn,gn],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})})}}),{threshold:yn});t.observe(this.presentationRef)}if(this.descriptionRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.descriptionReferenceIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})})}}),{threshold:yn});t.observe(this.descriptionRef)}if(this.recommendationRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})})}}),{threshold:yn});t.observe(this.recommendationRef)}if(this.parkingRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.parkingIsInViewport.emit(i)}),{threshold:yn});t.observe(this.parkingRef)}if(this.sensitiveAreaRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.sensitiveAreaIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})})}}),{threshold:yn});t.observe(this.sensitiveAreaRef)}if(this.informationDeskRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.informationDeskIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})})}}),{threshold:yn});t.observe(this.informationDeskRef)}if(this.poiRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.poiIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})})}}),{threshold:yn});t.observe(this.poiRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:o.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=o.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=o.routes.find((t=>t.id===this.currentTrek.route));this.practice=o.practices.find((t=>t.id===this.currentTrek.practice));this.themes=o.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=o.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=o.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=o.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(o.accessibilitiesLevel){this.accessibilityLevel=o.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=o.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}))}a("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:o.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=o.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=o.routes.find((t=>t.id===this.currentTrek.route));this.practice=o.practices.find((t=>t.id===this.currentTrek.practice));this.themes=o.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=o.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=o.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=o.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(o.accessibilitiesLevel){this.accessibilityLevel=o.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=o.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}))}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){h()}}handleOptions(){return Object.assign(Object.assign({},Pn),{presentation:Object.assign({},xn),description:Object.assign(Object.assign({},kn),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},_n),{visible:Boolean(this.currentTrek.advice||this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},An),{visible:Boolean(o.currentSensitiveAreas&&o.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Mn),{visible:Boolean(o.currentInformationDesks&&o.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),pois:Object.assign(Object.assign({},zn),{visible:Boolean(o.currentPois&&o.currentPois.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t=0;let i;let e=0;const n=Object.values(this.options);let r=0;while(!i&&r<n.length){if(n[r].indicator){i=n[r]}else{if(n[r].visible){t+=1;e+=n[r].width}}r++}return`${e+16*t-i.width/2}px`}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-48})}render(){var t,n,r,s,a,h,f;return i(e,{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&&i("div",{class:"trek-options"},i("a",{onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.options.presentation.indicator?" selected-trek-option":""}`},l[o.language].options.presentation),this.options.description.visible&&i("a",{onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.options.description.indicator?" selected-trek-option":""}`},l[o.language].options.description),this.options.recommendations.visible&&i("a",{onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.options.recommendations.indicator?" selected-trek-option":""}`},l[o.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.options.sensitiveArea.indicator?" selected-trek-option":""}`},l[o.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{onClick:()=>this.handleScrollTo(this.informationDeskRef),class:`information-places trek-option${this.options.informationPlaces.indicator?" selected-trek-option":""}`},l[o.language].options.informationPlaces),this.options.pois.visible&&i("a",{onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.options.pois.indicator?" selected-trek-option":""}`},l[o.language].options.pois),i("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.handleIndicatorSelectedTrekOption()})`}})),this.currentTrek&&i("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},i("div",{class:"images-container",ref:t=>this.presentationRef=t},i("div",{class:"swiper",ref:t=>this.swiperImagesRef=t},i("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>i("div",{class:"swiper-slide"},i("img",{class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),i("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),i("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),i("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),i("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&i("div",{class:"themes-container"},this.themes.map((t=>i("div",{class:"theme"},t.label)))),i("div",{class:"sub-container"},i("div",{class:"icons-labels-container"},i("div",{class:"row"},i("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&i("img",{src:this.difficulty.pictogram}),(n=this.difficulty)===null||n===void 0?void 0:n.label),i("div",{class:"icon-label duration"},i("span",{class:"material-symbols-outlined"},"timelapse"),b((r=this.currentTrek)===null||r===void 0?void 0:r.duration)),i("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&i("img",{src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route)),i("div",{class:"row"},i("div",{class:"icon-label length"},i("span",{class:"material-symbols-outlined"},"open_in_full"),w(this.currentTrek.length_2d)),i("div",{class:"icon-label ascent"},i("span",{class:"material-symbols-outlined"},"moving"),y(this.currentTrek.ascent)),i("div",{class:"icon-label practice"},((h=this.practice)===null||h===void 0?void 0:h.pictogram)&&i("img",{src:this.practice.pictogram}),(f=this.practice)===null||f===void 0?void 0:f.name)))),i("div",{class:"divider"}),i("div",{class:"downloads-container"},i("div",{class:"download-title"},l[o.language].downloads),i("div",{class:"links-container"},i("a",{href:`${this.currentTrek.gpx}`},i("span",{class:"material-symbols-outlined"},"download"),"GPX"),i("a",{href:`${this.currentTrek.kml}`},i("span",{class:"material-symbols-outlined"},"download"),"KML"),i("a",{href:`${this.currentTrek.pdf}`},i("span",{class:"material-symbols-outlined"},"download"),"PDF"))),i("div",{class:"divider"}),this.currentTrek.description_teaser&&i("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),i("div",{class:"divider"}),this.currentTrek.description&&i("div",{class:"description-container",ref:t=>this.descriptionRef=t},i("div",{class:"description-title"},l[o.language].description),i("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{class:"departure-container"},i("div",{class:"departure-title"},l[o.language].departure," : "),i("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{class:"arrival-container"},i("div",{class:"arrival-title"},l[o.language].arrival," : "),i("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&i("div",{class:"cities-container"},i("div",{class:"cities-title"},l[o.language].cities," : "),i("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&i("div",{class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`})),this.currentTrek.access&&i("div",null,i("div",{class:"divider"}),i("div",{class:"access-container"},i("div",{class:"access-title"},l[o.language].roadAccess),i("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&i("div",null,i("div",{class:"divider"}),i("div",{class:"public-transport-container"},i("div",{class:"public-transport-title"},l[o.language].transport),i("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&i("div",null,i("div",{class:"divider"}),i("div",{class:"advice-container",ref:t=>this.recommendationRef=t},i("div",{class:"advice-title"},l[o.language].recommendations),this.currentTrek.advice&&i("div",{class:"current-advice-container"},i("span",{class:"material-symbols-outlined"},"warning"),i("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((t=>i("div",{class:"label-container"},i("div",{class:"label-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",{class:"label-name",innerHTML:t.name})),i("div",{class:"label-advice",innerHTML:t.advice})))))),this.currentTrek.advised_parking&&i("div",null,i("div",{class:"divider"}),i("div",{class:"advised-parking-container",ref:t=>this.parkingRef=t},i("div",{class:"advised-parking-title"},l[o.language].recommendedParking),i("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&i("div",null,i("div",{class:"divider"}),i("div",{class:"gear-container"},i("div",{class:"gear-title"},l[o.language].equipments),i("div",{class:"gear",innerHTML:this.currentTrek.gear}))),o.currentSensitiveAreas&&o.currentSensitiveAreas.length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"sensitive-areas-container",ref:t=>this.sensitiveAreaRef=t},i("div",{class:"sensitive-areas-title"},l[o.language].environmentalSensitiveAreas),o.currentSensitiveAreas.map((t=>i("grw-sensitive-area-detail",{sensitiveArea:t}))))),o.currentInformationDesks&&o.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"information-desks-container",ref:t=>this.informationDeskRef=t},i("div",{class:"information-desks-title"},l[o.language].informationPlaces),i("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},i("div",{class:"swiper-wrapper"},o.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>i("div",{class:"swiper-slide"},i("grw-information-desk-detail",{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)&&i("div",null,i("div",{class:"divider"}),i("div",{class:"accessibilities-container"},i("div",{class:"accessibilities-title"},l[o.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{innerHTML:this.currentTrek.disabled_infrastructure}),i("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>i("div",{class:"accessibility-content-container"},i("img",{src:t.pictogram}),i("div",{innerHTML:t.name}))))),this.currentTrek.accessibility_level&&i("div",{class:"accessibility-level-container"},i("div",{class:"accessibility-level-title"},l[o.language].accessibilityLevel),i("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{class:"accessibility-slope-container"},i("div",{class:"accessibility-slope-title"},l[o.language].accessibilitySlope),i("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{class:"accessibility-width-container"},i("div",{class:"accessibility-width-title"},l[o.language].accessibilityWidth),i("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{class:"accessibility-signage-container"},i("div",{class:"accessibility-signage-title"},l[o.language].accessibilitySignage),i("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{class:"accessibility-covering-container"},i("div",{class:"accessibility-covering-title"},l[o.language].accessibilityCovering),i("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{class:"accessibility-exposure-container"},i("div",{class:"accessibility-exposure-title"},l[o.language].accessibilityExposure),i("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{class:"accessibility-advice-container"},i("div",{class:"accessibility-advice-title"},l[o.language].accessibilityAdvices),i("div",{innerHTML:this.currentTrek.accessibility_advice})))),o.currentPois&&o.currentPois.length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"pois-container",ref:t=>this.poiRef=t},i("div",{class:"pois-title"},l[o.language].pois(o.currentPois.length)),i("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},i("div",{class:"swiper-wrapper"},o.currentPois.map((t=>i("div",{class:"swiper-slide"},i("grw-poi-detail",{poi:t})))))))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"source-container"},i("div",{class:"source-title"},l[o.language].sources),this.sources.map((t=>i("div",{class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",null,i("div",{class:"source-name",innerHTML:t.name}),i("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),i("div",{class:"detail-bottom-space"})))}};Ln.style=wn;const jn=class{constructor(i){t(this,i);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}connectedCallback(){if(!o.api){o.api=this.api;o.languages=this.languages.split(",");o.language=o.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!o.difficulties?fetch(`${o.api}trek_difficulty/?language=${o.language}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!o.routes?fetch(`${o.api}trek_route/?language=${o.language}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!o.practices?fetch(`${o.api}trek_practice/?language=${o.language}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!o.themes?fetch(`${o.api}theme/?language=${o.language}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!o.cities?fetch(`${o.api}city/?language=${o.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${o.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`,{cache:"force-cache",signal:this.signal}).catch((()=>new Response("null"))),fetch(`${o.api}label/?language=${o.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${o.api}source/?language=${o.language}&fields=id,name,website,pictogram`,this.init),fetch(`${o.api}trek_accessibility/?language=${o.language}&fields=id,name,pictogram`,this.init),fetch(`${o.api}trek_accessibility_level/?language=${o.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${o.api}poi/?language=${o.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,{cache:"force-cache",signal:this.signal}),fetch(`${o.api}poi_type/?language=${o.language}&fields=id,pictogram`,this.init),fetch(`${o.api}informationdesk/?language=${o.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${o.api}trek/${this.trekId}/?language=${o.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`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,n,r,s,a,h,l,f,c,u,d,p])=>{o.trekNetworkError=false;if(t){o.difficulties=t.results}if(i){o.routes=i.results}if(e){o.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(n){o.themes=n.results}if(r){o.cities=r.results}if(s){o.currentSensitiveAreas=s.results}o.labels=a.results;o.sources=h.results;o.accessibilities=l.results;if(f){o.accessibilitiesLevel=f.results}o.currentPois=c.results;o.poiTypes=u.results;o.currentInformationDesks=d.results;o.currentTrek=p})).catch((()=>{o.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();o.trekNetworkError=false}render(){return i(e,null)}};const On='.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;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}grw-trek-card{margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}';const Sn=class{constructor(i){t(this,i);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}connectedCallback(){this.handleInfiniteScrollEvent(true);if(o.currentTreks){this.treksToDisplay=[...o.currentTreks.slice(0,this.step)]}a("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(o.currentTreks){this.treksToDisplay=[...o.currentTreks.slice(0,this.step)]}}));a("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(o.treksWithinBounds){this.treksToDisplay=[...o.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<o.treksWithinBounds.length){this.treksToDisplay=o.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=o.treksWithinBounds.length?o.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(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}}disconnectedCallback(){if(this.resetStoreOnDisconnected){h()}this.handleInfiniteScrollEvent(false)}render(){return i(e,{style:{"--color-primary-app":this.colorPrimaryApp}},this.treksToDisplay.map((t=>i("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}))),i("div",{class:"list-bottom-space"}))}get element(){return s(this)}};Sn.style=On;const Tn=class{constructor(i){t(this,i);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}connectedCallback(){if(!o.api){o.api=this.api;o.languages=this.languages.split(",");o.language=o.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();o.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${o.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom&page_size=999`;Promise.all([fetch(`${o.api}trek_difficulty/?language=${o.language}&fields=id,label,pictogram`,this.init),fetch(`${o.api}trek_route/?language=${o.language}&fields=id,route,pictogram`,this.init),fetch(`${o.api}trek_practice/?language=${o.language}&fields=id,name,pictogram`,this.init),fetch(`${o.api}theme/?language=${o.language}&fields=id,label,pictogram`,this.init),fetch(`${o.api}city/?language=${o.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,n,r,s])=>{o.treksNetworkError=false;o.difficulties=t.results;o.routes=i.results;o.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));o.themes=n.results;o.cities=r.results;o.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}];o.currentTreks=s.results;o.treksWithinBounds=s.results;o.treks=s.results})).catch((()=>o.treksNetworkError=true))}render(){return i(e,null)}};export{k as grw_filter,pn as grw_map,mn as grw_select_language,Ln as grw_trek_detail,jn as grw_trek_provider,Sn as grw_treks_list,Tn as grw_treks_provider};
14
- //# sourceMappingURL=p-9330bbdb.entry.js.map
13
+ (function(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(P)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,n)=>{n=n.split(" ");n.forEach((function(n){t.DomUtil[i].call(this,e,n)}))};const e=(t,e)=>i("addClass",t,e);const n=(t,e)=>i("removeClass",t,e);const r=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const n=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:n.className,html:n.svg,iconSize:[n.w,n.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const n=t.weight;const r=e+n;const s=r*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${r} -${r} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=r.extend({initialize(i,e,n){t.Util.setOptions(this,n);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const n=t.width+t.weight;const r=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${n},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${n}" height="${r}" version="1.1" viewBox="-${n/2} 0 ${n} ${r}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:n,h:r}}});const o=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds(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:s,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback(i,e){const n=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);n.title=e.strings.title;n.href="#";n.setAttribute("role","button");const r=t.DomUtil.create(e.iconElementTag,e.icon,n);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",n);i.textContent=e.strings.text;n.classList.add("leaflet-locate-text-active");n.parentNode.style.display="flex";if(e.icon.length>0){r.classList.add("leaflet-locate-icon")}}return{link:n,icon:r}},onLocationError(t,i){alert(t.message)},onLocationOutsideMapBounds(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(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}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(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const n=this.options.createButtonCallback(e,this.options);this._link=n.link;this._icon=n.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_onClick(){this._justClicked=true;const t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){const i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){const t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;t.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate(){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){const i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const n=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){n()}}))}else{n()}}}},_deactivate(){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(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.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(){if(!this._event){return}const t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){const i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker(){if(this._event.accuracy===undefined){this._event.accuracy=0}const i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const n=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,n).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(n)}}let n;let r;if(this.options.metric){n=i.toFixed(0);r=this.options.strings.metersUnit}else{n=(i*3.2808399).toFixed(0);r=this.options.strings.feetUnit}if(this.options.drawMarker){const t=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:n,unit:r})}else if(typeof s==="function"){return s({distance:n,unit:r})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound(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(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd(){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(){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(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){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(t){if(t=="requesting"){n(this._container,"active following");e(this._container,"requesting");n(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){n(this._container,"requesting following");e(this._container,"active");n(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){n(this._container,"requesting");e(this._container,"active following");n(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}},_cleanClasses(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");n(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));var j=A((function(t,i){(function(e){var n=i&&!i.nodeType&&i;var r=t&&!t.nodeType&&t;var s=typeof _=="object"&&_;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,h=36,l=1,f=26,c=38,u=700,d=72,p=128,v="-",m=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=h-l,x=Math.floor,k=String.fromCharCode,A;function M(t){throw new RangeError(w[t])}function z(t,i){var e=t.length;var n=[];while(e--){n[e]=i(t[e])}return n}function P(t,i){var e=t.split("@");var n="";if(e.length>1){n=e[0]+"@";t=e[1]}t=t.replace(b,".");var r=t.split(".");var s=z(r,i).join(".");return n+s}function L(t){var i=[],e=0,n=t.length,r,s;while(e<n){r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((r&1023)<<10)+(s&1023)+65536)}else{i.push(r);e--}}else{i.push(r)}}return i}function j(t){return z(t,(function(t){var i="";if(t>65535){t-=65536;i+=k(t>>>10&1023|55296);t=56320|t&1023}i+=k(t);return i})).join("")}function O(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return h}function S(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function T(t,i,e){var n=0;t=e?x(t/u):t>>1;t+=x(t/i);for(;t>y*f>>1;n+=h){t=x(t/y)}return x(n+(y+1)*t/(t+c))}function E(t){var i=[],e=t.length,n,r=0,s=p,o=d,c,u,m,g,b,w,y,k,_;c=t.lastIndexOf(v);if(c<0){c=0}for(u=0;u<c;++u){if(t.charCodeAt(u)>=128){M("not-basic")}i.push(t.charCodeAt(u))}for(m=c>0?c+1:0;m<e;){for(g=r,b=1,w=h;;w+=h){if(m>=e){M("invalid-input")}y=O(t.charCodeAt(m++));if(y>=h||y>x((a-r)/b)){M("overflow")}r+=y*b;k=w<=o?l:w>=o+f?f:w-o;if(y<k){break}_=h-k;if(b>x(a/_)){M("overflow")}b*=_}n=i.length+1;o=T(r-g,n,g==0);if(x(r/n)>a-s){M("overflow")}s+=x(r/n);r%=n;i.splice(r++,0,s)}return j(i)}function C(t){var i,e,n,r,s,o,c,u,m,g,b,w=[],y,_,A,z;t=L(t);y=t.length;i=p;e=0;s=d;for(o=0;o<y;++o){b=t[o];if(b<128){w.push(k(b))}}n=r=w.length;if(r){w.push(v)}while(n<y){for(c=a,o=0;o<y;++o){b=t[o];if(b>=i&&b<c){c=b}}_=n+1;if(c-i>x((a-e)/_)){M("overflow")}e+=(c-i)*_;i=c;for(o=0;o<y;++o){b=t[o];if(b<i&&++e>a){M("overflow")}if(b==i){for(u=e,m=h;;m+=h){g=m<=s?l:m>=s+f?f:m-s;if(u<g){break}z=u-g;A=h-g;w.push(k(S(g+z%A,0)));u=x(z/A)}w.push(k(S(u,0)));s=T(e,_,n==r);e=0;++n}}++e;++i}return w.join("")}function F(t){return P(t,(function(t){return m.test(t)?E(t.slice(4).toLowerCase()):t}))}function I(t){return P(t,(function(t){return g.test(t)?"xn--"+C(t):t}))}o={version:"1.4.1",ucs2:{decode:L,encode:j},decode:E,encode:C,toASCII:I,toUnicode:F};if(n&&r){if(t.exports==n){r.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(n[A]=o[A])}}}else{e.punycode=o}})(_)}));var O=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var n=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(n)!=="[object Symbol]"){return false}var r=42;i[e]=r;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==r||o.enumerable!==true){return false}}return true};var S=typeof Symbol!=="undefined"&&Symbol;var T=function t(){if(typeof S!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof S("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return O()};var E={foo:{}};var C=Object;var F=function t(){return{__proto__:E}.foo===E.foo&&!({__proto__:null}instanceof C)};var I="Function.prototype.bind called on incompatible ";var B=Array.prototype.slice;var R=Object.prototype.toString;var N="[object Function]";var D=function t(i){var e=this;if(typeof e!=="function"||R.call(e)!==N){throw new TypeError(I+e)}var n=B.call(arguments,1);var r;var s=function(){if(this instanceof r){var t=e.apply(this,n.concat(B.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,n.concat(B.call(arguments)))}};var o=Math.max(0,e.length-n.length);var a=[];for(var h=0;h<o;h++){a.push("$"+h)}r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var l=function t(){};l.prototype=e.prototype;r.prototype=new l;l.prototype=null}return r};var U=Function.prototype.bind||D;var Z=U.call(Function.call,Object.prototype.hasOwnProperty);var $;var G=SyntaxError;var H=Function;var V=TypeError;var W=function(t){try{return H('"use strict"; return ('+t+").constructor;")()}catch(i){}};var Y=Object.getOwnPropertyDescriptor;var Q=function(){throw new V};var q=Y?function(){try{return Q}catch(t){try{return Y(arguments,"callee").get}catch(i){return Q}}}():Q;var J=T();var X=F();var K=Object.getPrototypeOf||(X?function(t){return t.__proto__}:null);var tt={};var it=typeof Uint8Array==="undefined"||!K?$:K(Uint8Array);var et={"%AggregateError%":typeof AggregateError==="undefined"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?$:ArrayBuffer,"%ArrayIteratorPrototype%":J&&K?K([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":tt,"%AsyncGenerator%":tt,"%AsyncGeneratorFunction%":tt,"%AsyncIteratorPrototype%":tt,"%Atomics%":typeof Atomics==="undefined"?$:Atomics,"%BigInt%":typeof BigInt==="undefined"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?$:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?$:FinalizationRegistry,"%Function%":H,"%GeneratorFunction%":tt,"%Int8Array%":typeof Int8Array==="undefined"?$:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?$:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&K?K(K([][Symbol.iterator]())):$,"%JSON%":typeof JSON==="object"?JSON:$,"%Map%":typeof Map==="undefined"?$:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!J||!K?$:K((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?$:Promise,"%Proxy%":typeof Proxy==="undefined"?$:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?$:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!J||!K?$:K((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&K?K(""[Symbol.iterator]()):$,"%Symbol%":J?Symbol:$,"%SyntaxError%":G,"%ThrowTypeError%":q,"%TypedArray%":it,"%TypeError%":V,"%Uint8Array%":typeof Uint8Array==="undefined"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?$:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?$:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?$:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?$:WeakSet};var nt=function t(i){var e;if(i==="%AsyncFunction%"){e=W("async function () {}")}else if(i==="%GeneratorFunction%"){e=W("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=W("async function* () {}")}else if(i==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");if(n){e=n.prototype}}else if(i==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");if(r&&K){e=K(r.prototype)}}et[i]=e;return e};var rt={"%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 st=U.call(Function.call,Array.prototype.concat);var ot=U.call(Function.apply,Array.prototype.splice);var at=U.call(Function.call,String.prototype.replace);var ht=U.call(Function.call,String.prototype.slice);var lt=U.call(Function.call,RegExp.prototype.exec);var ft=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var ct=/\\(\\)?/g;var ut=function t(i){var e=ht(i,0,1);var n=ht(i,-1);if(e==="%"&&n!=="%"){throw new G("invalid intrinsic syntax, expected closing `%`")}else if(n==="%"&&e!=="%"){throw new G("invalid intrinsic syntax, expected opening `%`")}var r=[];at(i,ft,(function(t,i,e,n){r[r.length]=e?at(n,ct,"$1"):i||t}));return r};var dt=function t(i,e){var n=i;var r;if(Z(rt,n)){r=rt[n];n="%"+r[0]+"%"}if(Z(et,n)){var s=et[n];if(s===tt){s=nt(n)}if(typeof s==="undefined"&&!e){throw new V("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:r,name:n,value:s}}throw new G("intrinsic "+i+" does not exist!")};var pt=function t(i,e){if(typeof i!=="string"||i.length===0){throw new V("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new V('"allowMissing" argument must be a boolean')}if(lt(/^%?[^%]*%?$/,i)===null){throw new G("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var n=ut(i);var r=n.length>0?n[0]:"";var s=dt("%"+r+"%",e);var o=s.name;var a=s.value;var h=false;var l=s.alias;if(l){r=l[0];ot(n,st([0,1],l))}for(var f=1,c=true;f<n.length;f+=1){var u=n[f];var d=ht(u,0,1);var p=ht(u,-1);if((d==='"'||d==="'"||d==="`"||(p==='"'||p==="'"||p==="`"))&&d!==p){throw new G("property names with quotes must have matching quotes")}if(u==="constructor"||!c){h=true}r+="."+u;o="%"+r+"%";if(Z(et,o)){a=et[o]}else if(a!=null){if(!(u in a)){if(!e){throw new V("base intrinsic for "+i+" exists, but the property is not available.")}return void $}if(Y&&f+1>=n.length){var v=Y(a,u);c=!!v;if(c&&"get"in v&&!("originalValue"in v.get)){a=v.get}else{a=a[u]}}else{c=Z(a,u);a=a[u]}if(c&&!h){et[o]=a}}}return a};var vt=A((function(t){var i=pt("%Function.prototype.apply%");var e=pt("%Function.prototype.call%");var n=pt("%Reflect.apply%",true)||U.call(e,i);var r=pt("%Object.getOwnPropertyDescriptor%",true);var s=pt("%Object.defineProperty%",true);var o=pt("%Math.max%");if(s){try{s({},"a",{value:1})}catch(h){s=null}}t.exports=function t(i){var a=n(U,e,arguments);if(r&&s){var h=r(a,"length");if(h.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return n(U,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var mt=vt(pt("String.prototype.indexOf"));var gt=function t(i,e){var n=pt(i,!!e);if(typeof n==="function"&&mt(i,".prototype.")>-1){return vt(n)}return n};const bt={};const wt=Object.freeze({__proto__:null,default:bt});const yt=M(wt);var xt=typeof Map==="function"&&Map.prototype;var kt=Object.getOwnPropertyDescriptor&&xt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var _t=xt&&kt&&typeof kt.get==="function"?kt.get:null;var At=xt&&Map.prototype.forEach;var Mt=typeof Set==="function"&&Set.prototype;var zt=Object.getOwnPropertyDescriptor&&Mt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Pt=Mt&&zt&&typeof zt.get==="function"?zt.get:null;var Lt=Mt&&Set.prototype.forEach;var jt=typeof WeakMap==="function"&&WeakMap.prototype;var Ot=jt?WeakMap.prototype.has:null;var St=typeof WeakSet==="function"&&WeakSet.prototype;var Tt=St?WeakSet.prototype.has:null;var Et=typeof WeakRef==="function"&&WeakRef.prototype;var Ct=Et?WeakRef.prototype.deref:null;var Ft=Boolean.prototype.valueOf;var It=Object.prototype.toString;var Bt=Function.prototype.toString;var Rt=String.prototype.match;var Nt=String.prototype.slice;var Dt=String.prototype.replace;var Ut=String.prototype.toUpperCase;var Zt=String.prototype.toLowerCase;var $t=RegExp.prototype.test;var Gt=Array.prototype.concat;var Ht=Array.prototype.join;var Vt=Array.prototype.slice;var Wt=Math.floor;var Yt=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var Qt=Object.getOwnPropertySymbols;var qt=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var Jt=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var Xt=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Jt?"object":"symbol")?Symbol.toStringTag:null;var Kt=Object.prototype.propertyIsEnumerable;var ti=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ii(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||$t.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var n=t<0?-Wt(-t):Wt(t);if(n!==t){var r=String(n);var s=Nt.call(i,r.length+1);return Dt.call(r,e,"$&_")+"."+Dt.call(Dt.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Dt.call(i,e,"$&_")}var ei=yt.custom;var ni=pi(ei)?ei:null;var ri=function t(i,e,n,r){var s=e||{};if(gi(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(gi(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=gi(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(gi(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(gi(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Pi(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var h=String(i);return a?ii(i,h):h}if(typeof i==="bigint"){var l=String(i)+"n";return a?ii(i,l):l}var f=typeof s.depth==="undefined"?5:s.depth;if(typeof n==="undefined"){n=0}if(n>=f&&f>0&&typeof i==="object"){return ai(i)?"[Array]":"[Object]"}var c=Ei(s,n);if(typeof r==="undefined"){r=[]}else if(yi(r,i)>=0){return"[Circular]"}function u(i,e,o){if(e){r=Vt.call(r);r.push(e)}if(o){var a={depth:s.depth};if(gi(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,n+1,r)}return t(i,s,n+1,r)}if(typeof i==="function"&&!li(i)){var d=wi(i);var p=Fi(i,u);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(p.length>0?" { "+Ht.call(p,", ")+" }":"")}if(pi(i)){var v=Jt?Dt.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):qt.call(i);return typeof i==="object"&&!Jt?ji(v):v}if(zi(i)){var m="<"+Zt.call(String(i.nodeName));var g=i.attributes||[];for(var b=0;b<g.length;b++){m+=" "+g[b].name+"="+si(oi(g[b].value),"double",s)}m+=">";if(i.childNodes&&i.childNodes.length){m+="..."}m+="</"+Zt.call(String(i.nodeName))+">";return m}if(ai(i)){if(i.length===0){return"[]"}var w=Fi(i,u);if(c&&!Ti(w)){return"["+Ci(w,c)+"]"}return"[ "+Ht.call(w,", ")+" ]"}if(fi(i)){var y=Fi(i,u);if(!("cause"in Error.prototype)&&"cause"in i&&!Kt.call(i,"cause")){return"{ ["+String(i)+"] "+Ht.call(Gt.call("[cause]: "+u(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+Ht.call(y,", ")+" }"}if(typeof i==="object"&&o){if(ni&&typeof i[ni]==="function"&&yt){return yt(i,{depth:f-n})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if(xi(i)){var x=[];if(At){At.call(i,(function(t,e){x.push(u(e,i,true)+" => "+u(t,i))}))}return Si("Map",_t.call(i),x,c)}if(Ai(i)){var k=[];if(Lt){Lt.call(i,(function(t){k.push(u(t,i))}))}return Si("Set",Pt.call(i),k,c)}if(ki(i)){return Oi("WeakMap")}if(Mi(i)){return Oi("WeakSet")}if(_i(i)){return Oi("WeakRef")}if(ui(i)){return ji(u(Number(i)))}if(vi(i)){return ji(u(Yt.call(i)))}if(di(i)){return ji(Ft.call(i))}if(ci(i)){return ji(u(String(i)))}if(!hi(i)&&!li(i)){var _=Fi(i,u);var A=ti?ti(i)===Object.prototype:i instanceof Object||i.constructor===Object;var M=i instanceof Object?"":"null prototype";var z=!A&&Xt&&Object(i)===i&&Xt in i?Nt.call(bi(i),8,-1):M?"Object":"";var P=A||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var L=P+(z||M?"["+Ht.call(Gt.call([],z||[],M||[]),": ")+"] ":"");if(_.length===0){return L+"{}"}if(c){return L+"{"+Ci(_,c)+"}"}return L+"{ "+Ht.call(_,", ")+" }"}return String(i)};function si(t,i,e){var n=(e.quoteStyle||i)==="double"?'"':"'";return n+t+n}function oi(t){return Dt.call(String(t),/"/g,"&quot;")}function ai(t){return bi(t)==="[object Array]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function hi(t){return bi(t)==="[object Date]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function li(t){return bi(t)==="[object RegExp]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function fi(t){return bi(t)==="[object Error]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function ci(t){return bi(t)==="[object String]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function ui(t){return bi(t)==="[object Number]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function di(t){return bi(t)==="[object Boolean]"&&(!Xt||!(typeof t==="object"&&Xt in t))}function pi(t){if(Jt){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!qt){return false}try{qt.call(t);return true}catch(i){}return false}function vi(t){if(!t||typeof t!=="object"||!Yt){return false}try{Yt.call(t);return true}catch(i){}return false}var mi=Object.prototype.hasOwnProperty||function(t){return t in this};function gi(t,i){return mi.call(t,i)}function bi(t){return It.call(t)}function wi(t){if(t.name){return t.name}var i=Rt.call(Bt.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function yi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,n=t.length;e<n;e++){if(t[e]===i){return e}}return-1}function xi(t){if(!_t||!t||typeof t!=="object"){return false}try{_t.call(t);try{Pt.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function ki(t){if(!Ot||!t||typeof t!=="object"){return false}try{Ot.call(t,Ot);try{Tt.call(t,Tt)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function _i(t){if(!Ct||!t||typeof t!=="object"){return false}try{Ct.call(t);return true}catch(i){}return false}function Ai(t){if(!Pt||!t||typeof t!=="object"){return false}try{Pt.call(t);try{_t.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Mi(t){if(!Tt||!t||typeof t!=="object"){return false}try{Tt.call(t,Tt);try{Ot.call(t,Ot)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function zi(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 Pi(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var n="... "+e+" more character"+(e>1?"s":"");return Pi(Nt.call(t,0,i.maxStringLength),i)+n}var r=Dt.call(Dt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Li);return si(r,"single",i)}function Li(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+Ut.call(i.toString(16))}function ji(t){return"Object("+t+")"}function Oi(t){return t+" { ? }"}function Si(t,i,e,n){var r=n?Ci(e,n):Ht.call(e,", ");return t+" ("+i+") {"+r+"}"}function Ti(t){for(var i=0;i<t.length;i++){if(yi(t[i],"\n")>=0){return false}}return true}function Ei(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=Ht.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:Ht.call(Array(i+1),e)}}function Ci(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+Ht.call(t,","+e)+"\n"+i.prev}function Fi(t,i){var e=ai(t);var n=[];if(e){n.length=t.length;for(var r=0;r<t.length;r++){n[r]=gi(t,r)?i(t[r],t):""}}var s=typeof Qt==="function"?Qt(t):[];var o;if(Jt){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var h in t){if(!gi(t,h)){continue}if(e&&String(Number(h))===h&&h<t.length){continue}if(Jt&&o["$"+h]instanceof Symbol){continue}else if($t.call(/[^\w$]/,h)){n.push(i(h,t)+": "+i(t[h],t))}else{n.push(h+": "+i(t[h],t))}}if(typeof Qt==="function"){for(var l=0;l<s.length;l++){if(Kt.call(t,s[l])){n.push("["+i(s[l])+"]: "+i(t[s[l]],t))}}}return n}var Ii=pt("%TypeError%");var Bi=pt("%WeakMap%",true);var Ri=pt("%Map%",true);var Ni=gt("WeakMap.prototype.get",true);var Di=gt("WeakMap.prototype.set",true);var Ui=gt("WeakMap.prototype.has",true);var Zi=gt("Map.prototype.get",true);var $i=gt("Map.prototype.set",true);var Gi=gt("Map.prototype.has",true);var Hi=function(t,i){for(var e=t,n;(n=e.next)!==null;e=n){if(n.key===i){e.next=n.next;n.next=t.next;t.next=n;return n}}};var Vi=function(t,i){var e=Hi(t,i);return e&&e.value};var Wi=function(t,i,e){var n=Hi(t,i);if(n){n.value=e}else{t.next={key:i,next:t.next,value:e}}};var Yi=function(t,i){return!!Hi(t,i)};var Qi=function t(){var i;var e;var n;var r={assert:function(t){if(!r.has(t)){throw new Ii("Side channel does not contain "+ri(t))}},get:function(t){if(Bi&&t&&(typeof t==="object"||typeof t==="function")){if(i){return Ni(i,t)}}else if(Ri){if(e){return Zi(e,t)}}else{if(n){return Vi(n,t)}}},has:function(t){if(Bi&&t&&(typeof t==="object"||typeof t==="function")){if(i){return Ui(i,t)}}else if(Ri){if(e){return Gi(e,t)}}else{if(n){return Yi(n,t)}}return false},set:function(t,r){if(Bi&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new Bi}Di(i,t,r)}else if(Ri){if(!e){e=new Ri}$i(e,t,r)}else{if(!n){n={key:{},next:null}}Wi(n,t,r)}}};return r};var qi=String.prototype.replace;var Ji=/%20/g;var Xi={RFC1738:"RFC1738",RFC3986:"RFC3986"};var Ki={default:Xi.RFC3986,formatters:{RFC1738:function(t){return qi.call(t,Ji,"+")},RFC3986:function(t){return String(t)}},RFC1738:Xi.RFC1738,RFC3986:Xi.RFC3986};var te=Object.prototype.hasOwnProperty;var ie=Array.isArray;var ee=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var ne=function t(i){while(i.length>1){var e=i.pop();var n=e.obj[e.prop];if(ie(n)){var r=[];for(var s=0;s<n.length;++s){if(typeof n[s]!=="undefined"){r.push(n[s])}}e.obj[e.prop]=r}}};var re=function t(i,e){var n=e&&e.plainObjects?Object.create(null):{};for(var r=0;r<i.length;++r){if(typeof i[r]!=="undefined"){n[r]=i[r]}}return n};var se=function t(i,e,n){if(!e){return i}if(typeof e!=="object"){if(ie(i)){i.push(e)}else if(i&&typeof i==="object"){if(n&&(n.plainObjects||n.allowPrototypes)||!te.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var r=i;if(ie(i)&&!ie(e)){r=re(i,n)}if(ie(i)&&ie(e)){e.forEach((function(e,r){if(te.call(i,r)){var s=i[r];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[r]=t(s,e,n)}else{i.push(e)}}else{i[r]=e}}));return i}return Object.keys(e).reduce((function(i,r){var s=e[r];if(te.call(i,r)){i[r]=t(i[r],s,n)}else{i[r]=s}return i}),r)};var oe=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var ae=function(t,i,e){var n=t.replace(/\+/g," ");if(e==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(r){return n}};var he=function t(i,e,n,r,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(n==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var h=0;h<o.length;++h){var l=o.charCodeAt(h);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===Ki.RFC1738&&(l===40||l===41)){a+=o.charAt(h);continue}if(l<128){a=a+ee[l];continue}if(l<2048){a=a+(ee[192|l>>6]+ee[128|l&63]);continue}if(l<55296||l>=57344){a=a+(ee[224|l>>12]+ee[128|l>>6&63]+ee[128|l&63]);continue}h+=1;l=65536+((l&1023)<<10|o.charCodeAt(h)&1023);a+=ee[240|l>>18]+ee[128|l>>12&63]+ee[128|l>>6&63]+ee[128|l&63]}return a};var le=function t(i){var e=[{obj:{o:i},prop:"o"}];var n=[];for(var r=0;r<e.length;++r){var s=e[r];var o=s.obj[s.prop];var a=Object.keys(o);for(var h=0;h<a.length;++h){var l=a[h];var f=o[l];if(typeof f==="object"&&f!==null&&n.indexOf(f)===-1){e.push({obj:o,prop:l});n.push(f)}}}ne(e);return i};var fe=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var ce=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var ue=function t(i,e){return[].concat(i,e)};var de=function t(i,e){if(ie(i)){var n=[];for(var r=0;r<i.length;r+=1){n.push(e(i[r]))}return n}return e(i)};var pe={arrayToObject:re,assign:oe,combine:ue,compact:le,decode:ae,encode:he,isBuffer:ce,isRegExp:fe,maybeMap:de,merge:se};var ve=Object.prototype.hasOwnProperty;var me={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var ge=Array.isArray;var be=Array.prototype.push;var we=function(t,i){be.apply(t,ge(i)?i:[i])};var ye=Date.prototype.toISOString;var xe=Ki["default"];var ke={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:pe.encode,encodeValuesOnly:false,format:xe,formatter:Ki.formatters[xe],indices:false,serializeDate:function t(i){return ye.call(i)},skipNulls:false,strictNullHandling:false};var _e=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var Ae={};var Me=function t(i,e,n,r,s,o,a,h,l,f,c,u,d,p,v,m){var g=i;var b=m;var w=0;var y=false;while((b=b.get(Ae))!==void undefined&&!y){var x=b.get(i);w+=1;if(typeof x!=="undefined"){if(x===w){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof b.get(Ae)==="undefined"){w=0}}if(typeof h==="function"){g=h(e,g)}else if(g instanceof Date){g=c(g)}else if(n==="comma"&&ge(g)){g=pe.maybeMap(g,(function(t){if(t instanceof Date){return c(t)}return t}))}if(g===null){if(s){return a&&!p?a(e,ke.encoder,v,"key",u):e}g=""}if(_e(g)||pe.isBuffer(g)){if(a){var k=p?e:a(e,ke.encoder,v,"key",u);return[d(k)+"="+d(a(g,ke.encoder,v,"value",u))]}return[d(e)+"="+d(String(g))]}var _=[];if(typeof g==="undefined"){return _}var A;if(n==="comma"&&ge(g)){if(p&&a){g=pe.maybeMap(g,a)}A=[{value:g.length>0?g.join(",")||null:void undefined}]}else if(ge(h)){A=h}else{var M=Object.keys(g);A=l?M.sort(l):M}var z=r&&ge(g)&&g.length===1?e+"[]":e;for(var P=0;P<A.length;++P){var L=A[P];var j=typeof L==="object"&&typeof L.value!=="undefined"?L.value:g[L];if(o&&j===null){continue}var O=ge(g)?typeof n==="function"?n(z,L):z:z+(f?"."+L:"["+L+"]");m.set(i,w);var S=Qi();S.set(Ae,m);we(_,t(j,O,n,r,s,o,n==="comma"&&p&&ge(g)?null:a,h,l,f,c,u,d,p,v,S))}return _};var ze=function t(i){if(!i){return ke}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||ke.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var n=Ki["default"];if(typeof i.format!=="undefined"){if(!ve.call(Ki.formatters,i.format)){throw new TypeError("Unknown format option provided.")}n=i.format}var r=Ki.formatters[n];var s=ke.filter;if(typeof i.filter==="function"||ge(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:ke.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?ke.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:ke.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?ke.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:ke.encode,encoder:typeof i.encoder==="function"?i.encoder:ke.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:ke.encodeValuesOnly,filter:s,format:n,formatter:r,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:ke.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:ke.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:ke.strictNullHandling}};var Pe=function(t,i){var e=t;var n=ze(i);var r;var s;if(typeof n.filter==="function"){s=n.filter;e=s("",e)}else if(ge(n.filter)){s=n.filter;r=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in me){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var h=me[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var l=h==="comma"&&i&&i.commaRoundTrip;if(!r){r=Object.keys(e)}if(n.sort){r.sort(n.sort)}var f=Qi();for(var c=0;c<r.length;++c){var u=r[c];if(n.skipNulls&&e[u]===null){continue}we(o,Me(e[u],u,h,l,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,f))}var d=o.join(n.delimiter);var p=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){p+="utf8=%26%2310003%3B&"}else{p+="utf8=%E2%9C%93&"}}return d.length>0?p+d:""};var Le=Object.prototype.hasOwnProperty;var je=Array.isArray;var Oe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:pe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Se=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var Te=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var Ee="utf8=%26%2310003%3B";var Ce="utf8=%E2%9C%93";var Fe=function t(i,e){var n={__proto__:null};var r=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=r.split(e.delimiter,s);var a=-1;var h;var l=e.charset;if(e.charsetSentinel){for(h=0;h<o.length;++h){if(o[h].indexOf("utf8=")===0){if(o[h]===Ce){l="utf-8"}else if(o[h]===Ee){l="iso-8859-1"}a=h;h=o.length}}}for(h=0;h<o.length;++h){if(h===a){continue}var f=o[h];var c=f.indexOf("]=");var u=c===-1?f.indexOf("="):c+1;var d,p;if(u===-1){d=e.decoder(f,Oe.decoder,l,"key");p=e.strictNullHandling?null:""}else{d=e.decoder(f.slice(0,u),Oe.decoder,l,"key");p=pe.maybeMap(Te(f.slice(u+1),e),(function(t){return e.decoder(t,Oe.decoder,l,"value")}))}if(p&&e.interpretNumericEntities&&l==="iso-8859-1"){p=Se(p)}if(f.indexOf("[]=")>-1){p=je(p)?[p]:p}if(Le.call(n,d)){n[d]=pe.combine(n[d],p)}else{n[d]=p}}return n};var Ie=function(t,i,e,n){var r=n?i:Te(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(r)}else{o=e.plainObjects?Object.create(null):{};var h=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var l=parseInt(h,10);if(!e.parseArrays&&h===""){o={0:r}}else if(!isNaN(l)&&a!==h&&String(l)===h&&l>=0&&(e.parseArrays&&l<=e.arrayLimit)){o=[];o[l]=r}else if(h!=="__proto__"){o[h]=r}}r=o}return r};var Be=function t(i,e,n,r){if(!i){return}var s=n.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var h=n.depth>0&&o.exec(s);var l=h?s.slice(0,h.index):s;var f=[];if(l){if(!n.plainObjects&&Le.call(Object.prototype,l)){if(!n.allowPrototypes){return}}f.push(l)}var c=0;while(n.depth>0&&(h=a.exec(s))!==null&&c<n.depth){c+=1;if(!n.plainObjects&&Le.call(Object.prototype,h[1].slice(1,-1))){if(!n.allowPrototypes){return}}f.push(h[1])}if(h){f.push("["+s.slice(h.index)+"]")}return Ie(f,e,n,r)};var Re=function t(i){if(!i){return Oe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?Oe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?Oe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:Oe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:Oe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:Oe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:Oe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:Oe.comma,decoder:typeof i.decoder==="function"?i.decoder:Oe.decoder,delimiter:typeof i.delimiter==="string"||pe.isRegExp(i.delimiter)?i.delimiter:Oe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:Oe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:Oe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:Oe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:Oe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:Oe.strictNullHandling}};var Ne=function(t,i){var e=Re(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var n=typeof t==="string"?Fe(t,e):t;var r=e.plainObjects?Object.create(null):{};var s=Object.keys(n);for(var o=0;o<s.length;++o){var a=s[o];var h=Be(a,n[a],e,typeof t==="string");r=pe.merge(r,h,e)}if(e.allowSparse===true){return r}return pe.compact(r)};var De={formats:Ki,parse:Ne,stringify:Pe};function Ue(){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 Ze=/^([a-z0-9.+-]+:)/i,$e=/:[0-9]*$/,Ge=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,He=["<",">",'"',"`"," ","\r","\n","\t"],Ve=["{","}","|","\\","^","`"].concat(He),We=["'"].concat(Ve),Ye=["%","/","?",";","#"].concat(We),Qe=["/","?","#"],qe=255,Je=/^[+a-z0-9A-Z_-]{0,63}$/,Xe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ke={javascript:true,"javascript:":true},tn={javascript:true,"javascript:":true},en={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function nn(t,i,e){if(t&&typeof t==="object"&&t instanceof Ue){return t}var n=new Ue;n.parse(t,i,e);return n}Ue.prototype.parse=function(t,i,e){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("#")?"?":"#",s=t.split(r),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(r);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var h=Ge.exec(a);if(h){this.path=a;this.href=a;this.pathname=h[1];if(h[2]){this.search=h[2];if(i){this.query=De.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var l=Ze.exec(a);if(l){l=l[0];var f=l.toLowerCase();this.protocol=f;a=a.substr(l.length)}if(e||l||a.match(/^\/\/[^@/]+@[^@/]+/)){var c=a.substr(0,2)==="//";if(c&&!(l&&tn[l])){a=a.substr(2);this.slashes=true}}if(!tn[l]&&(c||l&&!en[l])){var u=-1;for(var d=0;d<Qe.length;d++){var p=a.indexOf(Qe[d]);if(p!==-1&&(u===-1||p<u)){u=p}}var v,m;if(u===-1){m=a.lastIndexOf("@")}else{m=a.lastIndexOf("@",u)}if(m!==-1){v=a.slice(0,m);a=a.slice(m+1);this.auth=decodeURIComponent(v)}u=-1;for(var d=0;d<Ye.length;d++){var p=a.indexOf(Ye[d]);if(p!==-1&&(u===-1||p<u)){u=p}}if(u===-1){u=a.length}this.host=a.slice(0,u);a=a.slice(u);this.parseHost();this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var b=this.hostname.split(/\./);for(var d=0,w=b.length;d<w;d++){var y=b[d];if(!y){continue}if(!y.match(Je)){var x="";for(var k=0,_=y.length;k<_;k++){if(y.charCodeAt(k)>127){x+="x"}else{x+=y[k]}}if(!x.match(Je)){var A=b.slice(0,d);var M=b.slice(d+1);var z=y.match(Xe);if(z){A.push(z[1]);M.unshift(z[2])}if(M.length){a="/"+M.join(".")+a}this.hostname=A.join(".");break}}}}if(this.hostname.length>qe){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!g){this.hostname=j.toASCII(this.hostname)}var P=this.port?":"+this.port:"";var L=this.hostname||"";this.host=L+P;this.href+=this.host;if(g){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!Ke[f]){for(var d=0,w=We.length;d<w;d++){var O=We[d];if(a.indexOf(O)===-1){continue}var S=encodeURIComponent(O);if(S===O){S=escape(O)}a=a.split(O).join(S)}}var T=a.indexOf("#");if(T!==-1){this.hash=a.substr(T);a=a.slice(0,T)}var E=a.indexOf("?");if(E!==-1){this.search=a.substr(E);this.query=a.substr(E+1);if(i){this.query=De.parse(this.query)}a=a.slice(0,E)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(en[f]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var P=this.pathname||"";var C=this.search||"";this.path=P+C}this.href=this.format();return this};function rn(t){if(typeof t==="string"){t=nn(t)}if(!(t instanceof Ue)){return Ue.prototype.format.call(t)}return t.format()}Ue.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",n=this.hash||"",r=false,s="";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){s=De.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||en[i])&&r!==false){r="//"+(r||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!r){r=""}if(n&&n.charAt(0)!=="#"){n="#"+n}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+r+e+o+n};function sn(t,i){return nn(t,false,true).resolve(i)}Ue.prototype.resolve=function(t){return this.resolveObject(nn(t,false,true)).format()};function on(t,i){if(!t){return i}return nn(t,false,true).resolveObject(i)}Ue.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new Ue;i.parse(t,false,true);t=i}var e=new Ue;var n=Object.keys(this);for(var r=0;r<n.length;r++){var s=n[r];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var h=o[a];if(h!=="protocol"){e[h]=t[h]}}if(en[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!en[t.protocol]){var l=Object.keys(t);for(var f=0;f<l.length;f++){var c=l[f];e[c]=t[c]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!tn[t.protocol]){var u=(t.pathname||"").split("/");while(u.length&&!(t.host=u.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(u[0]!==""){u.unshift("")}if(u.length<2){u.unshift("")}e.pathname=u.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var d=e.pathname||"";var p=e.search||"";e.path=d+p}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var v=e.pathname&&e.pathname.charAt(0)==="/",m=t.host||t.pathname&&t.pathname.charAt(0)==="/",g=m||v||e.host&&t.pathname,b=g,w=e.pathname&&e.pathname.split("/")||[],u=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!en[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(w[0]===""){w[0]=e.host}else{w.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(u[0]===""){u[0]=t.host}else{u.unshift(t.host)}}t.host=null}g=g&&(u[0]===""||w[0]==="")}if(m){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;w=u}else if(u.length){if(!w){w=[]}w.pop();w=w.concat(u);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=w.shift();e.hostname=e.host;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!w.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var k=w.slice(-1)[0];var _=(e.host||t.host||w.length>1)&&(k==="."||k==="..")||k==="";var A=0;for(var M=w.length;M>=0;M--){k=w[M];if(k==="."){w.splice(M,1)}else if(k===".."){w.splice(M,1);A++}else if(A){w.splice(M,1);A--}}if(!g&&!b){for(;A--;A){w.unshift("..")}}if(g&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")){w.unshift("")}if(_&&w.join("/").substr(-1)!=="/"){w.push("")}var z=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(y){e.hostname=z?"":w.length?w.shift():"";e.host=e.hostname;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}g=g||e.host&&w.length;if(g&&!z){w.unshift("")}if(w.length>0){e.pathname=w.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};Ue.prototype.parseHost=function(){var t=this.host;var i=$e.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var an=nn;var hn=sn;var ln=on;var fn=rn;var cn=Ue;var un={parse:an,resolve:hn,resolveObject:ln,format:fn,Url:cn};!function(t){t()}((function(){const 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"}},i=6e4,e=60*i,n=24*e;function r(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=v("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),n=document.body;n.appendChild(e),e.click(),n.removeChild(e)}function o(t,i,e){return t&&(({props:n,point:r,id:s,isMulti:o})=>{if(n)for(const h of t)if(h in n){r.meta[i]=(e||a).call(this,o?n[h][o]:n[h],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),h=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),f=(t,i,e)=>(e?h:l)(t,i),c=(t,i,e)=>i&&l(t,i)||e&&h(t,e),u=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),d=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},p=(t,i,e,n)=>t[n?"on":"off"](i,e),v=(t,i,e,n)=>{let r=L.DomUtil.create(t,i||"");return e&&d(r,e),n&&m(n,r),r},m=(t,i)=>t.appendChild(i),g=(t,i,e)=>t.insertAdjacentElement(e,i),b=(t,i)=>(i||document).querySelector(t),w=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:x,off:k}=L.DomEvent,{throttle:_,wrapNum:A}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,P=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,j=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function O(t,i=[],e=[]){switch(!t||typeof t){case"object":const n=e.filter((i=>t===i.original))[0];if(n)return n.copy;const r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:r}),Object.getOwnPropertyNames(t).forEach((function(n){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(n)?s.value:O(s.value,i,e)})})),r;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var S=Object.freeze({__proto__:null,Colors:t,addClass:h,append:m,clamp:P,cloneDeep:O,coordPropsToMeta:o,create:v,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:w,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let r=Math.floor(t/n),s=Math.floor((t-r*n)/e),o=Math.floor((t-r*n-s*e)/i),a=Math.round((t-r*n-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(r++,s=0),(r?r+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:g,off:k,on:x,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:l,replaceClass:c,resolveURL:r,round:z,saveFile:s,select:b,setAttributes:d,style:u,throttle:_,toggleClass:f,toggleEvent:p,toggleStyle:(t,i,e,n)=>u(t,i,n?e:""),wrapDelta:j,wrapNum:A}),T={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?un.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?un.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=(t,i)=>t);const E=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:T,__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(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=b(this.options.elevationDiv),e=this.onAdd(t);i?m(i,e):g(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){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((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){u(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},O(T),i)),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],i.trkStart||T.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||T.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=_(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=T.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=T.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){case this.__D3:i="object"!=typeof d3;break;case this.__TOGEOJSON:i="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:i="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:i="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:i="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:i="function"!=typeof L.Hotline}return!1!==i?__sc_import_geotrek_rando_widget(r(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=v("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(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),k(t.getContainer(),"mousewheel",this._resetDrag,this),k(t.getContainer(),"touchstart",this._resetDrag,this),k(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(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){u(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return w(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return w(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));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(t,i,e){let n=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:n,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),n=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),r=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:r}),n["add"==i?"addTo":"removeFrom"](t._map),n._renderer&&n._renderer._container.parentElement.insertBefore(n._renderer._container,n._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let 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((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){c(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){c(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,n=this.options.theme.split(" ")[0].replace("-theme",""),r=t[n]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=r.line||r.area||n,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=r.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((n=>{let r=this._chart=new(n[1]||E).Chart(i,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(r.render()),r.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();f(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),p(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),p(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let 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((t=>{this._marker=new(t[1]||E).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=v("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);x(i,"click",L.DomEvent.stop),x(i,"click",this._toggle,this),x(i,"focus",this._toggle,this),fetch(r(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||E).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==E[t]?E[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{w(i,((i,e)=>{let n=i&&Object.keys(i)[0];n&&(t[e]=E[n]=E[n]??i[n])})),w(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:n,wptIcons:r,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let h=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(n){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(n)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(n)&&0!=r)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(h);const i={data:t,layer:h,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),h},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&h(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>f(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let r=toGeoJSON[e](i);return r.name=n.length>0?(Array.from(n).find((t=>"trk"==t.parentElement.tagName))??n[0]).textContent:"",r},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,n,r=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,n=e??this._data[i],e=this._data[i],e[r]=t.pointToAttr.call(this,a,i),i>0&&isNaN(n[r])&&(isNaN(s[r])||isNaN(e[r])?isNaN(s[r])?isNaN(e[r])||(n[r]=e[r]):n[r]=s[r]:n[r]=(s[r]+e[r])/2,t.meta&&(n[t.meta]=n[r])),!isNaN(e[r])){if(s[r]=e[r],t.deltaMax&&(e[r]=j(e[r],n[r],t.deltaMax)),t.clampRange&&(e[r]=P(e[r],t.clampRange)),isNaN(t.decimals)||(e[r]=z(e[r],t.decimals)),t.stats)for(const i in t.stats){let n=(t.statsName||r)+(""!=i?"_":"");this.track_info[n+i]=t.stats[i].call(this,e[r],this.track_info[n+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[r],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:n,deltaMax:r,clampRange:s,decimals:a,meta:h,unit:l,coordinateProperties:f,coordPropsToMeta:c,pointToAttr:u,onPointAdded:d,stats:p,statsName:v,grid:m,scale:g,path:b,tooltip:y,summary:x}=t;(this.options[i]||n)&&(this._registerDataAttribute({name:i,attr:e,meta:h,deltaMax:r,clampRange:s,decimals:a,coordPropsToMeta:o(f,h||i,c),pointToAttr:u,onPointAdded:d,stats:p,statsName:v}),m&&this._registerAxisGrid(L.extend({name:i},m)),"summary"!==this.options[i]&&(g&&this._registerAxisScale(L.extend({name:i,label:l},g)),b&&this._registerAreaPath(L.extend({name:i},b))),(y||t.tooltips)&&w([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),x&&(w(x,((t,i)=>x[i]=L.extend({unit:l},t))),this._registerSummary(x)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:n}=this.options;n.hasOwnProperty(i)||(n[i]=L.divIcon(L.extend({},n[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let r=L.marker(t,{icon:n[i]});return e&&(r.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),r.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(r)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=u(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:P(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){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(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){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>",b(".download a",this._summary._container).onclick=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});E.Utils=S,L.control.elevation=t=>new E(t)}));const dn='@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}.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;height:250px}.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)}.custom-theme.elevation-control .area path.altitude,.custom-theme .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,.start-marker,.end-marker{display:none}.departure-icon img,.arrival-icon img{width:48px;height:48px}.departure-icon img path,.arrival-icon img path{fill:currentColor;stroke:currentColor}.departure-icon{color:var(--color-departure-icon)}.arrival-icon{color:var(--color-arrival-icon)}.trek-marker{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}.trek-marker img{width:36px !important}.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{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100px;height:auto;padding:24px}.trek-departure-popup img{border-radius:8px}.trek-departure-popup .trek-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.trek-departure-popup .trek-name-margin-top{margin-top:12px}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-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{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{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)}';const pn=class{constructor(i){t(this,i);this.trekCardPress=n(this,"trekCardPress",7);this.userLayersState={};this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.mapIsReady=false;this.urlLayer=undefined;this.attribution=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.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.resetStoreOnDisconnected=true;this.isLargeView=false;this.mapHeight=undefined}onCenterOnMap(t){this.map.setView(new P.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}descriptionReferenceIsInViewport(t){if(this.currentPointsReferenceLayer){this.handleLayerVisibility(t.detail,this.currentPointsReferenceLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}componentDidLoad(){this.mapHeight=this.mapElement.parentElement.clientHeight.toString()}componentDidRender(){if(this.mapHeight&&!this.map)this.onMapHeight()}onMapHeight(){this.map=P.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});P.control.scale({metric:true,imperial:false}).addTo(this.map);P.control.locate({showPopup:false}).addTo(this.map);P.tileLayer(this.urlLayer,{maxZoom:19,attribution:this.attribution}).addTo(this.map);if(o.currentTrek){this.addTrek()}else if(o.currentTreks){this.addTreks()}a("currentTreks",(()=>{if(o.currentTrek){this.removeTreks();this.addTrek()}else if(o.currentTreks){this.removeTrek();this.addTreks()}}));a("currentTrek",(()=>{if(o.currentTrek){this.removeTreks();this.addTrek()}else{this.removeTrek();this.addTreks()}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(){var t;const i=[];const e={type:"FeatureCollection",features:[]};if(o.currentTreks){for(const n of o.currentTreks){i.push(n.departure_geom);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:n.departure_geom},properties:{id:n.id,name:n.name,practice:(t=o.practices.find((t=>t.id===n.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}}if(!this.treksLayer){if(i.length>0&&!o.currentMapTreksBounds){this.bounds=P.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(o.currentMapTreksBounds){this.bounds=o.currentMapTreksBounds}}this.treksLayer=P.geoJSON(e,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:t.properties.practice?`<img src=${t.properties.practice} />`:`<img />`,className:"trek-marker",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=P.DomUtil.create("div");e.className="trek-departure-popup";e.onclick=()=>this.trekCardPress.emit(t.properties.id);const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="trek-name";if(t.properties.imgSrc){n.className+=" trek-name-margin-top";const i=P.DomUtil.create("img");i.src=t.properties.imgSrc;e.appendChild(i)}e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}))}}).addTo(this.map)}else{if(i.length>0){this.bounds=P.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(e)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){o.currentMapTreksBounds=this.map.getBounds();this.map.removeLayer(this.treksLayer);this.treksLayer=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(o.currentTreks&&!o.currentMapTreksBounds||o.currentTreks&&o.currentMapTreksBounds&&o.currentMapTreksBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){o.treksWithinBounds=o.currentTreks.filter((t=>this.map.getBounds().contains(P.latLng(t.departure_geom[1],t.departure_geom[0]))))}}addTrek(){var t;const i=r(`${""}assets/departure-arrival.svg`);const e={type:"Feature",geometry:o.currentTrek.geometry,properties:{}};this.currentTrekLayer=P.geoJSON(e,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);const n=[o.currentTrek.geometry.coordinates.at(0)[0],o.currentTrek.geometry.coordinates.at(0)[1]];const s=[o.currentTrek.geometry.coordinates.at(-1)[0],o.currentTrek.geometry.coordinates.at(-1)[1]];const a={type:"FeatureCollection",features:[{type:"Feature",properties:{type:"departure"},geometry:{type:"Point",coordinates:n}}]};if(n[0]!==s[0]||n[1]!==s[1]){a.features.push({type:"Feature",properties:{type:"arrival"},geometry:{type:"Point",coordinates:s}})}this.currentDepartureArrivalLayer=P.geoJSON(a,{pointToLayer:(t,e)=>P.marker(e,{icon:P.divIcon({html:`<img src=${i}>`,className:t.properties.type==="departure"?"departure-icon":"arrival-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}).addTo(this.map);if(o.currentTrek.parking_location){const t={type:"Feature",properties:{},geometry:{type:"Point",coordinates:o.currentTrek.parking_location}};this.currentParkingLayer=P.geoJSON(t,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})})}if(o.currentSensitiveAreas&&o.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of o.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=P.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=P.DomUtil.create("div");e.className="sensitive-area-tooltip";const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";e.appendChild(n);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(o.currentPois&&o.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of o.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=o.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=P.geoJSON(i,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=P.DomUtil.create("div");e.className="poi-tooltip";const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";e.appendChild(n);i.bindTooltip(e).openTooltip()}))}})}if(o.currentInformationDesks&&o.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of o.currentInformationDesks.filter((t=>o.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=P.geoJSON(t,{pointToLayer:(t,i)=>P.marker(i,{icon:P.divIcon({html:t.properties.type_pictogram?`<img src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=P.DomUtil.create("div");e.className="information-desks-tooltip";const n=P.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";e.appendChild(n);i.bindTooltip(e).openTooltip()}))}})}if(o.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:o.currentTrek.points_reference});let i=0;this.currentPointsReferenceLayer=P.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return P.marker(e,{icon:P.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}const h={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:"custom-theme",detached:true,height:250,wptIcons:false,wptLabels:false,collapsed:false,autohide:false,distanceMarkers:false,hotline:false,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};this.elevationControl=P.control.elevation(Object.assign({},h)).addTo(this.map);const f=JSON.stringify({name:`${o.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:o.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(f);const c={};if(this.currentPointsReferenceLayer){c[l[o.language].layers.pointsReference]=this.currentPointsReferenceLayer}if(this.currentParkingLayer){c[l[o.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){c[l[o.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){c[l[o.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){c[l[o.language].layers.pois]=this.currentPoisLayer}this.layersControl=P.control.layers(null,c,{collapsed:true}).addTo(this.map);this.handleLayersControlEvent();this.bounds=P.latLngBounds(o.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}))}removeTrek(){if(this.layersControl){this.map.removeControl(this.layersControl);this.layersControl=null}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.currentDepartureArrivalLayer){this.map.removeLayer(this.currentDepartureArrivalLayer);this.currentDepartureArrivalLayer=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.currentPointsReferenceLayer){this.map.removeLayer(this.currentPointsReferenceLayer);this.currentPointsReferenceLayer=null}}disconnectedCallback(){if(this.resetStoreOnDisconnected){h()}}render(){const t=r(`${""}assets/layers.svg`);return i(e,{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-departure-icon":this.colorDepartureIcon,"--color-arrival-icon":this.colorArrivalIcon,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${t})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px",height:`${this.mapHeight}px`}},i("div",{id:"map",style:{},class:o.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),o.currentTrek&&i("div",null,i("div",{id:"elevation",ref:t=>this.elevationRef=t}),i("div",{class:"map-bottom-space"})),!this.mapIsReady&&i("div",{class:"map-loader-container"},i("span",{class:"loader"})))}get mapElement(){return s(this)}};pn.style=dn;const vn='.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-family:"Material Symbols Outlined";font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';const mn=class{constructor(i){t(this,i)}handleSelect(t){o.treks=null;o.currentTreks=null;o.currentTrek=null;o.language=t.target.value}render(){return i(e,null,i("span",{class:"material-symbols-outlined margin-right-icon"},"translate"),i("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},o.languages.map((t=>i("option",{selected:t===o.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};mn.style=vn;function gn({swiper:t,extendParams:i,on:e,emit:n}){const r=f();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});t.mousewheel={enabled:false};let s;let o=u();let a;const h=[];function l(t){const i=10;const e=40;const n=800;let r=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){r=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){r=s;s=0}o=r*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=n;a*=n}}if(o&&!r){r=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:r,spinY:s,pixelX:o,pixelY:a}}function d(){if(!t.enabled)return;t.mouseEntered=true}function p(){if(!t.enabled)return;t.mouseEntered=false}function v(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&u()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&u()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",i.raw)}o=(new r.Date).getTime();return false}function m(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function g(i){let e=i;let r=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let f=t.el;if(t.params.mousewheel.eventsTarget!=="container"){f=document.querySelector(t.params.mousewheel.eventsTarget)}const d=f&&f.contains(e.target);if(!t.mouseEntered&&!d&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let p=0;const g=t.rtlTranslate?-1:1;const b=l(e);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(b.pixelX)>Math.abs(b.pixelY))p=-b.pixelX*g;else return true}else if(Math.abs(b.pixelY)>Math.abs(b.pixelX))p=-b.pixelY;else return true}else{p=Math.abs(b.pixelX)>Math.abs(b.pixelY)?-b.pixelX*g:-b.pixelY}if(p===0)return true;if(o.invert)p=-p;let w=t.getTranslate()+p*o.sensitivity;if(w>=t.minTranslate())w=t.minTranslate();if(w<=t.maxTranslate())w=t.maxTranslate();r=t.params.loop?true:!(w===t.minTranslate()||w===t.maxTranslate());if(r&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:u(),delta:Math.abs(p),direction:Math.sign(p),raw:i};if(h.length>=2){h.shift()}const e=h.length?h[h.length-1]:undefined;h.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){v(t)}}else{v(t)}if(m(t)){return true}}else{const i={time:u(),delta:Math.abs(p),direction:Math.sign(p)};const r=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!r){a=undefined;let l=t.getTranslate()+p*o.sensitivity;const f=t.isBeginning;const u=t.isEnd;if(l>=t.minTranslate())l=t.minTranslate();if(l<=t.maxTranslate())l=t.maxTranslate();t.setTransition(0);t.setTranslate(l);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!f&&t.isBeginning||!u&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(h.length>=15){h.shift()}const e=h.length?h[h.length-1]:undefined;const n=h[0];h.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){h.splice(0)}else if(h.length>=15&&i.time-n.time<500&&n.delta-i.delta>=1&&i.delta<=6){const e=p>0?.8:.2;a=i;h.splice(0);s=c((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=c((()=>{const e=.5;a=i;h.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!r)n("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(l===t.minTranslate()||l===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function b(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",d);e[i]("mouseleave",p);e[i]("wheel",g)}function w(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",g);return true}if(t.mousewheel.enabled)return false;b("addEventListener");t.mousewheel.enabled=true;return true}function y(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,g);return true}if(!t.mousewheel.enabled)return false;b("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){y()}if(t.params.mousewheel.enabled)w()}));e("destroy",(()=>{if(t.params.cssMode){w()}if(t.mousewheel.enabled)y()}));Object.assign(t.mousewheel,{enable:w,disable:y})}function bn({swiper:t,extendParams:i,emit:e,once:n}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function r(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:u()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:r,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:h}=t;const l=u();const f=l-h.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(r.freeMode.momentum){if(h.velocities.length>1){const i=h.velocities.pop();const e=h.velocities.pop();const n=i.position-e.position;const s=i.time-e.time;t.velocity=n/s;t.velocity/=2;if(Math.abs(t.velocity)<r.freeMode.minimumVelocity){t.velocity=0}if(s>150||u()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=r.freeMode.momentumVelocityRatio;h.velocities.length=0;let i=1e3*r.freeMode.momentumRatio;const l=t.velocity*i;let f=t.translate+l;if(o)f=-f;let c=false;let p;const v=Math.abs(t.velocity)*20*r.freeMode.momentumBounceRatio;let m;if(f<t.maxTranslate()){if(r.freeMode.momentumBounce){if(f+t.maxTranslate()<-v){f=t.maxTranslate()-v}p=t.maxTranslate();c=true;h.allowMomentumBounce=true}else{f=t.maxTranslate()}if(r.loop&&r.centeredSlides)m=true}else if(f>t.minTranslate()){if(r.freeMode.momentumBounce){if(f-t.minTranslate()>v){f=t.minTranslate()+v}p=t.minTranslate();c=true;h.allowMomentumBounce=true}else{f=t.minTranslate()}if(r.loop&&r.centeredSlides)m=true}else if(r.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-f){i=t;break}}if(Math.abs(a[i]-f)<Math.abs(a[i-1]-f)||t.swipeDirection==="next"){f=a[i]}else{f=a[i-1]}f=-f}if(m){n("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-f-t.translate)/t.velocity)}else{i=Math.abs((f-t.translate)/t.velocity)}if(r.freeMode.sticky){const e=Math.abs((o?-f:f)-t.translate);const n=t.slidesSizesGrid[t.activeIndex];if(e<n){i=r.speed}else if(e<2*n){i=r.speed*1.5}else{i=r.speed*2.5}}}else if(r.freeMode.sticky){t.slideToClosest();return}if(r.freeMode.momentumBounce&&c){t.updateProgress(p);t.setTransition(i);t.setTranslate(f);t.transitionStart(true,t.swipeDirection);t.animating=true;d(s,(()=>{if(!t||t.destroyed||!h.allowMomentumBounce)return;e("momentumBounce");t.setTransition(r.speed);setTimeout((()=>{t.setTranslate(p);d(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(f);t.setTransition(i);t.setTranslate(f);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;d(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(f)}t.updateActiveIndex();t.updateSlidesClasses()}else if(r.freeMode.sticky){t.slideToClosest();return}else if(r.freeMode){e("_freeModeNoMomentumRelease")}if(!r.freeMode.momentum||f>=r.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:r,onTouchMove:s,onTouchEnd:o}})}const wn='@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-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}grw-trek-detail{--swiper-navigation-size:32px;--swiper-navigation-color:var(--color-primary-app);--swiper-pagination-color:var(--color-primary-app);--swiper-pagination-bullet-size:12px;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 .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 .presentation{min-width:120px;width:120px}.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-detail-container{font-family:"Roboto";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:calc(100% - 48px);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-family:"Material Symbols Outlined";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 .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{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{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{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title{padding:0px 24px 0px 24px}.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-family:"Material Symbols Outlined";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{padding-right:32px;padding-left:32px}.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)}';const yn=.5;const xn={visible:true,width:120,indicator:false};const kn={visible:false,width:120,indicator:false};const _n={visible:false,width:190,indicator:false};const An={visible:false,width:160,indicator:false};const Mn={visible:false,width:200,indicator:false};const zn={visible:false,width:120,indicator:false};const Pn={presentation:xn,description:kn,recommendations:_n,sensitiveArea:An,informationPlaces:Mn,pois:zn};const Ln=class{constructor(i){t(this,i);this.descriptionReferenceIsInViewport=n(this,"descriptionReferenceIsInViewport",7);this.parkingIsInViewport=n(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=n(this,"sensitiveAreaIsInViewport",7);this.informationDeskIsInViewport=n(this,"informationDeskIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",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.colorBackground="#fef7ff";this.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}componentDidLoad(){this.swiperImages=new p(this.swiperImagesRef,{modules:[v,m,g,bn,gn],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperPois=new p(this.swiperPoisRef,{modules:[bn,gn],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new p(this.swiperInformationDesksRef,{modules:[bn,gn],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})})}}),{threshold:yn});t.observe(this.presentationRef)}if(this.descriptionRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.descriptionReferenceIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})})}}),{threshold:yn});t.observe(this.descriptionRef)}if(this.recommendationRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})})}}),{threshold:yn});t.observe(this.recommendationRef)}if(this.parkingRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.parkingIsInViewport.emit(i)}),{threshold:yn});t.observe(this.parkingRef)}if(this.sensitiveAreaRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.sensitiveAreaIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})})}}),{threshold:yn});t.observe(this.sensitiveAreaRef)}if(this.informationDeskRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.informationDeskIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})})}}),{threshold:yn});t.observe(this.informationDeskRef)}if(this.poiRef){const t=new IntersectionObserver((t=>{const i=t[0].intersectionRatio>=yn;this.poiIsInViewport.emit(i);if(i){this.options=Object.assign(Object.assign({},this.defaultOptions),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})})}}),{threshold:yn});t.observe(this.poiRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:o.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=o.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=o.routes.find((t=>t.id===this.currentTrek.route));this.practice=o.practices.find((t=>t.id===this.currentTrek.practice));this.themes=o.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=o.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=o.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=o.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(o.accessibilitiesLevel){this.accessibilityLevel=o.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=o.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}))}a("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:o.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=o.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=o.routes.find((t=>t.id===this.currentTrek.route));this.practice=o.practices.find((t=>t.id===this.currentTrek.practice));this.themes=o.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=o.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=o.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=o.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(o.accessibilitiesLevel){this.accessibilityLevel=o.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=o.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}))}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){h()}}handleOptions(){return Object.assign(Object.assign({},Pn),{presentation:Object.assign({},xn),description:Object.assign(Object.assign({},kn),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},_n),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},An),{visible:Boolean(o.currentSensitiveAreas&&o.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Mn),{visible:Boolean(o.currentInformationDesks&&o.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),pois:Object.assign(Object.assign({},zn),{visible:Boolean(o.currentPois&&o.currentPois.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t=0;let i;let e=0;const n=Object.values(this.options);let r=0;while(!i&&r<n.length){if(n[r].indicator){i=n[r]}else{if(n[r].visible){t+=1;e+=n[r].width}}r++}return`${e+16*t-i.width/2}px`}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-48})}render(){var t,n,r,s,a,h,f;return i(e,{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&&i("div",{class:"trek-options"},i("a",{onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.options.presentation.indicator?" selected-trek-option":""}`},l[o.language].options.presentation),this.options.description.visible&&i("a",{onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.options.description.indicator?" selected-trek-option":""}`},l[o.language].options.description),this.options.recommendations.visible&&i("a",{onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.options.recommendations.indicator?" selected-trek-option":""}`},l[o.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.options.sensitiveArea.indicator?" selected-trek-option":""}`},l[o.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{onClick:()=>this.handleScrollTo(this.informationDeskRef),class:`information-places trek-option${this.options.informationPlaces.indicator?" selected-trek-option":""}`},l[o.language].options.informationPlaces),this.options.pois.visible&&i("a",{onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.options.pois.indicator?" selected-trek-option":""}`},l[o.language].options.pois),i("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.handleIndicatorSelectedTrekOption()})`}})),this.currentTrek&&i("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},i("div",{class:"images-container",ref:t=>this.presentationRef=t},i("div",{class:"swiper",ref:t=>this.swiperImagesRef=t},i("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>i("div",{class:"swiper-slide"},i("img",{class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),i("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),i("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),i("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),i("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&i("div",{class:"themes-container"},this.themes.map((t=>i("div",{class:"theme"},t.label)))),i("div",{class:"sub-container"},i("div",{class:"icons-labels-container"},i("div",{class:"row"},i("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&i("img",{src:this.difficulty.pictogram}),(n=this.difficulty)===null||n===void 0?void 0:n.label),i("div",{class:"icon-label duration"},i("span",{class:"material-symbols-outlined"},"timelapse"),b((r=this.currentTrek)===null||r===void 0?void 0:r.duration)),i("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&i("img",{src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route)),i("div",{class:"row"},i("div",{class:"icon-label length"},i("span",{class:"material-symbols-outlined"},"open_in_full"),w(this.currentTrek.length_2d)),i("div",{class:"icon-label ascent"},i("span",{class:"material-symbols-outlined"},"moving"),y(this.currentTrek.ascent)),i("div",{class:"icon-label practice"},((h=this.practice)===null||h===void 0?void 0:h.pictogram)&&i("img",{src:this.practice.pictogram}),(f=this.practice)===null||f===void 0?void 0:f.name)))),i("div",{class:"divider"}),i("div",{class:"downloads-container"},i("div",{class:"download-title"},l[o.language].downloads),i("div",{class:"links-container"},i("a",{href:`${this.currentTrek.gpx}`},i("span",{class:"material-symbols-outlined"},"download"),"GPX"),i("a",{href:`${this.currentTrek.kml}`},i("span",{class:"material-symbols-outlined"},"download"),"KML"),i("a",{href:`${this.currentTrek.pdf}`},i("span",{class:"material-symbols-outlined"},"download"),"PDF"))),i("div",{class:"divider"}),this.currentTrek.description_teaser&&i("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),i("div",{class:"divider"}),this.currentTrek.description&&i("div",{class:"description-container",ref:t=>this.descriptionRef=t},i("div",{class:"description-title"},l[o.language].description),i("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{class:"departure-container"},i("div",{class:"departure-title"},l[o.language].departure," : "),i("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{class:"arrival-container"},i("div",{class:"arrival-title"},l[o.language].arrival," : "),i("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&i("div",{class:"cities-container"},i("div",{class:"cities-title"},l[o.language].cities," : "),i("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&i("div",{class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`})),this.currentTrek.access&&i("div",null,i("div",{class:"divider"}),i("div",{class:"access-container"},i("div",{class:"access-title"},l[o.language].roadAccess),i("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&i("div",null,i("div",{class:"divider"}),i("div",{class:"public-transport-container"},i("div",{class:"public-transport-title"},l[o.language].transport),i("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&i("div",null,i("div",{class:"divider"}),i("div",{class:"advice-container",ref:t=>this.recommendationRef=t},i("div",{class:"advice-title"},l[o.language].recommendations),this.currentTrek.advice&&i("div",{class:"current-advice-container"},i("span",{class:"material-symbols-outlined"},"warning"),i("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((t=>i("div",{class:"label-container"},i("div",{class:"label-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",{class:"label-name",innerHTML:t.name})),i("div",{class:"label-advice",innerHTML:t.advice})))))),this.currentTrek.advised_parking&&i("div",null,i("div",{class:"divider"}),i("div",{class:"advised-parking-container",ref:t=>this.parkingRef=t},i("div",{class:"advised-parking-title"},l[o.language].recommendedParking),i("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&i("div",null,i("div",{class:"divider"}),i("div",{class:"gear-container"},i("div",{class:"gear-title"},l[o.language].equipments),i("div",{class:"gear",innerHTML:this.currentTrek.gear}))),o.currentSensitiveAreas&&o.currentSensitiveAreas.length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"sensitive-areas-container",ref:t=>this.sensitiveAreaRef=t},i("div",{class:"sensitive-areas-title"},l[o.language].environmentalSensitiveAreas),o.currentSensitiveAreas.map((t=>i("grw-sensitive-area-detail",{sensitiveArea:t}))))),o.currentInformationDesks&&o.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"information-desks-container",ref:t=>this.informationDeskRef=t},i("div",{class:"information-desks-title"},l[o.language].informationPlaces),i("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},i("div",{class:"swiper-wrapper"},o.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>i("div",{class:"swiper-slide"},i("grw-information-desk-detail",{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)&&i("div",null,i("div",{class:"divider"}),i("div",{class:"accessibilities-container"},i("div",{class:"accessibilities-title"},l[o.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{innerHTML:this.currentTrek.disabled_infrastructure}),i("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>i("div",{class:"accessibility-content-container"},i("img",{src:t.pictogram}),i("div",{innerHTML:t.name}))))),this.currentTrek.accessibility_level&&i("div",{class:"accessibility-level-container"},i("div",{class:"accessibility-level-title"},l[o.language].accessibilityLevel),i("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{class:"accessibility-slope-container"},i("div",{class:"accessibility-slope-title"},l[o.language].accessibilitySlope),i("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{class:"accessibility-width-container"},i("div",{class:"accessibility-width-title"},l[o.language].accessibilityWidth),i("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{class:"accessibility-signage-container"},i("div",{class:"accessibility-signage-title"},l[o.language].accessibilitySignage),i("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{class:"accessibility-covering-container"},i("div",{class:"accessibility-covering-title"},l[o.language].accessibilityCovering),i("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{class:"accessibility-exposure-container"},i("div",{class:"accessibility-exposure-title"},l[o.language].accessibilityExposure),i("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{class:"accessibility-advice-container"},i("div",{class:"accessibility-advice-title"},l[o.language].accessibilityAdvices),i("div",{innerHTML:this.currentTrek.accessibility_advice})))),o.currentPois&&o.currentPois.length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"pois-container",ref:t=>this.poiRef=t},i("div",{class:"pois-title"},l[o.language].pois(o.currentPois.length)),i("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},i("div",{class:"swiper-wrapper"},o.currentPois.map((t=>i("div",{class:"swiper-slide"},i("grw-poi-detail",{poi:t})))))))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",null,i("div",{class:"divider"}),i("div",{class:"source-container"},i("div",{class:"source-title"},l[o.language].sources),this.sources.map((t=>i("div",{class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",null,i("div",{class:"source-name",innerHTML:t.name}),i("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),i("div",{class:"detail-bottom-space"})))}};Ln.style=wn;const jn=class{constructor(i){t(this,i);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}connectedCallback(){if(!o.api){o.api=this.api;o.languages=this.languages.split(",");o.language=o.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!o.difficulties?fetch(`${o.api}trek_difficulty/?language=${o.language}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!o.routes?fetch(`${o.api}trek_route/?language=${o.language}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!o.practices?fetch(`${o.api}trek_practice/?language=${o.language}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!o.themes?fetch(`${o.api}theme/?language=${o.language}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!o.cities?fetch(`${o.api}city/?language=${o.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${o.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`,{cache:"force-cache",signal:this.signal}).catch((()=>new Response("null"))),fetch(`${o.api}label/?language=${o.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${o.api}source/?language=${o.language}&fields=id,name,website,pictogram`,this.init),fetch(`${o.api}trek_accessibility/?language=${o.language}&fields=id,name,pictogram`,this.init),fetch(`${o.api}trek_accessibility_level/?language=${o.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${o.api}poi/?language=${o.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,{cache:"force-cache",signal:this.signal}),fetch(`${o.api}poi_type/?language=${o.language}&fields=id,pictogram`,this.init),fetch(`${o.api}informationdesk/?language=${o.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${o.api}trek/${this.trekId}/?language=${o.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`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,n,r,s,a,h,l,f,c,u,d,p])=>{o.trekNetworkError=false;if(t){o.difficulties=t.results}if(i){o.routes=i.results}if(e){o.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(n){o.themes=n.results}if(r){o.cities=r.results}if(s){o.currentSensitiveAreas=s.results}o.labels=a.results;o.sources=h.results;o.accessibilities=l.results;if(f){o.accessibilitiesLevel=f.results}o.currentPois=c.results;o.poiTypes=u.results;o.currentInformationDesks=d.results;o.currentTrek=p})).catch((()=>{o.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();o.trekNetworkError=false}render(){return i(e,null)}};const On='.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;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}grw-trek-card{margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}';const Sn=class{constructor(i){t(this,i);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}connectedCallback(){this.handleInfiniteScrollEvent(true);if(o.currentTreks){this.treksToDisplay=[...o.currentTreks.slice(0,this.step)]}a("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(o.currentTreks){this.treksToDisplay=[...o.currentTreks.slice(0,this.step)]}}));a("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(o.treksWithinBounds){this.treksToDisplay=[...o.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<o.treksWithinBounds.length){this.treksToDisplay=o.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=o.treksWithinBounds.length?o.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(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}}disconnectedCallback(){if(this.resetStoreOnDisconnected){h()}this.handleInfiniteScrollEvent(false)}render(){return i(e,{style:{"--color-primary-app":this.colorPrimaryApp}},this.treksToDisplay.map((t=>i("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}))),i("div",{class:"list-bottom-space"}))}get element(){return s(this)}};Sn.style=On;const Tn=class{constructor(i){t(this,i);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}connectedCallback(){if(!o.api){o.api=this.api;o.languages=this.languages.split(",");o.language=o.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();o.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${o.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom&page_size=999`;Promise.all([fetch(`${o.api}trek_difficulty/?language=${o.language}&fields=id,label,pictogram`,this.init),fetch(`${o.api}trek_route/?language=${o.language}&fields=id,route,pictogram`,this.init),fetch(`${o.api}trek_practice/?language=${o.language}&fields=id,name,pictogram`,this.init),fetch(`${o.api}theme/?language=${o.language}&fields=id,label,pictogram`,this.init),fetch(`${o.api}city/?language=${o.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,n,r,s])=>{o.treksNetworkError=false;o.difficulties=t.results;o.routes=i.results;o.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));o.themes=n.results;o.cities=r.results;o.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}];o.currentTreks=s.results;o.treksWithinBounds=s.results;o.treks=s.results})).catch((()=>o.treksNetworkError=true))}render(){return i(e,null)}};export{k as grw_filter,pn as grw_map,mn as grw_select_language,Ln as grw_trek_detail,jn as grw_trek_provider,Sn as grw_treks_list,Tn as grw_treks_provider};
14
+ //# sourceMappingURL=p-c321886e.entry.js.map