@geotrekce/geotrek-rando-widget 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/grw-app.cjs.entry.js +5 -3
  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-common-button_21.cjs.entry.js +2 -2
  9. package/dist/cjs/grw-common-button_21.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-common-button_21.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-common-button_21.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-information-desk_6.cjs.entry.js +11 -5
  13. package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/loader.cjs.js.br +0 -0
  18. package/dist/cjs/loader.cjs.js.gz +0 -0
  19. package/dist/collection/components/grw-app/grw-app.css +1 -1
  20. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  21. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  22. package/dist/collection/components/grw-app/grw-app.js +22 -2
  23. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  24. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  25. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  26. package/dist/collection/components/grw-filters/grw-filters.css +1 -1
  27. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  28. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  29. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css +2 -0
  30. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.br +0 -0
  31. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.gz +0 -0
  32. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +4 -1
  33. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
  34. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
  35. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
  36. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css +2 -0
  37. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.br +0 -0
  38. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.gz +0 -0
  39. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +4 -1
  40. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
  41. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
  42. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
  43. package/dist/collection/components/grw-trek-card/grw-trek-card.css +3 -1
  44. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  45. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  46. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
  47. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  48. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  49. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  50. package/dist/esm/geotrek-rando-widget.js +1 -1
  51. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  52. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  53. package/dist/esm/grw-app.entry.js +5 -3
  54. package/dist/esm/grw-app.entry.js.br +0 -0
  55. package/dist/esm/grw-app.entry.js.gz +0 -0
  56. package/dist/esm/grw-app.entry.js.map +1 -1
  57. package/dist/esm/grw-common-button_21.entry.js +2 -2
  58. package/dist/esm/grw-common-button_21.entry.js.br +0 -0
  59. package/dist/esm/grw-common-button_21.entry.js.gz +0 -0
  60. package/dist/esm/grw-common-button_21.entry.js.map +1 -1
  61. package/dist/esm/grw-information-desk_6.entry.js +11 -5
  62. package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
  63. package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
  64. package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/loader.js.br +0 -0
  67. package/dist/esm/loader.js.gz +0 -0
  68. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  69. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  70. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  71. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  72. package/dist/esm-es5/grw-app.entry.js +1 -1
  73. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  74. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  75. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  76. package/dist/esm-es5/grw-common-button_21.entry.js +2 -2
  77. package/dist/esm-es5/grw-common-button_21.entry.js.br +0 -0
  78. package/dist/esm-es5/grw-common-button_21.entry.js.gz +0 -0
  79. package/dist/esm-es5/grw-common-button_21.entry.js.map +1 -1
  80. package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
  81. package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
  82. package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
  83. package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
  84. package/dist/esm-es5/loader.js +1 -1
  85. package/dist/esm-es5/loader.js.br +0 -0
  86. package/dist/esm-es5/loader.js.gz +0 -0
  87. package/dist/esm-es5/loader.js.map +1 -1
  88. package/dist/geotrek-rando-widget/geotrek-rando-widget.css +1 -1
  89. package/dist/geotrek-rando-widget/geotrek-rando-widget.css.br +0 -0
  90. package/dist/geotrek-rando-widget/geotrek-rando-widget.css.gz +0 -0
  91. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  92. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  93. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  94. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  95. package/dist/geotrek-rando-widget/{p-e2a73eac.entry.js → p-40e69a46.entry.js} +4 -4
  96. package/dist/geotrek-rando-widget/p-40e69a46.entry.js.br +0 -0
  97. package/dist/geotrek-rando-widget/p-40e69a46.entry.js.gz +0 -0
  98. package/dist/geotrek-rando-widget/p-40e69a46.entry.js.map +1 -0
  99. package/dist/geotrek-rando-widget/{p-d2fb6fb4.system.entry.js → p-4c85680a.system.entry.js} +2 -2
  100. package/dist/geotrek-rando-widget/p-4c85680a.system.entry.js.br +0 -0
  101. package/dist/geotrek-rando-widget/p-4c85680a.system.entry.js.gz +0 -0
  102. package/dist/geotrek-rando-widget/p-4c85680a.system.entry.js.map +1 -0
  103. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js +2 -0
  104. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js.br +0 -0
  105. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js.gz +0 -0
  106. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js.map +1 -0
  107. package/dist/geotrek-rando-widget/{p-9d826a4c.entry.js → p-ae129a99.entry.js} +2 -2
  108. package/dist/geotrek-rando-widget/p-ae129a99.entry.js.br +0 -0
  109. package/dist/geotrek-rando-widget/p-ae129a99.entry.js.gz +0 -0
  110. package/dist/geotrek-rando-widget/p-ae129a99.entry.js.map +1 -0
  111. package/dist/geotrek-rando-widget/p-b02ae30d.system.js +1 -1
  112. package/dist/geotrek-rando-widget/p-b02ae30d.system.js.br +0 -0
  113. package/dist/geotrek-rando-widget/p-b02ae30d.system.js.gz +0 -0
  114. package/dist/geotrek-rando-widget/p-b02ae30d.system.js.map +1 -1
  115. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js +2 -0
  116. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js.br +0 -0
  117. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js.gz +0 -0
  118. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js.map +1 -0
  119. package/dist/geotrek-rando-widget/{p-05f3277d.system.entry.js → p-dfd293bb.system.entry.js} +3 -3
  120. package/dist/geotrek-rando-widget/p-dfd293bb.system.entry.js.br +0 -0
  121. package/dist/geotrek-rando-widget/p-dfd293bb.system.entry.js.gz +0 -0
  122. package/dist/geotrek-rando-widget/p-dfd293bb.system.entry.js.map +1 -0
  123. package/dist/types/components/grw-app/grw-app.d.ts +1 -0
  124. package/dist/types/components.d.ts +2 -0
  125. package/package.json +1 -1
  126. package/dist/geotrek-rando-widget/p-05f3277d.system.entry.js.br +0 -0
  127. package/dist/geotrek-rando-widget/p-05f3277d.system.entry.js.gz +0 -0
  128. package/dist/geotrek-rando-widget/p-05f3277d.system.entry.js.map +0 -1
  129. package/dist/geotrek-rando-widget/p-9d826a4c.entry.js.br +0 -0
  130. package/dist/geotrek-rando-widget/p-9d826a4c.entry.js.gz +0 -0
  131. package/dist/geotrek-rando-widget/p-9d826a4c.entry.js.map +0 -1
  132. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js +0 -2
  133. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js.br +0 -0
  134. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js.gz +0 -0
  135. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js.map +0 -1
  136. package/dist/geotrek-rando-widget/p-d2fb6fb4.system.entry.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-d2fb6fb4.system.entry.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/p-d2fb6fb4.system.entry.js.map +0 -1
  139. package/dist/geotrek-rando-widget/p-e2a73eac.entry.js.br +0 -0
  140. package/dist/geotrek-rando-widget/p-e2a73eac.entry.js.gz +0 -0
  141. package/dist/geotrek-rando-widget/p-e2a73eac.entry.js.map +0 -1
  142. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js +0 -2
  143. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js.br +0 -0
  144. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js.gz +0 -0
  145. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js.map +0 -1
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?i(e.value):n(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(r=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l];n=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,o;r<n;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-f88d7fa6.system.js","./p-0264bb63.system.js","./p-62419089.system.js","./p-ff433eba.system.js"],(function(e){"use strict";var t,i,r,n,o,a,s,l,c,p,u,d,h,f,m,g,v,b,w,y,k,_,x,A,T,C,S,E,P,M,z,O,B,I,F,D,R,N,G,j,Z,U,H,Y,V,W,Q,X,J,q,K;return{setters:[function(e){t=e.r;i=e.h;r=e.H;n=e.c;o=e.i;a=e.g},function(e){s=e.t},function(e){l=e.t;c=e.s;p=e.h;u=e.a;d=e.b;h=e.c;f=e.d;m=e.e;g=e.l;v=e.f;b=e.g;w=e.o;y=e.i;k=e.j;_=e.k;x=e.m;A=e.n;T=e.w;C=e.p;S=e.q;E=e.u;P=e.v;M=e.x;z=e.y;O=e.z;B=e.A;I=e.B},function(e){F=e.g;D=e.a;R=e.n;N=e.b;G=e.c;j=e.d;Z=e.e;U=e.f;H=e.h;Y=e.S;V=e.N;W=e.P;Q=e.K;X=e.i;J=e.j;q=e.k;K=e.t}],execute:function(){var $='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button .common-button-icon{font-size:18px}';var ee=e("grw_common_button",function(){function e(e){t(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("button",{part:"common-button",class:"common-button",onClick:function(){return e.action()}},i("span",{part:"common-button-icon",class:"material-symbols material-symbols-outlined icon",translate:false},this.icon),i("span",{part:"common-button-label",class:"label"},this.name)))};return e}());ee.style=$;var te='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{font-size:24px;margin-right:8px;color:var(--fab-color)}';var ie=e("grw_extended_fab",function(){function e(e){t(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("button",{part:"map-visibility-button",class:"map-visibility-button",onClick:function(){return e.action()},style:{display:this.display}},i("span",{part:"map-visibility-button-icon",class:"material-symbols material-symbols-outlined icon",translate:false},this.icon()),i("span",{part:"map-visibility-button-label",class:"label"},this.name())))};return e}());ie.style=te;var re='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-on-primary-container);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';var ne=e("grw_filters",function(){function e(e){t(this,e);this.resetFilter=n(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}e.prototype.handleEraseTreksFilters=function(){l.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;c.currentTreks=p();this.resetFilter.emit()};e.prototype.handleOkTreksFilters=function(){this.handleFilters()};e.prototype.handleSelectedSegment=function(e){this.selectedSegment=e};e.prototype.handleSegment=function(e){if(c.mode==="treks"){return l.filter((function(t){return t.segment===e})).some((function(e){return c[e.property]&&c[e.property].length>0}))}else if(c.mode==="touristicContents"){return u.filter((function(t){return t.segment===e})).some((function(e){return c[e.property]&&c[e.property].length>0}))}else if(c.mode==="touristicEvents"){return d.filter((function(t){return t.segment===e})).some((function(e){return c[e.property]&&c[e.property].length>0}))}};e.prototype.handleEraseTouristicContentsFilters=function(){u.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicContents=h();this.resetFilter.emit()};e.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};e.prototype.handleEraseTouristicEventsFilters=function(){d.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicEvents=f();this.resetFilter.emit()};e.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("div",{part:"options-container",class:"options-container"},i("div",{part:"filters-container",class:"filters-container"},c.mode==="treks"&&i("div",{part:"filters-treks-container",class:"filters-treks-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},c.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.treksWithinBounds.length," ").concat(c.treksWithinBounds.length>1?s[c.language].treks:s[c.language].trek)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTreksFilters()}},s[c.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTreksFilters()}},s[c.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[c.language].home.segment.treks," ",c.selectedActivitiesFilters!==0&&"(".concat(c.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedThemesFilters")}},s[c.language].themes," ",c.selectedThemesFilters!==0&&"(".concat(c.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[c.language].location," ",c.selectedLocationFilters!==0&&"(".concat(c.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},c["practices"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:s[c.language].placeholderPractices})),c["difficulties"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),c["durations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["lengths"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["elevations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["routes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),c["accessibilities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["labels"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},c["themes"].length>0&&i("div",{part:"",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].themes,filterPlaceholder:s[c.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},c["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),c["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].crossedCities,filterPlaceholder:s[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="touristicContents"&&i("div",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},c.touristicContentsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.touristicContentsWithinBounds.length," ").concat(c.touristicContentsWithinBounds.length>1?s[c.language].home.touristicContents:s[c.language].home.touristicContent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTouristicContentsFilters()}},s[c.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTouristicContentsFilters()}},s[c.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[c.language].services," ",c.selectedActivitiesFilters!==0&&"(".concat(c.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[c.language].location," ",c.selectedLocationFilters!==0&&"(".concat(c.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["touristicContentCategories"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},c["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),c["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].crossedCities,filterPlaceholder:s[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="touristicEvents"&&i("div",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},c.touristicEventsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.touristicEventsWithinBounds.length," ").concat(c.touristicEventsWithinBounds.length>1?s[c.language].home.touristicEvents:s[c.language].home.touristicEvent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTouristicEventsFilters()}},s[c.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTouristicEventsFilters()}},s[c.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[c.language].services," ",c.selectedActivitiesFilters!==0&&"(".concat(c.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[c.language].location," ",c.selectedLocationFilters!==0&&"(".concat(c.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["touristicEventTypes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].type,filterPlaceholder:s[c.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},c["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),c["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].crossedCities,filterPlaceholder:s[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),i("div",{part:"back-filters-container",class:"back-filters-container",onClick:function(){return e.handleFilters()}})))};return e}());ne.style=re;var oe=".loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";var ae=e("grw_loader",function(){function e(e){t(this,e);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}e.prototype.render=function(){return i(r,{style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},i("span",{part:"loader",class:"loader"}))};return e}());ae.style=oe;!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){var e=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(t,i,r,n,o){var a=i||new L.Point(0,0);if(!n)return i=a._round(),e.setTransform.apply(this,arguments);a=a.rotateFrom(n,o),t.style[L.DomUtil.TRANSFORM]="translate3d("+a.x+"px,"+a.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(t,i,r,n,o){if(!r)return e.setPosition.apply(this,arguments);t._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(t,i,o,r,n):(t.style.left=i.x+"px",t.style.top=i.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(e){return this.rotateFrom(e,new L.Point(0,0))},rotateFrom:function(e,t){if(!e)return this;var i=Math.sin(e),r=Math.cos(e),n=t.x,o=t.y,a=this.x-n,s=this.y-o;return new L.Point(a*r-s*i+n,a*i+s*r+o)}});var t=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(t.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(t._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var e=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(e))}}});var i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(e){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var t=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(t))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+t,r=this._containerWidth,n=new L.Point(this._containerLeft,-i-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var o=n._add(this._map._getMapPanePos()),a=L.point(this.options.autoPanPadding),s=L.point(this.options.autoPanPaddingTopLeft||a),l=L.point(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),p=0,u=0;o.x+r+l.x>c.x&&(p=o.x+r-c.x+l.x),o.x-p-s.x<0&&(p=o.x-s.x),o.y+i+l.y>c.y&&(u=o.y+i-c.y+l.y),o.y-u-s.y<0&&(u=o.y-s.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([p,u]))}}});var r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(e){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var e=this._map.latLngToLayerPoint(this._latlng);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(e,t){var i=this.options,r=i[t+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),o=L.point("shadow"===t&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(i.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px",e.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),n&&(e.style.width=n.x+"px",e.style.height=n.y+"px")}});var n=L.extend({},L.Marker.prototype);var o;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var a={_onDrag:function(e){var t=this._marker,i=t.options.rotation||t.options.rotateWithView,r=t._shadow,n=L.DomUtil.getPosition(t._icon);!i&&r&&L.DomUtil.setPosition(r,n),t._map._rotate&&(n=t._map.mapPanePointToRotatedPoint(n));var o=t._map.layerPointToLatLng(n);t._latlng=o,e.latlng=o,e.oldLatLng=this._oldLatLng,i?t.setLatLng(o):t.fire("move",e),t.fire("drag",e)},_onDragEnd:function(e){this._marker._map._rotate&&this._marker.update(),o._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var e=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(o=o||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:a._onDrag.bind(this.dragging),_onDragEnd:a._onDragEnd.bind(this.dragging)}),this.dragging.enable()),e},_setPos:function(e){this._map._rotate&&(e=this._map.rotatedPointToMapPanePoint(e));var t=this.options.rotation||0;this.options.rotateWithView&&(t+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,e,t,e,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,e,t,e,this.options.scale),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(e){this.options.rotation=e,this.update()}});var s=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var e=s.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),e.rotate=this._onRotate),e},_getTiledPixelBounds:function(e){return this._map._rotate?this._map._getNewPixelBounds(e,this._tileZoom):s._getTiledPixelBounds.apply(this,arguments)}});var l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(e,t){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(t,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,t,e);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return l._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});var c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(e,t){t.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(e){return this._rotate?L.point(e).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(e){return this._rotate?L.point(e).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(e){return L.point(e).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(e){return L.point(e)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(e){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);var t=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(e.getNorthWest())._subtract(t)),r=this.layerPointToContainerPoint(this.project(e.getNorthEast())._subtract(t)),n=this.layerPointToContainerPoint(this.project(e.getSouthWest())._subtract(t)),o=this.layerPointToContainerPoint(this.project(e.getSouthEast())._subtract(t));return L.bounds([L.point(Math.min(i.x,r.x,o.x,n.x),Math.min(i.y,r.y,o.y,n.y)),L.point(Math.max(i.x,r.x,o.x,n.x),Math.max(i.y,r.y,o.y,n.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var e=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([e.x,0]),this.containerPointToLatLng([e.x,e.y]),this.containerPointToLatLng([0,e.y])])},setBearing:function(e){if(L.Browser.any3d&&this._rotate){var t=L.Util.wrapNum(e,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),n=r.rotateFrom(t,i);L.DomUtil.setPosition(this._rotatePane,r,t,i),this._pivot=i,this._bearing=t,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(e.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(e.shadowPane,"leaflet-zoom-hide"))},panInside:function(e,t){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);t=t||{};var i=L.point(t.paddingTopLeft||t.padding||[0,0]),r=L.point(t.paddingBottomRight||t.padding||[0,0]),n=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(e),a=L.bounds([L.point(n),L.point(n).add(this.getSize())]),s=a.getCenter(),l=L.bounds([a.min.add(i),a.max.subtract(r)]),p=l.getSize();if(!l.contains(o)){this._enforcingBounds=!0;var u=o.subtract(l.getCenter()),d=l.extend(o).getSize().subtract(p);s.x+=u.x<0?-d.x:d.x,s.y+=u.y<0?-d.y:d.y,this.panTo(this.containerPointToLatLng(s),t),this._enforcingBounds=!1}return this},getBoundsZoom:function(e,t,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);e=L.latLngBounds(e),i=L.point(i||[0,0]);var r=this.getZoom()||0;var n=this.getMinZoom(),o=this.getMaxZoom(),a=this.getSize().subtract(i),s=this.mapBoundsToContainerBounds(e).getSize(),l=this.options.zoomSnap,p=a.x/s.x,u=a.y/s.y,d=t?Math.max(p,u):Math.min(p,u);return r=this.getScaleZoom(d,r),l&&(r=Math.round(r/(l/100))*(l/100),r=t?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(o,r))},_getCenterOffset:function(e){var t=c._getCenterOffset.apply(this,arguments);return this._rotate&&(t=t.rotate(this._bearing)),t},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(e,t){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(e,t).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(e,t){if(e=e||this.getCenter(),t=t||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,t),n=this.project(e,t).floor(),o=this.getSize(),a=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([o.x,0]).floor(),this.containerPointToLayerPoint([0,o.y]).floor(),this.containerPointToLayerPoint([o.x,o.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(a),n.add(a))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(e){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var t=e,i=this.getSize(),r=i.multiplyBy(-t),n=i.multiplyBy(1+t);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,i=e.coords.longitude,r=e.coords.heading,n=new L.LatLng(t,i),o=n.toBounds(e.coords.accuracy),a=this._locateOptions;if(a.setView){var s=this.getBoundsZoom(o);this.setView(n,a.maxZoom?Math.min(s,a.maxZoom):s)}var l={latlng:n,bounds:o,timestamp:e.timestamp,heading:r};for(var c in e.coords)"number"==typeof e.coords[c]&&(l[c]=e.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(e){this._map=e,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(e){var t=e.webkitCompassHeading||e.alpha,i=0;!e.absolute&&e.webkitCompassHeading&&(t=360-t),e.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(t-i)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(e){this._map=e,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming&&!this._rotating){var i=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),n=i.subtract(r);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=t.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=t.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,t._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&(this._zooming||this._rotating)){var t,i=this._map,r=i.mouseEventToContainerPoint(e.touches[0]),n=i.mouseEventToContainerPoint(e.touches[1]),o=r.subtract(n),a=r.distanceTo(n)/this._startDist;if(this._rotating){var s=(Math.atan(o.x/o.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;o.y<0&&(s+=180),s&&i.setBearing(this._startBearing-s)}if(this._zooming)if(this._zoom=i.getScaleZoom(a,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&a<1||this._zoom>i.getMaxZoom()&&a>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{if(t=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===a&&0===t.x&&0===t.y)return;var l=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(t.rotate(l)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(e)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(e){e.shiftKey?(e.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(e.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(e){var t=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),i=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");i.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",i.style.cursor="grab",i.style.display="block",i.style.width="100%",i.style.height="100%",i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",t);return r.appendChild(i),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),e.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===e.getBearing()&&(t.style.display="none"),t},onRemove:function(e){e.off("rotate",this._restyle,this)},_handleMouseDown:function(e){L.DomEvent.stop(e),this.dragging=!0,this.dragstartX=e.pageX,this.dragstartY=e.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(e){L.DomEvent.stop(e),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(e){if(this.dragging){var t=e.clientX-this.dragstartX;this._map.setBearing(t)}},_cycleState:function(e){if(this._map){var t=this._map;t.touchRotate.enabled()||t.compassBearing.enabled()?t.compassBearing.enabled()?(t.compassBearing.disable(),t.setBearing(0),this.options.closeOnZeroBearing&&t.touchRotate.enable()):(t.touchRotate.disable(),t.compassBearing.enable()):t.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var e=this._map,t=e.getBearing();this._arrow.style.transform="rotate("+t+"deg)",t&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),e.compassBearing.enabled()?this._link.style.backgroundColor="orange":e.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===t&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(e){return new L.Control.Rotate(e)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var e="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(e),this.addControl(this.rotateControl)}}))}));m((function(e,t){
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?i(e.value):n(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(r=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l];n=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,o;r<n;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-f88d7fa6.system.js","./p-0264bb63.system.js","./p-62419089.system.js","./p-ff433eba.system.js"],(function(e){"use strict";var t,i,r,n,o,a,s,l,c,p,u,d,h,f,m,g,v,b,w,y,k,_,x,A,T,C,S,E,P,M,z,O,B,I,F,D,R,N,G,j,Z,U,H,Y,V,W,Q,X,J,q,K;return{setters:[function(e){t=e.r;i=e.h;r=e.H;n=e.c;o=e.i;a=e.g},function(e){s=e.t},function(e){l=e.t;c=e.s;p=e.h;u=e.a;d=e.b;h=e.c;f=e.d;m=e.e;g=e.l;v=e.f;b=e.g;w=e.o;y=e.i;k=e.j;_=e.k;x=e.m;A=e.n;T=e.w;C=e.p;S=e.q;E=e.u;P=e.v;M=e.x;z=e.y;O=e.z;B=e.A;I=e.B},function(e){F=e.g;D=e.a;R=e.n;N=e.b;G=e.c;j=e.d;Z=e.e;U=e.f;H=e.h;Y=e.S;V=e.N;W=e.P;Q=e.K;X=e.i;J=e.j;q=e.k;K=e.t}],execute:function(){var $='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button .common-button-icon{font-size:18px}';var ee=e("grw_common_button",function(){function e(e){t(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("button",{part:"common-button",class:"common-button",onClick:function(){return e.action()}},i("span",{part:"common-button-icon",class:"material-symbols material-symbols-outlined icon",translate:false},this.icon),i("span",{part:"common-button-label",class:"label"},this.name)))};return e}());ee.style=$;var te='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{font-size:24px;margin-right:8px;color:var(--fab-color)}';var ie=e("grw_extended_fab",function(){function e(e){t(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("button",{part:"map-visibility-button",class:"map-visibility-button",onClick:function(){return e.action()},style:{display:this.display}},i("span",{part:"map-visibility-button-icon",class:"material-symbols material-symbols-outlined icon",translate:false},this.icon()),i("span",{part:"map-visibility-button-label",class:"label"},this.name())))};return e}());ie.style=te;var re='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';var ne=e("grw_filters",function(){function e(e){t(this,e);this.resetFilter=n(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}e.prototype.handleEraseTreksFilters=function(){l.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;c.currentTreks=p();this.resetFilter.emit()};e.prototype.handleOkTreksFilters=function(){this.handleFilters()};e.prototype.handleSelectedSegment=function(e){this.selectedSegment=e};e.prototype.handleSegment=function(e){if(c.mode==="treks"){return l.filter((function(t){return t.segment===e})).some((function(e){return c[e.property]&&c[e.property].length>0}))}else if(c.mode==="touristicContents"){return u.filter((function(t){return t.segment===e})).some((function(e){return c[e.property]&&c[e.property].length>0}))}else if(c.mode==="touristicEvents"){return d.filter((function(t){return t.segment===e})).some((function(e){return c[e.property]&&c[e.property].length>0}))}};e.prototype.handleEraseTouristicContentsFilters=function(){u.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicContents=h();this.resetFilter.emit()};e.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};e.prototype.handleEraseTouristicEventsFilters=function(){d.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicEvents=f();this.resetFilter.emit()};e.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("div",{part:"options-container",class:"options-container"},i("div",{part:"filters-container",class:"filters-container"},c.mode==="treks"&&i("div",{part:"filters-treks-container",class:"filters-treks-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},c.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.treksWithinBounds.length," ").concat(c.treksWithinBounds.length>1?s[c.language].treks:s[c.language].trek)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTreksFilters()}},s[c.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTreksFilters()}},s[c.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[c.language].home.segment.treks," ",c.selectedActivitiesFilters!==0&&"(".concat(c.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedThemesFilters")}},s[c.language].themes," ",c.selectedThemesFilters!==0&&"(".concat(c.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[c.language].location," ",c.selectedLocationFilters!==0&&"(".concat(c.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},c["practices"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:s[c.language].placeholderPractices})),c["difficulties"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),c["durations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["lengths"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["elevations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["routes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),c["accessibilities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["labels"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},c["themes"].length>0&&i("div",{part:"",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].themes,filterPlaceholder:s[c.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},c["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),c["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].crossedCities,filterPlaceholder:s[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="touristicContents"&&i("div",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},c.touristicContentsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.touristicContentsWithinBounds.length," ").concat(c.touristicContentsWithinBounds.length>1?s[c.language].home.touristicContents:s[c.language].home.touristicContent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTouristicContentsFilters()}},s[c.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTouristicContentsFilters()}},s[c.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[c.language].services," ",c.selectedActivitiesFilters!==0&&"(".concat(c.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[c.language].location," ",c.selectedLocationFilters!==0&&"(".concat(c.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["touristicContentCategories"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},c["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),c["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].crossedCities,filterPlaceholder:s[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="touristicEvents"&&i("div",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},c.touristicEventsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.touristicEventsWithinBounds.length," ").concat(c.touristicEventsWithinBounds.length>1?s[c.language].home.touristicEvents:s[c.language].home.touristicEvent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTouristicEventsFilters()}},s[c.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTouristicEventsFilters()}},s[c.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[c.language].services," ",c.selectedActivitiesFilters!==0&&"(".concat(c.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[c.language].location," ",c.selectedLocationFilters!==0&&"(".concat(c.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["touristicEventTypes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].type,filterPlaceholder:s[c.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},c["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),c["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:s[c.language].crossedCities,filterPlaceholder:s[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),i("div",{part:"back-filters-container",class:"back-filters-container",onClick:function(){return e.handleFilters()}})))};return e}());ne.style=re;var oe=".loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";var ae=e("grw_loader",function(){function e(e){t(this,e);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}e.prototype.render=function(){return i(r,{style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},i("span",{part:"loader",class:"loader"}))};return e}());ae.style=oe;!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){var e=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(t,i,r,n,o){var a=i||new L.Point(0,0);if(!n)return i=a._round(),e.setTransform.apply(this,arguments);a=a.rotateFrom(n,o),t.style[L.DomUtil.TRANSFORM]="translate3d("+a.x+"px,"+a.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(t,i,r,n,o){if(!r)return e.setPosition.apply(this,arguments);t._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(t,i,o,r,n):(t.style.left=i.x+"px",t.style.top=i.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(e){return this.rotateFrom(e,new L.Point(0,0))},rotateFrom:function(e,t){if(!e)return this;var i=Math.sin(e),r=Math.cos(e),n=t.x,o=t.y,a=this.x-n,s=this.y-o;return new L.Point(a*r-s*i+n,a*i+s*r+o)}});var t=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(t.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(t._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var e=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(e))}}});var i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(e){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var t=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(t))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+t,r=this._containerWidth,n=new L.Point(this._containerLeft,-i-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var o=n._add(this._map._getMapPanePos()),a=L.point(this.options.autoPanPadding),s=L.point(this.options.autoPanPaddingTopLeft||a),l=L.point(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),p=0,u=0;o.x+r+l.x>c.x&&(p=o.x+r-c.x+l.x),o.x-p-s.x<0&&(p=o.x-s.x),o.y+i+l.y>c.y&&(u=o.y+i-c.y+l.y),o.y-u-s.y<0&&(u=o.y-s.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([p,u]))}}});var r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(e){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var e=this._map.latLngToLayerPoint(this._latlng);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(e,t){var i=this.options,r=i[t+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),o=L.point("shadow"===t&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(i.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px",e.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),n&&(e.style.width=n.x+"px",e.style.height=n.y+"px")}});var n=L.extend({},L.Marker.prototype);var o;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var a={_onDrag:function(e){var t=this._marker,i=t.options.rotation||t.options.rotateWithView,r=t._shadow,n=L.DomUtil.getPosition(t._icon);!i&&r&&L.DomUtil.setPosition(r,n),t._map._rotate&&(n=t._map.mapPanePointToRotatedPoint(n));var o=t._map.layerPointToLatLng(n);t._latlng=o,e.latlng=o,e.oldLatLng=this._oldLatLng,i?t.setLatLng(o):t.fire("move",e),t.fire("drag",e)},_onDragEnd:function(e){this._marker._map._rotate&&this._marker.update(),o._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var e=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(o=o||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:a._onDrag.bind(this.dragging),_onDragEnd:a._onDragEnd.bind(this.dragging)}),this.dragging.enable()),e},_setPos:function(e){this._map._rotate&&(e=this._map.rotatedPointToMapPanePoint(e));var t=this.options.rotation||0;this.options.rotateWithView&&(t+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,e,t,e,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,e,t,e,this.options.scale),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(e){this.options.rotation=e,this.update()}});var s=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var e=s.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),e.rotate=this._onRotate),e},_getTiledPixelBounds:function(e){return this._map._rotate?this._map._getNewPixelBounds(e,this._tileZoom):s._getTiledPixelBounds.apply(this,arguments)}});var l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(e,t){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(t,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,t,e);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return l._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});var c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(e,t){t.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(e){return this._rotate?L.point(e).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(e){return this._rotate?L.point(e).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(e){return L.point(e).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(e){return L.point(e)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(e){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);var t=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(e.getNorthWest())._subtract(t)),r=this.layerPointToContainerPoint(this.project(e.getNorthEast())._subtract(t)),n=this.layerPointToContainerPoint(this.project(e.getSouthWest())._subtract(t)),o=this.layerPointToContainerPoint(this.project(e.getSouthEast())._subtract(t));return L.bounds([L.point(Math.min(i.x,r.x,o.x,n.x),Math.min(i.y,r.y,o.y,n.y)),L.point(Math.max(i.x,r.x,o.x,n.x),Math.max(i.y,r.y,o.y,n.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var e=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([e.x,0]),this.containerPointToLatLng([e.x,e.y]),this.containerPointToLatLng([0,e.y])])},setBearing:function(e){if(L.Browser.any3d&&this._rotate){var t=L.Util.wrapNum(e,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),n=r.rotateFrom(t,i);L.DomUtil.setPosition(this._rotatePane,r,t,i),this._pivot=i,this._bearing=t,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(e.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(e.shadowPane,"leaflet-zoom-hide"))},panInside:function(e,t){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);t=t||{};var i=L.point(t.paddingTopLeft||t.padding||[0,0]),r=L.point(t.paddingBottomRight||t.padding||[0,0]),n=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(e),a=L.bounds([L.point(n),L.point(n).add(this.getSize())]),s=a.getCenter(),l=L.bounds([a.min.add(i),a.max.subtract(r)]),p=l.getSize();if(!l.contains(o)){this._enforcingBounds=!0;var u=o.subtract(l.getCenter()),d=l.extend(o).getSize().subtract(p);s.x+=u.x<0?-d.x:d.x,s.y+=u.y<0?-d.y:d.y,this.panTo(this.containerPointToLatLng(s),t),this._enforcingBounds=!1}return this},getBoundsZoom:function(e,t,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);e=L.latLngBounds(e),i=L.point(i||[0,0]);var r=this.getZoom()||0;var n=this.getMinZoom(),o=this.getMaxZoom(),a=this.getSize().subtract(i),s=this.mapBoundsToContainerBounds(e).getSize(),l=this.options.zoomSnap,p=a.x/s.x,u=a.y/s.y,d=t?Math.max(p,u):Math.min(p,u);return r=this.getScaleZoom(d,r),l&&(r=Math.round(r/(l/100))*(l/100),r=t?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(o,r))},_getCenterOffset:function(e){var t=c._getCenterOffset.apply(this,arguments);return this._rotate&&(t=t.rotate(this._bearing)),t},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(e,t){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(e,t).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(e,t){if(e=e||this.getCenter(),t=t||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,t),n=this.project(e,t).floor(),o=this.getSize(),a=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([o.x,0]).floor(),this.containerPointToLayerPoint([0,o.y]).floor(),this.containerPointToLayerPoint([o.x,o.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(a),n.add(a))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(e){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var t=e,i=this.getSize(),r=i.multiplyBy(-t),n=i.multiplyBy(1+t);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,i=e.coords.longitude,r=e.coords.heading,n=new L.LatLng(t,i),o=n.toBounds(e.coords.accuracy),a=this._locateOptions;if(a.setView){var s=this.getBoundsZoom(o);this.setView(n,a.maxZoom?Math.min(s,a.maxZoom):s)}var l={latlng:n,bounds:o,timestamp:e.timestamp,heading:r};for(var c in e.coords)"number"==typeof e.coords[c]&&(l[c]=e.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(e){this._map=e,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(e){var t=e.webkitCompassHeading||e.alpha,i=0;!e.absolute&&e.webkitCompassHeading&&(t=360-t),e.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(t-i)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(e){this._map=e,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming&&!this._rotating){var i=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),n=i.subtract(r);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=t.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=t.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,t._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&(this._zooming||this._rotating)){var t,i=this._map,r=i.mouseEventToContainerPoint(e.touches[0]),n=i.mouseEventToContainerPoint(e.touches[1]),o=r.subtract(n),a=r.distanceTo(n)/this._startDist;if(this._rotating){var s=(Math.atan(o.x/o.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;o.y<0&&(s+=180),s&&i.setBearing(this._startBearing-s)}if(this._zooming)if(this._zoom=i.getScaleZoom(a,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&a<1||this._zoom>i.getMaxZoom()&&a>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{if(t=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===a&&0===t.x&&0===t.y)return;var l=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(t.rotate(l)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(e)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(e){e.shiftKey?(e.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(e.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(e){var t=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),i=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");i.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",i.style.cursor="grab",i.style.display="block",i.style.width="100%",i.style.height="100%",i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",t);return r.appendChild(i),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),e.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===e.getBearing()&&(t.style.display="none"),t},onRemove:function(e){e.off("rotate",this._restyle,this)},_handleMouseDown:function(e){L.DomEvent.stop(e),this.dragging=!0,this.dragstartX=e.pageX,this.dragstartY=e.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(e){L.DomEvent.stop(e),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(e){if(this.dragging){var t=e.clientX-this.dragstartX;this._map.setBearing(t)}},_cycleState:function(e){if(this._map){var t=this._map;t.touchRotate.enabled()||t.compassBearing.enabled()?t.compassBearing.enabled()?(t.compassBearing.disable(),t.setBearing(0),this.options.closeOnZeroBearing&&t.touchRotate.enable()):(t.touchRotate.disable(),t.compassBearing.enable()):t.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var e=this._map,t=e.getBearing();this._arrow.style.transform="rotate("+t+"deg)",t&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),e.compassBearing.enabled()?this._link.style.backgroundColor="orange":e.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===t&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(e){return new L.Control.Rotate(e)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var e="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(e),this.addControl(this.rotateControl)}}))}));m((function(e,t){
2
2
  /*!
3
3
  Copyright (c) 2016 Dominik Moritz
4
4
 
@@ -7,5 +7,5 @@ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e ins
7
7
  */
8
8
  (function(t,i){{if(typeof i!=="undefined"&&i.L){e.exports=t(L)}else{e.exports=t(g)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=t(L)}})((function(e){var t=function(t,i,r){r=r.split(" ");r.forEach((function(r){e.DomUtil[t].call(this,i,r)}))};var i=function(e,i){return t("addClass",e,i)};var r=function(e,i){return t("removeClass",e,i)};var n=e.Marker.extend({initialize:function(t,i){e.Util.setOptions(this,i);this._latlng=t;this.createIcon()},createIcon:function(){var t=this.options;var i="";if(t.color!==undefined){i+="stroke:".concat(t.color,";")}if(t.weight!==undefined){i+="stroke-width:".concat(t.weight,";")}if(t.fillColor!==undefined){i+="fill:".concat(t.fillColor,";")}if(t.fillOpacity!==undefined){i+="fill-opacity:".concat(t.fillOpacity,";")}if(t.opacity!==undefined){i+="opacity:".concat(t.opacity,";")}var r=this._getIconSVG(t,i);this._locationIcon=e.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(e,t){var i=e.radius;var r=e.weight;var n=i+r;var o=n*2;var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" height="').concat(o,'" version="1.1" viewBox="-').concat(n," -").concat(n," ").concat(o," ").concat(o,'">')+'<circle r="'+i+'" style="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:a,w:o,h:o}},setStyle:function(t){e.Util.setOptions(this,t);this.createIcon()}});var o=n.extend({initialize:function(t,i,r){e.Util.setOptions(this,r);this._latlng=t;this._heading=i;this.createIcon()},setHeading:function(e){this._heading=e},_getIconSVG:function(e,t){var i=e.radius;var r=e.width+e.weight;var n=(i+e.depth+e.weight)*2;var o="M0,0 l".concat(e.width/2,",").concat(e.depth," l-").concat(r,",0 z");var a="transform: rotate(".concat(this._heading,"deg)");var s='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r,'" height="').concat(n,'" version="1.1" viewBox="-').concat(r/2," 0 ").concat(r," ").concat(n,'" style="').concat(a,'">')+'<path d="'+o+'" style="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:s,w:r,h:n}}});var a=e.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(e){return e.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:o,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback:function(t,i){var r=e.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",t);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=e.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var o=e.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);o.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError:function(e,t){alert(e.message)},onLocationOutsideMapBounds:function(e){e.stop();alert(e.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize:function(t){for(var i in t){if(typeof this.options[i]==="object"){e.extend(this.options[i],t[i])}else{this.options[i]=t[i]}}this.options.followMarkerStyle=e.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=e.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=e.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(t){var i=e.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=t;this._layer=this.options.layer||new e.LayerGroup;this._layer.addTo(t);this._event=undefined;this._compassHeading=null;this._prevBounds=null;var r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;e.DomEvent.on(this._link,"click",(function(t){e.DomEvent.stopPropagation(t);e.DomEvent.preventDefault(t);this._onClick()}),this).on(this._link,"dblclick",e.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var e=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var t=this.options.clickBehavior;var i=t.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=e?t.inView:t.inViewNotFollowing}if(t[i]){i=t[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){var r=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;r.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start:function(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop:function(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing:function(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate:function(){if(this._active||!this._map){return}this._map.locate(this.options.locateOptions);this._map.fire("locateactivate",this);this._active=true;this._map.on("locationfound",this._onLocationFound,this);this._map.on("locationerror",this._onLocationError,this);this._map.on("dragstart",this._onDrag,this);this._map.on("zoomstart",this._onZoom,this);this._map.on("zoomend",this._onZoomEnd,this);if(this.options.showCompass){var t="ondeviceorientationabsolute"in window;if(t||"ondeviceorientation"in window){var i=this;var r=function(){e.DomEvent.on(window,t?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(e){if(e==="granted"){r()}}))}else{r()}}}},_deactivate:function(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){e.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){e.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView:function(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var t=this.options.flyTo?this._map.flyTo:this._map.setView;t.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var t=this.options.flyTo?this._map.flyTo:this._map.panTo;t.bind(this._map)([this._event.latitude,this._event.longitude])}else{var t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;t.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});e.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var e=this._event.latlng;if(this.options.showCompass&&e&&this._compassHeading!==null){var t=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(e,this._compassHeading,t).addTo(this._layer)}else{this._compass.setLatLng(e);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(t)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker:function(){if(this._event.accuracy===undefined){this._event.accuracy=0}var t=this._event.accuracy;var i=this._event.latlng;if(this.options.drawCircle){var r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=e.circle(i,t,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(t).setStyle(r)}}var n;var o;if(this.options.metric){n=t.toFixed(0);o=this.options.strings.metersUnit}else{n=(t*3.2808399).toFixed(0);o=this.options.strings.feetUnit}if(this.options.drawMarker){var a=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,a).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(a)}}}this._drawCompass();var s=this.options.strings.popup;function l(){if(typeof s==="string"){return e.Util.template(s,{distance:n,unit:o})}else if(typeof s==="function"){return s({distance:n,unit:o})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(l())._popup.setLatLng(i)}},_removeMarker:function(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload:function(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading:function(t){if(!isNaN(parseFloat(t))&&isFinite(t)){t=Math.round(t);this._compassHeading=t;e.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(e){if(!this._active){return}if(e.webkitCompassHeading){this._setCompassHeading(e.webkitCompassHeading)}else if(e.absolute&&e.alpha){this._setCompassHeading(360-e.alpha)}},_onLocationError:function(e){if(e.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(e,this)},_onLocationFound:function(e){if(this._event&&this._event.latlng.lat===e.latlng.lat&&this._event.latlng.lng===e.latlng.lng&&this._event.accuracy===e.accuracy){return}if(!this._active){return}this._event=e;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag:function(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom:function(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd:function(){if(this._event){this._drawCompass()}if(this._event&&!this._ignoreEvent){if(this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}}},_isFollowing:function(){if(!this._active){return false}if(this.options.setView==="always"){return true}else if(this.options.setView==="untilPan"){return!this._userPanned}else if(this.options.setView==="untilPanOrZoom"){return!this._userPanned&&!this._userZoomed}},_isOutsideMapBounds:function(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){if(!this._container){return}if(this._active&&!this._event){this._setClasses("requesting")}else if(this._isFollowing()){this._setClasses("following")}else if(this._active){this._setClasses("active")}else{this._cleanClasses()}},_setClasses:function(e){if(e=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(e=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(e=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){e.DomUtil.removeClass(this._container,"requesting");e.DomUtil.removeClass(this._container,"active");e.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables:function(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});e.control.locate=function(t){return new e.Control.Locate(t)};return a}),window)}));m((function(e,t){(function(t,i){{e.exports=t(g)}if(typeof i!=="undefined"&&i.L){t(i.L)}})((function(e){e.locales={};e.locale=null;e.registerLocale=function t(i,r){e.locales[i]=e.Util.extend({},e.locales[i],r)};e.setLocale=function t(i){e.locale=i};return e.i18n=e._=function t(i,r){if(e.locale&&e.locales[e.locale]&&typeof e.locales[e.locale][i]!=="undefined"){i=e.locales[e.locale][i]}try{i=e.Util.template(i,r)}catch(n){}return i}}),window)}));m((function(e,t){!function(e){e()}((function(){!function(t,i){e.exports=t(g),void 0!==i&&i.L&&t(i.L)}((function(e){return e.locales={},e.locale=null,e.registerLocale=function(t,i){e.locales[t]=e.Util.extend({},e.locales[t],i)},e.setLocale=function(t){e.locale=t},e.i18n=e._=function(t,i){e.locale&&e.locales[e.locale]&&e.locales[e.locale][t]&&(t=e.locales[e.locale][t]);try{t=e.Util.template(t,i)}catch(e){}return t}}),window);var t=6e4,i=60*t,r=24*i;function n(e){var n=Math.floor(e/r),o=Math.floor((e-n*r)/i),a=Math.floor((e-n*r-o*i)/t),s=Math.round((e-n*r-o*i-a*t)/1e3);return 60===s&&(a++,s=0),60===a&&(o++,a=0),24===o&&(n++,o=0),(n?n+"d ":"")+o.toString().padStart(2,0)+":"+a.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function o(e,t){var i=v("a","",{href:e,target:"_new",download:t||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function a(e,t,i){return!1===t?Promise.resolve():i instanceof Promise?i:new Promise((function(t,i){var r=document.createElement("script");r.addEventListener("load",t,{once:!0}),r.src=e,document.head.appendChild(r)}))}function s(e,t){t.classed("canvas-path",!0),e.beginPath(),e.moveTo(0,0);var i=new Path2D(t.attr("d"));e.strokeStyle=t.attr("stroke"),e.fillStyle=t.attr("fill"),e.lineWidth=1.25,e.globalCompositeOperation="source-over",e.globalAlpha=t.attr("stroke-opacity")||.3,e.stroke(i),e.globalAlpha=t.attr("fill-opacity")||.45,e.fill(i),e.globalAlpha=1,e.closePath()}function l(e,t){return t?e<t[0]?t[0]:e>t[1]?t[1]:e:e}function c(e,t){e&&t.split(" ").every((function(t){return t&&L.DomUtil.addClass(e,t)}))}function p(e,t){e&&t.split(" ").every((function(t){return t&&L.DomUtil.removeClass(e,t)}))}function u(e,t,i){return(i?c:p).call(null,e,t)}function d(e,t,i){t&&p(e,t),i&&c(e,i)}function h(e,t,i){return void 0===i?L.DomUtil.getStyle(e,t):e.style.setProperty(t,i)}function f(e,t,i,r){return h(e,t,r?i:"")}function m(e,t,i,r){return e[r?"on":"off"](t,i)}function v(e,t,i,r){var n=L.DomUtil.create(e,t||"");return i&&y(n,i),r&&b(r,n),n}function b(e,t){return e.appendChild(t)}function w(e,t,i){return e.insertAdjacentElement(i,t)}function y(e,t){for(var i in t)e.setAttribute(i,t[i])}function k(e,t){return(t||document).querySelector(e)}var _=L.DomEvent.on,x=L.DomEvent.off,A=L.DomUtil.hasClass;function T(){return Math.random().toString(36).substr(2,9)}function C(e,t){for(var i in e)t(e[i],i)}var S=Object.freeze({__proto__:null,formatTime:n,saveFile:o,lazyLoader:a,drawCanvas:s,clamp:l,addClass:c,removeClass:p,toggleClass:u,replaceClass:d,style:h,toggleStyle:f,toggleEvent:m,create:v,append:b,insert:w,setAttributes:y,select:k,on:_,off:x,hasClass:A,randomId:T,each:C}),E={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"}},P=function(e){var t=e.height,i=e.xAttr,r=e.yAttr,n=e.scaleX,o=e.scaleY,a=e.interpolation,s=void 0===a?"curveLinear":a;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(e){return e.xDiagCoord=n(e[i])})).y0(t).y1((function(e){return o(e[r])}))},M=function(e){var t=e.name,i=e.color,r=e.strokeColor,n=e.strokeOpacity,o=e.fillOpacity,a=d3.create("svg:path");return t&&a.classed(t,!0),a.style("pointer-events","none"),a.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",o||"0.8"),a},z=function(e){var t=e.type,i=void 0===t?"axis":t,r=e.tickSize,n=void 0===r?6:r,o=e.tickPadding,a=void 0===o?3:o,s=e.position,l=e.height,c=e.width,p=e.axis,u=e.scale,d=e.ticks,h=e.tickFormat,f=e.label,m=e.labelX,g=e.labelY,v=e.name,b=void 0===v?"":v,w=e.onAxisMount;return function(e){var t=0,r=0;"bottom"==s&&(r=l),"right"==s&&(t=c),"x"==p&&"grid"==i?n=-l:"y"==p&&"grid"==i&&(n=-c);var o=d3["axis"+s.replace(/\b\w/g,(function(e){return e.toUpperCase()}))]().scale(u).ticks(d).tickPadding(a).tickSize(n).tickFormat(h),v=e.append("g").attr("class",[p,i,s,b].join(" ")).attr("transform","translate("+t+","+r+")").call(o);return f&&v.append("svg:text").attr("x",m).attr("y",g).text(f),w&&v.call(w),v}},O=function(e){return e.type="grid",z(e)},B=function(e){var t=e.theme,i=e.xCoord,r=void 0===i?0:i,n=e.yCoord,o=void 0===n?0:n,a=e.labels,s=void 0===a?{}:a,l=e.item,c=void 0===l?{}:l,p=e.length,u=void 0===p?0:p;return function(e){e.attr("class","height-focus-group");var i,n=e.select(".height-focus.line"),a=e.select(".height-focus.circle-lower"),l=e.select(".height-focus-label");return n.node()||(n=e.append("svg:line")),a.node()||(a=e.append("svg:circle")),l.node()||(l=e.append("svg:text")),isNaN(r)||isNaN(o)||(a.attr("class",t+" height-focus circle-lower").attr("transform","translate("+r+","+o+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",t+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",o).attr("y2",u),l.attr("class",t+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(s).sort((function(e,t){return s[e].order-s[t].order})).forEach((function(e){(i=l.select(".height-focus-"+s[e].name)).size()||(i=l.append("svg:tspan").attr("class","height-focus-"+s[e].name).attr("dy","1.5em")),i.text("function"!=typeof s[e].value?s[e].value:s[e].value(c))})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",r+5)),e}},I=function(e){var t=e.name,i=e.label,r=e.width,n=e.height,o=e.margins,a=void 0===o?{}:o,s=e.color,l=e.path;return function(e){return e.attr("class","legend-item legend-"+t.toLowerCase()).attr("data-name",t),e.on("click.legend",(function(){return d3.select(e.node().ownerSVGElement||e).dispatch("legend_clicked",{detail:{path:l.node(),name:t,legend:e.node(),enabled:!l.classed("leaflet-hidden")}})})),e.append("svg:rect").attr("x",r/2-50).attr("y",n+a.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),e.append("svg:text").text(L._(i||t)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+a.bottom/2).attr("dy","0.75em"),e}},F=function(e){var t=e.xCoord,i=e.yCoord,r=e.width,n=e.height,o=e.labels,a=void 0===o?{}:o,s=e.item,l=void 0===s?{}:s;return function(e){var o=e.select(".mouse-focus-line"),s=e.select(".mouse-focus-label");o.node()||(o=e.append("svg:line")),s.node()||(s=e.append("g"));var c=s.select(".mouse-focus-label-rect"),p=s.select(".mouse-focus-label-text");c.node()||(c=s.append("svg:rect")),p.node()||(p=s.append("svg:text"));var u,d=0,h=0,f={width:0,height:0};try{f=p.node().getBBox()}catch(t){return e}return t&&(d=t+(t<r/2?10:-f.width-10)),i&&(h=Math.max(i-f.height,L.Browser.webkit?0:-1/0)),o.attr("class","mouse-focus-line").attr("x2",t).attr("y2",0).attr("x1",t).attr("y1",n),s.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",d-5).attr("y",h-5).attr("width",f.width+10).attr("height",f.height+10).attr("rx",3).attr("ry",3),p.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",h),Object.keys(a).sort((function(e,t){return a[e].order-a[t].order})).forEach((function(e){(u=p.select(".mouse-focus-label-"+a[e].name)).size()||(u=p.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+a[e].name).attr("dy","1.5em")),u.text("function"!=typeof a[e].value?a[e].value:a[e].value(l))})),p.select("tspan").attr("dy","1em"),p.selectAll("tspan").attr("x",d),e}},D=function(e){var t=e.height,i=e.width;return function(e){e.data([{x:0,y:t}]).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"}));var r=e.selectAll(".horizontal-drag-rect").data([{w:i}]),n=e.selectAll(".horizontal-drag-line").data([{w:i}]),o=e.selectAll(".horizontal-drag-label").data([{w:i-8}]),a=e.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),n.exit().remove(),o.exit().remove(),a.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(e){return e.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(e){return e.w})),o.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(o).attr("x",(function(e){return e.w})),a.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(a).attr("d",d3.symbol().type((function(e){return e.type})).size((function(e){return e.size}))).attr("transform",(function(e){return"translate("+e.x+","+e.y+") rotate("+e.angle+")"})),e}},R=function(e){var t=e.point,i=e.height,r=e.width,n=e.x,o=e.y;return function(e){return isNaN(n)||isNaN(o)||(t.item&&t.item.property("isConnected")||(t.position=t.position||"bottom",t.item=e.append("g"),t.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),t.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),t.label&&t.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),t.item.datum({pos:t.position,x:n,y:o}).attr("class",(function(e){return"point "+e.pos})).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})),t.item.select("line").datum({y2:{top:-o,bottom:i-o}[t.position],x2:{left:-n,right:r-n}[t.position]||0}).attr("y2",(function(e){return e.y2})).attr("x2",(function(e){return e.x2})),t.label&&t.item.select("text").text(t.label)),e}},N=function(e){var t=e.min,i=e.max,r=e.attr,n=e.name,o=e.forceBounds,a=e.scale;return function(e){r=r||n,a&&a.attr&&(r=a.attr);var s=e&&e.length?d3.extent(e,(function(e){return e[r]})):[0,1];return void 0!==t&&(t<s[0]||o)&&(s[0]=t),void 0!==i&&(i>s[1]||o)&&(s[1]=i),s}},G=function(e){var t=e.axis;return function(e,i){return"x"==t?[0,e]:"y"==t?[i,0]:void 0}},j=function(e){var t=e.data,i=e.attr,r=e.min,n=e.max,o=e.forceBounds,a=e.range;return d3.scaleLinear().range(a).domain(N({min:r,max:n,attr:i,forceBounds:o})(t))},Z=function(e){var t=e.width,i=e.height,r=e.margins,n=void 0===r?{}:r,o=t-n.left-n.right,a=i-n.top-n.bottom,s=d3.create("svg:svg").attr("class","background"),l=s.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},p=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=p.append("svg:rect").attr("class","zoom").attr("fill","white"),d=c.area.append("svg:foreignObject").attr("mask","url(#"+p.attr("id")+")"),h=d.append("xhtml:canvas").attr("class","canvas-plot"),f=h.node().getContext("2d");c.tooltip.call(F({xCoord:0,yCoord:0,height:a,width:o,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),g={mask:p,canvas:h,context:f,brush:m},v={svg:s,g:l,panes:c,utils:g,scale:function(e){return{x:j(e.x),y:j(e.y)}},_resize:function(e){var t=e.width,i=e.height,r=e.margins,n=void 0===r?{}:r,o=e.ruler,a=t-n.left-n.right,p=i-n.top-n.bottom;s.attr("viewBox","0 0 ".concat(t," ").concat(i)).attr("width",t).attr("height",i),l.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&h.style("transform","translate("+n.left+"px,"+n.top+"px)"),u.attr("x",0).attr("y",0).attr("width",a).attr("height",p),d.attr("width",a).attr("height",p),h.attr("width",a).attr("height",p),o&&c.ruler.call(D({height:p,width:a})),c.brush.call(m.extent([[0,0],[a,p]])),c.brush.select(".overlay").attr("cursor",null),v._width=a,v._height=p,v.svg.dispatch("resize",{detail:{width:a,height:p}})},pane:function(e){return c[e]||(c[e]=l.append("g").attr("class",e)),c[e]},get:function(e){return g[e]}};return v._resize({width:t,height:i,margins:n}),v},U=Object.freeze({__proto__:null,Colors:E,Area:P,Path:M,Axis:z,Grid:O,PositionMarker:B,LegendItem:I,Tooltip:F,Ruler:D,CheckPoint:R,Domain:N,Range:G,Scale:j,Bisect:function(e){var t=e.data,i=void 0===t?[0,1]:t,r=e.scale,n=e.x,o=e.attr;return d3.bisector((function(e){return e[o]})).left(i,r.invert(n))},Chart:Z}),H=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(e,t){var i=this;this.options=e,this.control=t,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=e.dragging,this._zoomEnabled=e.zooming;var r=this._chart=Z(e);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],t.on("eletrack_added",(function(e){i._maskGaps.push(e.index),t.once("eledata_updated",(function(e){return i._maskGaps.push(e.index)}))}))},update:function(e){return e&&(e.data&&(this._data=e.data),e.options&&(this.options=e.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var e=this;return function(t){return t.append((function(){return e._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(e){var t=this._paths[e],i=this._props.areas[e];t.datum(this._data).attr("d",P(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),t.classed("leaflet-hidden")||(this.options.preferCanvas?s(this._context,t):this._area.append((function(){return t.node()})))},_hasActiveLayers:function(){var e=this._paths;for(var t in e)if(!e[t].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(e){var t=this,i=function(e){if(t._data.length&&("brush"!=e.type||e.sourceEvent)){var i=t._chart.panes.brush.select(".overlay").node(),r=d3.pointers(e,i)[0][0],n=t._data[t._findIndexForXCoord(r)];t.fire("mouse_move",{item:n,xCoord:r})}};this._brush.filter((function(e){return t._brushEnabled&&!e.shiftKey&&!e.button})).on("end.update",(function(e){if(t._data.length){var i=e.selection;if(i){var r=t._findIndexForXCoord(i[0]),n=t._findIndexForXCoord(i[1]);t.fire("dragged",{dragstart:t._data[r],dragend:t._data[n]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var e=this,t=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(t){return e._zoomEnabled&&(t.shiftKey||4==t.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&t.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(e._container.classed("zoomed",!0),e._mask&&e._point.attr("mask","url(#"+e._mask.attr("id")+")")),e.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(e._container.classed("zoomed",!1),e._mask&&e._point.attr("mask",null)),e.zooming=!1,t.style("cursor","")})).on("zoom",(function(t){e.zooming=!1,e._updateScale(),e.zooming=!0,e._scales.distance=e._x=t.transform.rescaleX(e._x),e._scales.time&&(e._scales.time=t.transform.rescaleX(e._scales.time)),e._resetDrag(),t.sourceEvent&&"mousemove"==t.sourceEvent.type&&e._hideDiagramIndicator(),e.fire("zoom")})),t.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var e=this;this._container.on("legend_clicked",(function(t){var i=t.detail,r=i.path,n=i.legend,o=i.name,a=i.enabled;if(r){var s=k("text",n),l=k("rect",n);f(s,"text-decoration-line","line-through",a),f(l,"fill-opacity","0",a),u(r,"leaflet-hidden",a),e._updateArea(),e.fire("elepath_toggle",{path:r,name:o,legend:n,enabled:a})}}))},_initRuler:function(){var e=this;if(this.options.ruler){var t=d3.format(".0f"),i=this._drag;i.on("start end",(function(t,i){var r=e._height(),n=e._ruler.data()[0].y;(n>=r||n<=0)&&e._ruler.select(".horizontal-drag-label").text(""),e._hideDiagramIndicator()})).on("drag",(function(i,r){var n=e._height(),o=d3.pointers(i,e._area.node())[0][1],a=o>0?o<n?o:n:0,s=e._y.invert(a),l=L.extend(e._ruler.data()[0],{y:a});e._ruler.data([l]).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})).classed("active",a<n),e._container.select(".horizontal-drag-label").text(t(s)+" "+(e.options.imperial?"ft":"m")),e.fire("ruler_filter",{coords:o<n&&o>0?e._findCoordsForY(o):[]})})),this._ruler.call(i)}},_initScale:function(){var e=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:e.xAttr,min:e.xAxisMin,max:e.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:e.yAttr,min:e.yAxisMin,max:e.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x);var t=this.options;e.xAttr||(e.xAttr=t.xAttr),e.yAttr||(e.yAttr=t.yAttr),void 0===e.preferCanvas&&(e.preferCanvas=t.preferCanvas);var i=M(e);this._paths[e.name]=i,this._props.areas[e.name]=e,t.legend&&(this._props.legendItems[e.name]={name:e.name,label:e.label,color:e.color,path:i})},_registerAxisGrid:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x),this._props.grids[e.name||e.axis]=e},_registerAxisScale:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x);var t=this.options,i=e.scale;if("function"==typeof this._scales[e.name])e.scale=this._scales[e.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:t.forceAxisBounds},i)).attr=i.attr||e.name;var r=this._domains[e.name]=N(e),n=this._ranges[e.name]=G(e);i.range=i.range||n(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[e.name]=i,e.scale=this._scales[e.name]=j(i)}return e.ticks||("x"==e.axis?e.ticks=t.xTicks:"y"==e.axis&&(e.ticks=t.yTicks)),this._props.axes[e.name]=e,i},_registerCheckPoint:function(e){var t,i,r;this._data.length&&(e.latlng?(t=this._data[this._findIndexForLatLng(e.latlng)],i=this._x(t.dist),r=this._y(t.z)):isNaN(e.dist)||(i=this._x(e.dist),t=this._data[this._findIndexForXCoord(i)],r=this._y(t.z)),this._point.call(R({point:e,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(e){var t;e.order=null!==(t=e.order)&&void 0!==t?t:100,this._props.tooltipItems[e.name]=e},_updateArea:function(){var e=this._paths;for(var t in this._context.clearRect(0,0,this._width(),this._height()),e)e[t].classed("leaflet-hidden")||this._drawPath(t)},_updateAxis:function(){var e=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var t,i,r,n=this._props.grids,o=this._props.axes,a={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var l in n)t=L.extend({},a,n[l]),r=O(t),this._grid.call(r);for(var c in o)!1!==e[c]&&"summary"!==e[c]&&(t=L.extend({},s,o[c]),i=z(t),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(e,t,i){var r=d3.select(i[t]),n=r.attr("transform"),o=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");r.attr("transform","translate("+(+o[0]+40*t)+","+o[1]+")"),t>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var e=this,t=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[t.left,0],[this._width()-t.right,this._height()]]).translateExtent([[t.left,-1/0],[this._width()-t.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(t,i){if(!(i>=e._maskGaps.length-2)){var r=e._data[e._maskGaps[i]],n=e._data[e._maskGaps[i+1]],o=e._x(e._data[e._findIndexForLatLng(r.latlng)].dist),a=e._x(e._data[e._findIndexForLatLng(n.latlng)].dist);e._mask.append("rect").attr("x",o).attr("y",0).attr("width",a-o).attr("height",e._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var e=this;if(!1!==this.options.legend){var t,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)t=I(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(t);var n=this._legend.selectAll(".legend-item"),o=n.nodes().length,a=Array(Math.floor(o/2)).fill(null).map((function(e,t){return 2*(t+1)-(1-Math.sign(o%2))})),s=a.slice().reverse().map((function(e){return-e}));o%2!=0&&s.push(0),a=s.concat(a);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,p=30*o;o&&this.options.margins.right<p&&(this.options.margins.right=p,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),n.each((function(t,i,r){var n=d3.select(r[i]),o=(n.select("rect"),n.attr("data-name")),s=e._paths[o],c=55*a[i],p=2*l;n.attr("transform","translate("+c+", "+p+")"),o in e.options&&"disabled"==e.options[o]&&(s.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),e._mask&&s.attr("mask","url(#"+e._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var e in this._scales)this._scales[e].domain(this._domains[e](this._data)).range(this._ranges[e](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(e){var t,i=this._data,r=this._y.invert(e),n=i.reduce((function(e,t,i){return t.z>=r&&e.push(i),e}),[]),o=0;return n.reduce((function(e,r,a){return n[t=a+1]===n[a]+1&&t!==n.length||(e.push(n.slice(o,t).map((function(e){return i[e].latlng}))),o=t),e}),[])},_findIndexForXCoord:function(e){var t=this;return d3.bisector((function(e){return e[t.options.xAttr]})).left(this._data||[0,1],this._x.invert(e))},_findIndexForLatLng:function(e){var t=null,i=1/0;return this._data.forEach((function(r,n){var o=e.distanceTo(r.latlng);o<i&&(i=o,t=n)})),t},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(e,t){this._tooltip.attr("display",null).call(F({xCoord:t,yCoord:this._y(e[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:e}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var V,W=L.Class.extend({initialize:function(e){switch(this.options=e,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(e){switch(this._map=e,this.options.marker){case"elevation-line":this._container=d3.select(e.getPane("elevationPane")).select("svg > g").call(B({}));break;case"position-marker":this._marker.addTo(e,{pane:"overlayPane"})}return this},update:function(e){if(e?this._props=e:e=this._props,e)switch(e.options&&(this.options=e.options),this._map||this.addTo(e.map),this._latlng=e.item.latlng,this.options.marker){case"elevation-line":if(this._container){var t=this._map.latLngToLayerPoint(this._latlng);t=L.extend({},e.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(t):t),this._container.classed("leaflet-hidden",!1),this._container.call(B({theme:this.options.theme,xCoord:t.x,yCoord:t.y,length:t.y-this._height()/e.maxElevation*t.z,labels:this._labels,item:t}))}break;case"position-marker":p(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":c(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var e=this.options;return e.height-e.margins.top-e.margins.bottom},_registerTooltip:function(e){this._labels[e.name]=e}}),Q=L.Class.extend({initialize:function(e,t){this.options=e,this.control=t,this.labels={},h(this._container=v("div","elevation-summary "+(e.summary?e.summary+"-summary":"")),"max-width",e.width?e.width+"px":"")},render:function(){var e=this;return function(t){return t.append((function(){return e._container}))}},reset:function(){this._container.innerHTML=""},append:function(e,t,i){return this._container.innerHTML+='<span class="'.concat(e,'"><span class="summarylabel">').concat(t,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var e=this;Object.keys(this.labels).sort((function(t,i){return e.labels[t].order-e.labels[i].order})).forEach((function(t){e.append(t,L._(e.labels[t].label),"function"!=typeof e.labels[t].value?e.labels[t].value:e.labels[t].value(e.control.track_info))}))},_registerSummary:function(e){for(var t in e){var i;e[t].order=null!==(i=e[t].order)&&void 0!==i?i:100,this.labels[t]=e[t]}}}),X={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},J=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:X,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(e,t){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===t&&e.on&&(t=e),i._addData(e),i._addLayer(t),i._fireEvt("eledata_added",{data:e,layer:t,track_info:i.track_info})}))},addTo:function(e){if(this.options.detached){var t=this._initElevationDiv();t.isConnected||w(e.getContainer(),t,"afterend"),b(t,this.onAdd(e))}else L.Control.prototype.addTo.call(this,e);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var e=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(t){return e.off("elechart_updated",t.fn,t.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(e){return e.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(e){return e.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(e){e=e||this.getBounds(),this._map&&e.isValid()&&this._map.fitBounds(e)},getBounds:function(e){return e=e||this._data,L.latLngBounds(e.map((function(e){return e.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){h(this._container,"display","none")},initialize:function(e){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,e),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=X.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=X.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(E,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(e){case this.__D3:i="_d3LazyLoader",t="object"!==("undefined"==typeof d3?"undefined":Y(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",t="object"!==("undefined"==typeof toGeoJSON?"undefined":Y(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",t="object"!==Y(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",t="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",t="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=a(e,t,L.Control.Elevation[i])},load:function(e){var t=this;this._parseFromString(e).then((function(i){return i?t._loadLayer(i):t._loadFile(e)}))},onAdd:function(e){var t=this;this._map=e;var i=this._container=v("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){t._initButton(i),t._initChart(i),t._initSummary(i),t._initMarker(e),t._initLayer(e),e.on("zoom viewreset zoomanim",t._hideMarker,t).on("resize",t._resetView,t).on("resize",t._resizeChart,t).on("rotate",t._rotateMarker,t).on("mousedown",t._resetDrag,t),_(e.getContainer(),"mousewheel",t._resetDrag,t),_(e.getContainer(),"touchstart",t._resetDrag,t),_(document,"keydown",t._keydownHandler,t),t.on("eledata_added eledata_loaded",t._updateChart,t).on("eledata_added eledata_loaded",t._updateSummary,t),t._updateChart(),t._updateSummary()})),i},onRemove:function(e){this._container=null,e.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(e){this.options.zFollow=e},show:function(){h(this._container,"display","block")},_addData:function(e){var t=this;if(e){var i=e.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":C(i.coordinates,(function(e){return t._addGeoJSONData(e)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===e.type&&C(e.features,(function(e){return t._addData(e)})),e._latlngs&&this._addGeoJSONData(e._latlngs,e.feature&&e.feature.properties)}},_addGeoJSONData:function(e,t){var i=this;e.forEach((function(e,r){var n,o,a,s,l;e.meta=null!==(n=e.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=t&&t.coordinateProperties||t;i.fire("elepoint_init",{point:e,props:c,id:r}),i._addPoint(null!==(o=e.lat)&&void 0!==o?o:e[1],null!==(a=e.lng)&&void 0!==a?a:e[0],null!==(s=null!==(l=e.alt)&&void 0!==l?l:e.meta.ele)&&void 0!==s?s:e[2]),i.fire("elepoint_added",{point:e,index:i._data.length-1})})),this.fire("eletrack_added",{coords:e,index:this._data.length-1})},_addPoint:function(e,t,i){if(this.options.reverseCoords){var r=[t,e];e=r[0],t=r[1]}this._data.push({x:e,y:t,z:i,latlng:L.latLng(e,t,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(e){e&&this._layers.addLayer(e),e&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&e.on("add remove",(function(e){return L.DistanceMarkers&&e.target instanceof L.Polyline&&e.target[e.type+"DistanceMarkers"]()}))},_addMarker:function(e){e&&this._markers.addLayer(e)},_initAlmostOverHandler:function(e,t){var i=this;e&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){e.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&e.almostOver&&e.almostOver.enabled()&&(e.almostOver.addLayer(t),e.on("almost:move",(function(e){return i._mousemoveLayerHandler(e)})).on("almost:out",(function(e){return i._mouseoutHandler(e)})))}))},_initDistanceMarkers:function(e,t){var i=this;e&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&t.addTo(e)})):this.options.polyline&&t.addTo(e))},_initElevationDiv:function(){var e=k(this.options.elevationDiv);return e||(this.options.elevationDiv="#elevation-div_"+T(),e=v("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(e,"leaflet-control","elevation-detached"),this.eleDiv=e},_initMapIntegrations:function(e,t){var i=e._map;e._map?(i.once("layeradd",(function(i){return e.options.autofitBounds&&e.fitBounds(t.getBounds())})),L.Browser.mobile?e.options.polyline&&t.addTo(i):(e._initAlmostOverHandler(i,t),e._initDistanceMarkers(i,t))):console.warn("Undefined elevation map object")},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var e=L.Canvas.prototype._fillStroke,t=this;L.Canvas.include({_fillStroke:function(i,r){if(t._layers.hasLayer(r)){var n=t.options.theme.replace("-theme",""),o=E[n]||{},a=r.options;if(a.color=o.line||o.area||n,a.stroke=!!a.color,e.call(this,i,r),a.stroke&&0!==a.weight){var s=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=o.outline||"#FFF",i.lineWidth=1.75*a.weight,i.stroke(),i.globalCompositeOperation=s}}else e.call(this,i,r)}})},_fixTooltipSize:function(){var e=this;this.on("elechart_init",(function(){return e.once("elechart_change elechart_hover",(function(t){e._chartEnabled&&(e._chart._showDiagramIndicator(t.data,t.xCoord),e._chart._showDiagramIndicator(t.data,t.xCoord)),e._updateMarker(t.data)}))}))},_findItemForLatLng:function(e){return this._data[this._chart._findIndexForLatLng(e)]},_findItemForX:function(e){return this._data[this._chart._findIndexForXCoord(e)]},_fireEvt:function(e,t,i){this.fire&&this.fire(e,t,i),this._map&&this._map.fire(e,t,i)},_height:function(){if(this._chart)return this._chart._height();var e=this.options;return e.height-e.margins.top-e.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(e){var t=this.options;if(t.xTicks=this._xTicks(),t.yTicks=this._yTicks(),t.detached){var i=this.eleDiv,r=i.offsetWidth,n=i.offsetHeight;r>0&&(t.width=r),n>20&&(t.height=n-20)}else{var o=this._map.getContainer().clientWidth;t._maxWidth=t._maxWidth>t.width?t._maxWidth:t.width,this._container.style.maxWidth=t._maxWidth+"px",t._maxWidth>o&&(t.width=o-30)}var a=this._chart=new H(t,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(e).call(a.render()),a.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var e=this;this._layers.on("layeradd layerremove",(function(t){var i=t.layer;u(i.getElement&&i.getElement(),e.options.polyline.className+" "+e.options.theme,"layeradd"==t.type),m(i,"mousemove",e._mousemoveLayerHandler.bind(e),"layeradd"==t.type),m(i,"mouseout",e._mouseoutHandler.bind(e),"layeradd"==t.type)}))},_initMarker:function(e){var t=e.getPane("elevationPane");t||((t=this._pane=e.createPane("elevationPane",e.getPane("norotatePane")||e.getPane("mapPane"))).style.zIndex=625,t.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new W(this.options),this.fire("elechart_marker")},_initButton:function(e){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),!this.options.detached){var t=this._button=v("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},e);this.options.collapsed&&(this._collapse(),this.options.autohide?(_(e,"mouseover",this._expand,this),_(e,"mouseout",this._collapse,this)):(_(t,"click",L.DomEvent.stop),_(t,"click",this._toggle,this)),_(t,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(e){this._summary=new Q({summary:this.options.summary},this),d3.select(e).call(this._summary.render())},_keydownHandler:function(e){this.options.detached||"Escape"!==e.key||this._collapse()},_loadFile:function(e){var t=this;fetch(e).then((function(e){return e.text()})).then((function(i){t._downloadURL=e,t._parseFromString(i).then((function(e){return e&&t._loadLayer(e)}))})).catch((function(e){return console.warn(e)}))},_loadLayer:function(e){var t=this,i=t.options,r=i.wptIcons,n=i.wptLabels,o=L.geoJson(e,{distanceMarkers:t.options.distanceMarkers,style:function(e){var i=L.extend({},t.options.polyline);return t.options.theme&&(i.className+=" "+t.options.theme),i},pointToLayer:function(e,i){var o,a,s;if(t.options.waypoints){var l=e.properties,c=null!==(o=l.desc)&&void 0!==o?o:"",p=null!==(a=l.name)&&void 0!==a?a:"",u=(null!==(s=l.sym)&&void 0!==s?s:p).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(t.options.waypoints)&&t._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(n)?p:""}),[!0,"markers"].includes(t.options.waypoints)&&0!=r){r.hasOwnProperty(u)||(r[u]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+u+'"></i>'})));var d=L.marker(i,{icon:r[u]});if([!0,"markers"].includes(n)&&(p||c)){var h=decodeURI("<b>"+p+"</b>"+(c.length>0?"<br>"+c:""));d.bindPopup(h,{className:"elevation-popup",keepInView:!0}).openPopup(),d.bindTooltip(h,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return t._addMarker(d),t.fire("waypoint_added",{point:d,element:i,properties:l}),d}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(t.addData(r),t.track_info=L.extend({},t.track_info,{name:e.name}))}});return t.lazyLoad(t.__D3).then((function(){t._initMapIntegrations(t,o),t._fireEvt("eledata_loaded",{data:e,layer:o,name:t.track_info.name,track_info:t.track_info})})),o},_dragendHandler:function(e){this._hideMarker(),this.fitBounds(L.latLngBounds([e.dragstart.latlng,e.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(e){this.fire("elechart_enter")},_mousemoveHandler:function(e){if(this._data.length&&this._chartEnabled){var t=this._findItemForX(e.xCoord);if(t){var i=e.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(t,i),this._updateMarker(t),this._setMapView(t),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:t,xCoord:i}),this.fire("elechart_hover",{data:t,xCoord:i})}}},_mousemoveLayerHandler:function(e){if(this._data.length){var t=this._findItemForLatLng(e.latlng);if(t){var i=t.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(t,i),this._updateMarker(t),this.fire("elechart_change",{data:t,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&p(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(e){try{return JSON.parse(e)}catch(e){}},_parseFromString:function(e){var t=this;return new Promise((function(i){return t.lazyLoad(t.__TOGEOJSON).then((function(){var r;try{r=t._parseFromXMLString(e.trim())}catch(i){r=t._parseFromGeoJSONString(e.toString())}r&&(r=t._prepareMultiLineStrings(r),r=t._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(e){var t;if(0!=e.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(e,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=n.length>0?(null!==(t=Array.from(n).find((function(e){return"trk"==e.parentElement.tagName})))&&void 0!==t?t:n[0]).textContent:"",o},_prepareAdditionalProperties:function(e){return!e.name&&this._downloadURL&&(e.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),e},_prepareMultiLineStrings:function(e){return e.features.forEach((function(t){"MultiLineString"==t.geometry.type&&t.geometry.coordinates.forEach((function(i){e.features.push({geometry:{type:"LineString",coordinates:i},properties:t.properties,type:"Feature"})}))})),e.features.filter((function(e){return"MultiLineString"!=e.geometry.type}))},_registerAreaPath:function(e){var t=this;this.on("elechart_init",(function(){return t._chart._registerAreaPath(e)}))},_registerAxisGrid:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisGrid(e)}))},_registerAxisScale:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisScale(e)}))},_registerCheckPoint:function(e){var t=this;this.on("elechart_updated",(function(){return t._chart._registerCheckPoint(e)}))},_registerDataAttribute:function(e){var t=this,i=null;e.init&&this.on("elepoint_init",(function(i){return e.init.call(t,i)})),this.on("elepoint_added",(function(r){if(!1===e.skipNull){var n=t._data[r.index][e.name];if(r.index>0){var o=t._data[r.index-1][e.name];if(isNaN(o)){if(isNaN(i)||isNaN(n)?isNaN(i)?isNaN(n)||(o=n):o=i:o=(i+n)/2,!isNaN(o))return t._data.splice(r.index-1,1);t._data[r.index-1][e.name]=o}}isNaN(n)||(i=n)}t._data[r.index][e.name]=e.fetch.call(t,r.index,r.point),e.update&&(t._data[r.index][e.name]=e.update.call(t,t._data[r.index][e.name],r.index,r.point))}))},_registerTooltip:function(e){var t=this;if(e.chart){var i=L.extend({},e,{value:e.chart});this.on("elechart_init",(function(){return t._chart._registerTooltip(i)}))}if(e.marker){var r=L.extend({},e,{value:e.marker});this.on("elechart_marker",(function(){return t._marker._registerTooltip(r)}))}},_registerSummary:function(e){var t=this;this.on("elechart_summary",(function(){return t._summary._registerSummary(e)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=h(this._container,"display")){var e,t=this.options;if(t.detached)e=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;e=t._maxWidth>i?i-30:t._maxWidth}if(e){var r=this._chart;t.width=e,r&&r._chart&&(r._chart._resize(t),t.xTicks=this._xTicks(),t.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(e){this._updateMapSegments(e.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(e){if(this.options.followMarker&&this._map){var t=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(e.latlng,t<i?i:t,{animate:!0,duration:.25}):this._map.getBounds().contains(e.latlng)||this._map.setView(e.latlng,t,{animate:!0,duration:.25})}},_toggleChartHandler:function(e){var t=this,i=e.name,r=e.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(e){return u(e.getElement&&e.getElement(),t.options.polyline.className+" "+t.options.theme,t._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
9
9
  /*!this._data.length ||*/
10
- this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(e){this._marker&&this._marker.update({map:this._map,item:e,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:o.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&!0!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var e=this.options;return e.width-e.margins.left-e.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});J.addInitHook((function(){var e=this,t=this.options,i={};t.imperial?(t.distanceFactor=this.__mileFactor,i.label="mi"):(t.distanceFactor=t.distanceFactor||1,i.label=t.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=e._data[i].latlng.distanceTo(e._data[i>0?i-1:i].latlng)*t.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(t){return e.track_info.distance=e.track_info.distance||0,e.track_info.distance+=t,e.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return e._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(e){return L._("x: ")+d3.format("."+t.decimalsX+"f")(e[t.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(e){return(e.distance||0).toFixed(2)+"&nbsp;"+i.label},order:10}})})),J.addInitHook((function(){var e=this,t=this.options,i={};i.label=t.timeLabel||"t",t.timeFactor=t.timeFactor||3600,this._timeAVGSpeed=(t.timeAVGSpeed||3.6)*(t.speedFactor||1),t.timeFormat?"time"==t.timeFormat?t.timeFormat=function(e){return new Date(e).toLocaleTimeString()}:"date"==t.timeFormat&&(t.timeFormat=function(e){return new Date(e).toLocaleDateString()}):t.timeFormat=function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")},t.xTimeFormat=t.xTimeFormat||function(e){return n(e).split("'")[0]},this._registerDataAttribute({name:"time",init:function(e){var t=e.point,i=e.props,r=e.id;i&&("coordTimes"in i?t.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?t.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(t.meta.time=new Date(Date.parse("object"===Y(i.time)?i.time[r]:i.time))))},fetch:function(e,t){if(!t.meta||!t.meta.time)if(t.meta=t.meta||{},e>0){var i=this._data[e].dist-this._data[e-1].dist,r=this._data[e-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;t.meta.time=new Date(r+n)}else t.meta.time=new Date(Date.now());var o=t.meta.time;return o.getTime()-60*o.getTimezoneOffset()*1e3==0&&(o=0),o},update:function(e,t){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[t].time-this._data[t>0?t-1:t].time),this._data[t].duration=this.track_info.time,e}}),t.time&&"summary"!=t.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return e._width()},name:"time",tickFormat:function(e){return 0==e?"":t.xTimeFormat(e)},onAxisMount:function(t){t.select(".domain").remove(),t.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),t.selectAll(".tick line").attr("y2",e._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(t){return L._("t: ")+e.options.timeFormat(t.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(e){return L._("T: ")+n(e.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(e){return n(e.time||0)},order:20}}))})),J.addInitHook((function(){var e=this,t=this.options,i={},r=t.theme.replace("-theme",""),n=E[r]||{};t.imperial?(t.altitudeFactor=this.__footFactor,i.label="ft"):(t.altitudeFactor=t.heightFactor||t.altitudeFactor||1,i.label=t.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(e){var t=e.point;"alt"in t&&(t.meta.ele=t.alt)},fetch:function(i){return e._data[i].z*t.altitudeFactor},update:function(t,i){e.track_info.elevation_max=e.track_info.elevation_max||-1/0,e.track_info.elevation_min=e.track_info.elevation_max||1/0,e.track_info.elevation_avg=e.track_info.elevation_avg||0;var r=e._data,n=e.track_info;if(e.options.altitudeDeltaMax){var o=t-r[i>0?i-1:i].z,a=e.options.altitudeDeltaMax;Math.abs(o)>a&&(t=r[i-1].z+a*Math.sign(o))}return(t=l(t,e.options.altitudeRange))>n.elevation_max&&(n.elevation_max=t),t<n.elevation_min&&(n.elevation_min=t),n.elevation_avg=(t+n.elevation_avg)/2,t}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||r,strokeColor:t.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:t.detached?n.alpha||"0.8":1,preferCanvas:t.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(e){return L._("y: ")+d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},marker:function(e){return d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(e){return(e.elevation_max||0).toFixed(2)+"&nbsp;"+i.label},order:30},minele:{label:"Min Elevation: ",value:function(e){return(e.elevation_min||0).toFixed(2)+"&nbsp;"+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(e){return(e.elevation_avg||0).toFixed(2)+"&nbsp;"+i.label},order:30}})})),J.addInitHook((function(){var e=this;if(this.options.slope){var t=this.options,i={};i.label=t.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(t){var i=e._data,r=1e3*(i[t].dist-i[t>0?t-1:t].dist),n=i[t].z-i[t>0?t-1:t].z;return isNaN(n)||0===r?0:n/r*100},update:function(t,i){e.track_info.ascent=e.track_info.ascent||0,e.track_info.descent=e.track_info.descent||0,e.track_info.slope_max=e.track_info.slope_max||-1/0,e.track_info.slope_min=e.track_info.slope_min||1/0,e.track_info.slope_avg=e.track_info.slope_avg||0;var r=e.track_info,n=e._data,o=n[i].z-n[i>0?i-1:i].z;if(e.options.slopeDeltaMax){var a=slop-n[i>0?i-1:i].slope,s=e.options.slopeDeltaMax;Math.abs(a)>s&&(t=n[i-1].slope+s*Math.sign(a))}return t=l(t,e.options.slopeRange),o>0?e.track_info.ascent+=o:o<0&&(e.track_info.descent-=o),t>r.slope_max&&(r.slope_max=t),t<r.slope_min&&(r.slope_min=t),r.slope_avg=(t+r.slope_avg)/2,L.Util.formatNum(t,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(e){return L._("m: ")+e.slope+i.label},marker:function(e){return Math.round(e.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(t){return Math.round(t.ascent||0)+"&nbsp;"+(e.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(t){return Math.round(t.descent||0)+"&nbsp;"+(e.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(e){return Math.round(e.slope_min||0)+"&nbsp;"+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(e){return Math.round(e.slope_max||0)+"&nbsp;"+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(e){return Math.round(e.slope_avg||0)+"&nbsp;"+i.label},order:40}})}})),J.addInitHook((function(){var e=this;if(this.options.speed||this.options.acceleration){var t=this.options,i={};i.label=t.speedLabel||L._(t.imperial?"mph":"km/h"),t.speedFactor=t.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=e._data,n=1e3*(r[i].dist-r[i>0?i-1:i].dist),o=r[i].time-r[i>0?i-1:i].time;return o>0?Math.abs(n/o*t.timeFactor)*t.speedFactor:0},update:function(t,i){e.track_info.speed_max=e.track_info.speed_max||-1/0,e.track_info.speed_min=e.track_info.speed_min||1/0,e.track_info.speed_avg=e.track_info.speed_avg||0;var r=e._data,n=e.track_info;if(e.options.speedDeltaMax){var o=t-r[i>0?i-1:i].speed,a=e.options.speedDeltaMax;Math.abs(o)>a&&(t=r[i-1].speed+a*Math.sign(o))}return(t=l(t,e.options.speedRange))>n.speed_max&&(n.speed_max=t),t<n.speed_min&&(n.speed_min=t),n.speed_avg=(t+n.speed_avg)/2,L.Util.formatNum(t,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(e){return L._("v: ")+e.speed+" "+i.label},marker:function(e){return Math.round(e.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(e){return Math.round(e.speed_min||0)+"&nbsp;"+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(e){return Math.round(e.speed_max||0)+"&nbsp;"+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(e){return Math.round(e.speed_avg||0)+"&nbsp;"+i.label},order:50}}))}})),J.addInitHook((function(){var e=this;if(this.options.acceleration){var t=this.options,i={};i.label=t.accelerationLabel||L._(t.imperial?"ft/s²":"m/s²"),t.accelerationFactor=t.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=e._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/t.timeFactor),o=(r[i].time-r[i>0?i-1:i].time)/1e3;return o>0?Math.abs(n/o)*t.accelerationFactor:0},update:function(t,i){e.track_info.acceleration_max=e.track_info.acceleration_max||-1/0,e.track_info.acceleration_min=e.track_info.acceleration_min||1/0,e.track_info.acceleration_avg=e.track_info.acceleration_avg||0;var r=e._data,n=e.track_info;if(e.options.accelerationDeltaMax){var o=t-r[i>0?i-1:i].acceleration,a=e.options.accelerationDeltaMax;Math.abs(o)>a&&(t=r[i-1].acceleration+a*Math.sign(o))}return(t=l(t,e.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=t),t<n.acceleration_min&&(n.acceleration_min=t),n.acceleration_avg=(t+n.acceleration_avg)/2,L.Util.formatNum(t,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(e){return L._("a: ")+e.acceleration+" "+i.label},marker:function(e){return Math.round(e.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(e){return Math.round(e.acceleration_min||0)+"&nbsp;"+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(e){return Math.round(e.acceleration_max||0)+"&nbsp;"+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(e){return Math.round(e.acceleration_avg||0)+"&nbsp;"+i.label},order:60}})}})),J.Utils=S,J.Components=U,J.Chart=H,V=L.i18n.bind({}),L.i18n=L._=function(e,t){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][e]&&(L.locales[L.locale][e]="​"),V.call(null,e,t)},J.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(e){return new J(e)}}))}));m((function(e,t){!function(e,i){i(t)}(v,(function(e){var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,s=this.options.chunkProgress,l=e.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-h;if(a<f)break}if((i=e[c])instanceof L.LayerGroup)p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),t||this.fire("layeradd",{layer:i})}s&&s(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=e[c])instanceof L.LayerGroup?(p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,o=this._nonPointGroup,a=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(a&&(e=e.slice(),a=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var s=e.slice(),l=r;for(t=0;t<l;t++)(i=s[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),l=s.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(a&&(e=e.slice(),a=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,n=a.length-1;0<=n;n--)if(a[n].layer===o[r]){i=!1;break}i&&e.call(t,o[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return!0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,a=this._map,s=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,c=e.__parent,p=c._markers;for(this._arraySplice(p,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<s));)t&&c._childCount<=1?(l=c._markers[0]===e?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,a.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,a.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),i||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,n=this._gridClusters,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);a<=t;t--){i=this._map.project(e.getLatLng(),t);var s=n[t].getNearObject(i);if(s)return s._addChild(e),void(e.__parent=s);if(s=o[t].getNearObject(i)){var l=s.__parent;l&&this._removeLayer(s,!1);var c=new this._markerCluster(this,t,s,e);n[t].addObject(c,this._map.project(c._cLatLng,t)),s.__parent=c;var p=e.__parent=c;for(r=t-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(s.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(s,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,e,o,(function(o){var a,s=o._latlng,l=o._markers;for(r.contains(s)||(s=null),o._isSingleParent()&&e+1===t?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(s,t,r)),i=l.length-1;0<=i;i--)a=l[i],r.contains(a._latlng)||n.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),n.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,e,o,(function(e){n.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){r.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var a=e._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else e._recursively(r,i,n,(function(e){e._recursivelyRemoveChildrenFromMap(r,n,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,a=r.getZoom();0<i.length&&o<n;){o++;var s=[];for(t=0;t<i.length;t++)s=s.concat(i[t]._childClusters);i=s}o<n?this._group._map.setView(this._latlng,o):n<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,r,n=this._markers,o=this._childClusters,a=0,s=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),a+=i.lat,s+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,a+=i.lat*r,s+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(a/l,s/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,n=e._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,n=e._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(n){n._recursivelyAnimateChildrenIn(e,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(e,t,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)n=e._markers[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)n=e._childClusters[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(e,t,i,r,n){var o,a,s=this._childClusters,l=this._zoom;if(t<=l&&(r&&r(this),n&&l===i&&n(this)),l<t||l<i)for(o=s.length-1;0<=o;o--)(a=s[o])._boundsNeedUpdate&&a._recalculateBounds(),e.intersects(a._bounds)&&a._recursively(e,t,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,o=n[r]=n[r]||{},a=o[i]=o[i]||[],s=L.Util.stamp(e);this._objectPoint[s]=t,a.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),o=this._getCoord(t.y),a=this._grid,s=a[o]=a[o]||{},l=s[n]=s[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=l.length;i<r;i++)if(l[i]===e)return l.splice(i,1),1===r&&delete s[n],!0},eachObject:function(e,t){var i,r,n,o,a,s,l=this._grid;for(i in l)for(r in a=l[i])for(n=0,o=(s=a[r]).length;n<o;n++)e.call(t,s[n])&&(n--,o--)},getNearObject:function(e){var t,i,r,n,o,a,s,l,c=this._getCoord(e.x),p=this._getCoord(e.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(t=p-1;t<=p+1;t++)if(n=this._grid[t])for(i=c-1;i<=c+1;i++)if(o=n[i])for(r=0,a=o.length;r<a;r++)s=o[r],((l=this._sqDist(u[L.Util.stamp(s)],e))<d||l<=d&&null===h)&&(d=l,h=s);return h},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,o=0,a=null,s=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(s.push(r),o<n&&(o=n,a=r));return{maxPoint:a,newPoints:s}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,o=!1,a=null,s=null,l=null,c=null,p=null,u=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(a=d).lat),(!1===r||d.lat<r)&&(r=(s=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===o||d.lng<o)&&(o=(c=d).lng)}return p=r!==i?(u=s,a):(u=c,l),[].concat(this.buildConvexHull([u,p],e),this.buildConvexHull([p,u],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,a=[];for(n=Math.max(n,35),a.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*o,a[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return a},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,a=r*this._spiralLengthFactor*this._2PI,s=0,l=[];for(i=l.length=e;0<=i;i--)i<e&&(l[i]=new L.Point(t.x+n*Math.cos(s),t.y+n*Math.sin(s))._round()),n+=a/(s+=o/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,o,a=this._group,s=a._map,l=a._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<e.length;i++)o=s.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,o],c),s.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,o,a,s,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],s=p.layerPointToLatLng(t[i]),n=new L.Polyline([d,s],m),p.addLayer(n),r._spiderLeg=n,f&&(a=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=a,o.style.strokeDashoffset=a),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(h);for(c._forceLayout(),c._animationStart(),i=e.length-1;0<=i;i--)s=p.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.clusterShow&&r.clusterShow(),f&&((o=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,n,o,a,s=this,l=this._group,c=l._map,p=l._featureGroup,u=e?c._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,a=!0,t._setPos&&(t._setPos(u),a=!1),t.clusterHide&&(t.clusterHide(),a=!1),a&&p.removeLayer(t),h&&(o=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&p.removeLayer(t),c.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:s,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0})}))}));var se='@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 350px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-surface-variant)}.departure-marker{background-color:#008000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000001 !important}.arrival-marker{background-color:#ff0000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000000 !important}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:48px;height:48px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon img{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-70px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}';var le=e("grw_map",function(){function e(e){t(this,e);this.trekCardPress=n(this,"trekCardPress",7);this.touristicContentCardPress=n(this,"touristicContentCardPress",7);this.touristicEventCardPress=n(this,"touristicEventCardPress",7);this.maxZoom=19;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.trekTilesMaxZoomOffline=16;this.isLargeView=false}e.prototype.onCenterOnMap=function(e){this.map.setView(new g.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})};e.prototype.stepsIsInViewport=function(e){if(this.currentStepsLayer){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}};e.prototype.descriptionIsInViewport=function(e){if(this.currentReferencePointsLayer){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}};e.prototype.parkingIsInViewport=function(e){if(this.currentParkingLayer){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}};e.prototype.onInformationDesksIsInViewport=function(e){if(this.currentInformationDesksLayer){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}};e.prototype.sensitiveAreaIsInViewport=function(e){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}};e.prototype.poiIsInViewport=function(e){if(this.currentPoisLayer){this.handleLayerVisibility(e.detail,this.currentPoisLayer)}};e.prototype.touristicContentsIsInViewport=function(e){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer)}};e.prototype.touristicEventsIsInViewport=function(e){if(this.currenttouristicEventsLayer){this.handleLayerVisibility(e.detail,this.currenttouristicEventsLayer)}};e.prototype.onCardTrekMouseOver=function(e){if(!c.parentTrek&&(!c.selectedTrekId||c.selectedTrekId!==e.detail)){c.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(c.parentTrek){this.stepPopupIsOpen=false;c.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}};e.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&c.selectedTrekId){this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};e.prototype.onTouristicContentMouseOver=function(e){this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)};e.prototype.onTouristicContentMouseLeave=function(){c.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};e.prototype.onTouristicEventMouseOver=function(e){this.touristicEventPopupIsOpen=false;c.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)};e.prototype.onTouristicEventMouseLeave=function(){c.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};e.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.trekTilesMaxZoomOffline)};e.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};e.prototype.componentDidLoad=function(){var e=this;this.map=g.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});g.control.scale({metric:true,imperial:false}).addTo(this.map);g.control.locate({showPopup:false}).addTo(this.map);var t=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(e,t){return t===0?e:"http"+e}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){e.tileLayer.push({key:"".concat(t[n]),value:b.tileLayerOffline(i,{maxZoom:e.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=g.control.layers(this.tileLayer.reduce((function(e,t){var i;return Object.assign(e,(i={},i[t.key]=t.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}g.Control.Contract=g.Control.extend({onAdd:function(){var t=g.DomUtil.create("div");t.className="leaflet-bar leaflet-control";var i=t.appendChild(g.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";t.onclick=function(t){e.bounds&&e.map.fitBounds(e.bounds);t.preventDefault()};return t}});g.control.contract=function(e){return new g.Control.Contract(e)};g.control.contract({position:"topleft"}).addTo(this.map);if(c.currentTrek){this.addTrek()}else if(c.currentTreks){this.addTreks()}else if(c.currentTouristicContent){this.addTouristicContent()}else if(c.currentTouristicEvent){this.addTouristicEvent()}else if(c.touristicContents){this.addTouristicContents()}else if(c.touristicEvents){this.addTouristicEvents()}w("currentTreks",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.currentTrek){e.removeTreks();e.addTrek()}else if(c.currentTreks){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks(true)}}));w("currentTrek",(function(){if(c.currentTrek){e.removeTreks();e.addTrek()}else if(c.currentTreks){e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks()}}));w("currentTouristicContent",(function(){if(c.currentTouristicContent){e.removeTrek();e.removeTouristicContents();e.addTouristicContent()}else if(c.touristicContents){e.removeTouristicContent();e.addTouristicContents()}else if(c.currentTrek){e.removeTouristicContent();e.addTrek()}else if(c.currentTreks){e.removeTouristicContent();e.addTreks()}}));w("currentTouristicEvent",(function(){if(c.currentTouristicEvent){e.removeTrek();e.removeTouristicEvents();e.addTouristicEvent()}else if(c.currentTrek){e.removeTouristicEvent();e.addTrek()}else if(c.currentTreks){e.removeTouristicEvent();e.addTreks()}}));w("currentTouristicContents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.currentTouristicContent){e.removeTouristicContents();e.addTouristicContent()}else if(c.currentTouristicContents){e.removeTreks();e.removeTouristicEvents();e.removeTouristicContent();e.addTouristicContents(true)}}));w("currentTouristicEvents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.currentTouristicEvent){e.removeTouristicEvents();e.addTouristicEvent()}else if(c.currentTouristicEvents){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvent();e.addTouristicEvents(true)}}));w("mode",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.mode==="treks"){if(c.treks){e.removeTouristicContents();e.removeTouristicEvents();e.addTreks(true)}}else if(c.mode==="touristicContents"){if(c.touristicContents){e.removeTreks();e.removeTouristicEvents();e.addTouristicContents(true)}}else if(c.mode==="touristicEvents"){if(c.touristicEvents){e.removeTreks();e.removeTouristicContents();e.addTouristicEvents(true)}}}))};e.prototype.handleLayerVisibility=function(e,t){if(e&&!this.map.hasLayer(t)){t.addTo(this.map)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()};e.prototype.addTreks=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l;var p=this;return __generator(this,(function(u){switch(u.label){case 0:c.treksWithinBounds=c.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(c.currentTreks){n=function(e){i.push(e.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=c.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(o=0,a=c.currentTreks;o<a.length;o++){s=a[o];n(s)}}if(!!this.treksLayer)return[3,2];if(i.length>0&&!c.currentMapBounds||e){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:l=u.sent();this.treksLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:l[e.properties.practice]?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(l[e.properties.practice]," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(p,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseover",(function(t){p.hideTrekLine();p.showTrekLine(e.properties.id);p.addSelectedCurrentTrek(e.properties.id,t.latlng)}))}});this.treksMarkerClusterGroup=g.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return g.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);u.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};e.prototype.removeTreks=function(){if(this.treksLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};e.prototype.handleTreksWithinBounds=function(){var e=this;if(c.currentTreks&&!c.currentMapBounds||c.currentTreks&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.treksWithinBounds=c.currentTreks.filter((function(t){return e.map.getBounds().contains(g.latLng(t.departure_geom[1],t.departure_geom[0]))}))}};e.prototype.handleTouristicContentsWithinBounds=function(){var e=this;if(c.currentTouristicContents&&!c.currentMapBounds||c.currentTouristicContents&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.touristicContentsWithinBounds=c.currentTouristicContents.filter((function(t){return e.map.getBounds().contains(g.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleTouristicEventsWithinBounds=function(){var e=this;if(c.currentTouristicEvents&&!c.currentMapBounds||c.currentTouristicEvents&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.touristicEventsWithinBounds=c.currentTouristicEvents.filter((function(t){return e.map.getBounds().contains(g.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,a,l,p,u,d,h,f,m,v,b,w,_,x,A,L,T,C,S,E,P,M,z,O,B,I,F,D,R,N,G,j,Z,U,H,Y,V,W,Q,X,J,q,K,$,ee;var te=this;return __generator(this,(function(ie){switch(ie.label){case 0:return[4,y("treks",c.currentTrek.id)];case 1:n=ie.sent();if(n){this.map.setMaxZoom(this.trekTilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();a={type:"Feature",geometry:c.currentTrek.geometry,properties:{}};this.currentTrekLayer=g.geoJSON(a,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(c.currentTrek.parking_location){l=o("".concat("","assets/parking.svg"));p={type:"Feature",properties:{name:c.currentTrek.advised_parking},geometry:{type:"Point",coordinates:c.currentTrek.parking_location}};this.currentParkingLayer=g.geoJSON(p,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:'<img crossorigin="anonymous" src='.concat(l," />"),className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="parking-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="parking-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0){u={type:"FeatureCollection",features:[]};for(d=0,h=c.currentSensitiveAreas;d<h.length;d++){f=h[d];u.features.push({type:"Feature",properties:{name:f.name},geometry:f.geometry})}this.currentSensitiveAreasLayer=g.geoJSON(u,{onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="sensitive-area-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:function(){return{color:te.colorSensitiveArea}}})}if(!(c.currentPois&&c.currentPois.length>0))return[3,3];m={type:"FeatureCollection",features:[]};v=function(t){m.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=c.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(b=0,w=c.currentPois;b<w.length;b++){_=w[b];v(_)}return[4,this.getIcons(m,"type_pictogram")];case 2:x=ie.sent();this.currentPoisLayer=g.geoJSON(m,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:x[e.properties.type_pictogram]?'<img crossorigin="anonymous" src='.concat(x[e.properties.type_pictogram]," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="poi-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=3;case 3:if(!(c.trekTouristicContents&&c.trekTouristicContents.length>0))return[3,5];A={type:"FeatureCollection",features:[]};L=function(e){A.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(t=c.touristicContentCategories.find((function(t){return t.id===e.category})))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})};for(T=0,C=c.trekTouristicContents;T<C.length;T++){S=C[T];L(S)}return[4,this.getIcons(A,"category_pictogram")];case 4:E=ie.sent();this.currentToutisticContentsLayer=g.geoJSON(A,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:E[e.properties.category_pictogram]?'<img crossorigin="anonymous "src='.concat(E[e.properties.category_pictogram]," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="touristic-content-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-content-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=5;case 5:if(!(c.touristicEvents&&c.touristicEvents.length>0))return[3,7];P={type:"FeatureCollection",features:[]};M=function(e){P.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(i=c.touristicEventTypes.find((function(t){return t.id===e.type})))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})};for(z=0,O=c.touristicEvents;z<O.length;z++){B=O[z];M(B)}return[4,this.getIcons(P,"type_pictogram")];case 6:I=ie.sent();this.currenttouristicEventsLayer=g.geoJSON(P,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:I[e.properties.type_pictogram]?'\n <img crossorigin="anonymous" src='.concat(I[e.properties.type_pictogram]," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="touristic-event-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-event-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=7;case 7:if(!(c.currentInformationDesks&&c.currentInformationDesks.length>0))return[3,9];F={type:"FeatureCollection",features:[]};for(D=0,R=c.currentInformationDesks.filter((function(e){return c.currentTrek.information_desks.includes(e.id)}));D<R.length;D++){N=R[D];if(N.latitude&&N.longitude){F.features.push({type:"Feature",properties:{name:N.name,type_pictogram:N.type.pictogram},geometry:{type:"Point",coordinates:[Number(N.longitude),Number(N.latitude)]}})}}if(!(F.features.length>0))return[3,9];return[4,this.getIcons(F,"type_pictogram")];case 8:G=ie.sent();this.currentInformationDesksLayer=g.geoJSON(F,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:G[e.properties.type_pictogram]?'<img crossorigin="anonymous" src='.concat(G[e.properties.type_pictogram]," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="information-desks-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=9;case 9:if(c.currentTrek.points_reference){j={type:"FeatureCollection",features:[]};j.features.push({type:"Feature",properties:{},geometry:c.currentTrek.points_reference});Z=0;this.currentReferencePointsLayer=g.geoJSON(j,{pointToLayer:function(e,t){Z+=1;return g.marker(t,{icon:g.divIcon({html:Z,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&c.parentTrekId&&c.parentTrek&&c.currentTrek.id===c.parentTrekId){U={type:"FeatureCollection",features:[]};if(c.currentTrekSteps){H=function(e){U.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(r=c.practices.find((function(t){return t.id===e.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(Y=0,V=c.currentTrekSteps;Y<V.length;Y++){W=V[Y];H(W)}}Q=0;this.currentStepsLayer=g.geoJSON(U,{pointToLayer:function(e,t){Q+=1;return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(Q,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(te,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseover",(function(t){te.addSelectedCurrentStep(e.properties.id,t.latlng)}))}})}X={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};g.registerLocale("fr",X);g.setLocale("fr");J={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:280,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:"inline",time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=g.control.elevation(Object.assign({},J)).addTo(this.map);q=JSON.stringify({name:"".concat(c.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:c.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(q);K={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:c.currentTrek.geometry.coordinates[c.currentTrek.geometry.coordinates.length-1]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:c.currentTrek.geometry.coordinates[0]},properties:null}]};$=0;this.departureArrivalLayer=g.geoJSON(K,{pointToLayer:function(e,t){$+=1;return g.marker(t,{icon:g.divIcon({html:"<div></div>",className:$===1?"departure-marker":"arrival-marker",iconSize:22}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);ee={};if(this.currentStepsLayer){ee[s[c.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){ee[s[c.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){ee[s[c.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){ee[s[c.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){ee[s[c.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){ee[s[c.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){ee[s[c.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currenttouristicEventsLayer){ee[s[c.language].layers.touristicEvents]=this.currenttouristicEventsLayer}if(this.layersControl){Object.keys(ee).forEach((function(e){te.layersControl.addOverlay(ee[e],e)}))}else{this.layersControl=g.control.layers({},ee,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=g.latLngBounds(c.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.getIcons=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;return __generator(this,(function(a){switch(a.label){case 0:i={};r=0;a.label=1;case 1:if(!(r<e.features.length))return[3,4];if(!e.features[r].properties[t])return[3,3];n=i;o=e.features[r].properties[t];return[4,this.getIcon(e.features[r].properties[t])];case 2:n[o]=a.sent();a.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};e.prototype.getIcon=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:return[4,y("images",e)];case 1:t=r.sent();i=t?window.URL.createObjectURL(k(t.data,t.type)):e?e:null;return[2,i]}}))}))};e.prototype.addSelectedCurrentTrek=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(c.currentTreks){n=c.currentTreks.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=c.practices.find((function(e){return e.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();c.selectedTrekId=e;return[4,this.getIcons(r,"practice")];case 1:o=s.sent();this.selectedCurrentTrekLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:o[e.properties.practice]?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(o[e.properties.practice]," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(a,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseout",(function(){if(!a.trekPopupIsOpen){c.selectedTrekId=null;a.hideTrekLine();a.removeSelectedCurrentTrek()}}));t.on("popupopen",(function(){a.trekPopupIsOpen=Boolean(c.selectedTrekId)}));t.on("popupclose",(function(){if(c.selectedTrekId){a.trekPopupIsOpen=false;c.selectedTrekId=null;a.hideTrekLine();a.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedCurrentTrek=function(){c.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};e.prototype.addSelectedCurrentStep=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(c.currentTrekSteps){var o=c.currentTrekSteps.findIndex((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:c.currentTrekSteps[o].departure_geom},properties:{id:c.currentTrekSteps[o].id,name:c.currentTrekSteps[o].name,practice:(r=c.practices.find((function(e){return e.id===c.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:c.currentTrekSteps[o].attachments&&c.currentTrekSteps[o].attachments.length>0&&c.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();c.selectedStepId=e;this.selectedCurrentStepLayer=g.geoJSON(n,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(e.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseout",(function(){if(!i.stepPopupIsOpen){c.selectedTrekId=null;i.removeSelectedCurrentStep()}}));t.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(c.selectedStepId)}));t.on("popupclose",(function(){if(c.selectedStepId){i.stepPopupIsOpen=false;c.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentStep=function(){if(c.selectedStepId){c.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};e.prototype.handleLayersControlEvent=function(){var e=this;var t=this.layersControl._layerControlInputs;t.forEach((function(t){if(e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId})).overlay){t.onchange=function(i){e.userLayersState[t.layerId]=i.target.checked}}}))};e.prototype.removeTrek=function(){var e=this;if(this.layersControl){if(!this.layersControl._layers.some((function(e){return!e.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(e){return e.overlay})).forEach((function(t){e.layersControl.removeLayer(t.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currenttouristicEventsLayer){this.map.removeLayer(this.currenttouristicEventsLayer);this.currenttouristicEventsLayer=null}};e.prototype.showTrekLine=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:return[4,F(e)];case 1:t=n.sent();i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=g.geoJSON(i,{style:function(){return{color:r.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};e.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};e.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.removeSelectedTouristicContent();e={type:"FeatureCollection",features:[]};if(c.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:c.currentTouristicContent.geometry.coordinates},properties:{id:c.currentTouristicContent.id,name:c.currentTouristicContent.name,practice:c.touristicContentCategories.find((function(e){return e.id===c.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(e,"practice")];case 1:t=i.sent();this.currentToutisticContentLayer=g.geoJSON(e,{pointToLayer:function(e,i){return g.marker(i,{icon:g.divIcon({html:t[e.properties.practice]?'<div class="touristic-content-marker-container"><img crossorigin="anonymous "src='.concat(t[e.properties.practice]," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);i.label=2;case 2:this.map.setView([c.currentTouristicContent.geometry.coordinates[1],c.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};e.prototype.addTouristicContents=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s;var l=this;return __generator(this,(function(p){switch(p.label){case 0:c.touristicContentsWithinBounds=c.currentTouristicContents;t=[];i={type:"FeatureCollection",features:[]};if(c.currentTouristicContents){r=function(e){t.push(e.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:c.touristicContentCategories.find((function(t){return t.id===e.category})).pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(n=0,o=c.currentTouristicContents;n<o.length;n++){a=o[n];r(a)}}if(!!this.toutisticContentsLayer)return[3,2];if(t.length>0&&!c.currentMapBounds||e){this.bounds=g.latLngBounds(t.map((function(e){return[e[1],e[0]]})))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}return[4,this.getIcons(i,"practice")];case 1:s=p.sent();this.toutisticContentsLayer=g.geoJSON(i,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:s[e.properties.practice]?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(s[e.properties.practice]," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-content-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-content-button";o.onclick=function(){return l.touristicContentCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){l.addSelectedTouristicContent(e.properties.id,t.latlng)}))}});this.touristicContentsMarkerClusterGroup=g.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return g.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(t.length>0){this.bounds=g.latLngBounds(t.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);p.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};e.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};e.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;return __generator(this,(function(r){switch(r.label){case 0:e={type:"FeatureCollection",features:[]};if(c.currentTouristicEvent){t=c.touristicEventTypes.find((function(e){return e.id===c.currentTouristicEvent.type}));e.features.push({type:"Feature",geometry:{type:"Point",coordinates:c.currentTouristicEvent.geometry.coordinates},properties:{id:c.currentTouristicEvent.id,name:c.currentTouristicEvent.name,type:t?t.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(e,"type")];case 1:i=r.sent();this.currentToutisticEventLayer=g.geoJSON(e,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:i[e.properties.type]?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(i[e.properties.type]," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);r.label=2;case 2:this.map.setView([c.currentTouristicEvent.geometry.coordinates[1],c.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};e.prototype.addSelectedTouristicContent=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(c.touristicContents){n=c.touristicContents.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=c.touristicContentCategories.find((function(e){return e.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();c.selectedTouristicContentId=e;return[4,this.getIcons(r,"category")];case 1:o=s.sent();this.selectedTouristicContentLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:o[e.properties.category]?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(o[e.properties.category]," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-content-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-content-button";o.onclick=function(){return a.touristicContentCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!a.touristicContentPopupIsOpen){c.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}));t.on("popupopen",(function(){a.touristicContentPopupIsOpen=Boolean(c.selectedTouristicContentId)}));t.on("popupclose",(function(){if(c.selectedTouristicContentId){a.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedTouristicContent=function(){c.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};e.prototype.addTouristicEvents=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l;var p=this;return __generator(this,(function(u){switch(u.label){case 0:c.touristicEventsWithinBounds=c.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(c.currentTouristicEvents){n=function(e){i.push(e.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(t=c.touristicEventTypes.find((function(t){return t.id===e.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(o=0,a=c.currentTouristicEvents;o<a.length;o++){s=a[o];n(s)}}if(!!this.touristicEventsLayer)return[3,2];if(i.length>0&&!c.currentMapBounds||e){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}return[4,this.getIcons(r,"type")];case 1:l=u.sent();this.touristicEventsLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:l[e.properties.type]?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(l[e.properties.type]," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-event-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-event-button";o.onclick=function(){return p.touristicEventCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){p.addSelectedTouristicEvent(e.properties.id,t.latlng)}))}});this.touristicEventsMarkerClusterGroup=g.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return g.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);u.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};e.prototype.removeTouristicEvents=function(){if(this.touristicEventsLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};e.prototype.addSelectedTouristicEvent=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(c.touristicEvents){n=c.touristicEvents.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=c.touristicEventTypes.find((function(e){return e.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();c.selectedTouristicEventId=e;return[4,this.getIcons(r,"category")];case 1:o=s.sent();this.selectedTouristicEventLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:o[e.properties.category]?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(o[e.properties.category]," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"selected-touristic-event-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-event-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-event-button";o.onclick=function(){return a.touristicEventCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!a.touristicEventPopupIsOpen){c.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}));t.on("popupopen",(function(){a.touristicEventPopupIsOpen=Boolean(c.selectedTouristicEventId)}));t.on("popupclose",(function(){if(c.selectedTouristicEventId){a.touristicEventPopupIsOpen=false;c.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedTouristicEvent=function(){c.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};e.prototype.render=function(){var e=this;var t=o("".concat("","assets/layers.svg"));var n=o("".concat("","assets/contract.svg"));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(t,")"),"--contract-image-src":"url(".concat(n,")"),"--map-bottom-space-height":this.isLargeView?"0px":"80px"}},i("div",{id:"map",part:"map",class:c.currentTrek?"trek-map":"treks-map",ref:function(t){return e.mapRef=t}}),c.currentTrek&&i("div",null,i("div",{id:"elevation",part:"elevation",ref:function(t){return e.elevationRef=t}}),i("div",{part:"map-bottom-space",class:"map-bottom-space"})),!this.mapIsReady&&i("div",{part:"map-loader-container",class:"map-loader-container"},i("span",{part:"loader",class:"loader"})))};return e}());le.style=se;var ce='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{color:var(--color-on-primary-container);font-size:24px;position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%23777\'><path d=\'M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\'/></svg>");background-size:20px 20px;height:20px;width:20px}';var pe=e("grw_search",function(){function e(e){t(this,e);this.fontFamily="Roboto"}e.prototype.onSearchChange=function(e){c.searchValue=e.target.value;if(c.mode==="treks"){c.currentTreks=p()}else if(c.mode==="touristicContents"){c.currentTouristicContents=h()}else if(c.mode==="touristicEvents"){c.currentTouristicEvents=f()}};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"search"),i("input",{part:"search-input",class:"search-input",onInput:function(t){return e.onSearchChange(t)},type:"search",placeholder:"Rechercher",value:c.searchValue}))};return e}());pe.style=ce;var ue=".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";var de=e("grw_segmented_segment",function(){function e(e){t(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}e.prototype.changeMode=function(e){c.searchValue="";if(e==="treks"&&c.currentTreks){l.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;c.currentTreks=p()}else if(e==="touristicContents"&&c.currentTouristicContents){u.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicContents=h()}else if(e==="touristicEvents"&&c.currentTouristicEvents){d.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicEvents=f()}c.mode=e};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&i("label",{part:"segment",class:"segment".concat(c.mode==="treks"?" selected-segment":""),onClick:function(){return e.changeMode("treks")}},s[c.language].home.segment.treks),this.touristicContents&&i("label",{part:"segment",class:"segment".concat(c.mode==="touristicContents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicContents")}},s[c.language].home.segment.touristicContents),this.touristicEvents&&i("label",{part:"segment",class:"segment".concat(c.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicEvents")}},s[c.language].home.segment.touristicEvents)))};return e}());de.style=ue;var he='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';var fe=e("grw_select_language",function(){function e(e){t(this,e)}e.prototype.handleSelect=function(e){c.treks=null;c.currentTreks=null;c.currentTrek=null;c.language=e.target.value};e.prototype.render=function(){var e=this;return i(r,null,i("span",{part:"select-language-icon",class:"material-symbols material-symbols-outlined icon",translate:false},"translate"),i("select",{part:"select-language-select",onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},c.languages.map((function(e){return i("option",{part:"select-language-option",selected:e===c.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}());fe.style=he;var me='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';var ge=e("grw_switch",function(){function e(e){t(this,e);this.action=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("label",{class:"md3 switch"},i("input",{onChange:function(){return e.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),i("span",{class:"slider"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"done"))))};return e}());ge.style=me;function ve(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=D();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};var a;var s=N();var l;var c=[];function p(e){var t=10;var i=40;var r=800;var n=0;var o=0;var a=0;var s=0;if("detail"in e){o=e.detail}if("wheelDelta"in e){o=-e.wheelDelta/120}if("wheelDeltaY"in e){o=-e.wheelDeltaY/120}if("wheelDeltaX"in e){n=-e.wheelDeltaX/120}if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){n=o;o=0}a=n*t;s=o*t;if("deltaY"in e){s=e.deltaY}if("deltaX"in e){a=e.deltaX}if(e.shiftKey&&!a){a=s;s=0}if((a||s)&&e.deltaMode){if(e.deltaMode===1){a*=i;s*=i}else{a*=r;s*=r}}if(a&&!n){n=a<1?-1:1}if(s&&!o){o=s<1?-1:1}return{spinX:n,spinY:o,pixelX:a,pixelY:s}}function u(){if(!t.enabled)return;t.mouseEntered=true}function d(){if(!t.enabled)return;t.mouseEntered=false}function h(e){if(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&N()-s<t.params.mousewheel.thresholdTime){return false}if(e.delta>=6&&N()-s<60){return true}if(e.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",e.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",e.raw)}s=(new o.Date).getTime();return false}function f(e){var i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges){return true}return false}function m(e){var i=e;var r=true;if(!t.enabled)return;if(e.target.closest(".".concat(t.params.mousewheel.noMousewheelClass)))return;var o=t.params.mousewheel;if(t.params.cssMode){i.preventDefault()}var s=t.el;if(t.params.mousewheel.eventsTarget!=="container"){s=document.querySelector(t.params.mousewheel.eventsTarget)}var u=s&&s.contains(i.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=t.rtlTranslate?-1:1;var g=p(i);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(o.invert)d=-d;var v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();r=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(r&&t.params.nested)i.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){var b={time:N(),delta:Math.abs(d),direction:Math.sign(d),raw:e};if(c.length>=2){c.shift()}var w=c.length?c[c.length-1]:undefined;c.push(b);if(w){if(b.direction!==w.direction||b.delta>w.delta||b.time>w.time+150){h(b)}}else{h(b)}if(f(b)){return true}}else{var y={time:N(),delta:Math.abs(d),direction:Math.sign(d)};var k=l&&y.time<l.time+500&&y.delta<=l.delta&&y.direction===l.direction;if(!k){l=undefined;var _=t.getTranslate()+d*o.sensitivity;var x=t.isBeginning;var A=t.isEnd;if(_>=t.minTranslate())_=t.minTranslate();if(_<=t.maxTranslate())_=t.maxTranslate();t.setTransition(0);t.setTranslate(_);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!x&&t.isBeginning||!A&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:y.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(a);a=undefined;if(c.length>=15){c.shift()}var w=c.length?c[c.length-1]:undefined;var L=c[0];c.push(y);if(w&&(y.delta>w.delta||y.direction!==w.direction)){c.splice(0)}else if(c.length>=15&&y.time-L.time<500&&L.delta-y.delta>=1&&y.delta<=6){var T=d>0?.8:.2;l=y;c.splice(0);a=R((function(){t.slideToClosest(t.params.speed,true,undefined,T)}),0)}if(!a){a=R((function(){var e=.5;l=y;c.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!k)n("scroll",i);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(_===t.minTranslate()||_===t.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(e){var i=t.el;if(t.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(t.params.mousewheel.eventsTarget)}i[e]("mouseenter",u);i[e]("mouseleave",d);i[e]("wheel",m)}function v(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",m);return true}if(t.mousewheel.enabled)return false;g("addEventListener");t.mousewheel.enabled=true;return true}function b(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,m);return true}if(!t.mousewheel.enabled)return false;g("removeEventListener");t.mousewheel.enabled=false;return true}r("init",(function(){if(!t.params.mousewheel.enabled&&t.params.cssMode){b()}if(t.params.mousewheel.enabled)v()}));r("destroy",(function(){if(t.params.cssMode){v()}if(t.mousewheel.enabled)b()}));Object.assign(t.mousewheel,{enable:v,disable:b})}function be(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=G();var a=false;var s=null;var l=null;var c;var p;var u;var d;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});t.scrollbar={el:null,dragEl:null};function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;var e=t.scrollbar,i=t.rtlTranslate;var r=e.dragEl,n=e.el;var o=t.params.scrollbar;var a=t.params.loop?t.progressLoop:t.progress;var l=p;var c=(u-p)*a;if(i){c=-c;if(c>0){l=p-c;c=0}else if(-c+p>u){l=u+c}}else if(c<0){l=p+c;c=0}else if(c+p>u){l=u-c}if(t.isHorizontal()){r.style.transform="translate3d(".concat(c,"px, 0, 0)");r.style.width="".concat(l,"px")}else{r.style.transform="translate3d(0px, ".concat(c,"px, 0)");r.style.height="".concat(l,"px")}if(o.hide){clearTimeout(s);n.style.opacity=1;s=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function f(e){if(!t.params.scrollbar.el||!t.scrollbar.el)return;t.scrollbar.dragEl.style.transitionDuration="".concat(e,"ms")}function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;var e=t.scrollbar;var i=e.dragEl,r=e.el;i.style.width="";i.style.height="";u=t.isHorizontal()?r.offsetWidth:r.offsetHeight;d=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0));if(t.params.scrollbar.dragSize==="auto"){p=u*d}else{p=parseInt(t.params.scrollbar.dragSize,10)}if(t.isHorizontal()){i.style.width="".concat(p,"px")}else{i.style.height="".concat(p,"px")}if(d>=1){r.style.display="none"}else{r.style.display=""}if(t.params.scrollbar.hide){r.style.opacity=0}if(t.params.watchOverflow&&t.enabled){e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}}function g(e){return t.isHorizontal()?e.clientX:e.clientY}function v(e){var i=t.scrollbar,r=t.rtlTranslate;var n=i.el;var o;o=(g(e)-U(n)[t.isHorizontal()?"left":"top"]-(c!==null?c:p/2))/(u-p);o=Math.max(Math.min(o,1),0);if(r){o=1-o}var a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(a);t.setTranslate(a);t.updateActiveIndex();t.updateSlidesClasses()}function b(e){var i=t.params.scrollbar;var r=t.scrollbar,o=t.wrapperEl;var s=r.el,p=r.dragEl;a=true;c=e.target===p?g(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null;e.preventDefault();e.stopPropagation();o.style.transitionDuration="100ms";p.style.transitionDuration="100ms";v(e);clearTimeout(l);s.style.transitionDuration="0ms";if(i.hide){s.style.opacity=1}if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",e)}function w(e){var i=t.scrollbar,r=t.wrapperEl;var o=i.el,s=i.dragEl;if(!a)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;v(e);r.style.transitionDuration="0ms";o.style.transitionDuration="0ms";s.style.transitionDuration="0ms";n("scrollbarDragMove",e)}function y(e){var i=t.params.scrollbar;var r=t.scrollbar,o=t.wrapperEl;var s=r.el;if(!a)return;a=false;if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="";o.style.transitionDuration=""}if(i.hide){clearTimeout(l);l=R((function(){s.style.opacity=0;s.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",e);if(i.snapOnRelease){t.slideToClosest()}}function k(e){var i=t.scrollbar,r=t.params;var n=i.el;if(!n)return;var a=n;var s=r.passiveListeners?{passive:false,capture:false}:false;var l=r.passiveListeners?{passive:true,capture:false}:false;if(!a)return;var c=e==="on"?"addEventListener":"removeEventListener";a[c]("pointerdown",b,s);o[c]("pointermove",w,s);o[c]("pointerup",y,l)}function _(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;k("on")}function x(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;k("off")}function A(){var e=t.scrollbar,i=t.el;t.params.scrollbar=j(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});var r=t.params.scrollbar;if(!r.el)return;var n;if(typeof r.el==="string"&&t.isElement){n=t.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=o.querySelectorAll(r.el)}else if(!n){n=r.el}if(t.params.uniqueNavElements&&typeof r.el==="string"&&n.length>1&&i.querySelectorAll(r.el).length===1){n=i.querySelector(r.el)}if(n.length>0)n=n[0];n.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass);var a;if(n){a=n.querySelector(".".concat(t.params.scrollbar.dragClass));if(!a){a=Z("div",t.params.scrollbar.dragClass);n.append(a)}}Object.assign(e,{el:n,dragEl:a});if(r.draggable){_()}if(n){n.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}function L(){var e=t.params.scrollbar;var i=t.scrollbar.el;if(i){i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass)}x()}r("init",(function(){if(t.params.scrollbar.enabled===false){C()}else{A();m();h()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){h()}));r("setTransition",(function(e,t){f(t)}));r("enable disable",(function(){var e=t.scrollbar.el;if(e){e.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}));r("destroy",(function(){L()}));var T=function(){t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass)}A();m();h()};var C=function(){t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass)}L()};Object.assign(t.scrollbar,{enable:T,disable:C,updateSize:m,setTranslate:h,init:A,destroy:L})}function we(e){var t=e.swiper,i=e.extendParams,r=e.emit,n=e.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){if(t.params.cssMode)return;var e=t.getTranslate();t.setTranslate(e);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function a(){if(t.params.cssMode)return;var e=t.touchEventsData,i=t.touches;if(e.velocities.length===0){e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime})}e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:N()})}function s(e){var i=e.currentPos;if(t.params.cssMode)return;var o=t.params,a=t.wrapperEl,s=t.rtlTranslate,l=t.snapGrid,c=t.touchEventsData;var p=N();var u=p-c.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<l.length){t.slideTo(l.length-1)}else{t.slideTo(t.slides.length-1)}return}if(o.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;t.velocity=f/m;t.velocity/=2;if(Math.abs(t.velocity)<o.freeMode.minimumVelocity){t.velocity=0}if(m>150||N()-d.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=t.velocity*g;var b=t.translate+v;if(s)b=-b;var w=false;var y;var k=Math.abs(t.velocity)*20*o.freeMode.momentumBounceRatio;var _=void 0;if(b<t.maxTranslate()){if(o.freeMode.momentumBounce){if(b+t.maxTranslate()<-k){b=t.maxTranslate()-k}y=t.maxTranslate();w=true;c.allowMomentumBounce=true}else{b=t.maxTranslate()}if(o.loop&&o.centeredSlides)_=true}else if(b>t.minTranslate()){if(o.freeMode.momentumBounce){if(b-t.minTranslate()>k){b=t.minTranslate()+k}y=t.minTranslate();w=true;c.allowMomentumBounce=true}else{b=t.minTranslate()}if(o.loop&&o.centeredSlides)_=true}else if(o.freeMode.sticky){var x=void 0;for(var A=0;A<l.length;A+=1){if(l[A]>-b){x=A;break}}if(Math.abs(l[x]-b)<Math.abs(l[x-1]-b)||t.swipeDirection==="next"){b=l[x]}else{b=l[x-1]}b=-b}if(_){n("transitionEnd",(function(){t.loopFix()}))}if(t.velocity!==0){if(s){g=Math.abs((-b-t.translate)/t.velocity)}else{g=Math.abs((b-t.translate)/t.velocity)}if(o.freeMode.sticky){var L=Math.abs((s?-b:b)-t.translate);var T=t.slidesSizesGrid[t.activeIndex];if(L<T){g=o.speed}else if(L<2*T){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){t.slideToClosest();return}if(o.freeMode.momentumBounce&&w){t.updateProgress(y);t.setTransition(g);t.setTranslate(b);t.transitionStart(true,t.swipeDirection);t.animating=true;H(a,(function(){if(!t||t.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");t.setTransition(o.speed);setTimeout((function(){t.setTranslate(y);H(a,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){r("_freeModeNoMomentumRelease");t.updateProgress(b);t.setTransition(g);t.setTranslate(b);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;H(a,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(b)}t.updateActiveIndex();t.updateSlidesClasses()}else if(o.freeMode.sticky){t.slideToClosest();return}else if(o.freeMode){r("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:s}})}var ye='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';var ke=e("grw_touristic_content_detail",function(){function e(e){t(this,e);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Y(this.swiperImagesRef,{modules:[V,W,Q,we,ve],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.offline=c.currentTouristicContent.offline};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(c.currentTouristicContent.attachments&&c.currentTouristicContent.attachments[0]&&c.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.render=function(){var e=this;var t=o("".concat("","assets/default-image.svg"));var n=c.touristicContentCategories&&c.currentTouristicContent&&c.touristicContentCategories.find((function(e){return e.id===c.currentTouristicContent.category}));var a=c.currentTouristicContent&&c.currentTouristicContent.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"204px":"164px"}},c.currentTouristicContent&&i("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:function(t){return e.touristicContentDetailContainerRef=t}},i("div",{part:"images-container",class:"images-container",ref:function(t){return e.presentationRef=t}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?c.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"close")),i("div",{part:"legend-container",class:"legend-container"},r),i("img",{part:"image",class:"image",crossorigin:"anonymous",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):i("div",{part:"swiper-slide",class:"swiper-slide"},i("img",{part:"default-poi-img",class:"default-poi-img",crossorigin:"anonymous",src:t,loading:"lazy"}))),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),i("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},i("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",crossorigin:"anonymous",src:n.pictogram}),i("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},n.label)),i("div",{part:"name",class:"name"},c.currentTouristicContent.name),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},s[c.language].download),i("div",{part:"links-container",class:"links-container"},i("a",{part:"link-container",class:"link-container",href:"".concat(c.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"download"),i("span",{part:"label",class:""},"PDF")))),c.currentTouristicContent.description_teaser&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"description-teaser",class:"description-teaser",innerHTML:c.currentTouristicContent.description_teaser})),i("div",{part:"divider",class:"divider"}),c.currentTouristicContent.practical_info&&i("div",{part:"description-container",class:"description-container",ref:function(t){return e.descriptionRef=t}},i("div",{part:"description-title",class:"description-title"},s[c.language].description),i("div",{part:"description",class:"description",innerHTML:c.currentTouristicContent.description})),a&&a.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},s[c.language].city," : "),i("div",{part:"cities",class:"cities",innerHTML:a.join(", ")})),c.currentTouristicContent.practical_info&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"useful-information-container",class:"useful-information-container"},i("div",{part:"useful-information-title",class:"useful-information-title"},s[c.language].usefulInformation," : "),i("div",{part:"useful-information",innerHTML:c.currentTouristicContent.practical_info}))),(c.currentTouristicContent.contact||c.currentTouristicContent.email||c.currentTouristicContent.website)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"contact-container",class:"contact-container"},i("div",{part:"contact-title",class:"contact-title"},s[c.language].contact," : "),c.currentTouristicContent.contact&&i("div",{part:"contact",class:"contact",innerHTML:c.currentTouristicContent.contact}),c.currentTouristicContent.email&&i("div",{part:"email-container",class:"email-container"},i("div",{part:"email-title",class:"email-title"},s[c.language].email," : "),i("div",{part:"email",class:"email",innerHTML:c.currentTouristicContent.email})),c.currentTouristicContent.website&&i("div",{part:"website-container",class:"website-container"},i("div",{part:"website-title",class:"website-title"},s[c.language].website," : "),i("div",{part:"website",class:"website",innerHTML:c.currentTouristicContent.website})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());ke.style=ye;function _e(e,t,i,r){return fetch("".concat(e,"touristiccontent/").concat(i,"/?language=").concat(t,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts"),r)}function xe(e,t,i,r){return fetch("".concat(e,"touristiccontent/?language=").concat(t,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}var Ae=e("grw_touristic_content_provider",function(){function e(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicContent()};e.prototype.handleTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,y("touristicContents",this.touristicContentId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTouristicContent(e)}else{this.handleOnlineTouristicContent()}return[2]}}))}))};e.prototype.handleOfflineTouristicContent=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!c.cities)return[3,2];t=c;return[4,_("cities")];case 1:t.cities=r.sent();r.label=2;case 2:if(!!c.touristicContentCategories)return[3,4];i=c;return[4,_("touristicContentCategories")];case 3:i.touristicContentCategories=r.sent();r.label=4;case 4:x(e,A);c.currentTouristicContent=e;return[2]}}))}))};e.prototype.handleOnlineTouristicContent=function(){var e=[];e.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!c.touristicContentCategories?fetch("".concat(c.api,"touristiccontent_category/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[_e(c.api,c.language,this.touristicContentId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];c.networkError=false;if(t){c.cities=t.results}if(i){c.touristicContentCategories=i.results}c.currentTouristicContent=r}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Le='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var Te=e("grw_touristic_contents_list",function(){function e(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(c.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],c.currentTouristicContents.slice(0,this.step),true)}w("currentTouristicContents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.currentTouristicContents){e.touristicContentsToDisplay=__spreadArray([],c.currentTouristicContents.slice(0,e.step),true)}}));w("touristicContentsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.touristicContentsWithinBounds){e.touristicContentsToDisplay=__spreadArray([],c.touristicContentsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<c.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=c.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=c.touristicContentsWithinBounds.length?c.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.touristicContentsWithinBounds&&i("div",{part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(c.touristicContentsWithinBounds.length," ").concat(c.touristicContentsWithinBounds.length>1?s[c.language].home.touristicContents:s[c.language].home.touristicContent)),i("div",{part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(t){return i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:e.fontFamily,key:"touristic-content-".concat(t.id),touristicContent:t,"is-large-view":e.isLargeView,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Te.style=Le;var Ce=e("grw_touristic_contents_provider",function(){function e(e){t(this,e);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}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicContents()};e.prototype.handleTouristicContents=function(){var e="".concat(c.api,"touristiccontent/?language=").concat(c.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var t=[];t.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!c.districts?fetch("".concat(c.api,"district/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!c.touristicContentCategories?fetch("".concat(c.api,"touristiccontent_category/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];c.networkError=false;if(t){c.cities=t.results}if(i){c.districts=i.results}if(r){c.touristicContentCategories=r.results}c.touristicContents=n.results;c.currentTouristicContents=n.results}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Se='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}';var Ee=e("grw_touristic_event_detail",function(){function e(e){t(this,e);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Y(this.swiperImagesRef,{modules:[V,W,Q,we,ve],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.offline=c.currentTouristicEvent.offline};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(c.currentTouristicEvent.attachments&&c.currentTouristicEvent.attachments[0]&&c.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}else{document.exitFullscreen()}}};e.prototype.render=function(){var e=this;var t=o("".concat("","assets/default-image.svg"));var n=c.touristicEventTypes&&c.currentTouristicEvent&&c.touristicEventTypes.find((function(e){return e.id===c.currentTouristicEvent.type}));var a=c.currentTouristicEvent&&c.currentTouristicEvent.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"204px":"164px"}},c.currentTouristicEvent&&i("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:function(t){return e.touristicEventDetailContainerRef=t}},i("div",{part:"images-container",class:"images-container",ref:function(t){return e.presentationRef=t}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).length>0?c.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"icon",translate:false,class:"material-symbols material-symbols-outlined icon"},"close")),i("div",{part:"legend-container",class:"legend-container"},r),i("img",{part:"image",class:"image",crossorigin:"anonymous",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):i("div",{part:"swiper-slide",class:"swiper-slide"},i("img",{part:"default-poi-img",class:"default-poi-img",crossorigin:"anonymous",src:t,loading:"lazy"}))),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),i("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},n&&n.pictogram&&i("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",crossorigin:"anonymous",src:n.pictogram}),n&&n.type&&i("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},n.type)),i("div",{part:"name",class:"name"},c.currentTouristicEvent.name),(c.currentTouristicEvent.begin_date||c.currentTouristicEvent.end_date)&&i("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},c.currentTouristicEvent.begin_date===c.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},s[c.language].date," : ",c.currentTouristicEvent.begin_date),c.currentTouristicEvent.begin_date&&c.currentTouristicEvent.begin_date!==c.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},s[c.language].startDate," : ",c.currentTouristicEvent.begin_date),c.currentTouristicEvent.end_date&&c.currentTouristicEvent.begin_date!==c.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},s[c.language].endDate," : ",c.currentTouristicEvent.end_date)),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},s[c.language].download),i("div",{part:"links-container",class:"links-container"},i("a",{part:"link",class:"link",href:"".concat(c.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"download"),i("span",{part:"label",class:"label"},"PDF")))),c.currentTouristicEvent.description_teaser&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"description-teaser",class:"description-teaser",innerHTML:c.currentTouristicEvent.description_teaser})),i("div",{part:"divider",class:"divider"}),c.currentTouristicEvent.practical_info&&i("div",{part:"description-container",class:"description-container",ref:function(t){return e.descriptionRef=t}},i("div",{part:"description-title",class:"description-title"},s[c.language].description),i("div",{part:"description",class:"description",innerHTML:c.currentTouristicEvent.description})),a&&a.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},s[c.language].city," : "),i("div",{part:"cities",class:"cities",innerHTML:a.join(", ")})),c.currentTouristicEvent.practical_info&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"useful-information-container",class:"useful-information-container"},i("div",{part:"useful-information-title",class:"useful-information-title"},s[c.language].usefulInformation," : "),i("div",{part:"useful-information",class:"useful-information",innerHTML:c.currentTouristicEvent.practical_info}))),(c.currentTouristicEvent.contact||c.currentTouristicEvent.email||c.currentTouristicEvent.website)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"contact-container",class:"contact-container"},i("div",{part:"contact-title",class:"contact-title"},s[c.language].contact," : "),c.currentTouristicEvent.contact&&i("div",{part:"contact",class:"contact",innerHTML:c.currentTouristicEvent.contact}),c.currentTouristicEvent.email&&i("div",{part:"email-container",class:"email-container"},i("div",{part:"email-title",class:"email-title"},s[c.language].email," : "),i("div",{part:"email",class:"email",innerHTML:c.currentTouristicEvent.email})),c.currentTouristicEvent.website&&i("div",{part:"website-container",class:"website-container"},i("div",{part:"website-title",class:"website-title"},s[c.language].website," : "),i("div",{part:"website",class:"website",innerHTML:c.currentTouristicEvent.website})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());Ee.style=Se;function Pe(e,t,i,r){fetch("".concat(e,"touristicevent/").concat(i,"/?language=").concat(t,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true"),r)}function Me(e,t,i,r){return fetch("".concat(e,"touristicevent/?language=").concat(t,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}var ze=e("grw_touristic_event_provider",function(){function e(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicEvent()};e.prototype.handleTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,y("touristicEvents",this.touristicEventId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTouristicEvent(e)}else{this.handleOnlineTouristicEvent()}return[2]}}))}))};e.prototype.handleOfflineTouristicEvent=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!c.cities)return[3,2];t=c;return[4,_("cities")];case 1:t.cities=r.sent();r.label=2;case 2:if(!!c.touristicEventTypes)return[3,4];i=c;return[4,_("touristicEventTypes")];case 3:i.touristicEventTypes=r.sent();r.label=4;case 4:x(e,A);c.currentTouristicEvent=e;return[2]}}))}))};e.prototype.handleOnlineTouristicEvent=function(){var e=[];e.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!c.touristicEventTypes?fetch("".concat(c.api,"touristicevent_type/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[Pe(c.api,c.language,this.touristicEventId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];c.networkError=false;if(t){c.cities=t.results}if(i){c.touristicEventTypes=i.results}c.currentTouristicEvent=r}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Oe='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var Be=e("grw_touristic_events_list",function(){function e(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(c.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],c.currentTouristicEvents.slice(0,this.step),true)}w("currentTouristicEvents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.currentTouristicContents){e.touristicEventsToDisplay=__spreadArray([],c.currentTouristicEvents.slice(0,e.step),true)}}));w("touristicEventsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.touristicEventsWithinBounds){e.touristicEventsToDisplay=__spreadArray([],c.touristicEventsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<c.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=c.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=c.touristicEventsWithinBounds.length?c.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.touristicEventsWithinBounds&&i("div",{part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(c.touristicEventsWithinBounds.length," ").concat(c.touristicEventsWithinBounds.length>1?s[c.language].home.touristicEvents:s[c.language].home.touristicEvent)),i("div",{part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(t){return i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(t.id),touristicEvent:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Be.style=Oe;var Ie=e("grw_touristic_events_provider",function(){function e(e){t(this,e);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}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicEvents()};e.prototype.handleTouristicEvents=function(){var e="".concat(c.api,"touristicevent/?language=").concat(c.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var t=[];t.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!c.districts?fetch("".concat(c.api,"district/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!c.touristicEventTypes?fetch("".concat(c.api,"touristicevent_type/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];c.networkError=false;if(t){c.cities=t.results}if(i){c.districts=i.results}if(r){c.touristicEventTypes=r.results}c.touristicEvents=n.results;c.currentTouristicEvents=n.results}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Fe='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{font-size:24px;width:24px;height:auto;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .material-symbols,.gear-container .material-symbols{font-size:24px;width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width: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}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{font-size:16px}';var De=1;var Re={visible:true,indicator:false,ref:"presentationOptionRef"};var Ne={visible:false,indicator:false,ref:"stepsOptionRef"};var Ge={visible:false,indicator:false,ref:"descriptionOptionRef"};var je={visible:false,indicator:false,ref:"poisOptionRef"};var Ze={visible:false,indicator:false,ref:"recommendationsOptionRef"};var Ue={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var He={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var Ye={visible:false,indicator:false,ref:"accessibilityOptionRef"};var Ve={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var We={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var Qe={presentation:Re,steps:Ne,description:Ge,pois:je,recommendations:Ze,sensitiveArea:Ue,informationPlaces:He,accessibility:Ye,touristicContents:Ve,touristicEvents:We};var Xe=e("grw_trek_detail",function(){function e(e){t(this,e);this.descriptionIsInViewport=n(this,"descriptionIsInViewport",7);this.parkingIsInViewport=n(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=n(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=n(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.stepsIsInViewport=n(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.parentTrekPress=n(this,"parentTrekPress",7);this.trekDownloadConfirm=n(this,"trekDownloadConfirm",7);this.trekDownloadedSuccessConfirm=n(this,"trekDownloadedSuccessConfirm",7);this.trekDeleteConfirm=n(this,"trekDeleteConfirm",7);this.trekDeleteSuccessConfirm=n(this,"trekDeleteSuccessConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.offline=false;this.trek=undefined;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.trekTilesMinZoomOffline=12;this.trekTilesMaxZoomOffline=16}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Y(this.swiperImagesRef,{modules:[V,W,Q,we,ve],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.swiperStep=new Y(this.swiperStepRef,{modules:[we,ve,be],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperPois=new Y(this.swiperPoisRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperInformationDesks=new Y(this.swiperInformationDesksRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperTouristicContents=new Y(this.swiperTouristicContentsRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperTouristicEvents=new Y(this.swiperTouristicEventsRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});if(this.presentationRef){this.presentationObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef){this.stepsObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.stepsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{steps:Object.assign(Object.assign({},e.defaultOptions.steps),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef){this.descriptionObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.descriptionIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{description:Object.assign(Object.assign({},e.defaultOptions.description),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef){this.recommendationsObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{recommendations:Object.assign(Object.assign({},e.defaultOptions.recommendations),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef){this.parkingObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.parkingIsInViewport.emit(i)}),{threshold:De});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef){this.sensitiveAreaObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sensitiveAreaIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{sensitiveArea:Object.assign(Object.assign({},e.defaultOptions.sensitiveArea),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){this.informationPlacesObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{informationPlaces:Object.assign(Object.assign({},e.defaultOptions.informationPlaces),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef){this.accessibilityObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{accessibility:Object.assign(Object.assign({},e.defaultOptions.accessibility),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef){this.poiObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{pois:Object.assign(Object.assign({},e.defaultOptions.pois),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicContents:Object.assign(Object.assign({},e.defaultOptions.touristicContents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicEvents:Object.assign(Object.assign({},e.defaultOptions.touristicEvents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.touristicEventObserver.observe(this.touristicContentsRef)}};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.currentTrek=this.trek?this.trek:c.currentTrek;if(this.currentTrek){this.offline=this.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=c.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=c.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=c.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=c.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=c.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=c.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=c.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(c.accessibilitiesLevel){this.accessibilityLevel=c.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}w("currentTrek",(function(){return __awaiter(e,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.currentTrek=this.trek?this.trek:c.currentTrek;if(this.currentTrek){this.offline=this.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=c.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=c.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=c.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=c.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=c.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=c.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=c.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(c.accessibilitiesLevel){this.accessibilityLevel=c.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}return[2]}))}))}));return[2]}))}))};e.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};e.prototype.handleOptions=function(){var e=this;return Object.assign(Object.assign({},Qe),{presentation:Object.assign({},Re),steps:Object.assign(Object.assign({},Ne),{visible:Boolean(c.parentTrek)}),description:Object.assign(Object.assign({},Ge),{visible:Boolean(this.currentTrek.description)}),pois:Object.assign(Object.assign({},je),{visible:Boolean(c.currentPois&&c.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},Ze),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Ue),{visible:Boolean(c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},He),{visible:Boolean(c.currentInformationDesks&&c.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},Ye),{visible:Boolean(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Ve),{visible:Boolean(c.trekTouristicContents&&c.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},We),{visible:Boolean(c.trekTouristicEvents&&c.trekTouristicEvents.length>0)})})};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.handleIndicatorSelectedTrekOption=function(){var e;var t=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!e&&o<n.length){if(n[o].indicator){e=n[o]}else{if(n[o].visible){t+=1;i+=this[n[o].ref].clientWidth}}o++}if(e&&this[e.ref]){r=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*t-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:e.ref}}};e.prototype.handleScrollTo=function(e){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})};e.prototype.getCurrentStepIndex=function(){var e=this;return c.currentTrekSteps?c.currentTrekSteps.findIndex((function(t){return t.id===e.currentTrek.id})):0};e.prototype.downloadGlobalTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,a,s;return __generator(this,(function(l){switch(l.label){case 0:i=b.tileLayerOffline(e,{attribution:t});r=[];if(c.treks){for(n=0,o=c.treks;n<o.length;n++){a=o[n];r.push(a.departure_geom)}}s=g.latLngBounds(r.map((function(e){return[e[1],e[0]]})));return[4,T(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:l.sent();return[2]}}))}))};e.prototype.downloadTrekTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=b.tileLayerOffline(e,{attribution:t});r=g.latLngBounds(this.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));return[4,T(i,r,this.trekTilesMinZoomOffline,this.trekTilesMaxZoomOffline)];case 1:n.sent();return[2]}}))}))};e.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a,s,l,p,u,d,h,f,m,g,v,v,b,w,v,y,k;var x=this;return __generator(this,(function(L){switch(L.label){case 0:e=new AbortController;t=e.signal;i={cache:"default",signal:t};return[4,_("treks")];case 1:r=L.sent().filter((function(e){return e.offline===true}));if(!!c.treks)return[3,4];return[4,X(c.api,c.language,c.inBboxFromProviders,c.citiesFromProviders,c.districts,c.structuresFromProviders,c.themesFromProviders,c.portalsFromProviders,c.routesFromProviders,c.practicesFromProviders,i)];case 2:o=L.sent();a=c;return[4,o.json()];case 3:a.treks=L.sent().results;L.label=4;case 4:n=c.treks;n=n.filter((function(e){return r.findIndex((function(t){return t.id===e.id}))===-1}));if(!!c.districts)return[3,7];return[4,J(c.api,c.language,i)];case 5:s=L.sent();l=c;return[4,s.json()];case 6:l.districts=L.sent().results;L.label=7;case 7:return[4,C("treks",n)];case 8:L.sent();return[4,C("districts",c.districts)];case 9:L.sent();return[4,S(c.difficulties,A)];case 10:L.sent();return[4,S(c.routes,A)];case 11:L.sent();return[4,S(c.practices,A)];case 12:L.sent();return[4,S(c.themes,A)];case 13:L.sent();return[4,S(c.labels,A)];case 14:L.sent();return[4,S(c.districts,A)];case 15:L.sent();return[4,S(c.sources,A)];case 16:L.sent();return[4,S(c.accessibilities,A)];case 17:L.sent();return[4,S(c.poiTypes,A)];case 18:L.sent();return[4,S(c.currentInformationDesks,A)];case 19:L.sent();return[4,S(c.touristicContentCategories,A)];case 20:L.sent();return[4,S(c.touristicEventTypes,A)];case 21:L.sent();return[4,S(c.networks,A)];case 22:L.sent();return[4,S(this.currentTrek,A,true)];case 23:L.sent();return[4,C("difficulties",c.difficulties)];case 24:L.sent();return[4,C("routes",c.routes)];case 25:L.sent();return[4,C("practices",c.practices.map((function(e){return Object.assign(Object.assign({},e),{selected:false})})))];case 26:L.sent();return[4,C("themes",c.themes)];case 27:L.sent();return[4,C("cities",c.cities)];case 28:L.sent();return[4,C("accessibilities",c.accessibilities)];case 29:L.sent();return[4,C("ratings",c.ratings)];case 30:L.sent();return[4,C("ratingsScale",c.ratingsScale)];case 31:L.sent();return[4,C("sensitiveAreas",c.currentSensitiveAreas)];case 32:L.sent();return[4,C("labels",c.labels)];case 33:L.sent();return[4,C("sources",c.sources)];case 34:L.sent();return[4,C("accessibilitiesLevel",c.accessibilitiesLevel)];case 35:L.sent();return[4,C("touristicContentCategories",c.touristicContentCategories)];case 36:L.sent();return[4,C("touristicEvents",c.trekTouristicEvents)];case 37:L.sent();return[4,C("touristicEventTypes",c.touristicEventTypes)];case 38:L.sent();return[4,C("networks",c.networks)];case 39:L.sent();return[4,C("pois",c.currentPois)];case 40:L.sent();return[4,C("poiTypes",c.poiTypes)];case 41:L.sent();return[4,C("informationDesks",c.currentInformationDesks)];case 42:L.sent();return[4,C("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true})])];case 43:L.sent();return[4,S(c.currentPois,A,true)];case 44:L.sent();return[4,S(c.currentInformationDesks,A,true)];case 45:L.sent();return[4,S(c.trekTouristicContents,A,true)];case 46:L.sent();c.trekTouristicContents.forEach((function(e){e.offline=true}));return[4,C("touristicContents",c.trekTouristicContents)];case 47:L.sent();return[4,S(c.trekTouristicEvents,A,true)];case 48:L.sent();c.trekTouristicEvents.forEach((function(e){e.offline=true}));return[4,C("touristicEvents",c.trekTouristicEvents)];case 49:L.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,71];p=[];p.push.apply(p,this.currentTrek.children);u=[];d=[];h=[];p.forEach((function(e){u.push(q(c.api,c.language,e,i));d.push(xe(c.api,c.language,e,i));h.push(Me(c.api,c.language,e,i))}));return[4,Promise.all(__spreadArray([],u,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 50:f=L.sent();return[4,Promise.all(__spreadArray([],d,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 51:m=L.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 52:g=L.sent();v=0;L.label=53;case 53:if(!(v<f.length))return[3,57];f[v].offline=true;return[4,C("treks",[f[v]])];case 54:L.sent();return[4,S(f[v],A,true)];case 55:L.sent();L.label=56;case 56:v++;return[3,53];case 57:v=0;L.label=58;case 58:if(!(v<m.length))return[3,64];b=m[v];w=0;L.label=59;case 59:if(!(w<b.results.length))return[3,63];b.results[w].offline=true;return[4,C("touristicContents",[b.results[w]])];case 60:L.sent();return[4,S(b.results[w],A,true)];case 61:L.sent();L.label=62;case 62:w++;return[3,59];case 63:v++;return[3,58];case 64:v=0;L.label=65;case 65:if(!(v<g.length))return[3,71];y=g[v];k=0;L.label=66;case 66:if(!(k<y.results.length))return[3,70];y[k].offline=true;return[4,C("touristicEvents",[y[k]])];case 67:L.sent();return[4,S(y[k],A,true)];case 68:L.sent();L.label=69;case 69:k++;return[3,66];case 70:v++;return[3,65];case 71:c.treks.find((function(e){return e.id===x.currentTrek.id})).offline=true;if(!c.currentTreks){c.currentTreks=c.treks}c.currentTreks.find((function(e){return e.id===x.currentTrek.id})).offline=true;this.swiperImages.slideTo(0);this.offline=true;this.trekDownloadedSuccessConfirm.emit();return[2]}}))}))};e.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r;var n=this;return __generator(this,(function(o){switch(o.label){case 0:e=[];return[4,y("treks",this.currentTrek.id)];case 1:t=o.sent();this.deleteOfflineTrekProperties(t);e.push(t);if(!(this.currentTrek.children.length>0))return[3,5];i=0;o.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,y("treks",this.currentTrek.children[i])];case 3:r=o.sent();this.deleteOfflineTrekProperties(r);e.push(r);o.label=4;case 4:i++;return[3,2];case 5:return[4,C("treks",e)];case 6:o.sent();if(c.treks){delete c.treks.find((function(e){return e.id===n.currentTrek.id})).offline;if(!c.currentTreks){c.currentTreks=c.treks}delete c.currentTreks.find((function(e){return e.id===n.currentTrek.id})).offline}if(c.parentTrek){delete c.parentTrek.offline}if(c.currentTrekSteps){c.currentTrekSteps.forEach((function(e){delete e.offline}))}this.offline=false;this.trekDeleteSuccessConfirm.emit();return[2]}}))}))};e.prototype.displayTrekDownloadModal=function(){this.trekDownloadConfirm.emit()};e.prototype.displayTrekDeleteModal=function(){this.trekDeleteConfirm.emit()};e.prototype.onTrekDownloadPress=function(){this.downloadTrek()};e.prototype.onTrekDeletePress=function(){this.deleteTrek()};e.prototype.deleteOfflineTrekProperties=function(e){delete e.descent;delete e.geometry;delete e.gpx;delete e.kml;delete e.pdf;delete e.parking_location;delete e.arrival;delete e.ambiance;delete e.access;delete e.public_transport;delete e.advice;delete e.advised_parking;delete e.gear;delete e.source;delete e.points_reference;delete e.disabled_infrastructure;delete e.accessibility_level;delete e.accessibility_slope;delete e.accessibility_width;delete e.accessibility_signage;delete e.accessibility_covering;delete e.accessibility_exposure;delete e.accessibility_advice;delete e.ratings;delete e.ratings_description;delete e.children;delete e.networks;delete e.web_links;delete e.update_datetime;delete e.offline};e.prototype.render=function(){var e=this;var t,n,a,l,p;var u=o("".concat("","assets/default-image.svg"));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"244px":"204px"}},this.currentTrek&&i("div",{part:"trek-options",class:"trek-options"},i("a",{part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(t){return e.presentationOptionRef=t},onClick:function(){return e.handleScrollTo(e.presentationRef)}},s[c.language].options.presentation),this.options.steps.visible&&i("a",{part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(t){return e.stepsOptionRef=t},onClick:function(){return e.handleScrollTo(e.stepsRef)}},s[c.language].options.steps),this.options.description.visible&&i("a",{part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(t){return e.descriptionOptionRef=t},onClick:function(){return e.handleScrollTo(e.descriptionRef)}},s[c.language].options.description),this.options.pois.visible&&i("a",{part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(t){return e.poisOptionRef=t},onClick:function(){return e.handleScrollTo(e.poiRef)}},s[c.language].options.pois),this.options.recommendations.visible&&i("a",{part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(t){return e.recommendationsOptionRef=t},onClick:function(){return e.handleScrollTo(e.recommendationRef)}},s[c.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(t){return e.sensitiveAreaOptionRef=t},onClick:function(){return e.handleScrollTo(e.sensitiveAreaRef)}},s[c.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(t){return e.informationPlacesOptionRef=t},onClick:function(){return e.handleScrollTo(e.informationPlacesRef)}},s[c.language].options.informationPlaces),this.options.accessibility.visible&&i("a",{part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(t){return e.accessibilityOptionRef=t},onClick:function(){return e.handleScrollTo(e.accessibilityRef)}},s[c.language].options.accessibility),this.options.touristicContents.visible&&i("a",{part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(t){return e.touristicContentsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicContentsRef)}},s[c.language].options.touristicContents),this.options.touristicEvents.visible&&i("a",{part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(t){return e.touristicEventsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicEventsRef)}},s[c.language].options.touristicEvents),this.presentationOptionRef&&i("span",{part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&i("div",{part:"trek-detail-container",class:"trek-detail-container",ref:function(t){return e.trekDetailContainerRef=t}},i("div",{part:"trek-images",class:"trek-images-container",ref:function(t){return e.presentationRef=t}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0?this.currentTrek.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon material-symbols material-symbols-outlined",translate:false},"close")),i("div",{part:"trek-image-legend",class:"trek-image-legend"},r),i("img",{part:"trek-img",class:"trek-img",crossorigin:"anonymous",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()},onerror:function(e){e.target.onerror=null;e.target.className="trek-img default-trek-img";e.target.src=u}}))})):i("img",{part:"trek-img",class:"trek-img default-trek-img",crossorigin:"anonymous",src:u,loading:"lazy"})),i("div",{style:{display:this.offline?"none":"flex"}},i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}})))),i("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&i("div",{part:"themes-container",class:"themes-container"},this.themes.map((function(e){return i("div",{part:"theme",class:"theme"},e.label)}))),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&i("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:this.difficulty.pictogram}),i("span",{part:"label",class:"label"},this.difficulty.label)),i("div",{part:"icon-label",class:"icon-label duration"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"timelapse"),i("span",{part:"label",class:"label"},E((t=this.currentTrek)===null||t===void 0?void 0:t.duration))),i("div",{part:"icon-label",class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:this.route.pictogram}),i("span",{part:"label",class:"label"},(a=this.route)===null||a===void 0?void 0:a.route)),i("div",{part:"icon-label",class:"icon-label length"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"open_in_full"),i("span",{part:"label",class:"label"},P(this.currentTrek.length_2d))),this.currentTrek.ascent&&i("div",{part:"icon-label",class:"icon-label ascent"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"moving"),i("span",{part:"label",class:"label"},M(this.currentTrek.ascent))),this.currentTrek.descent&&i("div",{part:"icon-label",class:"icon-label descent"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"moving"),i("span",{part:"label",class:"label"},z(this.currentTrek.descent))),i("div",{part:"icon-label",class:"icon-label practice"},((l=this.practice)===null||l===void 0?void 0:l.pictogram)&&i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:this.practice.pictogram}),i("span",{part:"label",class:"label"},(p=this.practice)===null||p===void 0?void 0:p.name)),i("div",{part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((function(e){var t=c.networks.find((function(t){return t.id===e}));return i("div",{part:"network",class:"network"},i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:t.pictogram}),i("span",{part:"label",class:"label"},t.label))}))),this.currentTrek.ratings.map((function(e){return i("div",{part:"row",class:"row"},"".concat(c.ratingsScale.find((function(t){return t.id===c.ratings.find((function(t){return t.id===e})).scale})).name," : ").concat(c.ratings.find((function(t){return t.id===e})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&i("div",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},s[c.language].downloads),this.enableOffline&&!this.offline&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return e.displayTrekDownloadModal()}},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download_for_offline"),i("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return e.displayTrekDeleteModal()}},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"delete"),i("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download"),i("span",{part:"label",class:"label"},"GPX")),i("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download"),i("span",{part:"label",class:"label"},"KML")),i("a",{href:"".concat(this.currentTrek.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download"),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&i("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),c.parentTrekId&&c.parentTrek&&this.currentTrek.id!==c.parentTrekId&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"parent-trek-container",class:"parent-trek-container"},i("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return e.parentTrekPress.emit(c.parentTrekId)}},i("div",null,"<"),c.parentTrek.name))),c.currentTrekSteps&&i("div",{part:"step-container",class:"step-container"},i("div",{part:"step-title",class:"step-title",ref:function(t){return e.stepsRef=t}},"".concat(c.currentTrekSteps.length," ").concat(s[c.language].steps)),i("div",{part:"swiper-step",class:"swiper swiper-step",ref:function(t){return e.swiperStepRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTrekSteps&&c.currentTrekSteps.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(t.id),trek:t,"is-large-view":false,"is-step":true,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.stepSwiperScrollbar=t}}))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(t){return e.descriptionRef=t}},s[c.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},s[c.language].departure," : "),i("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{part:"arrival-container",class:"arrival-container"},i("div",{part:"arrival-title",class:"arrival-title"},s[c.language].arrival," : "),i("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},s[c.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.cities.join(", ")})),c.currentPois&&c.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(t){return e.poiRef=t}},s[c.language].pois(c.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentPois.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.poisSwiperScrollbar=t}})))),this.weather&&this.currentTrek.departure_city&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"access-container",class:"access-container"},i("div",{part:"access-title",class:"access-title"},s[c.language].roadAccessAndParking),i("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&i("div",null,i("div",{part:"advised-parking-title",class:"advised-parking-title",ref:function(t){return e.parkingRef=t}},s[c.language].recommendedParking),i("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"public-transport-container",class:"public-transport-container"},i("div",{part:"public-transport-title",class:"public-transport-title"},s[c.language].transport),i("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(t){return e.recommendationRef=t}},s[c.language].recommendations),this.currentTrek.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"warning"),i("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&i("div",{part:"gear-container",class:"gear-container"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"backpack"),i("div",{part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(e){return i("div",{part:"label-container",class:"label-container"},i("div",{part:"label-sub-container",class:"label-sub-container"},e.pictogram&&i("img",{crossorigin:"anonymous",src:e.pictogram}),i("div",{part:"label-name",class:"label-name",innerHTML:e.name})),i("div",{part:"label-advice",class:"label-advice",innerHTML:e.advice}))})))),c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},i("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(t){return e.sensitiveAreaRef=t}},s[c.language].environmentalSensitiveAreas),i("div",{part:"sensitive-areas-description",class:"sensitive-areas-description"},s[c.language].sensitiveAreasDescription),c.currentSensitiveAreas.map((function(e){return i("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value",sensitiveArea:e})})))),c.currentInformationDesks&&c.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"information-desks-container",class:"information-desks-container"},i("div",{part:"information-desks-title",class:"information-desks-title",ref:function(t){return e.informationPlacesRef=t}},s[c.language].informationPlaces),i("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.informationDesksContentsSwiperScrollbar=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||this.emergencyNumber)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilities-title",class:"accessibilities-title",ref:function(t){return e.accessibilityRef=t}},s[c.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&i("div",{part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(e){return i("div",{part:"accessibility-content-container",class:"accessibility-content-container"},i("img",{crossorigin:"anonymous",src:e.pictogram}),i("div",{part:"accessibility-name",innerHTML:e.name}))}))),this.emergencyNumber&&i("div",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},i("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},s[c.language].emergencyNumber),i("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},i("a",{href:"tel:".concat(this.emergencyNumber.toString())},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"call"),i("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&i("div",{part:"accessibility-level-container",class:"accessibility-level-container"},i("div",{part:"accessibility-level-title",class:"accessibility-level-title"},s[c.language].accessibilityLevel),i("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},i("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},s[c.language].accessibilitySlope),i("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{part:"accessibility-width-container",class:"accessibility-width-container"},i("div",{part:"accessibility-width-title",class:"accessibility-width-title"},s[c.language].accessibilityWidth),i("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},i("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},s[c.language].accessibilitySignage),i("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},i("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},s[c.language].accessibilityCovering),i("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},i("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},s[c.language].accessibilityExposure),i("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},i("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},s[c.language].accessibilityAdvices),i("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),c.trekTouristicContents&&c.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(t){return e.touristicContentsRef=t}},s[c.language].touristicContents(c.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicContents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:e.fontFamily,touristicContent:t,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicContentsSwiperScrollbar=t}})))),c.trekTouristicEvents&&c.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(t){return e.touristicEventsRef=t}},s[c.language].touristicEvents(c.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicEvents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:e.fontFamily,touristicEvent:t}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicEventsSwiperScrollbar=t}})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weblinks-container",class:"weblinks-container"},i("div",{part:"weblinks-title",class:"weblinks-title"},s[c.language].learnMore),this.currentTrek.web_links.map((function(e){return i("a",{part:"weblink-container",class:"weblink-container",href:e.url,target:"_blank",rel:"noopener noreferrer"},e.category&&e.category.pictogram&&i("img",{crossorigin:"anonymous",src:e.category.pictogram}),e.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"source-container",class:"source-container"},i("div",{part:"source-title",class:"source-title"},s[c.language].sources),this.sources.map((function(e){return i("div",{part:"source-sub-container",class:"source-sub-container"},e.pictogram&&i("img",{crossorigin:"anonymous",src:e.pictogram}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:e.name}),i("a",{part:"source-advice",class:"source-advice",href:e.website,innerHTML:e.website})))})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());Xe.style=Fe;var Je=e("grw_trek_provider",function(){function e(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;c.routesFromProviders=this.routes;c.practicesFromProviders=this.practices;this.handleTrek()};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,y("treks",this.trekId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTrek(e)}else{this.handleOnlineTrek()}return[2]}}))}))};e.prototype.handleOfflineTrek=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l,p,u,d,h,f,m,g,v,b,w,k,L,T,C,S,E;return __generator(this,(function(P){switch(P.label){case 0:if(!(e&&e.children.length>0||c.parentTrekId))return[3,5];t=[];if(!(e.children.length>0))return[3,1];c.parentTrekId=e.id;c.parentTrek=e;t.push.apply(t,e.children);return[3,3];case 1:return[4,y("treks",c.parentTrekId)];case 2:i=P.sent();c.parentTrek=i;t.push.apply(t,i.children);P.label=3;case 3:r=[];t.forEach((function(e){r.push(y("treks",e))}));n=c;return[4,Promise.all(__spreadArray([],r,true)).then((function(e){return e}))];case 4:n.currentTrekSteps=P.sent();P.label=5;case 5:if(!!c.difficulties)return[3,7];return[4,_("difficulties")];case 6:o=P.sent();x(o,A);c.difficulties=o;P.label=7;case 7:if(!!c.routes)return[3,9];a=c;return[4,_("routes")];case 8:a.routes=P.sent();P.label=9;case 9:if(!!c.practices)return[3,11];s=c;return[4,_("practices")];case 10:s.practices=P.sent();P.label=11;case 11:if(!!c.themes)return[3,13];l=c;return[4,_("themes")];case 12:l.themes=P.sent();P.label=13;case 13:if(!!c.cities)return[3,15];p=c;return[4,_("cities")];case 14:p.cities=P.sent();P.label=15;case 15:if(!!c.accessibilities)return[3,17];u=c;return[4,_("accessibilities")];case 16:u.accessibilities=P.sent();P.label=17;case 17:if(!!c.ratings)return[3,19];d=c;return[4,_("ratings")];case 18:d.ratings=P.sent();P.label=19;case 19:if(!!c.ratingsScale)return[3,21];h=c;return[4,_("ratingsScale")];case 20:h.ratingsScale=P.sent();P.label=21;case 21:if(!!c.currentSensitiveAreas)return[3,23];f=c;return[4,_("sensitiveAreas")];case 22:f.currentSensitiveAreas=P.sent();P.label=23;case 23:if(!!c.labels)return[3,25];m=c;return[4,_("labels")];case 24:m.labels=P.sent();P.label=25;case 25:if(!!c.sources)return[3,27];g=c;return[4,_("sources")];case 26:g.sources=P.sent();P.label=27;case 27:if(!!c.accessibilitiesLevel)return[3,29];v=c;return[4,_("accessibilitiesLevel")];case 28:v.accessibilitiesLevel=P.sent();P.label=29;case 29:if(!!c.trekTouristicContents)return[3,31];return[4,_("touristicContents")];case 30:b=P.sent();x(b,A);c.trekTouristicContents=b;P.label=31;case 31:if(!!c.touristicContentCategories)return[3,33];w=c;return[4,_("touristicContentCategories")];case 32:w.touristicContentCategories=P.sent();P.label=33;case 33:if(!!c.trekTouristicEvents)return[3,35];k=c;return[4,_("touristicEvents")];case 34:k.trekTouristicEvents=P.sent();P.label=35;case 35:if(!!c.touristicEventTypes)return[3,37];L=c;return[4,_("touristicEventTypes")];case 36:L.touristicEventTypes=P.sent();P.label=37;case 37:if(!!c.networks)return[3,39];T=c;return[4,_("networks")];case 38:T.networks=P.sent();P.label=39;case 39:if(!!c.currentPois)return[3,41];return[4,_("pois")];case 40:C=P.sent();x(C,A);c.currentPois=C;P.label=41;case 41:if(!!c.poiTypes)return[3,43];S=c;return[4,_("poiTypes")];case 42:S.poiTypes=P.sent();P.label=43;case 43:if(!!c.currentInformationDesks)return[3,45];E=c;return[4,_("informationDesks")];case 44:E.currentInformationDesks=P.sent();P.label=45;case 45:x(e,A);c.currentTrek=e;return[2]}}))}))};e.prototype.handleOnlineTrek=function(){var e=this;var t=[];t.push(!c.difficulties?fetch("".concat(c.api,"trek_difficulty/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!c.routes?fetch("".concat(c.api,"trek_route/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));t.push(!c.practices?fetch("".concat(c.api,"trek_practice/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!c.themes?fetch("".concat(c.api,"theme/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!c.accessibilities?fetch("".concat(c.api,"trek_accessibility/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!c.ratings?fetch("".concat(c.api,"trek_rating/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));t.push(!c.ratings?fetch("".concat(c.api,"trek_ratingscale/?language=").concat(c.language,"&fields=id,name"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(c.language,"&published=true&trek=").concat(this.trekId,"&period=ignore&fields=id,geometry,name,description,contact,info_url,period,practices"),this.init).then((function(e){if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(c.api,"label/?language=").concat(c.language,"&fields=id,name,advice,pictogram"),this.init),fetch("".concat(c.api,"source/?language=").concat(c.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(c.api,"trek_accessibility_level/?language=").concat(c.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(c.api,"poi/?language=").concat(c.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(c.api,"poi_type/?language=").concat(c.language,"&fields=id,pictogram"),this.init),fetch("".concat(c.api,"informationdesk/?language=").concat(c.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),xe(c.api,c.language,this.trekId,this.init),fetch("".concat(c.api,"touristiccontent_category/?language=").concat(c.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),Me(c.api,c.language,this.trekId,this.init),fetch("".concat(c.api,"touristicevent_type/?language=").concat(c.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(c.api,"trek_network/?language=").concat(c.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),q(c.api,c.language,this.trekId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],l=t[6],p=t[7],u=t[8],d=t[9],h=t[10],f=t[11],m=t[12],g=t[13],v=t[14],b=t[15],w=t[16],y=t[17],k=t[18],_=t[19],x=t[20];return __awaiter(e,void 0,void 0,(function(){var e,t,A,L;var T=this;return __generator(this,(function(C){switch(C.label){case 0:c.networkError=false;if(!(x&&x.children.length>0||c.parentTrekId))return[3,5];e=[];if(!(x.children.length>0))return[3,1];c.parentTrekId=x.id;c.parentTrek=x;e.push.apply(e,x.children);return[3,3];case 1:return[4,fetch("".concat(c.api,"trek/").concat(c.parentTrekId,"/?language=").concat(c.language,"&published=true&fields=name,children")).then((function(e){return e.json()}))];case 2:t=C.sent();c.parentTrek=t;e.push.apply(e,t.children);C.label=3;case 3:A=[];e.forEach((function(e){A.push(q(c.api,c.language,e,T.init))}));L=c;return[4,Promise.all(__spreadArray([],A,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 4:L.currentTrekSteps=C.sent();C.label=5;case 5:if(i){c.difficulties=i.results}if(r){c.routes=r.results}if(n){c.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}))}if(o){c.themes=o.results}if(a){c.cities=a.results}if(s){c.accessibilities=s.results}if(l){c.ratings=l.results}if(p){c.ratingsScale=p.results}if(u){c.currentSensitiveAreas=u.results}if(d){c.labels=d.results}if(h){c.sources=h.results}if(f){c.accessibilitiesLevel=f.results}if(b){c.trekTouristicContents=b.results}if(w){c.touristicContentCategories=w.results}if(y){c.trekTouristicEvents=y.results}if(k){c.touristicEventTypes=k.results}if(_){c.networks=_.results}if(m){c.currentPois=m.results}if(g){c.poiTypes=g.results}if(v){c.currentInformationDesks=v.results}if(x){c.currentTrek=x}return[2]}}))}))}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.render=function(){return i(r,null)};return e}());var qe='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var Ke=e("grw_treks_list",function(){function e(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(c.currentTreks){this.treksToDisplay=__spreadArray([],c.currentTreks.slice(0,this.step),true)}w("currentTreks",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.currentTreks){e.treksToDisplay=__spreadArray([],c.currentTreks.slice(0,e.step),true)}}));w("treksWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.treksWithinBounds){e.treksToDisplay=__spreadArray([],c.treksWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<c.treksWithinBounds.length){this.treksToDisplay=c.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=c.treksWithinBounds.length?c.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.treksWithinBounds.length," ").concat(c.treksWithinBounds.length>1?s[c.language].treks:s[c.language].trek)),i("div",{part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(t){return i("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(t.id),trek:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Ke.style=qe;var $e=e("grw_treks_provider",function(){function e(e){t(this,e);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}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;c.routesFromProviders=this.routes;c.practicesFromProviders=this.practices;this.handleTreks()};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleOnlineTreks();return[2]}))}))};e.prototype.handleOfflineTreks=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l;return __generator(this,(function(p){switch(p.label){case 0:if(!!c.difficulties)return[3,2];t=c;return[4,_("difficulties")];case 1:t.difficulties=p.sent();p.label=2;case 2:if(!!c.routes)return[3,4];i=c;return[4,_("routes")];case 3:i.routes=p.sent();p.label=4;case 4:if(!!c.practices)return[3,6];r=c;return[4,_("practices")];case 5:r.practices=p.sent();p.label=6;case 6:if(!!c.themes)return[3,8];n=c;return[4,_("themes")];case 7:n.themes=p.sent();p.label=8;case 8:if(!!c.cities)return[3,10];o=c;return[4,_("cities")];case 9:o.cities=p.sent();p.label=10;case 10:if(!!c.accessibilities)return[3,12];a=c;return[4,_("accessibilities")];case 11:a.accessibilities=p.sent();p.label=12;case 12:if(!!c.labels)return[3,14];s=c;return[4,_("labels")];case 13:s.labels=p.sent();p.label=14;case 14:if(!!c.districts)return[3,16];l=c;return[4,_("districts")];case 15:l.districts=p.sent();p.label=16;case 16:if(!c.durations){c.durations=O}if(!c.lengths){c.lengths=B}if(!c.elevations){c.elevations=I}this.sortTreks(e);c.treks=e;c.currentTreks=e;return[2]}}))}))};e.prototype.sortTreks=function(e){e.sort((function(e,t){return e.name.localeCompare(t.name,undefined,{numeric:true,sensitivity:"base"})}))};e.prototype.handleOnlineTreks=function(){var e=this;Promise.all([fetch("".concat(c.api,"trek_difficulty/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(c.api,"trek_route/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(c.api,"trek_practice/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(c.api,"theme/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(c.api,"trek_accessibility/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(c.api,"label/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram,filter&published=true&page_size=999"),this.init),J(c.api,c.language,this.init),X(this.api,c.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.init)]).then((function(e){e.forEach((function(e){if(e.status!==200){throw new Error("network error")}}));return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],l=t[6],p=t[7],u=t[8];return __awaiter(e,void 0,void 0,(function(){var e,t,d;return __generator(this,(function(h){switch(h.label){case 0:c.networkError=false;c.difficulties=i.results;c.routes=r.results;c.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}));c.themes=o.results;c.cities=a.results;c.accessibilities=s.results;c.labels=l.results;c.districts=p.results;c.durations=O;c.lengths=B;c.elevations=I;e=[];t=0;h.label=1;case 1:if(!(t<u.results.length))return[3,4];return[4,K(u.results[t].id)];case 2:d=h.sent();e.push(Object.assign(Object.assign({},u.results[t]),{offline:d}));h.label=3;case 3:t++;return[3,1];case 4:c.treks=e;c.currentTreks=e;return[2]}}))}))})).catch((function(){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,_("treks")];case 1:e=t.sent();if(e&&e.length>0){this.handleOfflineTreks(e)}else{c.networkError=true}return[2]}}))}))}))};e.prototype.render=function(){return i(r,null)};return e}())}}}));
11
- //# sourceMappingURL=p-05f3277d.system.entry.js.map
10
+ this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(e){this._marker&&this._marker.update({map:this._map,item:e,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:o.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&!0!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var e=this.options;return e.width-e.margins.left-e.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});J.addInitHook((function(){var e=this,t=this.options,i={};t.imperial?(t.distanceFactor=this.__mileFactor,i.label="mi"):(t.distanceFactor=t.distanceFactor||1,i.label=t.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=e._data[i].latlng.distanceTo(e._data[i>0?i-1:i].latlng)*t.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(t){return e.track_info.distance=e.track_info.distance||0,e.track_info.distance+=t,e.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return e._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(e){return L._("x: ")+d3.format("."+t.decimalsX+"f")(e[t.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(e){return(e.distance||0).toFixed(2)+"&nbsp;"+i.label},order:10}})})),J.addInitHook((function(){var e=this,t=this.options,i={};i.label=t.timeLabel||"t",t.timeFactor=t.timeFactor||3600,this._timeAVGSpeed=(t.timeAVGSpeed||3.6)*(t.speedFactor||1),t.timeFormat?"time"==t.timeFormat?t.timeFormat=function(e){return new Date(e).toLocaleTimeString()}:"date"==t.timeFormat&&(t.timeFormat=function(e){return new Date(e).toLocaleDateString()}):t.timeFormat=function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")},t.xTimeFormat=t.xTimeFormat||function(e){return n(e).split("'")[0]},this._registerDataAttribute({name:"time",init:function(e){var t=e.point,i=e.props,r=e.id;i&&("coordTimes"in i?t.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?t.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(t.meta.time=new Date(Date.parse("object"===Y(i.time)?i.time[r]:i.time))))},fetch:function(e,t){if(!t.meta||!t.meta.time)if(t.meta=t.meta||{},e>0){var i=this._data[e].dist-this._data[e-1].dist,r=this._data[e-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;t.meta.time=new Date(r+n)}else t.meta.time=new Date(Date.now());var o=t.meta.time;return o.getTime()-60*o.getTimezoneOffset()*1e3==0&&(o=0),o},update:function(e,t){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[t].time-this._data[t>0?t-1:t].time),this._data[t].duration=this.track_info.time,e}}),t.time&&"summary"!=t.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return e._width()},name:"time",tickFormat:function(e){return 0==e?"":t.xTimeFormat(e)},onAxisMount:function(t){t.select(".domain").remove(),t.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),t.selectAll(".tick line").attr("y2",e._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(t){return L._("t: ")+e.options.timeFormat(t.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(e){return L._("T: ")+n(e.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(e){return n(e.time||0)},order:20}}))})),J.addInitHook((function(){var e=this,t=this.options,i={},r=t.theme.replace("-theme",""),n=E[r]||{};t.imperial?(t.altitudeFactor=this.__footFactor,i.label="ft"):(t.altitudeFactor=t.heightFactor||t.altitudeFactor||1,i.label=t.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(e){var t=e.point;"alt"in t&&(t.meta.ele=t.alt)},fetch:function(i){return e._data[i].z*t.altitudeFactor},update:function(t,i){e.track_info.elevation_max=e.track_info.elevation_max||-1/0,e.track_info.elevation_min=e.track_info.elevation_max||1/0,e.track_info.elevation_avg=e.track_info.elevation_avg||0;var r=e._data,n=e.track_info;if(e.options.altitudeDeltaMax){var o=t-r[i>0?i-1:i].z,a=e.options.altitudeDeltaMax;Math.abs(o)>a&&(t=r[i-1].z+a*Math.sign(o))}return(t=l(t,e.options.altitudeRange))>n.elevation_max&&(n.elevation_max=t),t<n.elevation_min&&(n.elevation_min=t),n.elevation_avg=(t+n.elevation_avg)/2,t}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||r,strokeColor:t.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:t.detached?n.alpha||"0.8":1,preferCanvas:t.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(e){return L._("y: ")+d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},marker:function(e){return d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(e){return(e.elevation_max||0).toFixed(2)+"&nbsp;"+i.label},order:30},minele:{label:"Min Elevation: ",value:function(e){return(e.elevation_min||0).toFixed(2)+"&nbsp;"+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(e){return(e.elevation_avg||0).toFixed(2)+"&nbsp;"+i.label},order:30}})})),J.addInitHook((function(){var e=this;if(this.options.slope){var t=this.options,i={};i.label=t.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(t){var i=e._data,r=1e3*(i[t].dist-i[t>0?t-1:t].dist),n=i[t].z-i[t>0?t-1:t].z;return isNaN(n)||0===r?0:n/r*100},update:function(t,i){e.track_info.ascent=e.track_info.ascent||0,e.track_info.descent=e.track_info.descent||0,e.track_info.slope_max=e.track_info.slope_max||-1/0,e.track_info.slope_min=e.track_info.slope_min||1/0,e.track_info.slope_avg=e.track_info.slope_avg||0;var r=e.track_info,n=e._data,o=n[i].z-n[i>0?i-1:i].z;if(e.options.slopeDeltaMax){var a=slop-n[i>0?i-1:i].slope,s=e.options.slopeDeltaMax;Math.abs(a)>s&&(t=n[i-1].slope+s*Math.sign(a))}return t=l(t,e.options.slopeRange),o>0?e.track_info.ascent+=o:o<0&&(e.track_info.descent-=o),t>r.slope_max&&(r.slope_max=t),t<r.slope_min&&(r.slope_min=t),r.slope_avg=(t+r.slope_avg)/2,L.Util.formatNum(t,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(e){return L._("m: ")+e.slope+i.label},marker:function(e){return Math.round(e.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(t){return Math.round(t.ascent||0)+"&nbsp;"+(e.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(t){return Math.round(t.descent||0)+"&nbsp;"+(e.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(e){return Math.round(e.slope_min||0)+"&nbsp;"+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(e){return Math.round(e.slope_max||0)+"&nbsp;"+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(e){return Math.round(e.slope_avg||0)+"&nbsp;"+i.label},order:40}})}})),J.addInitHook((function(){var e=this;if(this.options.speed||this.options.acceleration){var t=this.options,i={};i.label=t.speedLabel||L._(t.imperial?"mph":"km/h"),t.speedFactor=t.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=e._data,n=1e3*(r[i].dist-r[i>0?i-1:i].dist),o=r[i].time-r[i>0?i-1:i].time;return o>0?Math.abs(n/o*t.timeFactor)*t.speedFactor:0},update:function(t,i){e.track_info.speed_max=e.track_info.speed_max||-1/0,e.track_info.speed_min=e.track_info.speed_min||1/0,e.track_info.speed_avg=e.track_info.speed_avg||0;var r=e._data,n=e.track_info;if(e.options.speedDeltaMax){var o=t-r[i>0?i-1:i].speed,a=e.options.speedDeltaMax;Math.abs(o)>a&&(t=r[i-1].speed+a*Math.sign(o))}return(t=l(t,e.options.speedRange))>n.speed_max&&(n.speed_max=t),t<n.speed_min&&(n.speed_min=t),n.speed_avg=(t+n.speed_avg)/2,L.Util.formatNum(t,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(e){return L._("v: ")+e.speed+" "+i.label},marker:function(e){return Math.round(e.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(e){return Math.round(e.speed_min||0)+"&nbsp;"+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(e){return Math.round(e.speed_max||0)+"&nbsp;"+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(e){return Math.round(e.speed_avg||0)+"&nbsp;"+i.label},order:50}}))}})),J.addInitHook((function(){var e=this;if(this.options.acceleration){var t=this.options,i={};i.label=t.accelerationLabel||L._(t.imperial?"ft/s²":"m/s²"),t.accelerationFactor=t.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=e._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/t.timeFactor),o=(r[i].time-r[i>0?i-1:i].time)/1e3;return o>0?Math.abs(n/o)*t.accelerationFactor:0},update:function(t,i){e.track_info.acceleration_max=e.track_info.acceleration_max||-1/0,e.track_info.acceleration_min=e.track_info.acceleration_min||1/0,e.track_info.acceleration_avg=e.track_info.acceleration_avg||0;var r=e._data,n=e.track_info;if(e.options.accelerationDeltaMax){var o=t-r[i>0?i-1:i].acceleration,a=e.options.accelerationDeltaMax;Math.abs(o)>a&&(t=r[i-1].acceleration+a*Math.sign(o))}return(t=l(t,e.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=t),t<n.acceleration_min&&(n.acceleration_min=t),n.acceleration_avg=(t+n.acceleration_avg)/2,L.Util.formatNum(t,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(e){return L._("a: ")+e.acceleration+" "+i.label},marker:function(e){return Math.round(e.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(e){return Math.round(e.acceleration_min||0)+"&nbsp;"+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(e){return Math.round(e.acceleration_max||0)+"&nbsp;"+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(e){return Math.round(e.acceleration_avg||0)+"&nbsp;"+i.label},order:60}})}})),J.Utils=S,J.Components=U,J.Chart=H,V=L.i18n.bind({}),L.i18n=L._=function(e,t){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][e]&&(L.locales[L.locale][e]="​"),V.call(null,e,t)},J.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(e){return new J(e)}}))}));m((function(e,t){!function(e,i){i(t)}(v,(function(e){var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,s=this.options.chunkProgress,l=e.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-h;if(a<f)break}if((i=e[c])instanceof L.LayerGroup)p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),t||this.fire("layeradd",{layer:i})}s&&s(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=e[c])instanceof L.LayerGroup?(p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,o=this._nonPointGroup,a=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(a&&(e=e.slice(),a=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var s=e.slice(),l=r;for(t=0;t<l;t++)(i=s[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),l=s.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(a&&(e=e.slice(),a=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,n=a.length-1;0<=n;n--)if(a[n].layer===o[r]){i=!1;break}i&&e.call(t,o[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return!0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,a=this._map,s=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,c=e.__parent,p=c._markers;for(this._arraySplice(p,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<s));)t&&c._childCount<=1?(l=c._markers[0]===e?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,a.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,a.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),i||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,n=this._gridClusters,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);a<=t;t--){i=this._map.project(e.getLatLng(),t);var s=n[t].getNearObject(i);if(s)return s._addChild(e),void(e.__parent=s);if(s=o[t].getNearObject(i)){var l=s.__parent;l&&this._removeLayer(s,!1);var c=new this._markerCluster(this,t,s,e);n[t].addObject(c,this._map.project(c._cLatLng,t)),s.__parent=c;var p=e.__parent=c;for(r=t-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(s.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(s,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,e,o,(function(o){var a,s=o._latlng,l=o._markers;for(r.contains(s)||(s=null),o._isSingleParent()&&e+1===t?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(s,t,r)),i=l.length-1;0<=i;i--)a=l[i],r.contains(a._latlng)||n.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),n.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,e,o,(function(e){n.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){r.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var a=e._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else e._recursively(r,i,n,(function(e){e._recursivelyRemoveChildrenFromMap(r,n,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,a=r.getZoom();0<i.length&&o<n;){o++;var s=[];for(t=0;t<i.length;t++)s=s.concat(i[t]._childClusters);i=s}o<n?this._group._map.setView(this._latlng,o):n<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,r,n=this._markers,o=this._childClusters,a=0,s=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),a+=i.lat,s+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,a+=i.lat*r,s+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(a/l,s/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,n=e._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,n=e._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(n){n._recursivelyAnimateChildrenIn(e,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(e,t,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)n=e._markers[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)n=e._childClusters[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(e,t,i,r,n){var o,a,s=this._childClusters,l=this._zoom;if(t<=l&&(r&&r(this),n&&l===i&&n(this)),l<t||l<i)for(o=s.length-1;0<=o;o--)(a=s[o])._boundsNeedUpdate&&a._recalculateBounds(),e.intersects(a._bounds)&&a._recursively(e,t,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,o=n[r]=n[r]||{},a=o[i]=o[i]||[],s=L.Util.stamp(e);this._objectPoint[s]=t,a.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),o=this._getCoord(t.y),a=this._grid,s=a[o]=a[o]||{},l=s[n]=s[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=l.length;i<r;i++)if(l[i]===e)return l.splice(i,1),1===r&&delete s[n],!0},eachObject:function(e,t){var i,r,n,o,a,s,l=this._grid;for(i in l)for(r in a=l[i])for(n=0,o=(s=a[r]).length;n<o;n++)e.call(t,s[n])&&(n--,o--)},getNearObject:function(e){var t,i,r,n,o,a,s,l,c=this._getCoord(e.x),p=this._getCoord(e.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(t=p-1;t<=p+1;t++)if(n=this._grid[t])for(i=c-1;i<=c+1;i++)if(o=n[i])for(r=0,a=o.length;r<a;r++)s=o[r],((l=this._sqDist(u[L.Util.stamp(s)],e))<d||l<=d&&null===h)&&(d=l,h=s);return h},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,o=0,a=null,s=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(s.push(r),o<n&&(o=n,a=r));return{maxPoint:a,newPoints:s}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,o=!1,a=null,s=null,l=null,c=null,p=null,u=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(a=d).lat),(!1===r||d.lat<r)&&(r=(s=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===o||d.lng<o)&&(o=(c=d).lng)}return p=r!==i?(u=s,a):(u=c,l),[].concat(this.buildConvexHull([u,p],e),this.buildConvexHull([p,u],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,a=[];for(n=Math.max(n,35),a.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*o,a[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return a},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,a=r*this._spiralLengthFactor*this._2PI,s=0,l=[];for(i=l.length=e;0<=i;i--)i<e&&(l[i]=new L.Point(t.x+n*Math.cos(s),t.y+n*Math.sin(s))._round()),n+=a/(s+=o/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,o,a=this._group,s=a._map,l=a._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<e.length;i++)o=s.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,o],c),s.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,o,a,s,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],s=p.layerPointToLatLng(t[i]),n=new L.Polyline([d,s],m),p.addLayer(n),r._spiderLeg=n,f&&(a=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=a,o.style.strokeDashoffset=a),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(h);for(c._forceLayout(),c._animationStart(),i=e.length-1;0<=i;i--)s=p.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.clusterShow&&r.clusterShow(),f&&((o=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,n,o,a,s=this,l=this._group,c=l._map,p=l._featureGroup,u=e?c._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,a=!0,t._setPos&&(t._setPos(u),a=!1),t.clusterHide&&(t.clusterHide(),a=!1),a&&p.removeLayer(t),h&&(o=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&p.removeLayer(t),c.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:s,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0})}))}));var se='@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 350px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-surface-variant)}.departure-marker{background-color:#008000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000001 !important}.arrival-marker{background-color:#ff0000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000000 !important}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:48px;height:48px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon img{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-70px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}';var le=e("grw_map",function(){function e(e){t(this,e);this.trekCardPress=n(this,"trekCardPress",7);this.touristicContentCardPress=n(this,"touristicContentCardPress",7);this.touristicEventCardPress=n(this,"touristicEventCardPress",7);this.maxZoom=19;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.trekTilesMaxZoomOffline=16;this.isLargeView=false}e.prototype.onCenterOnMap=function(e){this.map.setView(new g.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})};e.prototype.stepsIsInViewport=function(e){if(this.currentStepsLayer){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}};e.prototype.descriptionIsInViewport=function(e){if(this.currentReferencePointsLayer){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}};e.prototype.parkingIsInViewport=function(e){if(this.currentParkingLayer){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}};e.prototype.onInformationDesksIsInViewport=function(e){if(this.currentInformationDesksLayer){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}};e.prototype.sensitiveAreaIsInViewport=function(e){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}};e.prototype.poiIsInViewport=function(e){if(this.currentPoisLayer){this.handleLayerVisibility(e.detail,this.currentPoisLayer)}};e.prototype.touristicContentsIsInViewport=function(e){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer)}};e.prototype.touristicEventsIsInViewport=function(e){if(this.currenttouristicEventsLayer){this.handleLayerVisibility(e.detail,this.currenttouristicEventsLayer)}};e.prototype.onCardTrekMouseOver=function(e){if(!c.parentTrek&&(!c.selectedTrekId||c.selectedTrekId!==e.detail)){c.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(c.parentTrek){this.stepPopupIsOpen=false;c.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}};e.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&c.selectedTrekId){this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};e.prototype.onTouristicContentMouseOver=function(e){this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)};e.prototype.onTouristicContentMouseLeave=function(){c.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};e.prototype.onTouristicEventMouseOver=function(e){this.touristicEventPopupIsOpen=false;c.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)};e.prototype.onTouristicEventMouseLeave=function(){c.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};e.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.trekTilesMaxZoomOffline)};e.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};e.prototype.componentDidLoad=function(){var e=this;this.map=g.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});g.control.scale({metric:true,imperial:false}).addTo(this.map);g.control.locate({showPopup:false}).addTo(this.map);var t=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(e,t){return t===0?e:"http"+e}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){e.tileLayer.push({key:"".concat(t[n]),value:b.tileLayerOffline(i,{maxZoom:e.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=g.control.layers(this.tileLayer.reduce((function(e,t){var i;return Object.assign(e,(i={},i[t.key]=t.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}g.Control.Contract=g.Control.extend({onAdd:function(){var t=g.DomUtil.create("div");t.className="leaflet-bar leaflet-control";var i=t.appendChild(g.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";t.onclick=function(t){e.bounds&&e.map.fitBounds(e.bounds);t.preventDefault()};return t}});g.control.contract=function(e){return new g.Control.Contract(e)};g.control.contract({position:"topleft"}).addTo(this.map);if(c.currentTrek){this.addTrek()}else if(c.currentTreks){this.addTreks()}else if(c.currentTouristicContent){this.addTouristicContent()}else if(c.currentTouristicEvent){this.addTouristicEvent()}else if(c.touristicContents){this.addTouristicContents()}else if(c.touristicEvents){this.addTouristicEvents()}w("currentTreks",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.currentTrek){e.removeTreks();e.addTrek()}else if(c.currentTreks){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks(true)}}));w("currentTrek",(function(){if(c.currentTrek){e.removeTreks();e.addTrek()}else if(c.currentTreks){e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks()}}));w("currentTouristicContent",(function(){if(c.currentTouristicContent){e.removeTrek();e.removeTouristicContents();e.addTouristicContent()}else if(c.touristicContents){e.removeTouristicContent();e.addTouristicContents()}else if(c.currentTrek){e.removeTouristicContent();e.addTrek()}else if(c.currentTreks){e.removeTouristicContent();e.addTreks()}}));w("currentTouristicEvent",(function(){if(c.currentTouristicEvent){e.removeTrek();e.removeTouristicEvents();e.addTouristicEvent()}else if(c.currentTrek){e.removeTouristicEvent();e.addTrek()}else if(c.currentTreks){e.removeTouristicEvent();e.addTreks()}}));w("currentTouristicContents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.currentTouristicContent){e.removeTouristicContents();e.addTouristicContent()}else if(c.currentTouristicContents){e.removeTreks();e.removeTouristicEvents();e.removeTouristicContent();e.addTouristicContents(true)}}));w("currentTouristicEvents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.currentTouristicEvent){e.removeTouristicEvents();e.addTouristicEvent()}else if(c.currentTouristicEvents){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvent();e.addTouristicEvents(true)}}));w("mode",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(c.mode==="treks"){if(c.treks){e.removeTouristicContents();e.removeTouristicEvents();e.addTreks(true)}}else if(c.mode==="touristicContents"){if(c.touristicContents){e.removeTreks();e.removeTouristicEvents();e.addTouristicContents(true)}}else if(c.mode==="touristicEvents"){if(c.touristicEvents){e.removeTreks();e.removeTouristicContents();e.addTouristicEvents(true)}}}))};e.prototype.handleLayerVisibility=function(e,t){if(e&&!this.map.hasLayer(t)){t.addTo(this.map)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()};e.prototype.addTreks=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l;var p=this;return __generator(this,(function(u){switch(u.label){case 0:c.treksWithinBounds=c.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(c.currentTreks){n=function(e){i.push(e.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=c.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(o=0,a=c.currentTreks;o<a.length;o++){s=a[o];n(s)}}if(!!this.treksLayer)return[3,2];if(i.length>0&&!c.currentMapBounds||e){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:l=u.sent();this.treksLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:l[e.properties.practice]?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(l[e.properties.practice]," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(p,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseover",(function(t){p.hideTrekLine();p.showTrekLine(e.properties.id);p.addSelectedCurrentTrek(e.properties.id,t.latlng)}))}});this.treksMarkerClusterGroup=g.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return g.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);u.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};e.prototype.removeTreks=function(){if(this.treksLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};e.prototype.handleTreksWithinBounds=function(){var e=this;if(c.currentTreks&&!c.currentMapBounds||c.currentTreks&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.treksWithinBounds=c.currentTreks.filter((function(t){return e.map.getBounds().contains(g.latLng(t.departure_geom[1],t.departure_geom[0]))}))}};e.prototype.handleTouristicContentsWithinBounds=function(){var e=this;if(c.currentTouristicContents&&!c.currentMapBounds||c.currentTouristicContents&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.touristicContentsWithinBounds=c.currentTouristicContents.filter((function(t){return e.map.getBounds().contains(g.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleTouristicEventsWithinBounds=function(){var e=this;if(c.currentTouristicEvents&&!c.currentMapBounds||c.currentTouristicEvents&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.touristicEventsWithinBounds=c.currentTouristicEvents.filter((function(t){return e.map.getBounds().contains(g.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,a,l,p,u,d,h,f,m,v,b,w,_,x,A,L,T,C,S,E,P,M,z,O,B,I,F,D,R,N,G,j,Z,U,H,Y,V,W,Q,X,J,q,K,$,ee;var te=this;return __generator(this,(function(ie){switch(ie.label){case 0:return[4,y("treks",c.currentTrek.id)];case 1:n=ie.sent();if(n){this.map.setMaxZoom(this.trekTilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();a={type:"Feature",geometry:c.currentTrek.geometry,properties:{}};this.currentTrekLayer=g.geoJSON(a,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(c.currentTrek.parking_location){l=o("".concat("","assets/parking.svg"));p={type:"Feature",properties:{name:c.currentTrek.advised_parking},geometry:{type:"Point",coordinates:c.currentTrek.parking_location}};this.currentParkingLayer=g.geoJSON(p,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:'<img crossorigin="anonymous" src='.concat(l," />"),className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="parking-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="parking-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0){u={type:"FeatureCollection",features:[]};for(d=0,h=c.currentSensitiveAreas;d<h.length;d++){f=h[d];u.features.push({type:"Feature",properties:{name:f.name},geometry:f.geometry})}this.currentSensitiveAreasLayer=g.geoJSON(u,{onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="sensitive-area-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:function(){return{color:te.colorSensitiveArea}}})}if(!(c.currentPois&&c.currentPois.length>0))return[3,3];m={type:"FeatureCollection",features:[]};v=function(t){m.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=c.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(b=0,w=c.currentPois;b<w.length;b++){_=w[b];v(_)}return[4,this.getIcons(m,"type_pictogram")];case 2:x=ie.sent();this.currentPoisLayer=g.geoJSON(m,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:x[e.properties.type_pictogram]?'<img crossorigin="anonymous" src='.concat(x[e.properties.type_pictogram]," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="poi-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=3;case 3:if(!(c.trekTouristicContents&&c.trekTouristicContents.length>0))return[3,5];A={type:"FeatureCollection",features:[]};L=function(e){A.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(t=c.touristicContentCategories.find((function(t){return t.id===e.category})))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})};for(T=0,C=c.trekTouristicContents;T<C.length;T++){S=C[T];L(S)}return[4,this.getIcons(A,"category_pictogram")];case 4:E=ie.sent();this.currentToutisticContentsLayer=g.geoJSON(A,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:E[e.properties.category_pictogram]?'<img crossorigin="anonymous "src='.concat(E[e.properties.category_pictogram]," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="touristic-content-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-content-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=5;case 5:if(!(c.touristicEvents&&c.touristicEvents.length>0))return[3,7];P={type:"FeatureCollection",features:[]};M=function(e){P.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(i=c.touristicEventTypes.find((function(t){return t.id===e.type})))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})};for(z=0,O=c.touristicEvents;z<O.length;z++){B=O[z];M(B)}return[4,this.getIcons(P,"type_pictogram")];case 6:I=ie.sent();this.currenttouristicEventsLayer=g.geoJSON(P,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:I[e.properties.type_pictogram]?'\n <img crossorigin="anonymous" src='.concat(I[e.properties.type_pictogram]," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="touristic-event-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-event-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=7;case 7:if(!(c.currentInformationDesks&&c.currentInformationDesks.length>0))return[3,9];F={type:"FeatureCollection",features:[]};for(D=0,R=c.currentInformationDesks.filter((function(e){return c.currentTrek.information_desks.includes(e.id)}));D<R.length;D++){N=R[D];if(N.latitude&&N.longitude){F.features.push({type:"Feature",properties:{name:N.name,type_pictogram:N.type.pictogram},geometry:{type:"Point",coordinates:[Number(N.longitude),Number(N.latitude)]}})}}if(!(F.features.length>0))return[3,9];return[4,this.getIcons(F,"type_pictogram")];case 8:G=ie.sent();this.currentInformationDesksLayer=g.geoJSON(F,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:G[e.properties.type_pictogram]?'<img crossorigin="anonymous" src='.concat(G[e.properties.type_pictogram]," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=g.DomUtil.create("div");i.className="information-desks-tooltip";var r=g.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});ie.label=9;case 9:if(c.currentTrek.points_reference){j={type:"FeatureCollection",features:[]};j.features.push({type:"Feature",properties:{},geometry:c.currentTrek.points_reference});Z=0;this.currentReferencePointsLayer=g.geoJSON(j,{pointToLayer:function(e,t){Z+=1;return g.marker(t,{icon:g.divIcon({html:Z,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&c.parentTrekId&&c.parentTrek&&c.currentTrek.id===c.parentTrekId){U={type:"FeatureCollection",features:[]};if(c.currentTrekSteps){H=function(e){U.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(r=c.practices.find((function(t){return t.id===e.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(Y=0,V=c.currentTrekSteps;Y<V.length;Y++){W=V[Y];H(W)}}Q=0;this.currentStepsLayer=g.geoJSON(U,{pointToLayer:function(e,t){Q+=1;return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(Q,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(te,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseover",(function(t){te.addSelectedCurrentStep(e.properties.id,t.latlng)}))}})}X={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};g.registerLocale("fr",X);g.setLocale("fr");J={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:280,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:"inline",time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=g.control.elevation(Object.assign({},J)).addTo(this.map);q=JSON.stringify({name:"".concat(c.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:c.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(q);K={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:c.currentTrek.geometry.coordinates[c.currentTrek.geometry.coordinates.length-1]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:c.currentTrek.geometry.coordinates[0]},properties:null}]};$=0;this.departureArrivalLayer=g.geoJSON(K,{pointToLayer:function(e,t){$+=1;return g.marker(t,{icon:g.divIcon({html:"<div></div>",className:$===1?"departure-marker":"arrival-marker",iconSize:22}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);ee={};if(this.currentStepsLayer){ee[s[c.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){ee[s[c.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){ee[s[c.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){ee[s[c.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){ee[s[c.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){ee[s[c.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){ee[s[c.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currenttouristicEventsLayer){ee[s[c.language].layers.touristicEvents]=this.currenttouristicEventsLayer}if(this.layersControl){Object.keys(ee).forEach((function(e){te.layersControl.addOverlay(ee[e],e)}))}else{this.layersControl=g.control.layers({},ee,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=g.latLngBounds(c.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.getIcons=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;return __generator(this,(function(a){switch(a.label){case 0:i={};r=0;a.label=1;case 1:if(!(r<e.features.length))return[3,4];if(!e.features[r].properties[t])return[3,3];n=i;o=e.features[r].properties[t];return[4,this.getIcon(e.features[r].properties[t])];case 2:n[o]=a.sent();a.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};e.prototype.getIcon=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:return[4,y("images",e)];case 1:t=r.sent();i=t?window.URL.createObjectURL(k(t.data,t.type)):e?e:null;return[2,i]}}))}))};e.prototype.addSelectedCurrentTrek=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(c.currentTreks){n=c.currentTreks.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=c.practices.find((function(e){return e.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();c.selectedTrekId=e;return[4,this.getIcons(r,"practice")];case 1:o=s.sent();this.selectedCurrentTrekLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:o[e.properties.practice]?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(o[e.properties.practice]," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(a,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseout",(function(){if(!a.trekPopupIsOpen){c.selectedTrekId=null;a.hideTrekLine();a.removeSelectedCurrentTrek()}}));t.on("popupopen",(function(){a.trekPopupIsOpen=Boolean(c.selectedTrekId)}));t.on("popupclose",(function(){if(c.selectedTrekId){a.trekPopupIsOpen=false;c.selectedTrekId=null;a.hideTrekLine();a.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedCurrentTrek=function(){c.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};e.prototype.addSelectedCurrentStep=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(c.currentTrekSteps){var o=c.currentTrekSteps.findIndex((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:c.currentTrekSteps[o].departure_geom},properties:{id:c.currentTrekSteps[o].id,name:c.currentTrekSteps[o].name,practice:(r=c.practices.find((function(e){return e.id===c.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:c.currentTrekSteps[o].attachments&&c.currentTrekSteps[o].attachments.length>0&&c.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();c.selectedStepId=e;this.selectedCurrentStepLayer=g.geoJSON(n,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(e.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,o,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,y("images",e.properties.imgSrc)];case 1:i=c.sent();r=i?window.URL.createObjectURL(k(i.data,i.type)):e.properties.imgSrc?e.properties.imgSrc:null;n=g.DomUtil.create("div");n.className="trek-departure-popup";if(r){o=g.DomUtil.create("img");o.src=r;o.crossOrigin="anonymous";n.appendChild(o)}a=g.DomUtil.create("div");a.innerHTML=e.properties.name;a.className="trek-name";n.appendChild(a);s=g.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return l.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseout",(function(){if(!i.stepPopupIsOpen){c.selectedTrekId=null;i.removeSelectedCurrentStep()}}));t.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(c.selectedStepId)}));t.on("popupclose",(function(){if(c.selectedStepId){i.stepPopupIsOpen=false;c.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentStep=function(){if(c.selectedStepId){c.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};e.prototype.handleLayersControlEvent=function(){var e=this;var t=this.layersControl._layerControlInputs;t.forEach((function(t){if(e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId})).overlay){t.onchange=function(i){e.userLayersState[t.layerId]=i.target.checked}}}))};e.prototype.removeTrek=function(){var e=this;if(this.layersControl){if(!this.layersControl._layers.some((function(e){return!e.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(e){return e.overlay})).forEach((function(t){e.layersControl.removeLayer(t.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currenttouristicEventsLayer){this.map.removeLayer(this.currenttouristicEventsLayer);this.currenttouristicEventsLayer=null}};e.prototype.showTrekLine=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:return[4,F(e)];case 1:t=n.sent();i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=g.geoJSON(i,{style:function(){return{color:r.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};e.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};e.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.removeSelectedTouristicContent();e={type:"FeatureCollection",features:[]};if(c.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:c.currentTouristicContent.geometry.coordinates},properties:{id:c.currentTouristicContent.id,name:c.currentTouristicContent.name,practice:c.touristicContentCategories.find((function(e){return e.id===c.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(e,"practice")];case 1:t=i.sent();this.currentToutisticContentLayer=g.geoJSON(e,{pointToLayer:function(e,i){return g.marker(i,{icon:g.divIcon({html:t[e.properties.practice]?'<div class="touristic-content-marker-container"><img crossorigin="anonymous "src='.concat(t[e.properties.practice]," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);i.label=2;case 2:this.map.setView([c.currentTouristicContent.geometry.coordinates[1],c.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};e.prototype.addTouristicContents=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s;var l=this;return __generator(this,(function(p){switch(p.label){case 0:c.touristicContentsWithinBounds=c.currentTouristicContents;t=[];i={type:"FeatureCollection",features:[]};if(c.currentTouristicContents){r=function(e){t.push(e.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:c.touristicContentCategories.find((function(t){return t.id===e.category})).pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(n=0,o=c.currentTouristicContents;n<o.length;n++){a=o[n];r(a)}}if(!!this.toutisticContentsLayer)return[3,2];if(t.length>0&&!c.currentMapBounds||e){this.bounds=g.latLngBounds(t.map((function(e){return[e[1],e[0]]})))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}return[4,this.getIcons(i,"practice")];case 1:s=p.sent();this.toutisticContentsLayer=g.geoJSON(i,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:s[e.properties.practice]?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(s[e.properties.practice]," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-content-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-content-button";o.onclick=function(){return l.touristicContentCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){l.addSelectedTouristicContent(e.properties.id,t.latlng)}))}});this.touristicContentsMarkerClusterGroup=g.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return g.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(t.length>0){this.bounds=g.latLngBounds(t.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);p.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};e.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};e.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;return __generator(this,(function(r){switch(r.label){case 0:e={type:"FeatureCollection",features:[]};if(c.currentTouristicEvent){t=c.touristicEventTypes.find((function(e){return e.id===c.currentTouristicEvent.type}));e.features.push({type:"Feature",geometry:{type:"Point",coordinates:c.currentTouristicEvent.geometry.coordinates},properties:{id:c.currentTouristicEvent.id,name:c.currentTouristicEvent.name,type:t?t.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(e,"type")];case 1:i=r.sent();this.currentToutisticEventLayer=g.geoJSON(e,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:i[e.properties.type]?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(i[e.properties.type]," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);r.label=2;case 2:this.map.setView([c.currentTouristicEvent.geometry.coordinates[1],c.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};e.prototype.addSelectedTouristicContent=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(c.touristicContents){n=c.touristicContents.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=c.touristicContentCategories.find((function(e){return e.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();c.selectedTouristicContentId=e;return[4,this.getIcons(r,"category")];case 1:o=s.sent();this.selectedTouristicContentLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:o[e.properties.category]?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(o[e.properties.category]," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-content-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-content-button";o.onclick=function(){return a.touristicContentCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!a.touristicContentPopupIsOpen){c.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}));t.on("popupopen",(function(){a.touristicContentPopupIsOpen=Boolean(c.selectedTouristicContentId)}));t.on("popupclose",(function(){if(c.selectedTouristicContentId){a.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedTouristicContent=function(){c.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};e.prototype.addTouristicEvents=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l;var p=this;return __generator(this,(function(u){switch(u.label){case 0:c.touristicEventsWithinBounds=c.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(c.currentTouristicEvents){n=function(e){i.push(e.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(t=c.touristicEventTypes.find((function(t){return t.id===e.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(o=0,a=c.currentTouristicEvents;o<a.length;o++){s=a[o];n(s)}}if(!!this.touristicEventsLayer)return[3,2];if(i.length>0&&!c.currentMapBounds||e){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}return[4,this.getIcons(r,"type")];case 1:l=u.sent();this.touristicEventsLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{icon:g.divIcon({html:l[e.properties.type]?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(l[e.properties.type]," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-event-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-event-button";o.onclick=function(){return p.touristicEventCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){p.addSelectedTouristicEvent(e.properties.id,t.latlng)}))}});this.touristicEventsMarkerClusterGroup=g.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return g.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=g.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);u.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};e.prototype.removeTouristicEvents=function(){if(this.touristicEventsLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};e.prototype.addSelectedTouristicEvent=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(c.touristicEvents){n=c.touristicEvents.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=c.touristicEventTypes.find((function(e){return e.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();c.selectedTouristicEventId=e;return[4,this.getIcons(r,"category")];case 1:o=s.sent();this.selectedTouristicEventLayer=g.geoJSON(r,{pointToLayer:function(e,t){return g.marker(t,{zIndexOffset:4e6,icon:g.divIcon({html:o[e.properties.category]?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(o[e.properties.category]," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"selected-touristic-event-marker",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=g.DomUtil.create("div");i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var r=g.DomUtil.create("img");r.src=e.properties.imgSrc;r.crossOrigin="anonymous";i.appendChild(r)}var n=g.DomUtil.create("div");n.innerHTML=e.properties.name;n.className="touristic-event-name";i.appendChild(n);var o=g.DomUtil.create("button");o.innerHTML="Afficher le détail";o.className="touristic-event-button";o.onclick=function(){return a.touristicEventCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!a.touristicEventPopupIsOpen){c.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}));t.on("popupopen",(function(){a.touristicEventPopupIsOpen=Boolean(c.selectedTouristicEventId)}));t.on("popupclose",(function(){if(c.selectedTouristicEventId){a.touristicEventPopupIsOpen=false;c.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedTouristicEvent=function(){c.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};e.prototype.render=function(){var e=this;var t=o("".concat("","assets/layers.svg"));var n=o("".concat("","assets/contract.svg"));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(t,")"),"--contract-image-src":"url(".concat(n,")"),"--map-bottom-space-height":this.isLargeView?"0px":"80px"}},i("div",{id:"map",part:"map",class:c.currentTrek?"trek-map":"treks-map",ref:function(t){return e.mapRef=t}}),c.currentTrek&&i("div",null,i("div",{id:"elevation",part:"elevation",ref:function(t){return e.elevationRef=t}}),i("div",{part:"map-bottom-space",class:"map-bottom-space"})),!this.mapIsReady&&i("div",{part:"map-loader-container",class:"map-loader-container"},i("span",{part:"loader",class:"loader"})))};return e}());le.style=se;var ce='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{color:var(--color-on-primary-container);font-size:24px;position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%23777\'><path d=\'M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\'/></svg>");background-size:20px 20px;height:20px;width:20px}';var pe=e("grw_search",function(){function e(e){t(this,e);this.fontFamily="Roboto"}e.prototype.onSearchChange=function(e){c.searchValue=e.target.value;if(c.mode==="treks"){c.currentTreks=p()}else if(c.mode==="touristicContents"){c.currentTouristicContents=h()}else if(c.mode==="touristicEvents"){c.currentTouristicEvents=f()}};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"search"),i("input",{part:"search-input",class:"search-input",onInput:function(t){return e.onSearchChange(t)},type:"search",placeholder:"Rechercher",value:c.searchValue}))};return e}());pe.style=ce;var ue=".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";var de=e("grw_segmented_segment",function(){function e(e){t(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}e.prototype.changeMode=function(e){c.searchValue="";if(e==="treks"&&c.currentTreks){l.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;c.currentTreks=p()}else if(e==="touristicContents"&&c.currentTouristicContents){u.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicContents=h()}else if(e==="touristicEvents"&&c.currentTouristicEvents){d.forEach((function(e){c[e.property].forEach((function(e){return e.selected=false}))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicEvents=f()}c.mode=e};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&i("label",{part:"segment",class:"segment".concat(c.mode==="treks"?" selected-segment":""),onClick:function(){return e.changeMode("treks")}},s[c.language].home.segment.treks),this.touristicContents&&i("label",{part:"segment",class:"segment".concat(c.mode==="touristicContents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicContents")}},s[c.language].home.segment.touristicContents),this.touristicEvents&&i("label",{part:"segment",class:"segment".concat(c.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicEvents")}},s[c.language].home.segment.touristicEvents)))};return e}());de.style=ue;var he='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';var fe=e("grw_select_language",function(){function e(e){t(this,e)}e.prototype.handleSelect=function(e){c.treks=null;c.currentTreks=null;c.currentTrek=null;c.language=e.target.value};e.prototype.render=function(){var e=this;return i(r,null,i("span",{part:"select-language-icon",class:"material-symbols material-symbols-outlined icon",translate:false},"translate"),i("select",{part:"select-language-select",onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},c.languages.map((function(e){return i("option",{part:"select-language-option",selected:e===c.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}());fe.style=he;var me='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';var ge=e("grw_switch",function(){function e(e){t(this,e);this.action=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily}},i("label",{class:"md3 switch"},i("input",{onChange:function(){return e.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),i("span",{class:"slider"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"done"))))};return e}());ge.style=me;function ve(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=D();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};var a;var s=N();var l;var c=[];function p(e){var t=10;var i=40;var r=800;var n=0;var o=0;var a=0;var s=0;if("detail"in e){o=e.detail}if("wheelDelta"in e){o=-e.wheelDelta/120}if("wheelDeltaY"in e){o=-e.wheelDeltaY/120}if("wheelDeltaX"in e){n=-e.wheelDeltaX/120}if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){n=o;o=0}a=n*t;s=o*t;if("deltaY"in e){s=e.deltaY}if("deltaX"in e){a=e.deltaX}if(e.shiftKey&&!a){a=s;s=0}if((a||s)&&e.deltaMode){if(e.deltaMode===1){a*=i;s*=i}else{a*=r;s*=r}}if(a&&!n){n=a<1?-1:1}if(s&&!o){o=s<1?-1:1}return{spinX:n,spinY:o,pixelX:a,pixelY:s}}function u(){if(!t.enabled)return;t.mouseEntered=true}function d(){if(!t.enabled)return;t.mouseEntered=false}function h(e){if(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&N()-s<t.params.mousewheel.thresholdTime){return false}if(e.delta>=6&&N()-s<60){return true}if(e.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",e.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",e.raw)}s=(new o.Date).getTime();return false}function f(e){var i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges){return true}return false}function m(e){var i=e;var r=true;if(!t.enabled)return;if(e.target.closest(".".concat(t.params.mousewheel.noMousewheelClass)))return;var o=t.params.mousewheel;if(t.params.cssMode){i.preventDefault()}var s=t.el;if(t.params.mousewheel.eventsTarget!=="container"){s=document.querySelector(t.params.mousewheel.eventsTarget)}var u=s&&s.contains(i.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=t.rtlTranslate?-1:1;var g=p(i);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(o.invert)d=-d;var v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();r=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(r&&t.params.nested)i.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){var b={time:N(),delta:Math.abs(d),direction:Math.sign(d),raw:e};if(c.length>=2){c.shift()}var w=c.length?c[c.length-1]:undefined;c.push(b);if(w){if(b.direction!==w.direction||b.delta>w.delta||b.time>w.time+150){h(b)}}else{h(b)}if(f(b)){return true}}else{var y={time:N(),delta:Math.abs(d),direction:Math.sign(d)};var k=l&&y.time<l.time+500&&y.delta<=l.delta&&y.direction===l.direction;if(!k){l=undefined;var _=t.getTranslate()+d*o.sensitivity;var x=t.isBeginning;var A=t.isEnd;if(_>=t.minTranslate())_=t.minTranslate();if(_<=t.maxTranslate())_=t.maxTranslate();t.setTransition(0);t.setTranslate(_);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!x&&t.isBeginning||!A&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:y.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(a);a=undefined;if(c.length>=15){c.shift()}var w=c.length?c[c.length-1]:undefined;var L=c[0];c.push(y);if(w&&(y.delta>w.delta||y.direction!==w.direction)){c.splice(0)}else if(c.length>=15&&y.time-L.time<500&&L.delta-y.delta>=1&&y.delta<=6){var T=d>0?.8:.2;l=y;c.splice(0);a=R((function(){t.slideToClosest(t.params.speed,true,undefined,T)}),0)}if(!a){a=R((function(){var e=.5;l=y;c.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!k)n("scroll",i);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(_===t.minTranslate()||_===t.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(e){var i=t.el;if(t.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(t.params.mousewheel.eventsTarget)}i[e]("mouseenter",u);i[e]("mouseleave",d);i[e]("wheel",m)}function v(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",m);return true}if(t.mousewheel.enabled)return false;g("addEventListener");t.mousewheel.enabled=true;return true}function b(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,m);return true}if(!t.mousewheel.enabled)return false;g("removeEventListener");t.mousewheel.enabled=false;return true}r("init",(function(){if(!t.params.mousewheel.enabled&&t.params.cssMode){b()}if(t.params.mousewheel.enabled)v()}));r("destroy",(function(){if(t.params.cssMode){v()}if(t.mousewheel.enabled)b()}));Object.assign(t.mousewheel,{enable:v,disable:b})}function be(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=G();var a=false;var s=null;var l=null;var c;var p;var u;var d;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});t.scrollbar={el:null,dragEl:null};function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;var e=t.scrollbar,i=t.rtlTranslate;var r=e.dragEl,n=e.el;var o=t.params.scrollbar;var a=t.params.loop?t.progressLoop:t.progress;var l=p;var c=(u-p)*a;if(i){c=-c;if(c>0){l=p-c;c=0}else if(-c+p>u){l=u+c}}else if(c<0){l=p+c;c=0}else if(c+p>u){l=u-c}if(t.isHorizontal()){r.style.transform="translate3d(".concat(c,"px, 0, 0)");r.style.width="".concat(l,"px")}else{r.style.transform="translate3d(0px, ".concat(c,"px, 0)");r.style.height="".concat(l,"px")}if(o.hide){clearTimeout(s);n.style.opacity=1;s=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function f(e){if(!t.params.scrollbar.el||!t.scrollbar.el)return;t.scrollbar.dragEl.style.transitionDuration="".concat(e,"ms")}function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;var e=t.scrollbar;var i=e.dragEl,r=e.el;i.style.width="";i.style.height="";u=t.isHorizontal()?r.offsetWidth:r.offsetHeight;d=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0));if(t.params.scrollbar.dragSize==="auto"){p=u*d}else{p=parseInt(t.params.scrollbar.dragSize,10)}if(t.isHorizontal()){i.style.width="".concat(p,"px")}else{i.style.height="".concat(p,"px")}if(d>=1){r.style.display="none"}else{r.style.display=""}if(t.params.scrollbar.hide){r.style.opacity=0}if(t.params.watchOverflow&&t.enabled){e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}}function g(e){return t.isHorizontal()?e.clientX:e.clientY}function v(e){var i=t.scrollbar,r=t.rtlTranslate;var n=i.el;var o;o=(g(e)-U(n)[t.isHorizontal()?"left":"top"]-(c!==null?c:p/2))/(u-p);o=Math.max(Math.min(o,1),0);if(r){o=1-o}var a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(a);t.setTranslate(a);t.updateActiveIndex();t.updateSlidesClasses()}function b(e){var i=t.params.scrollbar;var r=t.scrollbar,o=t.wrapperEl;var s=r.el,p=r.dragEl;a=true;c=e.target===p?g(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null;e.preventDefault();e.stopPropagation();o.style.transitionDuration="100ms";p.style.transitionDuration="100ms";v(e);clearTimeout(l);s.style.transitionDuration="0ms";if(i.hide){s.style.opacity=1}if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",e)}function w(e){var i=t.scrollbar,r=t.wrapperEl;var o=i.el,s=i.dragEl;if(!a)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;v(e);r.style.transitionDuration="0ms";o.style.transitionDuration="0ms";s.style.transitionDuration="0ms";n("scrollbarDragMove",e)}function y(e){var i=t.params.scrollbar;var r=t.scrollbar,o=t.wrapperEl;var s=r.el;if(!a)return;a=false;if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="";o.style.transitionDuration=""}if(i.hide){clearTimeout(l);l=R((function(){s.style.opacity=0;s.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",e);if(i.snapOnRelease){t.slideToClosest()}}function k(e){var i=t.scrollbar,r=t.params;var n=i.el;if(!n)return;var a=n;var s=r.passiveListeners?{passive:false,capture:false}:false;var l=r.passiveListeners?{passive:true,capture:false}:false;if(!a)return;var c=e==="on"?"addEventListener":"removeEventListener";a[c]("pointerdown",b,s);o[c]("pointermove",w,s);o[c]("pointerup",y,l)}function _(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;k("on")}function x(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;k("off")}function A(){var e=t.scrollbar,i=t.el;t.params.scrollbar=j(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});var r=t.params.scrollbar;if(!r.el)return;var n;if(typeof r.el==="string"&&t.isElement){n=t.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=o.querySelectorAll(r.el)}else if(!n){n=r.el}if(t.params.uniqueNavElements&&typeof r.el==="string"&&n.length>1&&i.querySelectorAll(r.el).length===1){n=i.querySelector(r.el)}if(n.length>0)n=n[0];n.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass);var a;if(n){a=n.querySelector(".".concat(t.params.scrollbar.dragClass));if(!a){a=Z("div",t.params.scrollbar.dragClass);n.append(a)}}Object.assign(e,{el:n,dragEl:a});if(r.draggable){_()}if(n){n.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}function L(){var e=t.params.scrollbar;var i=t.scrollbar.el;if(i){i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass)}x()}r("init",(function(){if(t.params.scrollbar.enabled===false){C()}else{A();m();h()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){h()}));r("setTransition",(function(e,t){f(t)}));r("enable disable",(function(){var e=t.scrollbar.el;if(e){e.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}));r("destroy",(function(){L()}));var T=function(){t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass)}A();m();h()};var C=function(){t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass)}L()};Object.assign(t.scrollbar,{enable:T,disable:C,updateSize:m,setTranslate:h,init:A,destroy:L})}function we(e){var t=e.swiper,i=e.extendParams,r=e.emit,n=e.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){if(t.params.cssMode)return;var e=t.getTranslate();t.setTranslate(e);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function a(){if(t.params.cssMode)return;var e=t.touchEventsData,i=t.touches;if(e.velocities.length===0){e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime})}e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:N()})}function s(e){var i=e.currentPos;if(t.params.cssMode)return;var o=t.params,a=t.wrapperEl,s=t.rtlTranslate,l=t.snapGrid,c=t.touchEventsData;var p=N();var u=p-c.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<l.length){t.slideTo(l.length-1)}else{t.slideTo(t.slides.length-1)}return}if(o.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;t.velocity=f/m;t.velocity/=2;if(Math.abs(t.velocity)<o.freeMode.minimumVelocity){t.velocity=0}if(m>150||N()-d.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=t.velocity*g;var b=t.translate+v;if(s)b=-b;var w=false;var y;var k=Math.abs(t.velocity)*20*o.freeMode.momentumBounceRatio;var _=void 0;if(b<t.maxTranslate()){if(o.freeMode.momentumBounce){if(b+t.maxTranslate()<-k){b=t.maxTranslate()-k}y=t.maxTranslate();w=true;c.allowMomentumBounce=true}else{b=t.maxTranslate()}if(o.loop&&o.centeredSlides)_=true}else if(b>t.minTranslate()){if(o.freeMode.momentumBounce){if(b-t.minTranslate()>k){b=t.minTranslate()+k}y=t.minTranslate();w=true;c.allowMomentumBounce=true}else{b=t.minTranslate()}if(o.loop&&o.centeredSlides)_=true}else if(o.freeMode.sticky){var x=void 0;for(var A=0;A<l.length;A+=1){if(l[A]>-b){x=A;break}}if(Math.abs(l[x]-b)<Math.abs(l[x-1]-b)||t.swipeDirection==="next"){b=l[x]}else{b=l[x-1]}b=-b}if(_){n("transitionEnd",(function(){t.loopFix()}))}if(t.velocity!==0){if(s){g=Math.abs((-b-t.translate)/t.velocity)}else{g=Math.abs((b-t.translate)/t.velocity)}if(o.freeMode.sticky){var L=Math.abs((s?-b:b)-t.translate);var T=t.slidesSizesGrid[t.activeIndex];if(L<T){g=o.speed}else if(L<2*T){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){t.slideToClosest();return}if(o.freeMode.momentumBounce&&w){t.updateProgress(y);t.setTransition(g);t.setTranslate(b);t.transitionStart(true,t.swipeDirection);t.animating=true;H(a,(function(){if(!t||t.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");t.setTransition(o.speed);setTimeout((function(){t.setTranslate(y);H(a,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){r("_freeModeNoMomentumRelease");t.updateProgress(b);t.setTransition(g);t.setTranslate(b);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;H(a,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(b)}t.updateActiveIndex();t.updateSlidesClasses()}else if(o.freeMode.sticky){t.slideToClosest();return}else if(o.freeMode){r("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:s}})}var ye='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';var ke=e("grw_touristic_content_detail",function(){function e(e){t(this,e);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Y(this.swiperImagesRef,{modules:[V,W,Q,we,ve],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.offline=c.currentTouristicContent.offline};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(c.currentTouristicContent.attachments&&c.currentTouristicContent.attachments[0]&&c.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.render=function(){var e=this;var t=o("".concat("","assets/default-image.svg"));var n=c.touristicContentCategories&&c.currentTouristicContent&&c.touristicContentCategories.find((function(e){return e.id===c.currentTouristicContent.category}));var a=c.currentTouristicContent&&c.currentTouristicContent.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"204px":"164px"}},c.currentTouristicContent&&i("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:function(t){return e.touristicContentDetailContainerRef=t}},i("div",{part:"images-container",class:"images-container",ref:function(t){return e.presentationRef=t}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?c.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"close")),i("div",{part:"legend-container",class:"legend-container"},r),i("img",{part:"image",class:"image",crossorigin:"anonymous",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):i("div",{part:"swiper-slide",class:"swiper-slide"},i("img",{part:"default-poi-img",class:"default-poi-img",crossorigin:"anonymous",src:t,loading:"lazy"}))),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),i("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},i("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",crossorigin:"anonymous",src:n.pictogram}),i("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},n.label)),i("div",{part:"name",class:"name"},c.currentTouristicContent.name),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},s[c.language].download),i("div",{part:"links-container",class:"links-container"},i("a",{part:"link-container",class:"link-container",href:"".concat(c.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"download"),i("span",{part:"label",class:""},"PDF")))),c.currentTouristicContent.description_teaser&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"description-teaser",class:"description-teaser",innerHTML:c.currentTouristicContent.description_teaser})),i("div",{part:"divider",class:"divider"}),c.currentTouristicContent.practical_info&&i("div",{part:"description-container",class:"description-container",ref:function(t){return e.descriptionRef=t}},i("div",{part:"description-title",class:"description-title"},s[c.language].description),i("div",{part:"description",class:"description",innerHTML:c.currentTouristicContent.description})),a&&a.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},s[c.language].city," : "),i("div",{part:"cities",class:"cities",innerHTML:a.join(", ")})),c.currentTouristicContent.practical_info&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"useful-information-container",class:"useful-information-container"},i("div",{part:"useful-information-title",class:"useful-information-title"},s[c.language].usefulInformation," : "),i("div",{part:"useful-information",innerHTML:c.currentTouristicContent.practical_info}))),(c.currentTouristicContent.contact||c.currentTouristicContent.email||c.currentTouristicContent.website)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"contact-container",class:"contact-container"},i("div",{part:"contact-title",class:"contact-title"},s[c.language].contact," : "),c.currentTouristicContent.contact&&i("div",{part:"contact",class:"contact",innerHTML:c.currentTouristicContent.contact}),c.currentTouristicContent.email&&i("div",{part:"email-container",class:"email-container"},i("div",{part:"email-title",class:"email-title"},s[c.language].email," : "),i("div",{part:"email",class:"email",innerHTML:c.currentTouristicContent.email})),c.currentTouristicContent.website&&i("div",{part:"website-container",class:"website-container"},i("div",{part:"website-title",class:"website-title"},s[c.language].website," : "),i("div",{part:"website",class:"website",innerHTML:c.currentTouristicContent.website})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());ke.style=ye;function _e(e,t,i,r){return fetch("".concat(e,"touristiccontent/").concat(i,"/?language=").concat(t,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts"),r)}function xe(e,t,i,r){return fetch("".concat(e,"touristiccontent/?language=").concat(t,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}var Ae=e("grw_touristic_content_provider",function(){function e(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicContent()};e.prototype.handleTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,y("touristicContents",this.touristicContentId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTouristicContent(e)}else{this.handleOnlineTouristicContent()}return[2]}}))}))};e.prototype.handleOfflineTouristicContent=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!c.cities)return[3,2];t=c;return[4,_("cities")];case 1:t.cities=r.sent();r.label=2;case 2:if(!!c.touristicContentCategories)return[3,4];i=c;return[4,_("touristicContentCategories")];case 3:i.touristicContentCategories=r.sent();r.label=4;case 4:x(e,A);c.currentTouristicContent=e;return[2]}}))}))};e.prototype.handleOnlineTouristicContent=function(){var e=[];e.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!c.touristicContentCategories?fetch("".concat(c.api,"touristiccontent_category/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[_e(c.api,c.language,this.touristicContentId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];c.networkError=false;if(t){c.cities=t.results}if(i){c.touristicContentCategories=i.results}c.currentTouristicContent=r}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Le='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var Te=e("grw_touristic_contents_list",function(){function e(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(c.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],c.currentTouristicContents.slice(0,this.step),true)}w("currentTouristicContents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.currentTouristicContents){e.touristicContentsToDisplay=__spreadArray([],c.currentTouristicContents.slice(0,e.step),true)}}));w("touristicContentsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.touristicContentsWithinBounds){e.touristicContentsToDisplay=__spreadArray([],c.touristicContentsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<c.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=c.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=c.touristicContentsWithinBounds.length?c.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.touristicContentsWithinBounds&&i("div",{part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(c.touristicContentsWithinBounds.length," ").concat(c.touristicContentsWithinBounds.length>1?s[c.language].home.touristicContents:s[c.language].home.touristicContent)),i("div",{part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(t){return i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:e.fontFamily,key:"touristic-content-".concat(t.id),touristicContent:t,"is-large-view":e.isLargeView,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Te.style=Le;var Ce=e("grw_touristic_contents_provider",function(){function e(e){t(this,e);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}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicContents()};e.prototype.handleTouristicContents=function(){var e="".concat(c.api,"touristiccontent/?language=").concat(c.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var t=[];t.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!c.districts?fetch("".concat(c.api,"district/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!c.touristicContentCategories?fetch("".concat(c.api,"touristiccontent_category/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];c.networkError=false;if(t){c.cities=t.results}if(i){c.districts=i.results}if(r){c.touristicContentCategories=r.results}c.touristicContents=n.results;c.currentTouristicContents=n.results}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Se='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}';var Ee=e("grw_touristic_event_detail",function(){function e(e){t(this,e);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Y(this.swiperImagesRef,{modules:[V,W,Q,we,ve],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.offline=c.currentTouristicEvent.offline};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(c.currentTouristicEvent.attachments&&c.currentTouristicEvent.attachments[0]&&c.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}else{document.exitFullscreen()}}};e.prototype.render=function(){var e=this;var t=o("".concat("","assets/default-image.svg"));var n=c.touristicEventTypes&&c.currentTouristicEvent&&c.touristicEventTypes.find((function(e){return e.id===c.currentTouristicEvent.type}));var a=c.currentTouristicEvent&&c.currentTouristicEvent.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"204px":"164px"}},c.currentTouristicEvent&&i("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:function(t){return e.touristicEventDetailContainerRef=t}},i("div",{part:"images-container",class:"images-container",ref:function(t){return e.presentationRef=t}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).length>0?c.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"icon",translate:false,class:"material-symbols material-symbols-outlined icon"},"close")),i("div",{part:"legend-container",class:"legend-container"},r),i("img",{part:"image",class:"image",crossorigin:"anonymous",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):i("div",{part:"swiper-slide",class:"swiper-slide"},i("img",{part:"default-poi-img",class:"default-poi-img",crossorigin:"anonymous",src:t,loading:"lazy"}))),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),i("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},n&&n.pictogram&&i("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",crossorigin:"anonymous",src:n.pictogram}),n&&n.type&&i("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},n.type)),i("div",{part:"name",class:"name"},c.currentTouristicEvent.name),(c.currentTouristicEvent.begin_date||c.currentTouristicEvent.end_date)&&i("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},c.currentTouristicEvent.begin_date===c.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},s[c.language].date," : ",c.currentTouristicEvent.begin_date),c.currentTouristicEvent.begin_date&&c.currentTouristicEvent.begin_date!==c.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},s[c.language].startDate," : ",c.currentTouristicEvent.begin_date),c.currentTouristicEvent.end_date&&c.currentTouristicEvent.begin_date!==c.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},s[c.language].endDate," : ",c.currentTouristicEvent.end_date)),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},s[c.language].download),i("div",{part:"links-container",class:"links-container"},i("a",{part:"link",class:"link",href:"".concat(c.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"download"),i("span",{part:"label",class:"label"},"PDF")))),c.currentTouristicEvent.description_teaser&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"description-teaser",class:"description-teaser",innerHTML:c.currentTouristicEvent.description_teaser})),i("div",{part:"divider",class:"divider"}),c.currentTouristicEvent.practical_info&&i("div",{part:"description-container",class:"description-container",ref:function(t){return e.descriptionRef=t}},i("div",{part:"description-title",class:"description-title"},s[c.language].description),i("div",{part:"description",class:"description",innerHTML:c.currentTouristicEvent.description})),a&&a.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},s[c.language].city," : "),i("div",{part:"cities",class:"cities",innerHTML:a.join(", ")})),c.currentTouristicEvent.practical_info&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"useful-information-container",class:"useful-information-container"},i("div",{part:"useful-information-title",class:"useful-information-title"},s[c.language].usefulInformation," : "),i("div",{part:"useful-information",class:"useful-information",innerHTML:c.currentTouristicEvent.practical_info}))),(c.currentTouristicEvent.contact||c.currentTouristicEvent.email||c.currentTouristicEvent.website)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"contact-container",class:"contact-container"},i("div",{part:"contact-title",class:"contact-title"},s[c.language].contact," : "),c.currentTouristicEvent.contact&&i("div",{part:"contact",class:"contact",innerHTML:c.currentTouristicEvent.contact}),c.currentTouristicEvent.email&&i("div",{part:"email-container",class:"email-container"},i("div",{part:"email-title",class:"email-title"},s[c.language].email," : "),i("div",{part:"email",class:"email",innerHTML:c.currentTouristicEvent.email})),c.currentTouristicEvent.website&&i("div",{part:"website-container",class:"website-container"},i("div",{part:"website-title",class:"website-title"},s[c.language].website," : "),i("div",{part:"website",class:"website",innerHTML:c.currentTouristicEvent.website})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());Ee.style=Se;function Pe(e,t,i,r){fetch("".concat(e,"touristicevent/").concat(i,"/?language=").concat(t,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true"),r)}function Me(e,t,i,r){return fetch("".concat(e,"touristicevent/?language=").concat(t,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}var ze=e("grw_touristic_event_provider",function(){function e(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicEvent()};e.prototype.handleTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,y("touristicEvents",this.touristicEventId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTouristicEvent(e)}else{this.handleOnlineTouristicEvent()}return[2]}}))}))};e.prototype.handleOfflineTouristicEvent=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!c.cities)return[3,2];t=c;return[4,_("cities")];case 1:t.cities=r.sent();r.label=2;case 2:if(!!c.touristicEventTypes)return[3,4];i=c;return[4,_("touristicEventTypes")];case 3:i.touristicEventTypes=r.sent();r.label=4;case 4:x(e,A);c.currentTouristicEvent=e;return[2]}}))}))};e.prototype.handleOnlineTouristicEvent=function(){var e=[];e.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!c.touristicEventTypes?fetch("".concat(c.api,"touristicevent_type/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[Pe(c.api,c.language,this.touristicEventId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];c.networkError=false;if(t){c.cities=t.results}if(i){c.touristicEventTypes=i.results}c.currentTouristicEvent=r}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Oe='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var Be=e("grw_touristic_events_list",function(){function e(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(c.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],c.currentTouristicEvents.slice(0,this.step),true)}w("currentTouristicEvents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.currentTouristicContents){e.touristicEventsToDisplay=__spreadArray([],c.currentTouristicEvents.slice(0,e.step),true)}}));w("touristicEventsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.touristicEventsWithinBounds){e.touristicEventsToDisplay=__spreadArray([],c.touristicEventsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<c.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=c.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=c.touristicEventsWithinBounds.length?c.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.touristicEventsWithinBounds&&i("div",{part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(c.touristicEventsWithinBounds.length," ").concat(c.touristicEventsWithinBounds.length>1?s[c.language].home.touristicEvents:s[c.language].home.touristicEvent)),i("div",{part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(t){return i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(t.id),touristicEvent:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Be.style=Oe;var Ie=e("grw_touristic_events_provider",function(){function e(e){t(this,e);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}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicEvents()};e.prototype.handleTouristicEvents=function(){var e="".concat(c.api,"touristicevent/?language=").concat(c.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var t=[];t.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!c.districts?fetch("".concat(c.api,"district/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!c.touristicEventTypes?fetch("".concat(c.api,"touristicevent_type/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];c.networkError=false;if(t){c.cities=t.results}if(i){c.districts=i.results}if(r){c.touristicEventTypes=r.results}c.touristicEvents=n.results;c.currentTouristicEvents=n.results}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.render=function(){return i(r,null)};return e}());var Fe='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{font-size:24px;width:24px;height:auto;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .material-symbols,.gear-container .material-symbols{font-size:24px;width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width: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}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{font-size:16px}';var De=1;var Re={visible:true,indicator:false,ref:"presentationOptionRef"};var Ne={visible:false,indicator:false,ref:"stepsOptionRef"};var Ge={visible:false,indicator:false,ref:"descriptionOptionRef"};var je={visible:false,indicator:false,ref:"poisOptionRef"};var Ze={visible:false,indicator:false,ref:"recommendationsOptionRef"};var Ue={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var He={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var Ye={visible:false,indicator:false,ref:"accessibilityOptionRef"};var Ve={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var We={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var Qe={presentation:Re,steps:Ne,description:Ge,pois:je,recommendations:Ze,sensitiveArea:Ue,informationPlaces:He,accessibility:Ye,touristicContents:Ve,touristicEvents:We};var Xe=e("grw_trek_detail",function(){function e(e){t(this,e);this.descriptionIsInViewport=n(this,"descriptionIsInViewport",7);this.parkingIsInViewport=n(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=n(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=n(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.stepsIsInViewport=n(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.parentTrekPress=n(this,"parentTrekPress",7);this.trekDownloadConfirm=n(this,"trekDownloadConfirm",7);this.trekDownloadedSuccessConfirm=n(this,"trekDownloadedSuccessConfirm",7);this.trekDeleteConfirm=n(this,"trekDeleteConfirm",7);this.trekDeleteSuccessConfirm=n(this,"trekDeleteSuccessConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.offline=false;this.trek=undefined;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.trekTilesMinZoomOffline=12;this.trekTilesMaxZoomOffline=16}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Y(this.swiperImagesRef,{modules:[V,W,Q,we,ve],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.swiperStep=new Y(this.swiperStepRef,{modules:[we,ve,be],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperPois=new Y(this.swiperPoisRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperInformationDesks=new Y(this.swiperInformationDesksRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperTouristicContents=new Y(this.swiperTouristicContentsRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});this.swiperTouristicEvents=new Y(this.swiperTouristicEventsRef,{modules:[we,ve,be],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}},loop:false});if(this.presentationRef){this.presentationObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef){this.stepsObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.stepsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{steps:Object.assign(Object.assign({},e.defaultOptions.steps),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef){this.descriptionObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.descriptionIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{description:Object.assign(Object.assign({},e.defaultOptions.description),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef){this.recommendationsObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{recommendations:Object.assign(Object.assign({},e.defaultOptions.recommendations),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef){this.parkingObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.parkingIsInViewport.emit(i)}),{threshold:De});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef){this.sensitiveAreaObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sensitiveAreaIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{sensitiveArea:Object.assign(Object.assign({},e.defaultOptions.sensitiveArea),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){this.informationPlacesObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{informationPlaces:Object.assign(Object.assign({},e.defaultOptions.informationPlaces),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef){this.accessibilityObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{accessibility:Object.assign(Object.assign({},e.defaultOptions.accessibility),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef){this.poiObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{pois:Object.assign(Object.assign({},e.defaultOptions.pois),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicContents:Object.assign(Object.assign({},e.defaultOptions.touristicContents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicEvents:Object.assign(Object.assign({},e.defaultOptions.touristicEvents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:De});this.touristicEventObserver.observe(this.touristicContentsRef)}};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.currentTrek=this.trek?this.trek:c.currentTrek;if(this.currentTrek){this.offline=this.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=c.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=c.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=c.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=c.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=c.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=c.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=c.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(c.accessibilitiesLevel){this.accessibilityLevel=c.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}w("currentTrek",(function(){return __awaiter(e,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.currentTrek=this.trek?this.trek:c.currentTrek;if(this.currentTrek){this.offline=this.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=c.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=c.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=c.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=c.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=c.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=c.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=c.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(c.accessibilitiesLevel){this.accessibilityLevel=c.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=c.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}return[2]}))}))}));return[2]}))}))};e.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};e.prototype.handleOptions=function(){var e=this;return Object.assign(Object.assign({},Qe),{presentation:Object.assign({},Re),steps:Object.assign(Object.assign({},Ne),{visible:Boolean(c.parentTrek)}),description:Object.assign(Object.assign({},Ge),{visible:Boolean(this.currentTrek.description)}),pois:Object.assign(Object.assign({},je),{visible:Boolean(c.currentPois&&c.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},Ze),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Ue),{visible:Boolean(c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},He),{visible:Boolean(c.currentInformationDesks&&c.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},Ye),{visible:Boolean(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Ve),{visible:Boolean(c.trekTouristicContents&&c.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},We),{visible:Boolean(c.trekTouristicEvents&&c.trekTouristicEvents.length>0)})})};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.handleIndicatorSelectedTrekOption=function(){var e;var t=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!e&&o<n.length){if(n[o].indicator){e=n[o]}else{if(n[o].visible){t+=1;i+=this[n[o].ref].clientWidth}}o++}if(e&&this[e.ref]){r=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*t-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:e.ref}}};e.prototype.handleScrollTo=function(e){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})};e.prototype.getCurrentStepIndex=function(){var e=this;return c.currentTrekSteps?c.currentTrekSteps.findIndex((function(t){return t.id===e.currentTrek.id})):0};e.prototype.downloadGlobalTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,a,s;return __generator(this,(function(l){switch(l.label){case 0:i=b.tileLayerOffline(e,{attribution:t});r=[];if(c.treks){for(n=0,o=c.treks;n<o.length;n++){a=o[n];r.push(a.departure_geom)}}s=g.latLngBounds(r.map((function(e){return[e[1],e[0]]})));return[4,T(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:l.sent();return[2]}}))}))};e.prototype.downloadTrekTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=b.tileLayerOffline(e,{attribution:t});r=g.latLngBounds(this.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));return[4,T(i,r,this.trekTilesMinZoomOffline,this.trekTilesMaxZoomOffline)];case 1:n.sent();return[2]}}))}))};e.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a,s,l,p,u,d,h,f,m,g,v,v,b,w,v,y,k;var x=this;return __generator(this,(function(L){switch(L.label){case 0:e=new AbortController;t=e.signal;i={cache:"default",signal:t};return[4,_("treks")];case 1:r=L.sent().filter((function(e){return e.offline===true}));if(!!c.treks)return[3,4];return[4,X(c.api,c.language,c.inBboxFromProviders,c.citiesFromProviders,c.districts,c.structuresFromProviders,c.themesFromProviders,c.portalsFromProviders,c.routesFromProviders,c.practicesFromProviders,i)];case 2:o=L.sent();a=c;return[4,o.json()];case 3:a.treks=L.sent().results;L.label=4;case 4:n=c.treks;n=n.filter((function(e){return r.findIndex((function(t){return t.id===e.id}))===-1}));if(!!c.districts)return[3,7];return[4,J(c.api,c.language,i)];case 5:s=L.sent();l=c;return[4,s.json()];case 6:l.districts=L.sent().results;L.label=7;case 7:return[4,C("treks",n)];case 8:L.sent();return[4,C("districts",c.districts)];case 9:L.sent();return[4,S(c.difficulties,A)];case 10:L.sent();return[4,S(c.routes,A)];case 11:L.sent();return[4,S(c.practices,A)];case 12:L.sent();return[4,S(c.themes,A)];case 13:L.sent();return[4,S(c.labels,A)];case 14:L.sent();return[4,S(c.districts,A)];case 15:L.sent();return[4,S(c.sources,A)];case 16:L.sent();return[4,S(c.accessibilities,A)];case 17:L.sent();return[4,S(c.poiTypes,A)];case 18:L.sent();return[4,S(c.currentInformationDesks,A)];case 19:L.sent();return[4,S(c.touristicContentCategories,A)];case 20:L.sent();return[4,S(c.touristicEventTypes,A)];case 21:L.sent();return[4,S(c.networks,A)];case 22:L.sent();return[4,S(this.currentTrek,A,true)];case 23:L.sent();return[4,C("difficulties",c.difficulties)];case 24:L.sent();return[4,C("routes",c.routes)];case 25:L.sent();return[4,C("practices",c.practices.map((function(e){return Object.assign(Object.assign({},e),{selected:false})})))];case 26:L.sent();return[4,C("themes",c.themes)];case 27:L.sent();return[4,C("cities",c.cities)];case 28:L.sent();return[4,C("accessibilities",c.accessibilities)];case 29:L.sent();return[4,C("ratings",c.ratings)];case 30:L.sent();return[4,C("ratingsScale",c.ratingsScale)];case 31:L.sent();return[4,C("sensitiveAreas",c.currentSensitiveAreas)];case 32:L.sent();return[4,C("labels",c.labels)];case 33:L.sent();return[4,C("sources",c.sources)];case 34:L.sent();return[4,C("accessibilitiesLevel",c.accessibilitiesLevel)];case 35:L.sent();return[4,C("touristicContentCategories",c.touristicContentCategories)];case 36:L.sent();return[4,C("touristicEvents",c.trekTouristicEvents)];case 37:L.sent();return[4,C("touristicEventTypes",c.touristicEventTypes)];case 38:L.sent();return[4,C("networks",c.networks)];case 39:L.sent();return[4,C("pois",c.currentPois)];case 40:L.sent();return[4,C("poiTypes",c.poiTypes)];case 41:L.sent();return[4,C("informationDesks",c.currentInformationDesks)];case 42:L.sent();return[4,C("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true})])];case 43:L.sent();return[4,S(c.currentPois,A,true)];case 44:L.sent();return[4,S(c.currentInformationDesks,A,true)];case 45:L.sent();return[4,S(c.trekTouristicContents,A,true)];case 46:L.sent();c.trekTouristicContents.forEach((function(e){e.offline=true}));return[4,C("touristicContents",c.trekTouristicContents)];case 47:L.sent();return[4,S(c.trekTouristicEvents,A,true)];case 48:L.sent();c.trekTouristicEvents.forEach((function(e){e.offline=true}));return[4,C("touristicEvents",c.trekTouristicEvents)];case 49:L.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,71];p=[];p.push.apply(p,this.currentTrek.children);u=[];d=[];h=[];p.forEach((function(e){u.push(q(c.api,c.language,e,i));d.push(xe(c.api,c.language,e,i));h.push(Me(c.api,c.language,e,i))}));return[4,Promise.all(__spreadArray([],u,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 50:f=L.sent();return[4,Promise.all(__spreadArray([],d,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 51:m=L.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 52:g=L.sent();v=0;L.label=53;case 53:if(!(v<f.length))return[3,57];f[v].offline=true;return[4,C("treks",[f[v]])];case 54:L.sent();return[4,S(f[v],A,true)];case 55:L.sent();L.label=56;case 56:v++;return[3,53];case 57:v=0;L.label=58;case 58:if(!(v<m.length))return[3,64];b=m[v];w=0;L.label=59;case 59:if(!(w<b.results.length))return[3,63];b.results[w].offline=true;return[4,C("touristicContents",[b.results[w]])];case 60:L.sent();return[4,S(b.results[w],A,true)];case 61:L.sent();L.label=62;case 62:w++;return[3,59];case 63:v++;return[3,58];case 64:v=0;L.label=65;case 65:if(!(v<g.length))return[3,71];y=g[v];k=0;L.label=66;case 66:if(!(k<y.results.length))return[3,70];y[k].offline=true;return[4,C("touristicEvents",[y[k]])];case 67:L.sent();return[4,S(y[k],A,true)];case 68:L.sent();L.label=69;case 69:k++;return[3,66];case 70:v++;return[3,65];case 71:c.treks.find((function(e){return e.id===x.currentTrek.id})).offline=true;if(!c.currentTreks){c.currentTreks=c.treks}c.currentTreks.find((function(e){return e.id===x.currentTrek.id})).offline=true;this.swiperImages.slideTo(0);this.offline=true;this.trekDownloadedSuccessConfirm.emit();return[2]}}))}))};e.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r;var n=this;return __generator(this,(function(o){switch(o.label){case 0:e=[];return[4,y("treks",this.currentTrek.id)];case 1:t=o.sent();this.deleteOfflineTrekProperties(t);e.push(t);if(!(this.currentTrek.children.length>0))return[3,5];i=0;o.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,y("treks",this.currentTrek.children[i])];case 3:r=o.sent();this.deleteOfflineTrekProperties(r);e.push(r);o.label=4;case 4:i++;return[3,2];case 5:return[4,C("treks",e)];case 6:o.sent();if(c.treks){delete c.treks.find((function(e){return e.id===n.currentTrek.id})).offline;if(!c.currentTreks){c.currentTreks=c.treks}delete c.currentTreks.find((function(e){return e.id===n.currentTrek.id})).offline}if(c.parentTrek){delete c.parentTrek.offline}if(c.currentTrekSteps){c.currentTrekSteps.forEach((function(e){delete e.offline}))}this.offline=false;this.trekDeleteSuccessConfirm.emit();return[2]}}))}))};e.prototype.displayTrekDownloadModal=function(){this.trekDownloadConfirm.emit()};e.prototype.displayTrekDeleteModal=function(){this.trekDeleteConfirm.emit()};e.prototype.onTrekDownloadPress=function(){this.downloadTrek()};e.prototype.onTrekDeletePress=function(){this.deleteTrek()};e.prototype.deleteOfflineTrekProperties=function(e){delete e.descent;delete e.geometry;delete e.gpx;delete e.kml;delete e.pdf;delete e.parking_location;delete e.arrival;delete e.ambiance;delete e.access;delete e.public_transport;delete e.advice;delete e.advised_parking;delete e.gear;delete e.source;delete e.points_reference;delete e.disabled_infrastructure;delete e.accessibility_level;delete e.accessibility_slope;delete e.accessibility_width;delete e.accessibility_signage;delete e.accessibility_covering;delete e.accessibility_exposure;delete e.accessibility_advice;delete e.ratings;delete e.ratings_description;delete e.children;delete e.networks;delete e.web_links;delete e.update_datetime;delete e.offline};e.prototype.render=function(){var e=this;var t,n,a,l,p;var u=o("".concat("","assets/default-image.svg"));return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"244px":"204px"}},this.currentTrek&&i("div",{part:"trek-options",class:"trek-options"},i("a",{part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(t){return e.presentationOptionRef=t},onClick:function(){return e.handleScrollTo(e.presentationRef)}},s[c.language].options.presentation),this.options.steps.visible&&i("a",{part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(t){return e.stepsOptionRef=t},onClick:function(){return e.handleScrollTo(e.stepsRef)}},s[c.language].options.steps),this.options.description.visible&&i("a",{part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(t){return e.descriptionOptionRef=t},onClick:function(){return e.handleScrollTo(e.descriptionRef)}},s[c.language].options.description),this.options.pois.visible&&i("a",{part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(t){return e.poisOptionRef=t},onClick:function(){return e.handleScrollTo(e.poiRef)}},s[c.language].options.pois),this.options.recommendations.visible&&i("a",{part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(t){return e.recommendationsOptionRef=t},onClick:function(){return e.handleScrollTo(e.recommendationRef)}},s[c.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(t){return e.sensitiveAreaOptionRef=t},onClick:function(){return e.handleScrollTo(e.sensitiveAreaRef)}},s[c.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(t){return e.informationPlacesOptionRef=t},onClick:function(){return e.handleScrollTo(e.informationPlacesRef)}},s[c.language].options.informationPlaces),this.options.accessibility.visible&&i("a",{part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(t){return e.accessibilityOptionRef=t},onClick:function(){return e.handleScrollTo(e.accessibilityRef)}},s[c.language].options.accessibility),this.options.touristicContents.visible&&i("a",{part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(t){return e.touristicContentsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicContentsRef)}},s[c.language].options.touristicContents),this.options.touristicEvents.visible&&i("a",{part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(t){return e.touristicEventsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicEventsRef)}},s[c.language].options.touristicEvents),this.presentationOptionRef&&i("span",{part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&i("div",{part:"trek-detail-container",class:"trek-detail-container",ref:function(t){return e.trekDetailContainerRef=t}},i("div",{part:"trek-images",class:"trek-images-container",ref:function(t){return e.presentationRef=t}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0?this.currentTrek.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon material-symbols material-symbols-outlined",translate:false},"close")),i("div",{part:"trek-image-legend",class:"trek-image-legend"},r),i("img",{part:"trek-img",class:"trek-img",crossorigin:"anonymous",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()},onerror:function(e){e.target.onerror=null;e.target.className="trek-img default-trek-img";e.target.src=u}}))})):i("img",{part:"trek-img",class:"trek-img default-trek-img",crossorigin:"anonymous",src:u,loading:"lazy"})),i("div",{style:{display:this.offline?"none":"flex"}},i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}})))),i("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&i("div",{part:"themes-container",class:"themes-container"},this.themes.map((function(e){return i("div",{part:"theme",class:"theme"},e.label)}))),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&i("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:this.difficulty.pictogram}),i("span",{part:"label",class:"label"},this.difficulty.label)),i("div",{part:"icon-label",class:"icon-label duration"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"timelapse"),i("span",{part:"label",class:"label"},E((t=this.currentTrek)===null||t===void 0?void 0:t.duration))),i("div",{part:"icon-label",class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:this.route.pictogram}),i("span",{part:"label",class:"label"},(a=this.route)===null||a===void 0?void 0:a.route)),i("div",{part:"icon-label",class:"icon-label length"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"open_in_full"),i("span",{part:"label",class:"label"},P(this.currentTrek.length_2d))),this.currentTrek.ascent&&i("div",{part:"icon-label",class:"icon-label ascent"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"moving"),i("span",{part:"label",class:"label"},M(this.currentTrek.ascent))),this.currentTrek.descent&&i("div",{part:"icon-label",class:"icon-label descent"},i("span",{part:"icon",class:"icon material-symbols material-symbols-outlined",translate:false},"moving"),i("span",{part:"label",class:"label"},z(this.currentTrek.descent))),i("div",{part:"icon-label",class:"icon-label practice"},((l=this.practice)===null||l===void 0?void 0:l.pictogram)&&i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:this.practice.pictogram}),i("span",{part:"label",class:"label"},(p=this.practice)===null||p===void 0?void 0:p.name)),i("div",{part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((function(e){var t=c.networks.find((function(t){return t.id===e}));return i("div",{part:"network",class:"network"},i("img",{part:"icon",class:"icon",crossorigin:"anonymous",src:t.pictogram}),i("span",{part:"label",class:"label"},t.label))}))),this.currentTrek.ratings.map((function(e){return i("div",{part:"row",class:"row"},"".concat(c.ratingsScale.find((function(t){return t.id===c.ratings.find((function(t){return t.id===e})).scale})).name," : ").concat(c.ratings.find((function(t){return t.id===e})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&i("div",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},s[c.language].downloads),this.enableOffline&&!this.offline&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return e.displayTrekDownloadModal()}},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download_for_offline"),i("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return e.displayTrekDeleteModal()}},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"delete"),i("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download"),i("span",{part:"label",class:"label"},"GPX")),i("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download"),i("span",{part:"label",class:"label"},"KML")),i("a",{href:"".concat(this.currentTrek.pdf).concat(c.portalsFromProviders&&c.portalsFromProviders.length===1?"?portal="+c.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"download"),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&i("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),c.parentTrekId&&c.parentTrek&&this.currentTrek.id!==c.parentTrekId&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"parent-trek-container",class:"parent-trek-container"},i("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return e.parentTrekPress.emit(c.parentTrekId)}},i("div",null,"<"),c.parentTrek.name))),c.currentTrekSteps&&i("div",{part:"step-container",class:"step-container"},i("div",{part:"step-title",class:"step-title",ref:function(t){return e.stepsRef=t}},"".concat(c.currentTrekSteps.length," ").concat(s[c.language].steps)),i("div",{part:"swiper-step",class:"swiper swiper-step",ref:function(t){return e.swiperStepRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTrekSteps&&c.currentTrekSteps.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(t.id),trek:t,"is-large-view":false,"is-step":true,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.stepSwiperScrollbar=t}}))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(t){return e.descriptionRef=t}},s[c.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},s[c.language].departure," : "),i("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{part:"arrival-container",class:"arrival-container"},i("div",{part:"arrival-title",class:"arrival-title"},s[c.language].arrival," : "),i("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},s[c.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.cities.join(", ")})),c.currentPois&&c.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(t){return e.poiRef=t}},s[c.language].pois(c.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentPois.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.poisSwiperScrollbar=t}})))),this.weather&&this.currentTrek.departure_city&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"access-container",class:"access-container"},i("div",{part:"access-title",class:"access-title"},s[c.language].roadAccessAndParking),i("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&i("div",null,i("div",{part:"advised-parking-title",class:"advised-parking-title",ref:function(t){return e.parkingRef=t}},s[c.language].recommendedParking),i("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"public-transport-container",class:"public-transport-container"},i("div",{part:"public-transport-title",class:"public-transport-title"},s[c.language].transport),i("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(t){return e.recommendationRef=t}},s[c.language].recommendations),this.currentTrek.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"warning"),i("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&i("div",{part:"gear-container",class:"gear-container"},i("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"backpack"),i("div",{part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(e){return i("div",{part:"label-container",class:"label-container"},i("div",{part:"label-sub-container",class:"label-sub-container"},e.pictogram&&i("img",{crossorigin:"anonymous",src:e.pictogram}),i("div",{part:"label-name",class:"label-name",innerHTML:e.name})),i("div",{part:"label-advice",class:"label-advice",innerHTML:e.advice}))})))),c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},i("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(t){return e.sensitiveAreaRef=t}},s[c.language].environmentalSensitiveAreas),i("div",{part:"sensitive-areas-description",class:"sensitive-areas-description"},s[c.language].sensitiveAreasDescription),c.currentSensitiveAreas.map((function(e){return i("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value",sensitiveArea:e})})))),c.currentInformationDesks&&c.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"information-desks-container",class:"information-desks-container"},i("div",{part:"information-desks-title",class:"information-desks-title",ref:function(t){return e.informationPlacesRef=t}},s[c.language].informationPlaces),i("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.informationDesksContentsSwiperScrollbar=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||this.emergencyNumber)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilities-title",class:"accessibilities-title",ref:function(t){return e.accessibilityRef=t}},s[c.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&i("div",{part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(e){return i("div",{part:"accessibility-content-container",class:"accessibility-content-container"},i("img",{crossorigin:"anonymous",src:e.pictogram}),i("div",{part:"accessibility-name",innerHTML:e.name}))}))),this.emergencyNumber&&i("div",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},i("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},s[c.language].emergencyNumber),i("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},i("a",{href:"tel:".concat(this.emergencyNumber.toString())},i("span",{part:"icon",class:"material-symbols material-symbols-outlined icon",translate:false},"call"),i("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&i("div",{part:"accessibility-level-container",class:"accessibility-level-container"},i("div",{part:"accessibility-level-title",class:"accessibility-level-title"},s[c.language].accessibilityLevel),i("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},i("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},s[c.language].accessibilitySlope),i("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{part:"accessibility-width-container",class:"accessibility-width-container"},i("div",{part:"accessibility-width-title",class:"accessibility-width-title"},s[c.language].accessibilityWidth),i("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},i("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},s[c.language].accessibilitySignage),i("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},i("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},s[c.language].accessibilityCovering),i("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},i("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},s[c.language].accessibilityExposure),i("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},i("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},s[c.language].accessibilityAdvices),i("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),c.trekTouristicContents&&c.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(t){return e.touristicContentsRef=t}},s[c.language].touristicContents(c.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicContents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:e.fontFamily,touristicContent:t,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicContentsSwiperScrollbar=t}})))),c.trekTouristicEvents&&c.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(t){return e.touristicEventsRef=t}},s[c.language].touristicEvents(c.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicEvents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:e.fontFamily,touristicEvent:t}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicEventsSwiperScrollbar=t}})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weblinks-container",class:"weblinks-container"},i("div",{part:"weblinks-title",class:"weblinks-title"},s[c.language].learnMore),this.currentTrek.web_links.map((function(e){return i("a",{part:"weblink-container",class:"weblink-container",href:e.url,target:"_blank",rel:"noopener noreferrer"},e.category&&e.category.pictogram&&i("img",{crossorigin:"anonymous",src:e.category.pictogram}),e.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"source-container",class:"source-container"},i("div",{part:"source-title",class:"source-title"},s[c.language].sources),this.sources.map((function(e){return i("div",{part:"source-sub-container",class:"source-sub-container"},e.pictogram&&i("img",{crossorigin:"anonymous",src:e.pictogram}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:e.name}),i("a",{part:"source-advice",class:"source-advice",href:e.website,innerHTML:e.website})))})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());Xe.style=Fe;var Je=e("grw_trek_provider",function(){function e(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;c.routesFromProviders=this.routes;c.practicesFromProviders=this.practices;this.handleTrek()};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,y("treks",this.trekId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTrek(e)}else{this.handleOnlineTrek()}return[2]}}))}))};e.prototype.handleOfflineTrek=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l,p,u,d,h,f,m,g,v,b,w,k,L,T,C,S,E;return __generator(this,(function(P){switch(P.label){case 0:if(!(e&&e.children.length>0||c.parentTrekId))return[3,5];t=[];if(!(e.children.length>0))return[3,1];c.parentTrekId=e.id;c.parentTrek=e;t.push.apply(t,e.children);return[3,3];case 1:return[4,y("treks",c.parentTrekId)];case 2:i=P.sent();c.parentTrek=i;t.push.apply(t,i.children);P.label=3;case 3:r=[];t.forEach((function(e){r.push(y("treks",e))}));n=c;return[4,Promise.all(__spreadArray([],r,true)).then((function(e){return e}))];case 4:n.currentTrekSteps=P.sent();P.label=5;case 5:if(!!c.difficulties)return[3,7];return[4,_("difficulties")];case 6:o=P.sent();x(o,A);c.difficulties=o;P.label=7;case 7:if(!!c.routes)return[3,9];a=c;return[4,_("routes")];case 8:a.routes=P.sent();P.label=9;case 9:if(!!c.practices)return[3,11];s=c;return[4,_("practices")];case 10:s.practices=P.sent();P.label=11;case 11:if(!!c.themes)return[3,13];l=c;return[4,_("themes")];case 12:l.themes=P.sent();P.label=13;case 13:if(!!c.cities)return[3,15];p=c;return[4,_("cities")];case 14:p.cities=P.sent();P.label=15;case 15:if(!!c.accessibilities)return[3,17];u=c;return[4,_("accessibilities")];case 16:u.accessibilities=P.sent();P.label=17;case 17:if(!!c.ratings)return[3,19];d=c;return[4,_("ratings")];case 18:d.ratings=P.sent();P.label=19;case 19:if(!!c.ratingsScale)return[3,21];h=c;return[4,_("ratingsScale")];case 20:h.ratingsScale=P.sent();P.label=21;case 21:if(!!c.currentSensitiveAreas)return[3,23];f=c;return[4,_("sensitiveAreas")];case 22:f.currentSensitiveAreas=P.sent();P.label=23;case 23:if(!!c.labels)return[3,25];m=c;return[4,_("labels")];case 24:m.labels=P.sent();P.label=25;case 25:if(!!c.sources)return[3,27];g=c;return[4,_("sources")];case 26:g.sources=P.sent();P.label=27;case 27:if(!!c.accessibilitiesLevel)return[3,29];v=c;return[4,_("accessibilitiesLevel")];case 28:v.accessibilitiesLevel=P.sent();P.label=29;case 29:if(!!c.trekTouristicContents)return[3,31];return[4,_("touristicContents")];case 30:b=P.sent();x(b,A);c.trekTouristicContents=b;P.label=31;case 31:if(!!c.touristicContentCategories)return[3,33];w=c;return[4,_("touristicContentCategories")];case 32:w.touristicContentCategories=P.sent();P.label=33;case 33:if(!!c.trekTouristicEvents)return[3,35];k=c;return[4,_("touristicEvents")];case 34:k.trekTouristicEvents=P.sent();P.label=35;case 35:if(!!c.touristicEventTypes)return[3,37];L=c;return[4,_("touristicEventTypes")];case 36:L.touristicEventTypes=P.sent();P.label=37;case 37:if(!!c.networks)return[3,39];T=c;return[4,_("networks")];case 38:T.networks=P.sent();P.label=39;case 39:if(!!c.currentPois)return[3,41];return[4,_("pois")];case 40:C=P.sent();x(C,A);c.currentPois=C;P.label=41;case 41:if(!!c.poiTypes)return[3,43];S=c;return[4,_("poiTypes")];case 42:S.poiTypes=P.sent();P.label=43;case 43:if(!!c.currentInformationDesks)return[3,45];E=c;return[4,_("informationDesks")];case 44:E.currentInformationDesks=P.sent();P.label=45;case 45:x(e,A);c.currentTrek=e;return[2]}}))}))};e.prototype.handleOnlineTrek=function(){var e=this;var t=[];t.push(!c.difficulties?fetch("".concat(c.api,"trek_difficulty/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!c.routes?fetch("".concat(c.api,"trek_route/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));t.push(!c.practices?fetch("".concat(c.api,"trek_practice/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!c.themes?fetch("".concat(c.api,"theme/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!c.cities?fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!c.accessibilities?fetch("".concat(c.api,"trek_accessibility/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!c.ratings?fetch("".concat(c.api,"trek_rating/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));t.push(!c.ratings?fetch("".concat(c.api,"trek_ratingscale/?language=").concat(c.language,"&fields=id,name"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(c.language,"&published=true&trek=").concat(this.trekId,"&period=ignore&fields=id,geometry,name,description,contact,info_url,period,practices"),this.init).then((function(e){if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(c.api,"label/?language=").concat(c.language,"&fields=id,name,advice,pictogram"),this.init),fetch("".concat(c.api,"source/?language=").concat(c.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(c.api,"trek_accessibility_level/?language=").concat(c.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(c.api,"poi/?language=").concat(c.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(c.api,"poi_type/?language=").concat(c.language,"&fields=id,pictogram"),this.init),fetch("".concat(c.api,"informationdesk/?language=").concat(c.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),xe(c.api,c.language,this.trekId,this.init),fetch("".concat(c.api,"touristiccontent_category/?language=").concat(c.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),Me(c.api,c.language,this.trekId,this.init),fetch("".concat(c.api,"touristicevent_type/?language=").concat(c.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(c.api,"trek_network/?language=").concat(c.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),q(c.api,c.language,this.trekId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],l=t[6],p=t[7],u=t[8],d=t[9],h=t[10],f=t[11],m=t[12],g=t[13],v=t[14],b=t[15],w=t[16],y=t[17],k=t[18],_=t[19],x=t[20];return __awaiter(e,void 0,void 0,(function(){var e,t,A,L;var T=this;return __generator(this,(function(C){switch(C.label){case 0:c.networkError=false;if(!(x&&x.children.length>0||c.parentTrekId))return[3,5];e=[];if(!(x.children.length>0))return[3,1];c.parentTrekId=x.id;c.parentTrek=x;e.push.apply(e,x.children);return[3,3];case 1:return[4,fetch("".concat(c.api,"trek/").concat(c.parentTrekId,"/?language=").concat(c.language,"&published=true&fields=name,children")).then((function(e){return e.json()}))];case 2:t=C.sent();c.parentTrek=t;e.push.apply(e,t.children);C.label=3;case 3:A=[];e.forEach((function(e){A.push(q(c.api,c.language,e,T.init))}));L=c;return[4,Promise.all(__spreadArray([],A,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 4:L.currentTrekSteps=C.sent();C.label=5;case 5:if(i){c.difficulties=i.results}if(r){c.routes=r.results}if(n){c.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}))}if(o){c.themes=o.results}if(a){c.cities=a.results}if(s){c.accessibilities=s.results}if(l){c.ratings=l.results}if(p){c.ratingsScale=p.results}if(u){c.currentSensitiveAreas=u.results}if(d){c.labels=d.results}if(h){c.sources=h.results}if(f){c.accessibilitiesLevel=f.results}if(b){c.trekTouristicContents=b.results}if(w){c.touristicContentCategories=w.results}if(y){c.trekTouristicEvents=y.results}if(k){c.touristicEventTypes=k.results}if(_){c.networks=_.results}if(m){c.currentPois=m.results}if(g){c.poiTypes=g.results}if(v){c.currentInformationDesks=v.results}if(x){c.currentTrek=x}return[2]}}))}))}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){c.networkError=true}}};e.prototype.render=function(){return i(r,null)};return e}());var qe='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}';var Ke=e("grw_treks_list",function(){function e(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(c.currentTreks){this.treksToDisplay=__spreadArray([],c.currentTreks.slice(0,this.step),true)}w("currentTreks",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.currentTreks){e.treksToDisplay=__spreadArray([],c.currentTreks.slice(0,e.step),true)}}));w("treksWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(c.treksWithinBounds){e.treksToDisplay=__spreadArray([],c.treksWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<c.treksWithinBounds.length){this.treksToDisplay=c.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=c.treksWithinBounds.length?c.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(c.treksWithinBounds.length," ").concat(c.treksWithinBounds.length>1?s[c.language].treks:s[c.language].trek)),i("div",{part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(t){return i("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(t.id),trek:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Ke.style=qe;var $e=e("grw_treks_provider",function(){function e(e){t(this,e);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}e.prototype.connectedCallback=function(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;c.routesFromProviders=this.routes;c.practicesFromProviders=this.practices;this.handleTreks()};e.prototype.disconnectedCallback=function(){this.controller.abort();c.networkError=false};e.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleOnlineTreks();return[2]}))}))};e.prototype.handleOfflineTreks=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,l;return __generator(this,(function(p){switch(p.label){case 0:if(!!c.difficulties)return[3,2];t=c;return[4,_("difficulties")];case 1:t.difficulties=p.sent();p.label=2;case 2:if(!!c.routes)return[3,4];i=c;return[4,_("routes")];case 3:i.routes=p.sent();p.label=4;case 4:if(!!c.practices)return[3,6];r=c;return[4,_("practices")];case 5:r.practices=p.sent();p.label=6;case 6:if(!!c.themes)return[3,8];n=c;return[4,_("themes")];case 7:n.themes=p.sent();p.label=8;case 8:if(!!c.cities)return[3,10];o=c;return[4,_("cities")];case 9:o.cities=p.sent();p.label=10;case 10:if(!!c.accessibilities)return[3,12];a=c;return[4,_("accessibilities")];case 11:a.accessibilities=p.sent();p.label=12;case 12:if(!!c.labels)return[3,14];s=c;return[4,_("labels")];case 13:s.labels=p.sent();p.label=14;case 14:if(!!c.districts)return[3,16];l=c;return[4,_("districts")];case 15:l.districts=p.sent();p.label=16;case 16:if(!c.durations){c.durations=O}if(!c.lengths){c.lengths=B}if(!c.elevations){c.elevations=I}this.sortTreks(e);c.treks=e;c.currentTreks=e;return[2]}}))}))};e.prototype.sortTreks=function(e){e.sort((function(e,t){return e.name.localeCompare(t.name,undefined,{numeric:true,sensitivity:"base"})}))};e.prototype.handleOnlineTreks=function(){var e=this;Promise.all([fetch("".concat(c.api,"trek_difficulty/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(c.api,"trek_route/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(c.api,"trek_practice/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(c.api,"theme/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(c.api,"city/?language=").concat(c.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(c.api,"trek_accessibility/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(c.api,"label/?language=").concat(c.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram,filter&published=true&page_size=999"),this.init),J(c.api,c.language,this.init),X(this.api,c.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.init)]).then((function(e){e.forEach((function(e){if(e.status!==200){throw new Error("network error")}}));return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],l=t[6],p=t[7],u=t[8];return __awaiter(e,void 0,void 0,(function(){var e,t,d;return __generator(this,(function(h){switch(h.label){case 0:c.networkError=false;c.difficulties=i.results;c.routes=r.results;c.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}));c.themes=o.results;c.cities=a.results;c.accessibilities=s.results;c.labels=l.results;c.districts=p.results;c.durations=O;c.lengths=B;c.elevations=I;e=[];t=0;h.label=1;case 1:if(!(t<u.results.length))return[3,4];return[4,K(u.results[t].id)];case 2:d=h.sent();e.push(Object.assign(Object.assign({},u.results[t]),{offline:d}));h.label=3;case 3:t++;return[3,1];case 4:c.treks=e;c.currentTreks=e;return[2]}}))}))})).catch((function(){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,_("treks")];case 1:e=t.sent();if(e&&e.length>0){this.handleOfflineTreks(e)}else{c.networkError=true}return[2]}}))}))}))};e.prototype.render=function(){return i(r,null)};return e}())}}}));
11
+ //# sourceMappingURL=p-dfd293bb.system.entry.js.map