diff --git a/src/Resources/public/build/c4g-maps.js b/src/Resources/public/build/c4g-maps.js
index 704466b7..6037fdb4 100644
--- a/src/Resources/public/build/c4g-maps.js
+++ b/src/Resources/public/build/c4g-maps.js
@@ -1,2 +1,2 @@
/*! For license information please see c4g-maps.js.LICENSE.txt */
-(()=>{var e,n,t,r,l={"./src/Resources/public/js/c4g-maps-constant-i18n-de.js":(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.langConstantsGerman=void 0,n.langConstantsGerman={LANG:"de",NAME:"Name",HIDE:"Zuklappen",CLOSE:"Schließen",POINT:"POI",FREEHAND:"Freihand",LINE:"Linie",POLYGON:"Fläche",CIRCLE:"Kreis",PERIMETER:"Umfang",LENGTH:"Länge",SURFACEAREA:"Flächeninhalt",RADIUS:"Radius",REFRESH:"Aktualisieren",ACCEPT:"Akzeptieren",CANCEL:"Abbrechen",COPY_TO_CLIPBOARD:"In Zwischenablage kopieren",CTRL_ZOOM_IN:"Vergrößern",CTRL_ZOOM_OUT:"Verkleinern",CTRL_ZOOM_EXT:"Maximal verkleinern",CTRL_ZOOM_HOME:"Zur ursprünglichen Position",CTRL_ZOOM_POS:"Zum aktuellen Standort",CTRL_ZOOM_SLIDER:"Zoom Slider",CTRL_RESET_ROTATION:"Rotation (touch, ctrl+shift+mouse) zurücksetzen",CTRL_PORTSIDE:"Portside ein-/ausblenden",CTRL_ROUTER:"Router ein-/ausblenden",CTRL_MEASURETOOLS:"Messwerkzeuge ein-/ausblenden",CTRL_INFOPAGE:"Infoseite ein-/ausblenden",CTRL_ADDITIONALPANEL:"Panel ein-/ausblenden",CTRL_ACCOUNT:"Account ein-/ausblenden",CTRL_ZOOMLEVEL:"Zoom",CTRL_MOUSECOORDS:"Lon/Lat",CTRL_GEOSEARCH:"Suche ein-/ausblenden",CTRL_START_SEARCH:"Suche starten",CTRL_OVERVIEWMAP:"Übersichtskarte ein-/ausblenden",CTRL_SIDEBOARD:"Element ein-/ausblenden",CTRL_STARBOARD:"Elementauswahl ein-/ausblenden",CTRL_ATTRIBUTION:"Attribution anzeigen",CTRL_GRID:"Gitter ein-/ausblenden",CTRL_PERMALINK:"Permalink generieren",CTRL_FULLSCREEN:"Vollbildmodus ein-/ausschalten",CTRL_PRINT:"Karte exportieren",CTRL_BASELAYER:"Basiskartenwechsler ein-/ausschalten",CTRL_INFOAREA:"Infobereich öffnen/schließen",STARBOARD:"Kartenelemente",STARBOARD_BASELAYER:"Basiskarten",STARBOARD_LAYER:"Ebenen",STARBOARD_VIEW_TRIGGER_BASELAYERSWITCHER:"Basiskarten",STARBOARD_VIEW_TRIGGER_LAYERSWITCHER:"Kartenelemente",STARBOARD_ELEMENT_ZOOM:"Auf Element zoomen",STARBOARD_ELEMENT_TRIGGER:"Element in Karte schalten",STARBOARD_ELEMENT_TRIGGER_1:"Element ",STARBOARD_ELEMENT_TRIGGER_2:" in Karte schalten",STARBOARD_ELEMENT_CHILDS:"Kindelemente anzeigen",STARBOARD_ELEMENT_ZOOM_BEFORE:"Zu ",STARBOARD_ELEMENT_ZOOM_AFTER:" zoomen",LAYERSWITCHER_TOGGLE_ALL:"Alle Elemente",SIDEBOARD:"Sideboard",RESET_FILTER:"Filter zurücksetzen",GEOSEARCH:"Suche",OVERVIEWMAP:"Übersichtskarte",TOOLTIP_POSITION:"Eigener Standort",MEASURETOOLS:"Messwerkzeuge",MEASURETOOLS_INFO:"Wählen Sie einen Messtyp overviewaus und starten Sie die Messung durch das Klicken in die Karte.",MEASURETOOLS_INFO_ADDITIONAL:"(Einzelne Messungen können mit einem Doppelklick beendet werden.)",MEASURETOOLS_VIEW_TRIGGER_SELECT:"Auswahl Modus",MEASURETOOLS_VIEW_TRIGGER_DRAW_LINESTRING:"Strecken messen",MEASURETOOLS_VIEW_TRIGGER_DRAW_POLYGON:"Flächen messen",MEASURETOOLS_VIEW_TRIGGER_DRAW_CIRCLE:"Radius messen",MEASURETOOLS_VIEW_TRIGGER_DRAW_FREEHAND:"Freihand messen",ELEMENTS_SCOPE:"Elemente im Kartenausschnitt",INFOPAGE:"Informationen",ADDITIONALPANEL:"Panel",ADDITIONALPANEL_VIEW_TRIGGER:"Panel anzeigen",ACCOUNT:"Account",ACCOUNT_VIEW_TRIGGER:"Account anzeigen",SEARCH_NOT_FOUND:"Die Lokation konnte nicht gefunden werden. Bitte versuchen Sie eine andere Eingabe.",DIST:"Entfernung",NONE:""}},"./src/Resources/public/js/c4g-maps-constant-i18n-en.js":(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.langConstantsEnglish=void 0,n.langConstantsEnglish={LANG:"en",NAME:"Name",HIDE:"Hide",CLOSE:"Close",POINT:"POI",FREEHAND:"freehand",LINE:"Line",POLYGON:"Area",CIRCLE:"Circle",PERIMETER:"Perimeter",LENGTH:"Length",SURFACEAREA:"Surface area",RADIUS:"Radius",REFRESH:"Refresh",ACCEPT:"Accept",CANCEL:"Cancel",COPY_TO_CLIPBOARD:"Copy to clipboard",CTRL_ZOOM_IN:"Zoom in",CTRL_ZOOM_OUT:"Zoom out",CTRL_ZOOM_EXT:"Fit to extent",CTRL_ZOOM_HOME:"jump to initial position",CTRL_ZOOM_POS:"jump to browser/device position",CTRL_ZOOM_SLIDER:"Zoom slider",CTRL_RESET_ROTATION:"Reset rotation (touch, ctrl+shift+mouse)",CTRL_PORTSIDE:"Toggle portside",CTRL_EDITOR:"Toggle editor",CTRL_MEASURETOOLS:"Toggle measuretools",CTRL_INFOPAGE:"Toggle infopage",CTRL_ADDITIONALPANEL:"Toggle panel",CTRL_ACCOUNT:"Toggle account",CTRL_ZOOMLEVEL:"Zoom",CTRL_MOUSECOORDS:"Lon/Lat",CTRL_GEOSEARCH:"Toggle geosearch",CTRL_START_SEARCH:"start search",CTRL_OVERVIEWMAP:"Toggle overviewmap",CTRL_SIDEBOARD:"Toggle element",CTRL_STARBOARD:"Toggle element selection",CTRL_ATTRIBUTION:"Show attribution",CTRL_GRID:"Toggle grid",CTRL_PERMALINK:"Generate Permalink",CTRL_FULLSCREEN:"Toggle fullscreen-mode",CTRL_PRINT:"Export map",CTRL_BASELAYER:"Switch base map changer on/off",CTRL_INFOAREA:"Open/close info area",EDITOR:"Editor",EDITOR_ENABLE_INSTANT_MEASURE:"Measure while drawing",EDITOR_ENABLE_FREEHAND_DRAW:"Freehand draw",EDITOR_FEATURE_APPLY:"End modification",EDITOR_FEATURE_DELETE:"Delete active feature",EDITOR_FEATURE_MODIFY:"Modify feature",EDITOR_SELECT_INFO:"Click an element on the map to select it.",EDITOR_SELECT_INFO_ADDITIONAL:"[ctrl] + [click] for multiselect [shift] for boxselect",EDITOR_VIEW_TRIGGER_SELECT:"Select-mode",EDITOR_VIEW_TRIGGER_DRAW_POINT:"Add POIs",EDITOR_VIEW_TRIGGER_DRAW_FREEHAND:"Draw freehand",EDITOR_VIEW_TRIGGER_DRAW_LINESTRING:"Add tracks",EDITOR_VIEW_TRIGGER_DRAW_POLYGON:"Add areas",EDITOR_VIEW_TRIGGER_DRAW_CIRCLE:"Add circles",STARBOARD:"Layerswitcher",STARBOARD_BASELAYER:"Baselayer",STARBOARD_LAYER:"Layer",STARBOARD_VIEW_TRIGGER_BASELAYERSWITCHER:"Baselayerswitcher",STARBOARD_VIEW_TRIGGER_LAYERSWITCHER:"Map elements",STARBOARD_ELEMENT_ZOOM:"Zoom to element",STARBOARD_ELEMENT_TRIGGER:"Trigger element in map",STARBOARD_ELEMENT_TRIGGER_1:"Trigger ",STARBOARD_ELEMENT_TRIGGER_2:" in map",STARBOARD_ELEMENT_CHILDS:"Show child elements",STARBOARD_ELEMENT_ZOOM_BEFORE:"Zoom to element ",STARBOARD_ELEMENT_ZOOM_AFTER:"",LAYERSWITCHER_TOGGLE_ALL:"All elements",RESET_FILTER:"Reset filter",MEASURETOOLS:"Measuretools",MEASURETOOLS_INFO:"Select a measuretype and start measuring by clicking on the map.",MEASURETOOLS_INFO_ADDITIONAL:"(To stop a measurement, double-click on the map.)",MEASURETOOLS_VIEW_TRIGGER_SELECT:"Select-mode",MEASURETOOLS_VIEW_TRIGGER_DRAW_LINESTRING:"Measure tracks",MEASURETOOLS_VIEW_TRIGGER_DRAW_POLYGON:"Measure areas",MEASURETOOLS_VIEW_TRIGGER_DRAW_CIRCLE:"Measure radius",MEASURETOOLS_VIEW_TRIGGER_DRAW_FREEHAND:"Measure freehand",GEOSEARCH:"Search",OVERVIEWMAP:"Overview map",TOOLTIP_POSITION:"own position",ELEMENTS_SCOPE:"Elements in current scope",INFOPAGE:"Infopage",INFOPAGE_VIEW_TRIGGER:"Show informations",ADDITIONALPANEL:"Panel",ADDITIONALPANEL_VIEW_TRIGGER:"Show panel",ACCOUNT:"Account",ACCOUNT_VIEW_TRIGGER:"Show account",SEARCH_NOT_FOUND:"Location not found. Sorry... :(",DIST:"Distance",NONE:""}},"./src/Resources/public/js/c4g-maps-i18n.js":(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getLanguage=function(e){return e&&"de"===e.lang?r.langConstantsGerman:(e&&e.lang,l.langConstantsEnglish)};var r=t("./src/Resources/public/js/c4g-maps-constant-i18n-de.js"),l=t("./src/Resources/public/js/c4g-maps-constant-i18n-en.js")},"./node_modules/elm-pep/dist/elm-pep.js":()=>{var e=null,n=null;function t(e,t,r){e.addEventListener(t,(function(e){var l=new MouseEvent(r,e);l.pointerId=1,l.isPrimary=!0,l.pointerType="mouse",l.width=1,l.height=1,l.tiltX=0,l.tiltY=0,"buttons"in e&&0!==e.buttons?l.pressure=.5:l.pressure=0;var a=e.target;null!==n&&(a=n,"mouseup"===t&&(n=null)),a.dispatchEvent(l),l.defaultPrevented&&e.preventDefault()}))}function r(n,t,r){n.addEventListener(t,(function(n){for(var l=n.changedTouches,a=l.length,o=0;o{"use strict";var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,l){for(var a,o,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i{"use strict";var r=t("./node_modules/react/index.js"),l=t("./node_modules/object-assign/index.js"),a=t("./node_modules/scheduler/index.js");function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;tn}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!p.call(h,e)||!p.call(m,e)&&(d.test(e)?h[e]=!0:(m[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&"":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new g(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new g(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(y,b);v[n]=new g(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,k=60106,S=60107,R=60108,T=60114,C=60109,O=60110,x=60112,L=60113,N=60120,P=60115,I=60116,A=60121,M=60128,D=60129,j=60130,z=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;w=F("react.element"),k=F("react.portal"),S=F("react.fragment"),R=F("react.strict_mode"),T=F("react.profiler"),C=F("react.provider"),O=F("react.context"),x=F("react.forward_ref"),L=F("react.suspense"),N=F("react.suspense_list"),P=F("react.memo"),I=F("react.lazy"),A=F("react.block"),F("react.scope"),M=F("react.opaque.id"),D=F("react.debug_trace_mode"),j=F("react.offscreen"),z=F("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);U=n&&n[1]||""}return"\n"+U+e}var G=!1;function H(e,n){if(!e||G)return"";G=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var l=e.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{G=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 22:return H(e.type._render,!1);case 1:return H(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case T:return"Profiler";case R:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case x:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case P:return $(e.type);case A:return $(e._render);case I:n=e._payload,e=e._init;try{return $(e(n))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function q(e){e._valueTracker||(e._valueTracker=function(e){var n=K(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function Z(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function J(e,n){var t=n.checked;return l({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function ee(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=Y(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ne(e,n){null!=(n=n.checked)&&_(e,"checked",n,!1)}function te(e,n){ne(e,n);var t=Y(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?le(e,n.type,t):n.hasOwnProperty("defaultValue")&&le(e,n.type,Y(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function re(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function le(e,n,t){"number"===n&&X(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function ae(e,n){return e=l({children:void 0},n),(n=function(e){var n="";return r.Children.forEach(e,(function(e){null!=e&&(n+=e)})),n}(n.children))&&(e.children=n),e}function oe(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l=t.length))throw Error(o(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:Y(t)}}function se(e,n){var t=Y(n.value),r=Y(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function ce(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}var fe="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?de(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var me,he,ge=(he=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((me=me||document.createElement("div")).innerHTML=""+n.valueOf().toString()+" ",n=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return he(e,n)}))}:he);function ve(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||ye.hasOwnProperty(e)&&ye[e]?(""+n).trim():n+"px"}function Ee(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=_e(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(ye).forEach((function(e){be.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ye[n]=ye[e]}))}));var we=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,n){if(n){if(we[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(o(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(o(62))}}function Se(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Re(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Ce=null,Oe=null;function xe(e){if(e=tl(e)){if("function"!=typeof Te)throw Error(o(280));var n=e.stateNode;n&&(n=ll(n),Te(e.stateNode,e.type,n))}}function Le(e){Ce?Oe?Oe.push(e):Oe=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,n=Oe;if(Oe=Ce=null,xe(e),n)for(e=0;e(r=31-Gn(r))?0:1<t;t++)n.push(e);return n}function Wn(e,n,t){e.pendingLanes|=n;var r=n-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[n=31-Gn(n)]=t}var Gn=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Hn(e)/Qn|0)|0},Hn=Math.log,Qn=Math.LN2,$n=a.unstable_UserBlockingPriority,Yn=a.unstable_runWithPriority,Kn=!0;function qn(e,n,t,r){De||Ae();var l=Xn,a=De;De=!0;try{Ie(l,e,n,t,r)}finally{(De=a)||ze()}}function Zn(e,n,t,r){Yn($n,Xn.bind(null,e,n,t,r))}function Xn(e,n,t,r){var l;if(Kn)if((l=!(4&n))&&0=jt),Ut=String.fromCharCode(32),Bt=!1;function Vt(e,n){switch(e){case"keyup":return-1!==Mt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gt=!1,Ht={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Ht[e.type]:"textarea"===n}function $t(e,n,t,r){Le(r),0<(n=Dr(n,"onChange")).length&&(t=new dt("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Yt=null,Kt=null;function qt(e){Or(e,0)}function Zt(e){if(Z(rl(e)))return e}function Xt(e,n){if("change"===e)return n}var Jt=!1;if(f){var er;if(f){var nr="oninput"in document;if(!nr){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),nr="function"==typeof tr.oninput}er=nr}else er=!1;Jt=er&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function mr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?mr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function hr(){for(var e=window,n=X();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=X((e=n.contentWindow).document)}return n}function gr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var vr=f&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,_r=null,Er=!1;function wr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Er||null==yr||yr!==X(r)||(r="selectionStart"in(r=yr)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},_r&&fr(_r,r)||(_r=r,0<(r=Dr(br,"onSelect")).length&&(n=new dt("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=yr)))}Mn("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mn("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mn(An,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Srul||(e.current=ol[ul],ol[ul]=null,ul--)}function cl(e,n){ul++,ol[ul]=e.current,e.current=n}var fl={},dl=il(fl),pl=il(!1),ml=fl;function hl(e,n){var t=e.type.contextTypes;if(!t)return fl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function gl(e){return null!=e.childContextTypes}function vl(){sl(pl),sl(dl)}function yl(e,n,t){if(dl.current!==fl)throw Error(o(168));cl(dl,n),cl(pl,t)}function bl(e,n,t){var r=e.stateNode;if(e=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,$(n)||"Unknown",a));return l({},t,r)}function _l(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fl,ml=dl.current,cl(dl,e),cl(pl,pl.current),!0}function El(e,n,t){var r=e.stateNode;if(!r)throw Error(o(169));t?(e=bl(e,n,ml),r.__reactInternalMemoizedMergedChildContext=e,sl(pl),sl(dl),cl(dl,e)):sl(pl),cl(pl,t)}var wl=null,kl=null,Sl=a.unstable_runWithPriority,Rl=a.unstable_scheduleCallback,Tl=a.unstable_cancelCallback,Cl=a.unstable_shouldYield,Ol=a.unstable_requestPaint,xl=a.unstable_now,Ll=a.unstable_getCurrentPriorityLevel,Nl=a.unstable_ImmediatePriority,Pl=a.unstable_UserBlockingPriority,Il=a.unstable_NormalPriority,Al=a.unstable_LowPriority,Ml=a.unstable_IdlePriority,Dl={},jl=void 0!==Ol?Ol:function(){},zl=null,Fl=null,Ul=!1,Bl=xl(),Vl=1e4>Bl?xl:function(){return xl()-Bl};function Wl(){switch(Ll()){case Nl:return 99;case Pl:return 98;case Il:return 97;case Al:return 96;case Ml:return 95;default:throw Error(o(332))}}function Gl(e){switch(e){case 99:return Nl;case 98:return Pl;case 97:return Il;case 96:return Al;case 95:return Ml;default:throw Error(o(332))}}function Hl(e,n){return e=Gl(e),Sl(e,n)}function Ql(e,n,t){return e=Gl(e),Rl(e,n,t)}function $l(){if(null!==Fl){var e=Fl;Fl=null,Tl(e)}Yl()}function Yl(){if(!Ul&&null!==zl){Ul=!0;var e=0;try{var n=zl;Hl(99,(function(){for(;eh?(g=f,f=null):g=f.sibling;var v=p(l,f,u[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),o=a(v,o,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===u.length)return t(l,f),s;if(null===f){for(;hg?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),u=a(b,u,g),null===f?c=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),c;if(null===h){for(;!y.done;g++,y=i.next())null!==(y=d(l,y.value,s))&&(u=a(y,u,g),null===f?c=y:f.sibling=y,f=y);return c}for(h=r(l,h);!y.done;g++,y=i.next())null!==(y=m(h,l,g,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),u=a(y,u,g),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return n(l,e)})),c}return function(e,r,a,i){var s="object"==typeof a&&null!==a&&a.type===S&&null===a.key;s&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case w:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){if(7===s.tag){if(a.type===S){t(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}}else if(s.elementType===a.type){t(e,s.sibling),(r=l(s,a.props)).ref=wa(e,s,a),r.return=e,e=r;break e}t(e,s);break}n(e,s),s=s.sibling}a.type===S?((r=Qi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=Hi(a.type,a.key,a.props,null,e.mode,i)).ref=wa(e,r,a),i.return=e,e=i)}return u(e);case k:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=Ki(a,e.mode,i)).return=e,e=r}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Yi(a,e.mode,i)).return=e,e=r),u(e);if(Ea(a))return h(e,r,a,i);if(V(a))return g(e,r,a,i);if(c&&ka(e,a),void 0===a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,$(e.type)||"Component"))}return t(e,r)}}var Ra=Sa(!0),Ta=Sa(!1),Ca={},Oa=il(Ca),xa=il(Ca),La=il(Ca);function Na(e){if(e===Ca)throw Error(o(174));return e}function Pa(e,n){switch(cl(La,n),cl(xa,e),cl(Oa,Ca),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:pe(null,"");break;default:n=pe(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}sl(Oa),cl(Oa,n)}function Ia(){sl(Oa),sl(xa),sl(La)}function Aa(e){Na(La.current);var n=Na(Oa.current),t=pe(n,e.type);n!==t&&(cl(xa,e),cl(Oa,t))}function Ma(e){xa.current===e&&(sl(Oa),sl(xa))}var Da=il(0);function ja(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(64&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var za=null,Fa=null,Ua=!1;function Ba(e,n){var t=Vi(5,null,null,0);t.elementType="DELETED",t.type="DELETED",t.stateNode=n,t.return=e,t.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t}function Va(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,!0);default:return!1}}function Wa(e){if(Ua){var n=Fa;if(n){var t=n;if(!Va(e,n)){if(!(n=$r(t.nextSibling))||!Va(e,n))return e.flags=-1025&e.flags|2,Ua=!1,void(za=e);Ba(za,t)}za=e,Fa=$r(n.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,za=e}}function Ga(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;za=e}function Ha(e){if(e!==za)return!1;if(!Ua)return Ga(e),Ua=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!Wr(n,e.memoizedProps))for(n=Fa;n;)Ba(e,n),n=$r(n.nextSibling);if(Ga(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t){if(0===n){Fa=$r(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}Fa=null}}else Fa=za?$r(e.stateNode.nextSibling):null;return!0}function Qa(){Fa=za=null,Ua=!1}var $a=[];function Ya(){for(var e=0;e<$a.length;e++)$a[e]._workInProgressVersionPrimary=null;$a.length=0}var Ka=E.ReactCurrentDispatcher,qa=E.ReactCurrentBatchConfig,Za=0,Xa=null,Ja=null,eo=null,no=!1,to=!1;function ro(){throw Error(o(321))}function lo(e,n){if(null===n)return!1;for(var t=0;ta))throw Error(o(301));a+=1,eo=Ja=null,n.updateQueue=null,Ka.current=Ao,e=t(r,l)}while(to)}if(Ka.current=No,n=null!==Ja&&null!==Ja.next,Za=0,eo=Ja=Xa=null,no=!1,n)throw Error(o(300));return e}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===eo?Xa.memoizedState=eo=e:eo=eo.next=e,eo}function uo(){if(null===Ja){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Ja.next;var n=null===eo?Xa.memoizedState:eo.next;if(null!==n)eo=n,Ja=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ja=e).memoizedState,baseState:Ja.baseState,baseQueue:Ja.baseQueue,queue:Ja.queue,next:null},null===eo?Xa.memoizedState=eo=e:eo=eo.next=e}return eo}function io(e,n){return"function"==typeof n?n(e):n}function so(e){var n=uo(),t=n.queue;if(null===t)throw Error(o(311));t.lastRenderedReducer=e;var r=Ja,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,t.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((Za&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Xa.lanes|=c,Fu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,sr(r,n.memoizedState)||(Do=!0),n.memoizedState=r,n.baseState=a,n.baseQueue=i,t.lastRenderedState=r}return[n.memoizedState,t.dispatch]}function co(e){var n=uo(),t=n.queue;if(null===t)throw Error(o(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);sr(a,n.memoizedState)||(Do=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function fo(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(Za&e)===e)&&(n._workInProgressVersionPrimary=r,$a.push(n))),e)return t(n._source);throw $a.push(n),Error(o(350))}function po(e,n,t,r){var l=Nu;if(null===l)throw Error(o(349));var a=n._getVersion,u=a(n._source),i=Ka.current,s=i.useState((function(){return fo(l,n,t)})),c=s[1],f=s[0];s=eo;var d=e.memoizedState,p=d.refs,m=p.getSnapshot,h=d.source;d=d.subscribe;var g=Xa;return e.memoizedState={refs:p,source:n,subscribe:r},i.useEffect((function(){p.getSnapshot=t,p.setSnapshot=c;var e=a(n._source);if(!sr(u,e)){e=t(n._source),sr(f,e)||(c(e),e=fi(g),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0t?98:t,(function(){e(!0)})),Hl(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(t,{is:r.is}):(e=s.createElement(t),"select"===t&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,t),e[Zr]=n,e[Xr]=r,$o(e,n,!1,!1),n.stateNode=e,s=Se(t,r),t){case"dialog":xr("cancel",e),xr("close",e),a=r;break;case"iframe":case"object":case"embed":xr("load",e),a=r;break;case"video":case"audio":for(a=0;aGu&&(n.flags|=64,u=!0,lu(r,!1),n.lanes=33554432)}else{if(!u)if(null!==(e=ja(s))){if(n.flags|=64,u=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),lu(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ua)return null!==(n=n.lastEffect=r.lastEffect)&&(n.nextEffect=null),null}else 2*Vl()-r.renderingStartTime>Gu&&1073741824!==t&&(n.flags|=64,u=!0,lu(r,!1),n.lanes=33554432);r.isBackwards?(s.sibling=n.child,n.child=s):(null!==(t=r.last)?t.sibling=s:n.child=s,r.last=s)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.lastEffect=n.lastEffect,r.renderingStartTime=Vl(),t.sibling=null,n=Da.current,cl(Da,u?1&n|2:1&n),t):null;case 23:case 24:return Ei(),null!==e&&null!==e.memoizedState!=(null!==n.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(n.flags|=4),null}throw Error(o(156,n.tag))}function ou(e){switch(e.tag){case 1:gl(e.type)&&vl();var n=e.flags;return 4096&n?(e.flags=-4097&n|64,e):null;case 3:if(Ia(),sl(pl),sl(dl),Ya(),64&(n=e.flags))throw Error(o(285));return e.flags=-4097&n|64,e;case 5:return Ma(e),null;case 13:return sl(Da),4096&(n=e.flags)?(e.flags=-4097&n|64,e):null;case 19:return sl(Da),null;case 4:return Ia(),null;case 10:return ta(e),null;case 23:case 24:return Ei(),null;default:return null}}function uu(e,n){try{var t="",r=n;do{t+=Q(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}function iu(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}$o=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Yo=function(){},Ko=function(e,n,t,r){var a=e.memoizedProps;if(a!==r){e=n.stateNode,Na(Oa.current);var o,u=null;switch(t){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}for(f in ke(t,r),t=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(t||(t={}),t[o]=c[o])}else t||(u||(u=[]),u.push(f,t)),t=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),u||s===c||(u=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(u=u||[]).push(f,c))}t&&(u=u||[]).push("style",t);var f=u;(n.updateQueue=f)&&(n.flags|=4)}},qo=function(e,n,t,r){t!==r&&(n.flags|=4)};var su="function"==typeof WeakMap?WeakMap:Map;function cu(e,n,t){(t=sa(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Yu||(Yu=!0,Ku=r),iu(0,n)},t}function fu(e,n,t){(t=sa(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return iu(0,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.add(this),iu(0,n));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}var du="function"==typeof WeakSet?WeakSet:Set;function pu(e){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){zi(e,n)}else n.current=null}function mu(e,n){switch(n.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&n.flags&&null!==e){var t=e.memoizedProps,r=e.memoizedState;n=(e=n.stateNode).getSnapshotBeforeUpdate(n.elementType===n.type?t:ql(n.type,t),r),e.__reactInternalSnapshotBeforeUpdate=n}return;case 3:return void(256&n.flags&&Qr(n.stateNode.containerInfo))}throw Error(o(163))}function hu(e,n,t){switch(t.tag){case 0:case 11:case 15:case 22:if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{if(!(3&~e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==n)}if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{var l=e;r=l.next,4&(l=l.tag)&&1&l&&(Mi(t,e),Ai(t,e)),e=r}while(e!==n)}return;case 1:return e=t.stateNode,4&t.flags&&(null===n?e.componentDidMount():(r=t.elementType===t.type?n.memoizedProps:ql(t.type,n.memoizedProps),e.componentDidUpdate(r,n.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(n=t.updateQueue)&&pa(t,n,e));case 3:if(null!==(n=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 5:case 1:e=t.child.stateNode}pa(t,n,e)}return;case 5:return e=t.stateNode,void(null===n&&4&t.flags&&Vr(t.type,t.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===t.memoizedState&&(t=t.alternate,null!==t&&(t=t.memoizedState,null!==t&&(t=t.dehydrated,null!==t&&wn(t)))))}throw Error(o(163))}function gu(e,n){for(var t=e;;){if(5===t.tag){var r=t.stateNode;if(n)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=t.stateNode;var l=t.memoizedProps.style;l=null!=l&&l.hasOwnProperty("display")?l.display:null,r.style.display=_e("display",l)}}else if(6===t.tag)t.stateNode.nodeValue=n?"":t.memoizedProps;else if((23!==t.tag&&24!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function vu(e,n){if(kl&&"function"==typeof kl.onCommitFiberUnmount)try{kl.onCommitFiberUnmount(wl,n)}catch(e){}switch(n.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var t=e=e.next;do{var r=t,l=r.destroy;if(r=r.tag,void 0!==l)if(4&r)Mi(n,t);else{r=n;try{l()}catch(e){zi(r,e)}}t=t.next}while(t!==e)}break;case 1:if(pu(n),"function"==typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(e){zi(n,e)}break;case 5:pu(n);break;case 4:ku(e,n)}}function yu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bu(e){return 5===e.tag||3===e.tag||4===e.tag}function _u(e){e:{for(var n=e.return;null!==n;){if(bu(n))break e;n=n.return}throw Error(o(160))}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error(o(161))}16&t.flags&&(ve(n,""),t.flags&=-17);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||bu(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?Eu(e,t,n):wu(e,t,n)}function Eu(e,n,t){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(Eu(e,n,t),e=e.sibling;null!==e;)Eu(e,n,t),e=e.sibling}function wu(e,n,t){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wu(e,n,t),e=e.sibling;null!==e;)wu(e,n,t),e=e.sibling}function ku(e,n){for(var t,r,l=n,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(t=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:t=t.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(vu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=t,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):t.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){t=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(vu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function Su(e,n){switch(n.tag){case 0:case 11:case 14:case 15:case 22:var t=n.updateQueue;if(null!==(t=null!==t?t.lastEffect:null)){var r=t=t.next;do{!(3&~r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==t)}return;case 1:case 12:case 17:return;case 5:if(null!=(t=n.stateNode)){r=n.memoizedProps;var l=null!==e?e.memoizedProps:r;e=n.type;var a=n.updateQueue;if(n.updateQueue=null,null!==a){for(t[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(t,r),Se(e,l),n=Se(e,r),l=0;ll&&(l=u),t&=~a}if(t=l,10<(t=(120>(t=Vl()-t)?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*Cu(t/1960))-t)){e.timeoutHandle=Gr(Li.bind(null,e),t);break}Li(e);break;default:throw Error(o(329))}}return mi(e,Vl()),e.callbackNode===n?hi.bind(null,e):null}function gi(e,n){for(n&=~Bu,n&=~Uu,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Du&&(Du=2),i=uu(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,n&=-n,d.lanes|=n,fa(d,cu(0,a,n));break e;case 1:a=i;var E=d.type,w=d.stateNode;if(!(64&d.flags||"function"!=typeof E.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==qu&&qu.has(w)))){d.flags|=4096,n&=-n,d.lanes|=n,fa(d,fu(d,a,n));break e}}d=d.return}while(null!==d)}xi(t)}catch(e){n=e,Pu===t&&null!==t&&(Pu=t=t.return);continue}break}}function Si(){var e=Ou.current;return Ou.current=No,null===e?No:e}function Ri(e,n){var t=Lu;Lu|=16;var r=Si();for(Nu===e&&Iu===n||wi(e,n);;)try{Ti();break}catch(n){ki(e,n)}if(na(),Lu=t,Ou.current=r,null!==Pu)throw Error(o(261));return Nu=null,Iu=0,Du}function Ti(){for(;null!==Pu;)Oi(Pu)}function Ci(){for(;null!==Pu&&!Cl();)Oi(Pu)}function Oi(e){var n=Qu(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===n?xi(e):Pu=n,xu.current=null}function xi(e){var n=e;do{var t=n.alternate;if(e=n.return,2048&n.flags){if(null!==(t=ou(n)))return t.flags&=2047,void(Pu=t);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(t=au(t,n,Au)))return void(Pu=t);if(24!==(t=n).tag&&23!==t.tag||null===t.memoizedState||1073741824&Au||!(4&t.mode)){for(var r=0,l=t.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;t.childLanes=r}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=n.firstEffect),null!==n.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=n.firstEffect),e.lastEffect=n.lastEffect),1u&&(i=u,u=w,w=i),i=pr(b,w),a=pr(b,u),i&&a&&(1!==E.rangeCount||E.anchorNode!==i.node||E.anchorOffset!==i.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&((_=_.createRange()).setStart(i.node,i.offset),E.removeAllRanges(),w>u?(E.addRange(_),E.extend(a.node,a.offset)):(_.setEnd(a.node,a.offset),E.addRange(_))))),_=[];for(E=b;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(E=_[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Kn=!!Ur,Br=Ur=null,e.current=t,$u=r;do{try{for(b=e;null!==$u;){var k=$u.flags;if(36&k&&hu(b,$u.alternate,$u),128&k){_=void 0;var S=$u.ref;if(null!==S){var R=$u.stateNode;$u.tag,_=R,"function"==typeof S?S(_):S.current=_}}$u=$u.nextEffect}}catch(e){if(null===$u)throw Error(o(330));zi($u,e),$u=$u.nextEffect}}while(null!==$u);$u=null,jl(),Lu=l}else e.current=t;if(Zu)Zu=!1,Xu=e,Ju=n;else for($u=r;null!==$u;)n=$u.nextEffect,$u.nextEffect=null,8&$u.flags&&((k=$u).sibling=null,k.stateNode=null),$u=n;if(0===(r=e.pendingLanes)&&(qu=null),1===r?e===li?ri++:(ri=0,li=e):ri=0,t=t.stateNode,kl&&"function"==typeof kl.onCommitFiberRoot)try{kl.onCommitFiberRoot(wl,t,void 0,!(64&~t.current.flags))}catch(e){}if(mi(e,Vl()),Yu)throw Yu=!1,e=Ku,Ku=null,e;return 8&Lu||$l(),null}function Pi(){for(;null!==$u;){var e=$u.alternate;si||null===ii||(8&$u.flags?Je($u,ii)&&(si=!0):13===$u.tag&&Tu(e,$u)&&Je($u,ii)&&(si=!0));var n=$u.flags;256&n&&mu(e,$u),!(512&n)||Zu||(Zu=!0,Ql(97,(function(){return Ii(),null}))),$u=$u.nextEffect}}function Ii(){if(90!==Ju){var e=97Vl()-Wu?wi(e,0):Bu|=t),mi(e,n)}function Ui(e,n){var t=e.stateNode;null!==t&&t.delete(n),0==(n=0)&&(2&(n=e.mode)?4&n?(0===oi&&(oi=zu),0===(n=Bn(62914560&~oi))&&(n=4194304)):n=99===Wl()?1:2:n=1),t=ci(),null!==(e=pi(e,n))&&(Wn(e,n,t),mi(e,t))}function Bi(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vi(e,n,t,r){return new Bi(e,n,t,r)}function Wi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gi(e,n){var t=e.alternate;return null===t?((t=Vi(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Hi(e,n,t,r,l,a){var u=2;if(r=e,"function"==typeof e)Wi(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case S:return Qi(t.children,l,a,n);case D:u=8,l|=16;break;case R:u=8,l|=1;break;case T:return(e=Vi(12,t,n,8|l)).elementType=T,e.type=T,e.lanes=a,e;case L:return(e=Vi(13,t,n,l)).type=L,e.elementType=L,e.lanes=a,e;case N:return(e=Vi(19,t,n,l)).elementType=N,e.lanes=a,e;case j:return $i(t,l,a,n);case z:return(e=Vi(24,t,n,l)).elementType=z,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:u=10;break e;case O:u=9;break e;case x:u=11;break e;case P:u=14;break e;case I:u=16,r=null;break e;case A:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(n=Vi(u,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Qi(e,n,t,r){return(e=Vi(7,e,r,n)).lanes=t,e}function $i(e,n,t,r){return(e=Vi(23,e,r,n)).elementType=j,e.lanes=t,e}function Yi(e,n,t){return(e=Vi(6,e,null,n)).lanes=t,e}function Ki(e,n,t){return(n=Vi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function qi(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vn(0),this.expirationTimes=Vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vn(0),this.mutableSourceEagerHydrationData=null}function Zi(e,n,t,r){var l=n.current,a=ci(),u=fi(l);e:if(t){n:{if(Ke(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break n;case 1:if(gl(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break n}}i=i.return}while(null!==i);throw Error(o(171))}if(1===t.tag){var s=t.type;if(gl(s)){t=bl(t,s,i);break e}}t=i}else t=fl;return null===n.context?n.context=t:n.pendingContext=t,(n=sa(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),ca(l,n),di(l,u,a),u}function Xi(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ji(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t("./node_modules/react-dom/cjs/react-dom.production.min.js")},"./node_modules/react/cjs/react.production.min.js":(e,n,t)=>{"use strict";var r=t("./node_modules/object-assign/index.js"),l=60103,a=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var o=60109,u=60110,i=60112;n.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;l=f("react.element"),a=f("react.portal"),n.Fragment=f("react.fragment"),n.StrictMode=f("react.strict_mode"),n.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),i=f("react.forward_ref"),n.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t{"use strict";e.exports=t("./node_modules/react/cjs/react.production.min.js")},"./node_modules/scheduler/cjs/scheduler.production.min.js":(e,n)=>{"use strict";var t,r,l,a;if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;n.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();n.unstable_now=function(){return u.now()-i}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=n.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};t=function(e){null!==s?setTimeout(t,0,e):(s=e,setTimeout(f,0))},r=function(e,n){c=setTimeout(e,n)},l=function(){clearTimeout(c)},n.unstable_shouldYield=function(){return!1},a=n.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,g=null,v=-1,y=5,b=0;n.unstable_shouldYield=function(){return n.unstable_now()>=b},a=function(){},n.unstable_forceFrameRate=function(e){0>e||125>>1,l=e[r];if(!(void 0!==l&&0R(o,t))void 0!==i&&0>R(i,o)?(e[r]=i,e[u]=t,r=u):(e[r]=o,e[a]=t,r=a);else{if(!(void 0!==i&&0>R(i,t)))break e;e[r]=i,e[u]=t,r=u}}}return n}return null}function R(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var T=[],C=[],O=1,x=null,L=3,N=!1,P=!1,I=!1;function A(e){for(var n=k(C);null!==n;){if(null===n.callback)S(C);else{if(!(n.startTime<=e))break;S(C),n.sortIndex=n.expirationTime,w(T,n)}n=k(C)}}function M(e){if(I=!1,A(e),!P)if(null!==k(T))P=!0,t(D);else{var n=k(C);null!==n&&r(M,n.startTime-e)}}function D(e,t){P=!1,I&&(I=!1,l()),N=!0;var a=L;try{for(A(t),x=k(T);null!==x&&(!(x.expirationTime>t)||e&&!n.unstable_shouldYield());){var o=x.callback;if("function"==typeof o){x.callback=null,L=x.priorityLevel;var u=o(x.expirationTime<=t);t=n.unstable_now(),"function"==typeof u?x.callback=u:x===k(T)&&S(T),A(t)}else S(T);x=k(T)}if(null!==x)var i=!0;else{var s=k(C);null!==s&&r(M,s.startTime-t),i=!1}return i}finally{x=null,L=a,N=!1}}var j=a;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){P||N||(P=!0,t(D))},n.unstable_getCurrentPriorityLevel=function(){return L},n.unstable_getFirstCallbackNode=function(){return k(T)},n.unstable_next=function(e){switch(L){case 1:case 2:case 3:var n=3;break;default:n=L}var t=L;L=n;try{return e()}finally{L=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=j,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=L;L=e;try{return n()}finally{L=t}},n.unstable_scheduleCallback=function(e,a,o){var u=n.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0u?(e.sortIndex=o,w(C,e),null===k(T)&&e===k(C)&&(I?l():I=!0,r(M,o-u))):(e.sortIndex=i,w(T,e),P||N||(P=!0,t(D))),e},n.unstable_wrapCallback=function(e){var n=L;return function(){var t=L;L=n;try{return e.apply(this,arguments)}finally{L=t}}}},"./node_modules/scheduler/index.js":(e,n,t)=>{"use strict";e.exports=t("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":e=>{function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}},a={};function o(e){var n=a[e];if(void 0!==n)return n.exports;var t=a[e]={id:e,loaded:!1,exports:{}};return l[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=l,o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var l=Object.create(null);o.r(l);var a={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,o.d(l,a),l},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((n,t)=>(o.f[t](e,n),n)),[])),o.u=e=>e+".bundle."+{"vendors-node_modules_proj4_lib_index_js-node_modules_babel_runtime_helpers_asyncToGenerator_j-2f127b":"d46f1d470bc5606b0951","src_Resources_public_js_components_c4g-maps_jsx":"1594c40bb8c241ce1852","src_Resources_public_js_components_c4g-consent-banner_jsx":"08b515847c72c0f77816","node_modules_geotiff_dist-module_compression_raw_js":"4a97736af9ba461a6d15","node_modules_geotiff_dist-module_compression_lzw_js":"9d43615e1a710a965678","vendors-node_modules_geotiff_dist-module_compression_jpeg_js":"a3e94eb11448243a9d18","vendors-node_modules_pako_dist_pako_esm_mjs":"38a7ba6f29955b69cf47","node_modules_geotiff_dist-module_compression_deflate_js":"3236189777ed1326e0e4","node_modules_geotiff_dist-module_compression_packbits_js":"cec3e79c7e47bc168e3a","vendors-node_modules_geotiff_dist-module_compression_lerc_js":"8b3254ba0ee82a5e5898","node_modules_geotiff_dist-module_compression_webimage_js":"795ed894d7ec75eb995f","vendors-node_modules_geotiff_dist-module_worker_decoder_js":"c72b053755156b694cca","src_Resources_public_js_components_c4g-geosearch_jsx":"1c419daddc6927a1f7f3","vendors-node_modules_opening_hours_build_opening_hours_js":"02c487012687de7b09c4","src_Resources_public_js_components_c4g-feature-filter_jsx":"e857d3c575bb6b08b11e","src_Resources_public_js_components_c4g-baselayerswitcher_jsx":"9f11ee48a42454705316","src_Resources_public_js_components_c4g-starboard-panel_jsx":"e5296d1dc7e8d00d3607","src_Resources_public_js_components_c4g-starboard-scope_jsx":"e491809f912ae463dfbb","src_Resources_public_js_components_c4g-infopage_jsx":"5f0e566c80f2d774a6a7","src_Resources_public_js_components_c4g-measuretools_jsx":"14f4dfca3b94e3b457d0","src_Resources_public_js_components_c4g-permalink_jsx":"f225923e630345f231a5","src_Resources_public_js_components_c4g-zoom_jsx":"916298872338d3100f61","src_Resources_public_js_components_c4g-zoom-extent_jsx":"9d3854ad0d1968856ecd","src_Resources_public_js_components_c4g-zoom-home_jsx":"88ee8d4deb960c6b2411","src_Resources_public_js_components_c4g-zoom-position_jsx":"a021ec57535e7dcf4e15","src_Resources_public_js_components_c4g-grid_jsx":"a8ce3ef036d3b7f3d78d","src_Resources_public_js_components_c4g-rotate_jsx":"09ed3f3d06fa86aab02a","src_Resources_public_js_components_c4g-fullscreen_jsx":"ea4ef2c60c6644fe2a5c","src_Resources_public_js_components_c4g-print_jsx":"5a15197e8fbe842825f7","src_Resources_public_js_components_c4g-overviewmap_jsx":"a5ffbc2bd79f40aa56eb","src_Resources_public_js_components_c4g-editor-component_jsx":"f519af8e0c616a6a47e5","src_Resources_public_js_components_c4g-titlebar_jsx":"677bf194e120de0ac5a2","src_Resources_public_js_components_c4g-router-controls_jsx":"d577e5786560fd1d12f1","vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js":"6388c53b2f705ec1cb55",CoreBundle_src_Resources_public_vendor_js_AlertHandler_js:"b4f9bcb1cae77b1cf5e0","src_Resources_public_js_components_c4g-router-instructions-container_jsx":"ef307410202ed99f2189","src_Resources_public_js_components_c4g-router-feature-list_jsx":"bc85a74d2ff23483ae84","src_Resources_public_js_components_c4g-geosearch-results_jsx":"42b5db9e1b994d55ef65","src_Resources_public_js_components_c4g-editor-view_jsx":"562954d2780b99880227"}[e]+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t={},r="mapsbundle:",o.l=(e,n,l,a)=>{if(t[e])t[e].push(n);else{var u,i;if(void 0!==l)for(var s=document.getElementsByTagName("script"),c=0;c{u.onerror=u.onload=null,clearTimeout(p);var l=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),l&&l.forEach((e=>e(r))),n)return n(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),i&&document.head.appendChild(u)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="bundles/con4gismaps/build/",(()=>{var e={"c4g-maps":0};o.f.j=(n,t)=>{var r=o.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else{var l=new Promise(((t,l)=>r=e[n]=[t,l]));t.push(r[2]=l);var a=o.p+o.u(n),u=new Error;o.l(a,(t=>{if(o.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var l=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+n+" failed.\n("+l+": "+a+")",u.name="ChunkLoadError",u.type=l,u.request=a,r[1](u)}}),"chunk-"+n,n)}};var n=(n,t)=>{var r,l,[a,u,i]=t,s=0;if(a.some((n=>0!==e[n]))){for(r in u)o.o(u,r)&&(o.m[r]=u[r]);i&&i(o)}for(n&&n(t);s{"use strict";var e=o("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),n=o("./node_modules/@babel/runtime/helpers/typeof.js"),t=o("./src/Resources/public/js/c4g-maps-i18n.js"),r=e(o("./node_modules/react-dom/index.js")),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var l={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(l,u,i):l[u]=e[u]}return l.default=e,r&&r.set(e,l),l}(o("./node_modules/react/index.js"));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:n})(e)}o("./node_modules/elm-pep/dist/elm-pep.js");var u=l.default.lazy((function(){return Promise.all([o.e("vendors-node_modules_proj4_lib_index_js-node_modules_babel_runtime_helpers_asyncToGenerator_j-2f127b"),o.e("src_Resources_public_js_components_c4g-maps_jsx")]).then(o.bind(o,"./src/Resources/public/js/components/c4g-maps.jsx"))})),i=l.default.lazy((function(){return o.e("src_Resources_public_js_components_c4g-consent-banner_jsx").then(o.bind(o,"./src/Resources/public/js/components/c4g-consent-banner.jsx"))}));window.initMap=function(e){var n=null;if(e.mapDiv&&(n=document.querySelector("#"+e.mapDiv)),n||(n=jQuery("#c4g_map_"+e.mapId)[0]),n){if(jQuery(n).find("div.ol-viewport")&&(jQuery(n).find("div.ol-viewport").remove(),$('*[class^="c4g-external"]').empty()),e.cookie){var t=!1,a=document.cookie.split(";");for(var o in a)a.hasOwnProperty(o)&&a[o].indexOf(e.cookie.name)>-1&&(!e.cookie.value||a[o].indexOf(e.cookie.value)>-1)&&(t=!0);if(!t){if("undefined"!=typeof klaro&&klaro.getManager&&klaro.getManager()){var s={update:function(n,t,r){var l=!1,a=document.cookie.split(";");for(var o in a)a.hasOwnProperty(o)&&a[o].indexOf(e.cookie.name)>-1&&(!e.cookie.value||a[o].indexOf(e.cookie.value)>-1)&&(l=!0);l&&window.initMap(e)}};klaro.getManager().watch(s)}else"undefined"!=typeof HofffConsentManager&&HofffConsentManager.addEventListener("consent:accepted",(function(n){var t=!1,r=document.cookie.split(";");for(var l in r)r.hasOwnProperty(l)&&r[l].indexOf(e.cookie.name)>-1&&(!e.cookie.value||r[l].indexOf(e.cookie.value)>-1)&&(t=!0);t&&window.initMap(e)}));return r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(i,{mapData:e})),jQuery("#c4g-map-container-"+e.mapId)[0])}}new IntersectionObserver((function(n){n.forEach((function(n){if(n.intersectionRatio>0)return r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(u,{mapData:e})),jQuery("#c4g-map-container-"+e.mapId)[0])}))})).observe(n)}},window.initMaps=function(e){var n,a=function(n){var a;if(e.hasOwnProperty(n)&&(e[n].mapDiv&&(a=jQuery(e[n].mapDiv)[0]||jQuery("#"+e[n].mapDiv)[0]||jQuery("."+e[n].mapDiv)[0]),a||(a=jQuery("#c4g_map_"+e[n].mapId)[0]),a)){if(e[n].cookie){var o=!1,s=document.cookie.split(";");for(var c in s)s.hasOwnProperty(c)&&s[c].indexOf(e[n].cookie.name)>-1&&(!e[n].cookie.value||s[c].indexOf(e[n].cookie.value)>-1)&&(o=!0);if(!o){if("undefined"!=typeof klaro&&klaro.getManager&&klaro.getManager()){var f={update:function(t,r,l){var a=!1,o=document.cookie.split(";");for(var u in o)o.hasOwnProperty(u)&&o[u].indexOf(e[n].cookie.name)>-1&&(!e[n].cookie.value||o[u].indexOf(e[n].cookie.value)>-1)&&(a=!0);a&&window.initMap(e[n])}};klaro.getManager().watch(f)}else if("undefined"!=typeof HofffConsentManager)HofffConsentManager.addEventListener("consent:accepted",(function(t){var r=!1,l=document.cookie.split(";");for(var a in l)l.hasOwnProperty(a)&&l[a].indexOf(e[n].cookie.name)>-1&&(!e[n].cookie.value||l[a].indexOf(e[n].cookie.value)>-1)&&(r=!0);r&&window.initMap(e[n])}));else if("undefined"!=typeof cookiebar){var d=(0,t.getLanguage)(e[n]);return cookiebar.addModule(parseInt(e[n].cookie.value),(function(){e[n].cookie=!1,window.initMap(e[n])}),{selector:"#c4g-map-container-"+e[n].mapId,message:e[n].cookie.info,button:{show:!0,text:d.ACCEPT,type:"button"}}),{v:null}}return{v:r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(i,{mapData:e[n]}),l.default.createElement(u,{mapData:e[n]})),jQuery("#c4g-map-container-"+e[n].mapId)[0])}}}e[n].renderAsObserver=!0,Object.keys(e).length>1&&(e[n].renderAsObserver=!1),e[n].renderAsObserver?new IntersectionObserver((function(t){t.forEach((function(t){t.intersectionRatio>0&&r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(u,{mapData:e[n]})),t.target)}))})).observe(a):r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(u,{mapData:e[n]})),document.querySelector("#c4g-map-container-"+e[n].mapId))}};for(var o in e)if(n=a(o))return n.v},jQuery(document).ready((function(){void 0!==window.mapData&&window.initMaps(window.mapData)}))})()})();
\ No newline at end of file
+(()=>{var e,n,t,r,l={"./src/Resources/public/js/c4g-maps-constant-i18n-de.js":(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.langConstantsGerman=void 0,n.langConstantsGerman={LANG:"de",NAME:"Name",HIDE:"Zuklappen",CLOSE:"Schließen",POINT:"POI",FREEHAND:"Freihand",LINE:"Linie",POLYGON:"Fläche",CIRCLE:"Kreis",PERIMETER:"Umfang",LENGTH:"Länge",SURFACEAREA:"Flächeninhalt",RADIUS:"Radius",REFRESH:"Aktualisieren",ACCEPT:"Akzeptieren",CANCEL:"Abbrechen",COPY_TO_CLIPBOARD:"In Zwischenablage kopieren",CTRL_ZOOM_IN:"Vergrößern",CTRL_ZOOM_OUT:"Verkleinern",CTRL_ZOOM_EXT:"Maximal verkleinern",CTRL_ZOOM_HOME:"Zur ursprünglichen Position",CTRL_ZOOM_POS:"Zum aktuellen Standort",CTRL_ZOOM_SLIDER:"Zoom Slider",CTRL_RESET_ROTATION:"Rotation (touch, ctrl+shift+mouse) zurücksetzen",CTRL_PORTSIDE:"Portside ein-/ausblenden",CTRL_ROUTER:"Router ein-/ausblenden",CTRL_MEASURETOOLS:"Messwerkzeuge ein-/ausblenden",CTRL_INFOPAGE:"Infoseite ein-/ausblenden",CTRL_ADDITIONALPANEL:"Panel ein-/ausblenden",CTRL_ACCOUNT:"Account ein-/ausblenden",CTRL_ZOOMLEVEL:"Zoom",CTRL_MOUSECOORDS:"Lon/Lat",CTRL_GEOSEARCH:"Suche ein-/ausblenden",CTRL_START_SEARCH:"Suche starten",CTRL_OVERVIEWMAP:"Übersichtskarte ein-/ausblenden",CTRL_SIDEBOARD:"Element ein-/ausblenden",CTRL_STARBOARD:"Elementauswahl ein-/ausblenden",CTRL_ATTRIBUTION:"Attribution anzeigen",CTRL_GRID:"Gitter ein-/ausblenden",CTRL_PERMALINK:"Permalink generieren",CTRL_FULLSCREEN:"Vollbildmodus ein-/ausschalten",CTRL_PRINT:"Karte exportieren",CTRL_BASELAYER:"Basiskartenwechsler ein-/ausschalten",CTRL_INFOAREA:"Infobereich öffnen/schließen",STARBOARD:"Kartenelemente",STARBOARD_BASELAYER:"Basiskarten",STARBOARD_LAYER:"Ebenen",STARBOARD_VIEW_TRIGGER_BASELAYERSWITCHER:"Basiskarten",STARBOARD_VIEW_TRIGGER_LAYERSWITCHER:"Kartenelemente",STARBOARD_ELEMENT_ZOOM:"Auf Element zoomen",STARBOARD_ELEMENT_TRIGGER:"Element in Karte schalten",STARBOARD_ELEMENT_TRIGGER_1:"Element ",STARBOARD_ELEMENT_TRIGGER_2:" in Karte schalten",STARBOARD_ELEMENT_CHILDS:"Kindelemente anzeigen",STARBOARD_ELEMENT_ZOOM_BEFORE:"Zu ",STARBOARD_ELEMENT_ZOOM_AFTER:" zoomen",LAYERSWITCHER_TOGGLE_ALL:"Alle Elemente",SIDEBOARD:"Sideboard",RESET_FILTER:"Filter zurücksetzen",GEOSEARCH:"Suche",OVERVIEWMAP:"Übersichtskarte",TOOLTIP_POSITION:"Eigener Standort",MEASURETOOLS:"Messwerkzeuge",MEASURETOOLS_INFO:"Wählen Sie einen Messtyp overviewaus und starten Sie die Messung durch das Klicken in die Karte.",MEASURETOOLS_INFO_ADDITIONAL:"(Einzelne Messungen können mit einem Doppelklick beendet werden.)",MEASURETOOLS_VIEW_TRIGGER_SELECT:"Auswahl Modus",MEASURETOOLS_VIEW_TRIGGER_DRAW_LINESTRING:"Strecken messen",MEASURETOOLS_VIEW_TRIGGER_DRAW_POLYGON:"Flächen messen",MEASURETOOLS_VIEW_TRIGGER_DRAW_CIRCLE:"Radius messen",MEASURETOOLS_VIEW_TRIGGER_DRAW_FREEHAND:"Freihand messen",ELEMENTS_SCOPE:"Elemente im Kartenausschnitt",INFOPAGE:"Informationen",ADDITIONALPANEL:"Panel",ADDITIONALPANEL_VIEW_TRIGGER:"Panel anzeigen",ACCOUNT:"Account",ACCOUNT_VIEW_TRIGGER:"Account anzeigen",SEARCH_NOT_FOUND:"Die Lokation konnte nicht gefunden werden. Bitte versuchen Sie eine andere Eingabe.",DIST:"Entfernung",NONE:""}},"./src/Resources/public/js/c4g-maps-constant-i18n-en.js":(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.langConstantsEnglish=void 0,n.langConstantsEnglish={LANG:"en",NAME:"Name",HIDE:"Hide",CLOSE:"Close",POINT:"POI",FREEHAND:"freehand",LINE:"Line",POLYGON:"Area",CIRCLE:"Circle",PERIMETER:"Perimeter",LENGTH:"Length",SURFACEAREA:"Surface area",RADIUS:"Radius",REFRESH:"Refresh",ACCEPT:"Accept",CANCEL:"Cancel",COPY_TO_CLIPBOARD:"Copy to clipboard",CTRL_ZOOM_IN:"Zoom in",CTRL_ZOOM_OUT:"Zoom out",CTRL_ZOOM_EXT:"Fit to extent",CTRL_ZOOM_HOME:"jump to initial position",CTRL_ZOOM_POS:"jump to browser/device position",CTRL_ZOOM_SLIDER:"Zoom slider",CTRL_RESET_ROTATION:"Reset rotation (touch, ctrl+shift+mouse)",CTRL_PORTSIDE:"Toggle portside",CTRL_EDITOR:"Toggle editor",CTRL_MEASURETOOLS:"Toggle measuretools",CTRL_INFOPAGE:"Toggle infopage",CTRL_ADDITIONALPANEL:"Toggle panel",CTRL_ACCOUNT:"Toggle account",CTRL_ZOOMLEVEL:"Zoom",CTRL_MOUSECOORDS:"Lon/Lat",CTRL_GEOSEARCH:"Toggle geosearch",CTRL_START_SEARCH:"start search",CTRL_OVERVIEWMAP:"Toggle overviewmap",CTRL_SIDEBOARD:"Toggle element",CTRL_STARBOARD:"Toggle element selection",CTRL_ATTRIBUTION:"Show attribution",CTRL_GRID:"Toggle grid",CTRL_PERMALINK:"Generate Permalink",CTRL_FULLSCREEN:"Toggle fullscreen-mode",CTRL_PRINT:"Export map",CTRL_BASELAYER:"Switch base map changer on/off",CTRL_INFOAREA:"Open/close info area",EDITOR:"Editor",EDITOR_ENABLE_INSTANT_MEASURE:"Measure while drawing",EDITOR_ENABLE_FREEHAND_DRAW:"Freehand draw",EDITOR_FEATURE_APPLY:"End modification",EDITOR_FEATURE_DELETE:"Delete active feature",EDITOR_FEATURE_MODIFY:"Modify feature",EDITOR_SELECT_INFO:"Click an element on the map to select it.",EDITOR_SELECT_INFO_ADDITIONAL:"[ctrl] + [click] for multiselect [shift] for boxselect",EDITOR_VIEW_TRIGGER_SELECT:"Select-mode",EDITOR_VIEW_TRIGGER_DRAW_POINT:"Add POIs",EDITOR_VIEW_TRIGGER_DRAW_FREEHAND:"Draw freehand",EDITOR_VIEW_TRIGGER_DRAW_LINESTRING:"Add tracks",EDITOR_VIEW_TRIGGER_DRAW_POLYGON:"Add areas",EDITOR_VIEW_TRIGGER_DRAW_CIRCLE:"Add circles",STARBOARD:"Layerswitcher",STARBOARD_BASELAYER:"Baselayer",STARBOARD_LAYER:"Layer",STARBOARD_VIEW_TRIGGER_BASELAYERSWITCHER:"Baselayerswitcher",STARBOARD_VIEW_TRIGGER_LAYERSWITCHER:"Map elements",STARBOARD_ELEMENT_ZOOM:"Zoom to element",STARBOARD_ELEMENT_TRIGGER:"Trigger element in map",STARBOARD_ELEMENT_TRIGGER_1:"Trigger ",STARBOARD_ELEMENT_TRIGGER_2:" in map",STARBOARD_ELEMENT_CHILDS:"Show child elements",STARBOARD_ELEMENT_ZOOM_BEFORE:"Zoom to element ",STARBOARD_ELEMENT_ZOOM_AFTER:"",LAYERSWITCHER_TOGGLE_ALL:"All elements",RESET_FILTER:"Reset filter",MEASURETOOLS:"Measuretools",MEASURETOOLS_INFO:"Select a measuretype and start measuring by clicking on the map.",MEASURETOOLS_INFO_ADDITIONAL:"(To stop a measurement, double-click on the map.)",MEASURETOOLS_VIEW_TRIGGER_SELECT:"Select-mode",MEASURETOOLS_VIEW_TRIGGER_DRAW_LINESTRING:"Measure tracks",MEASURETOOLS_VIEW_TRIGGER_DRAW_POLYGON:"Measure areas",MEASURETOOLS_VIEW_TRIGGER_DRAW_CIRCLE:"Measure radius",MEASURETOOLS_VIEW_TRIGGER_DRAW_FREEHAND:"Measure freehand",GEOSEARCH:"Search",OVERVIEWMAP:"Overview map",TOOLTIP_POSITION:"own position",ELEMENTS_SCOPE:"Elements in current scope",INFOPAGE:"Infopage",INFOPAGE_VIEW_TRIGGER:"Show informations",ADDITIONALPANEL:"Panel",ADDITIONALPANEL_VIEW_TRIGGER:"Show panel",ACCOUNT:"Account",ACCOUNT_VIEW_TRIGGER:"Show account",SEARCH_NOT_FOUND:"Location not found. Sorry... :(",DIST:"Distance",NONE:""}},"./src/Resources/public/js/c4g-maps-i18n.js":(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getLanguage=function(e){return e&&"de"===e.lang?r.langConstantsGerman:(e&&e.lang,l.langConstantsEnglish)};var r=t("./src/Resources/public/js/c4g-maps-constant-i18n-de.js"),l=t("./src/Resources/public/js/c4g-maps-constant-i18n-en.js")},"./node_modules/elm-pep/dist/elm-pep.js":()=>{var e=null,n=null;function t(e,t,r){e.addEventListener(t,(function(e){var l=new MouseEvent(r,e);l.pointerId=1,l.isPrimary=!0,l.pointerType="mouse",l.width=1,l.height=1,l.tiltX=0,l.tiltY=0,"buttons"in e&&0!==e.buttons?l.pressure=.5:l.pressure=0;var a=e.target;null!==n&&(a=n,"mouseup"===t&&(n=null)),a.dispatchEvent(l),l.defaultPrevented&&e.preventDefault()}))}function r(n,t,r){n.addEventListener(t,(function(n){for(var l=n.changedTouches,a=l.length,o=0;o{"use strict";var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,l){for(var a,o,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i{"use strict";var r=t("./node_modules/react/index.js"),l=t("./node_modules/object-assign/index.js"),a=t("./node_modules/scheduler/index.js");function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;tn}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!p.call(h,e)||!p.call(m,e)&&(d.test(e)?h[e]=!0:(m[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&"":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new g(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new g(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(y,b);v[n]=new g(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,k=60106,S=60107,R=60108,T=60114,C=60109,O=60110,x=60112,L=60113,N=60120,P=60115,I=60116,A=60121,M=60128,D=60129,j=60130,z=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;w=F("react.element"),k=F("react.portal"),S=F("react.fragment"),R=F("react.strict_mode"),T=F("react.profiler"),C=F("react.provider"),O=F("react.context"),x=F("react.forward_ref"),L=F("react.suspense"),N=F("react.suspense_list"),P=F("react.memo"),I=F("react.lazy"),A=F("react.block"),F("react.scope"),M=F("react.opaque.id"),D=F("react.debug_trace_mode"),j=F("react.offscreen"),z=F("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);U=n&&n[1]||""}return"\n"+U+e}var G=!1;function H(e,n){if(!e||G)return"";G=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var l=e.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{G=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 22:return H(e.type._render,!1);case 1:return H(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case T:return"Profiler";case R:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case x:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case P:return $(e.type);case A:return $(e._render);case I:n=e._payload,e=e._init;try{return $(e(n))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function q(e){e._valueTracker||(e._valueTracker=function(e){var n=K(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function Z(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function J(e,n){var t=n.checked;return l({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function ee(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=Y(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ne(e,n){null!=(n=n.checked)&&_(e,"checked",n,!1)}function te(e,n){ne(e,n);var t=Y(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?le(e,n.type,t):n.hasOwnProperty("defaultValue")&&le(e,n.type,Y(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function re(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function le(e,n,t){"number"===n&&X(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function ae(e,n){return e=l({children:void 0},n),(n=function(e){var n="";return r.Children.forEach(e,(function(e){null!=e&&(n+=e)})),n}(n.children))&&(e.children=n),e}function oe(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l=t.length))throw Error(o(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:Y(t)}}function se(e,n){var t=Y(n.value),r=Y(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function ce(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}var fe="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?de(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var me,he,ge=(he=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((me=me||document.createElement("div")).innerHTML=""+n.valueOf().toString()+" ",n=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return he(e,n)}))}:he);function ve(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||ye.hasOwnProperty(e)&&ye[e]?(""+n).trim():n+"px"}function Ee(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=_e(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(ye).forEach((function(e){be.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ye[n]=ye[e]}))}));var we=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,n){if(n){if(we[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(o(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(o(62))}}function Se(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Re(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Ce=null,Oe=null;function xe(e){if(e=tl(e)){if("function"!=typeof Te)throw Error(o(280));var n=e.stateNode;n&&(n=ll(n),Te(e.stateNode,e.type,n))}}function Le(e){Ce?Oe?Oe.push(e):Oe=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,n=Oe;if(Oe=Ce=null,xe(e),n)for(e=0;e(r=31-Gn(r))?0:1<t;t++)n.push(e);return n}function Wn(e,n,t){e.pendingLanes|=n;var r=n-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[n=31-Gn(n)]=t}var Gn=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Hn(e)/Qn|0)|0},Hn=Math.log,Qn=Math.LN2,$n=a.unstable_UserBlockingPriority,Yn=a.unstable_runWithPriority,Kn=!0;function qn(e,n,t,r){De||Ae();var l=Xn,a=De;De=!0;try{Ie(l,e,n,t,r)}finally{(De=a)||ze()}}function Zn(e,n,t,r){Yn($n,Xn.bind(null,e,n,t,r))}function Xn(e,n,t,r){var l;if(Kn)if((l=!(4&n))&&0=jt),Ut=String.fromCharCode(32),Bt=!1;function Vt(e,n){switch(e){case"keyup":return-1!==Mt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gt=!1,Ht={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Ht[e.type]:"textarea"===n}function $t(e,n,t,r){Le(r),0<(n=Dr(n,"onChange")).length&&(t=new dt("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Yt=null,Kt=null;function qt(e){Or(e,0)}function Zt(e){if(Z(rl(e)))return e}function Xt(e,n){if("change"===e)return n}var Jt=!1;if(f){var er;if(f){var nr="oninput"in document;if(!nr){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),nr="function"==typeof tr.oninput}er=nr}else er=!1;Jt=er&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function mr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?mr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function hr(){for(var e=window,n=X();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=X((e=n.contentWindow).document)}return n}function gr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var vr=f&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,_r=null,Er=!1;function wr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Er||null==yr||yr!==X(r)||(r="selectionStart"in(r=yr)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},_r&&fr(_r,r)||(_r=r,0<(r=Dr(br,"onSelect")).length&&(n=new dt("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=yr)))}Mn("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mn("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mn(An,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Srul||(e.current=ol[ul],ol[ul]=null,ul--)}function cl(e,n){ul++,ol[ul]=e.current,e.current=n}var fl={},dl=il(fl),pl=il(!1),ml=fl;function hl(e,n){var t=e.type.contextTypes;if(!t)return fl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function gl(e){return null!=e.childContextTypes}function vl(){sl(pl),sl(dl)}function yl(e,n,t){if(dl.current!==fl)throw Error(o(168));cl(dl,n),cl(pl,t)}function bl(e,n,t){var r=e.stateNode;if(e=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,$(n)||"Unknown",a));return l({},t,r)}function _l(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fl,ml=dl.current,cl(dl,e),cl(pl,pl.current),!0}function El(e,n,t){var r=e.stateNode;if(!r)throw Error(o(169));t?(e=bl(e,n,ml),r.__reactInternalMemoizedMergedChildContext=e,sl(pl),sl(dl),cl(dl,e)):sl(pl),cl(pl,t)}var wl=null,kl=null,Sl=a.unstable_runWithPriority,Rl=a.unstable_scheduleCallback,Tl=a.unstable_cancelCallback,Cl=a.unstable_shouldYield,Ol=a.unstable_requestPaint,xl=a.unstable_now,Ll=a.unstable_getCurrentPriorityLevel,Nl=a.unstable_ImmediatePriority,Pl=a.unstable_UserBlockingPriority,Il=a.unstable_NormalPriority,Al=a.unstable_LowPriority,Ml=a.unstable_IdlePriority,Dl={},jl=void 0!==Ol?Ol:function(){},zl=null,Fl=null,Ul=!1,Bl=xl(),Vl=1e4>Bl?xl:function(){return xl()-Bl};function Wl(){switch(Ll()){case Nl:return 99;case Pl:return 98;case Il:return 97;case Al:return 96;case Ml:return 95;default:throw Error(o(332))}}function Gl(e){switch(e){case 99:return Nl;case 98:return Pl;case 97:return Il;case 96:return Al;case 95:return Ml;default:throw Error(o(332))}}function Hl(e,n){return e=Gl(e),Sl(e,n)}function Ql(e,n,t){return e=Gl(e),Rl(e,n,t)}function $l(){if(null!==Fl){var e=Fl;Fl=null,Tl(e)}Yl()}function Yl(){if(!Ul&&null!==zl){Ul=!0;var e=0;try{var n=zl;Hl(99,(function(){for(;eh?(g=f,f=null):g=f.sibling;var v=p(l,f,u[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),o=a(v,o,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===u.length)return t(l,f),s;if(null===f){for(;hg?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),u=a(b,u,g),null===f?c=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),c;if(null===h){for(;!y.done;g++,y=i.next())null!==(y=d(l,y.value,s))&&(u=a(y,u,g),null===f?c=y:f.sibling=y,f=y);return c}for(h=r(l,h);!y.done;g++,y=i.next())null!==(y=m(h,l,g,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),u=a(y,u,g),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return n(l,e)})),c}return function(e,r,a,i){var s="object"==typeof a&&null!==a&&a.type===S&&null===a.key;s&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case w:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){if(7===s.tag){if(a.type===S){t(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}}else if(s.elementType===a.type){t(e,s.sibling),(r=l(s,a.props)).ref=wa(e,s,a),r.return=e,e=r;break e}t(e,s);break}n(e,s),s=s.sibling}a.type===S?((r=Qi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=Hi(a.type,a.key,a.props,null,e.mode,i)).ref=wa(e,r,a),i.return=e,e=i)}return u(e);case k:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=Ki(a,e.mode,i)).return=e,e=r}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Yi(a,e.mode,i)).return=e,e=r),u(e);if(Ea(a))return h(e,r,a,i);if(V(a))return g(e,r,a,i);if(c&&ka(e,a),void 0===a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,$(e.type)||"Component"))}return t(e,r)}}var Ra=Sa(!0),Ta=Sa(!1),Ca={},Oa=il(Ca),xa=il(Ca),La=il(Ca);function Na(e){if(e===Ca)throw Error(o(174));return e}function Pa(e,n){switch(cl(La,n),cl(xa,e),cl(Oa,Ca),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:pe(null,"");break;default:n=pe(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}sl(Oa),cl(Oa,n)}function Ia(){sl(Oa),sl(xa),sl(La)}function Aa(e){Na(La.current);var n=Na(Oa.current),t=pe(n,e.type);n!==t&&(cl(xa,e),cl(Oa,t))}function Ma(e){xa.current===e&&(sl(Oa),sl(xa))}var Da=il(0);function ja(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(64&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var za=null,Fa=null,Ua=!1;function Ba(e,n){var t=Vi(5,null,null,0);t.elementType="DELETED",t.type="DELETED",t.stateNode=n,t.return=e,t.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t}function Va(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,!0);default:return!1}}function Wa(e){if(Ua){var n=Fa;if(n){var t=n;if(!Va(e,n)){if(!(n=$r(t.nextSibling))||!Va(e,n))return e.flags=-1025&e.flags|2,Ua=!1,void(za=e);Ba(za,t)}za=e,Fa=$r(n.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,za=e}}function Ga(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;za=e}function Ha(e){if(e!==za)return!1;if(!Ua)return Ga(e),Ua=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!Wr(n,e.memoizedProps))for(n=Fa;n;)Ba(e,n),n=$r(n.nextSibling);if(Ga(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t){if(0===n){Fa=$r(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}Fa=null}}else Fa=za?$r(e.stateNode.nextSibling):null;return!0}function Qa(){Fa=za=null,Ua=!1}var $a=[];function Ya(){for(var e=0;e<$a.length;e++)$a[e]._workInProgressVersionPrimary=null;$a.length=0}var Ka=E.ReactCurrentDispatcher,qa=E.ReactCurrentBatchConfig,Za=0,Xa=null,Ja=null,eo=null,no=!1,to=!1;function ro(){throw Error(o(321))}function lo(e,n){if(null===n)return!1;for(var t=0;ta))throw Error(o(301));a+=1,eo=Ja=null,n.updateQueue=null,Ka.current=Ao,e=t(r,l)}while(to)}if(Ka.current=No,n=null!==Ja&&null!==Ja.next,Za=0,eo=Ja=Xa=null,no=!1,n)throw Error(o(300));return e}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===eo?Xa.memoizedState=eo=e:eo=eo.next=e,eo}function uo(){if(null===Ja){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Ja.next;var n=null===eo?Xa.memoizedState:eo.next;if(null!==n)eo=n,Ja=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ja=e).memoizedState,baseState:Ja.baseState,baseQueue:Ja.baseQueue,queue:Ja.queue,next:null},null===eo?Xa.memoizedState=eo=e:eo=eo.next=e}return eo}function io(e,n){return"function"==typeof n?n(e):n}function so(e){var n=uo(),t=n.queue;if(null===t)throw Error(o(311));t.lastRenderedReducer=e;var r=Ja,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,t.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((Za&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Xa.lanes|=c,Fu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,sr(r,n.memoizedState)||(Do=!0),n.memoizedState=r,n.baseState=a,n.baseQueue=i,t.lastRenderedState=r}return[n.memoizedState,t.dispatch]}function co(e){var n=uo(),t=n.queue;if(null===t)throw Error(o(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);sr(a,n.memoizedState)||(Do=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function fo(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(Za&e)===e)&&(n._workInProgressVersionPrimary=r,$a.push(n))),e)return t(n._source);throw $a.push(n),Error(o(350))}function po(e,n,t,r){var l=Nu;if(null===l)throw Error(o(349));var a=n._getVersion,u=a(n._source),i=Ka.current,s=i.useState((function(){return fo(l,n,t)})),c=s[1],f=s[0];s=eo;var d=e.memoizedState,p=d.refs,m=p.getSnapshot,h=d.source;d=d.subscribe;var g=Xa;return e.memoizedState={refs:p,source:n,subscribe:r},i.useEffect((function(){p.getSnapshot=t,p.setSnapshot=c;var e=a(n._source);if(!sr(u,e)){e=t(n._source),sr(f,e)||(c(e),e=fi(g),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0t?98:t,(function(){e(!0)})),Hl(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(t,{is:r.is}):(e=s.createElement(t),"select"===t&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,t),e[Zr]=n,e[Xr]=r,$o(e,n,!1,!1),n.stateNode=e,s=Se(t,r),t){case"dialog":xr("cancel",e),xr("close",e),a=r;break;case"iframe":case"object":case"embed":xr("load",e),a=r;break;case"video":case"audio":for(a=0;aGu&&(n.flags|=64,u=!0,lu(r,!1),n.lanes=33554432)}else{if(!u)if(null!==(e=ja(s))){if(n.flags|=64,u=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),lu(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ua)return null!==(n=n.lastEffect=r.lastEffect)&&(n.nextEffect=null),null}else 2*Vl()-r.renderingStartTime>Gu&&1073741824!==t&&(n.flags|=64,u=!0,lu(r,!1),n.lanes=33554432);r.isBackwards?(s.sibling=n.child,n.child=s):(null!==(t=r.last)?t.sibling=s:n.child=s,r.last=s)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.lastEffect=n.lastEffect,r.renderingStartTime=Vl(),t.sibling=null,n=Da.current,cl(Da,u?1&n|2:1&n),t):null;case 23:case 24:return Ei(),null!==e&&null!==e.memoizedState!=(null!==n.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(n.flags|=4),null}throw Error(o(156,n.tag))}function ou(e){switch(e.tag){case 1:gl(e.type)&&vl();var n=e.flags;return 4096&n?(e.flags=-4097&n|64,e):null;case 3:if(Ia(),sl(pl),sl(dl),Ya(),64&(n=e.flags))throw Error(o(285));return e.flags=-4097&n|64,e;case 5:return Ma(e),null;case 13:return sl(Da),4096&(n=e.flags)?(e.flags=-4097&n|64,e):null;case 19:return sl(Da),null;case 4:return Ia(),null;case 10:return ta(e),null;case 23:case 24:return Ei(),null;default:return null}}function uu(e,n){try{var t="",r=n;do{t+=Q(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}function iu(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}$o=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Yo=function(){},Ko=function(e,n,t,r){var a=e.memoizedProps;if(a!==r){e=n.stateNode,Na(Oa.current);var o,u=null;switch(t){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}for(f in ke(t,r),t=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(t||(t={}),t[o]=c[o])}else t||(u||(u=[]),u.push(f,t)),t=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),u||s===c||(u=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(u=u||[]).push(f,c))}t&&(u=u||[]).push("style",t);var f=u;(n.updateQueue=f)&&(n.flags|=4)}},qo=function(e,n,t,r){t!==r&&(n.flags|=4)};var su="function"==typeof WeakMap?WeakMap:Map;function cu(e,n,t){(t=sa(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Yu||(Yu=!0,Ku=r),iu(0,n)},t}function fu(e,n,t){(t=sa(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return iu(0,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.add(this),iu(0,n));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}var du="function"==typeof WeakSet?WeakSet:Set;function pu(e){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){zi(e,n)}else n.current=null}function mu(e,n){switch(n.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&n.flags&&null!==e){var t=e.memoizedProps,r=e.memoizedState;n=(e=n.stateNode).getSnapshotBeforeUpdate(n.elementType===n.type?t:ql(n.type,t),r),e.__reactInternalSnapshotBeforeUpdate=n}return;case 3:return void(256&n.flags&&Qr(n.stateNode.containerInfo))}throw Error(o(163))}function hu(e,n,t){switch(t.tag){case 0:case 11:case 15:case 22:if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{if(!(3&~e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==n)}if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{var l=e;r=l.next,4&(l=l.tag)&&1&l&&(Mi(t,e),Ai(t,e)),e=r}while(e!==n)}return;case 1:return e=t.stateNode,4&t.flags&&(null===n?e.componentDidMount():(r=t.elementType===t.type?n.memoizedProps:ql(t.type,n.memoizedProps),e.componentDidUpdate(r,n.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(n=t.updateQueue)&&pa(t,n,e));case 3:if(null!==(n=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 5:case 1:e=t.child.stateNode}pa(t,n,e)}return;case 5:return e=t.stateNode,void(null===n&&4&t.flags&&Vr(t.type,t.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===t.memoizedState&&(t=t.alternate,null!==t&&(t=t.memoizedState,null!==t&&(t=t.dehydrated,null!==t&&wn(t)))))}throw Error(o(163))}function gu(e,n){for(var t=e;;){if(5===t.tag){var r=t.stateNode;if(n)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=t.stateNode;var l=t.memoizedProps.style;l=null!=l&&l.hasOwnProperty("display")?l.display:null,r.style.display=_e("display",l)}}else if(6===t.tag)t.stateNode.nodeValue=n?"":t.memoizedProps;else if((23!==t.tag&&24!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function vu(e,n){if(kl&&"function"==typeof kl.onCommitFiberUnmount)try{kl.onCommitFiberUnmount(wl,n)}catch(e){}switch(n.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var t=e=e.next;do{var r=t,l=r.destroy;if(r=r.tag,void 0!==l)if(4&r)Mi(n,t);else{r=n;try{l()}catch(e){zi(r,e)}}t=t.next}while(t!==e)}break;case 1:if(pu(n),"function"==typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(e){zi(n,e)}break;case 5:pu(n);break;case 4:ku(e,n)}}function yu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bu(e){return 5===e.tag||3===e.tag||4===e.tag}function _u(e){e:{for(var n=e.return;null!==n;){if(bu(n))break e;n=n.return}throw Error(o(160))}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error(o(161))}16&t.flags&&(ve(n,""),t.flags&=-17);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||bu(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?Eu(e,t,n):wu(e,t,n)}function Eu(e,n,t){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(Eu(e,n,t),e=e.sibling;null!==e;)Eu(e,n,t),e=e.sibling}function wu(e,n,t){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wu(e,n,t),e=e.sibling;null!==e;)wu(e,n,t),e=e.sibling}function ku(e,n){for(var t,r,l=n,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(t=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:t=t.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(vu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=t,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):t.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){t=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(vu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function Su(e,n){switch(n.tag){case 0:case 11:case 14:case 15:case 22:var t=n.updateQueue;if(null!==(t=null!==t?t.lastEffect:null)){var r=t=t.next;do{!(3&~r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==t)}return;case 1:case 12:case 17:return;case 5:if(null!=(t=n.stateNode)){r=n.memoizedProps;var l=null!==e?e.memoizedProps:r;e=n.type;var a=n.updateQueue;if(n.updateQueue=null,null!==a){for(t[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(t,r),Se(e,l),n=Se(e,r),l=0;ll&&(l=u),t&=~a}if(t=l,10<(t=(120>(t=Vl()-t)?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*Cu(t/1960))-t)){e.timeoutHandle=Gr(Li.bind(null,e),t);break}Li(e);break;default:throw Error(o(329))}}return mi(e,Vl()),e.callbackNode===n?hi.bind(null,e):null}function gi(e,n){for(n&=~Bu,n&=~Uu,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Du&&(Du=2),i=uu(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,n&=-n,d.lanes|=n,fa(d,cu(0,a,n));break e;case 1:a=i;var E=d.type,w=d.stateNode;if(!(64&d.flags||"function"!=typeof E.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==qu&&qu.has(w)))){d.flags|=4096,n&=-n,d.lanes|=n,fa(d,fu(d,a,n));break e}}d=d.return}while(null!==d)}xi(t)}catch(e){n=e,Pu===t&&null!==t&&(Pu=t=t.return);continue}break}}function Si(){var e=Ou.current;return Ou.current=No,null===e?No:e}function Ri(e,n){var t=Lu;Lu|=16;var r=Si();for(Nu===e&&Iu===n||wi(e,n);;)try{Ti();break}catch(n){ki(e,n)}if(na(),Lu=t,Ou.current=r,null!==Pu)throw Error(o(261));return Nu=null,Iu=0,Du}function Ti(){for(;null!==Pu;)Oi(Pu)}function Ci(){for(;null!==Pu&&!Cl();)Oi(Pu)}function Oi(e){var n=Qu(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===n?xi(e):Pu=n,xu.current=null}function xi(e){var n=e;do{var t=n.alternate;if(e=n.return,2048&n.flags){if(null!==(t=ou(n)))return t.flags&=2047,void(Pu=t);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(t=au(t,n,Au)))return void(Pu=t);if(24!==(t=n).tag&&23!==t.tag||null===t.memoizedState||1073741824&Au||!(4&t.mode)){for(var r=0,l=t.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;t.childLanes=r}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=n.firstEffect),null!==n.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=n.firstEffect),e.lastEffect=n.lastEffect),1u&&(i=u,u=w,w=i),i=pr(b,w),a=pr(b,u),i&&a&&(1!==E.rangeCount||E.anchorNode!==i.node||E.anchorOffset!==i.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&((_=_.createRange()).setStart(i.node,i.offset),E.removeAllRanges(),w>u?(E.addRange(_),E.extend(a.node,a.offset)):(_.setEnd(a.node,a.offset),E.addRange(_))))),_=[];for(E=b;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(E=_[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Kn=!!Ur,Br=Ur=null,e.current=t,$u=r;do{try{for(b=e;null!==$u;){var k=$u.flags;if(36&k&&hu(b,$u.alternate,$u),128&k){_=void 0;var S=$u.ref;if(null!==S){var R=$u.stateNode;$u.tag,_=R,"function"==typeof S?S(_):S.current=_}}$u=$u.nextEffect}}catch(e){if(null===$u)throw Error(o(330));zi($u,e),$u=$u.nextEffect}}while(null!==$u);$u=null,jl(),Lu=l}else e.current=t;if(Zu)Zu=!1,Xu=e,Ju=n;else for($u=r;null!==$u;)n=$u.nextEffect,$u.nextEffect=null,8&$u.flags&&((k=$u).sibling=null,k.stateNode=null),$u=n;if(0===(r=e.pendingLanes)&&(qu=null),1===r?e===li?ri++:(ri=0,li=e):ri=0,t=t.stateNode,kl&&"function"==typeof kl.onCommitFiberRoot)try{kl.onCommitFiberRoot(wl,t,void 0,!(64&~t.current.flags))}catch(e){}if(mi(e,Vl()),Yu)throw Yu=!1,e=Ku,Ku=null,e;return 8&Lu||$l(),null}function Pi(){for(;null!==$u;){var e=$u.alternate;si||null===ii||(8&$u.flags?Je($u,ii)&&(si=!0):13===$u.tag&&Tu(e,$u)&&Je($u,ii)&&(si=!0));var n=$u.flags;256&n&&mu(e,$u),!(512&n)||Zu||(Zu=!0,Ql(97,(function(){return Ii(),null}))),$u=$u.nextEffect}}function Ii(){if(90!==Ju){var e=97Vl()-Wu?wi(e,0):Bu|=t),mi(e,n)}function Ui(e,n){var t=e.stateNode;null!==t&&t.delete(n),0==(n=0)&&(2&(n=e.mode)?4&n?(0===oi&&(oi=zu),0===(n=Bn(62914560&~oi))&&(n=4194304)):n=99===Wl()?1:2:n=1),t=ci(),null!==(e=pi(e,n))&&(Wn(e,n,t),mi(e,t))}function Bi(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vi(e,n,t,r){return new Bi(e,n,t,r)}function Wi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gi(e,n){var t=e.alternate;return null===t?((t=Vi(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Hi(e,n,t,r,l,a){var u=2;if(r=e,"function"==typeof e)Wi(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case S:return Qi(t.children,l,a,n);case D:u=8,l|=16;break;case R:u=8,l|=1;break;case T:return(e=Vi(12,t,n,8|l)).elementType=T,e.type=T,e.lanes=a,e;case L:return(e=Vi(13,t,n,l)).type=L,e.elementType=L,e.lanes=a,e;case N:return(e=Vi(19,t,n,l)).elementType=N,e.lanes=a,e;case j:return $i(t,l,a,n);case z:return(e=Vi(24,t,n,l)).elementType=z,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:u=10;break e;case O:u=9;break e;case x:u=11;break e;case P:u=14;break e;case I:u=16,r=null;break e;case A:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(n=Vi(u,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Qi(e,n,t,r){return(e=Vi(7,e,r,n)).lanes=t,e}function $i(e,n,t,r){return(e=Vi(23,e,r,n)).elementType=j,e.lanes=t,e}function Yi(e,n,t){return(e=Vi(6,e,null,n)).lanes=t,e}function Ki(e,n,t){return(n=Vi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function qi(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vn(0),this.expirationTimes=Vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vn(0),this.mutableSourceEagerHydrationData=null}function Zi(e,n,t,r){var l=n.current,a=ci(),u=fi(l);e:if(t){n:{if(Ke(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break n;case 1:if(gl(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break n}}i=i.return}while(null!==i);throw Error(o(171))}if(1===t.tag){var s=t.type;if(gl(s)){t=bl(t,s,i);break e}}t=i}else t=fl;return null===n.context?n.context=t:n.pendingContext=t,(n=sa(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),ca(l,n),di(l,u,a),u}function Xi(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ji(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t("./node_modules/react-dom/cjs/react-dom.production.min.js")},"./node_modules/react/cjs/react.production.min.js":(e,n,t)=>{"use strict";var r=t("./node_modules/object-assign/index.js"),l=60103,a=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var o=60109,u=60110,i=60112;n.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;l=f("react.element"),a=f("react.portal"),n.Fragment=f("react.fragment"),n.StrictMode=f("react.strict_mode"),n.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),i=f("react.forward_ref"),n.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t{"use strict";e.exports=t("./node_modules/react/cjs/react.production.min.js")},"./node_modules/scheduler/cjs/scheduler.production.min.js":(e,n)=>{"use strict";var t,r,l,a;if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;n.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();n.unstable_now=function(){return u.now()-i}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=n.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};t=function(e){null!==s?setTimeout(t,0,e):(s=e,setTimeout(f,0))},r=function(e,n){c=setTimeout(e,n)},l=function(){clearTimeout(c)},n.unstable_shouldYield=function(){return!1},a=n.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,g=null,v=-1,y=5,b=0;n.unstable_shouldYield=function(){return n.unstable_now()>=b},a=function(){},n.unstable_forceFrameRate=function(e){0>e||125>>1,l=e[r];if(!(void 0!==l&&0R(o,t))void 0!==i&&0>R(i,o)?(e[r]=i,e[u]=t,r=u):(e[r]=o,e[a]=t,r=a);else{if(!(void 0!==i&&0>R(i,t)))break e;e[r]=i,e[u]=t,r=u}}}return n}return null}function R(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var T=[],C=[],O=1,x=null,L=3,N=!1,P=!1,I=!1;function A(e){for(var n=k(C);null!==n;){if(null===n.callback)S(C);else{if(!(n.startTime<=e))break;S(C),n.sortIndex=n.expirationTime,w(T,n)}n=k(C)}}function M(e){if(I=!1,A(e),!P)if(null!==k(T))P=!0,t(D);else{var n=k(C);null!==n&&r(M,n.startTime-e)}}function D(e,t){P=!1,I&&(I=!1,l()),N=!0;var a=L;try{for(A(t),x=k(T);null!==x&&(!(x.expirationTime>t)||e&&!n.unstable_shouldYield());){var o=x.callback;if("function"==typeof o){x.callback=null,L=x.priorityLevel;var u=o(x.expirationTime<=t);t=n.unstable_now(),"function"==typeof u?x.callback=u:x===k(T)&&S(T),A(t)}else S(T);x=k(T)}if(null!==x)var i=!0;else{var s=k(C);null!==s&&r(M,s.startTime-t),i=!1}return i}finally{x=null,L=a,N=!1}}var j=a;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){P||N||(P=!0,t(D))},n.unstable_getCurrentPriorityLevel=function(){return L},n.unstable_getFirstCallbackNode=function(){return k(T)},n.unstable_next=function(e){switch(L){case 1:case 2:case 3:var n=3;break;default:n=L}var t=L;L=n;try{return e()}finally{L=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=j,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=L;L=e;try{return n()}finally{L=t}},n.unstable_scheduleCallback=function(e,a,o){var u=n.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0u?(e.sortIndex=o,w(C,e),null===k(T)&&e===k(C)&&(I?l():I=!0,r(M,o-u))):(e.sortIndex=i,w(T,e),P||N||(P=!0,t(D))),e},n.unstable_wrapCallback=function(e){var n=L;return function(){var t=L;L=n;try{return e.apply(this,arguments)}finally{L=t}}}},"./node_modules/scheduler/index.js":(e,n,t)=>{"use strict";e.exports=t("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":e=>{function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}},a={};function o(e){var n=a[e];if(void 0!==n)return n.exports;var t=a[e]={id:e,loaded:!1,exports:{}};return l[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=l,o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var l=Object.create(null);o.r(l);var a={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,o.d(l,a),l},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((n,t)=>(o.f[t](e,n),n)),[])),o.u=e=>e+".bundle."+{"vendors-node_modules_proj4_lib_index_js-node_modules_babel_runtime_helpers_asyncToGenerator_j-2f127b":"d46f1d470bc5606b0951","src_Resources_public_js_components_c4g-maps_jsx":"a744cd61f2b1f6edc519","src_Resources_public_js_components_c4g-consent-banner_jsx":"08b515847c72c0f77816","node_modules_geotiff_dist-module_compression_raw_js":"4a97736af9ba461a6d15","node_modules_geotiff_dist-module_compression_lzw_js":"9d43615e1a710a965678","vendors-node_modules_geotiff_dist-module_compression_jpeg_js":"a3e94eb11448243a9d18","vendors-node_modules_pako_dist_pako_esm_mjs":"38a7ba6f29955b69cf47","node_modules_geotiff_dist-module_compression_deflate_js":"3236189777ed1326e0e4","node_modules_geotiff_dist-module_compression_packbits_js":"cec3e79c7e47bc168e3a","vendors-node_modules_geotiff_dist-module_compression_lerc_js":"8b3254ba0ee82a5e5898","node_modules_geotiff_dist-module_compression_webimage_js":"795ed894d7ec75eb995f","vendors-node_modules_geotiff_dist-module_worker_decoder_js":"c72b053755156b694cca","src_Resources_public_js_components_c4g-geosearch_jsx":"1c419daddc6927a1f7f3","vendors-node_modules_opening_hours_build_opening_hours_js":"02c487012687de7b09c4","src_Resources_public_js_components_c4g-feature-filter_jsx":"e857d3c575bb6b08b11e","src_Resources_public_js_components_c4g-baselayerswitcher_jsx":"9f11ee48a42454705316","src_Resources_public_js_components_c4g-starboard-panel_jsx":"3e92a8d03e716ec7de9d","src_Resources_public_js_components_c4g-starboard-scope_jsx":"e491809f912ae463dfbb","src_Resources_public_js_components_c4g-infopage_jsx":"5f0e566c80f2d774a6a7","src_Resources_public_js_components_c4g-measuretools_jsx":"14f4dfca3b94e3b457d0","src_Resources_public_js_components_c4g-permalink_jsx":"f225923e630345f231a5","src_Resources_public_js_components_c4g-zoom_jsx":"916298872338d3100f61","src_Resources_public_js_components_c4g-zoom-extent_jsx":"9d3854ad0d1968856ecd","src_Resources_public_js_components_c4g-zoom-home_jsx":"88ee8d4deb960c6b2411","src_Resources_public_js_components_c4g-zoom-position_jsx":"a021ec57535e7dcf4e15","src_Resources_public_js_components_c4g-grid_jsx":"a8ce3ef036d3b7f3d78d","src_Resources_public_js_components_c4g-rotate_jsx":"09ed3f3d06fa86aab02a","src_Resources_public_js_components_c4g-fullscreen_jsx":"ea4ef2c60c6644fe2a5c","src_Resources_public_js_components_c4g-print_jsx":"5a15197e8fbe842825f7","src_Resources_public_js_components_c4g-overviewmap_jsx":"a5ffbc2bd79f40aa56eb","src_Resources_public_js_components_c4g-editor-component_jsx":"f519af8e0c616a6a47e5","src_Resources_public_js_components_c4g-titlebar_jsx":"677bf194e120de0ac5a2","src_Resources_public_js_components_c4g-router-controls_jsx":"d577e5786560fd1d12f1","vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js":"6388c53b2f705ec1cb55",CoreBundle_src_Resources_public_vendor_js_AlertHandler_js:"b4f9bcb1cae77b1cf5e0","src_Resources_public_js_components_c4g-router-instructions-container_jsx":"ef307410202ed99f2189","src_Resources_public_js_components_c4g-router-feature-list_jsx":"bc85a74d2ff23483ae84","src_Resources_public_js_components_c4g-geosearch-results_jsx":"42b5db9e1b994d55ef65","src_Resources_public_js_components_c4g-editor-view_jsx":"562954d2780b99880227"}[e]+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t={},r="mapsbundle:",o.l=(e,n,l,a)=>{if(t[e])t[e].push(n);else{var u,i;if(void 0!==l)for(var s=document.getElementsByTagName("script"),c=0;c{u.onerror=u.onload=null,clearTimeout(p);var l=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),l&&l.forEach((e=>e(r))),n)return n(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),i&&document.head.appendChild(u)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="bundles/con4gismaps/build/",(()=>{var e={"c4g-maps":0};o.f.j=(n,t)=>{var r=o.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else{var l=new Promise(((t,l)=>r=e[n]=[t,l]));t.push(r[2]=l);var a=o.p+o.u(n),u=new Error;o.l(a,(t=>{if(o.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var l=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+n+" failed.\n("+l+": "+a+")",u.name="ChunkLoadError",u.type=l,u.request=a,r[1](u)}}),"chunk-"+n,n)}};var n=(n,t)=>{var r,l,[a,u,i]=t,s=0;if(a.some((n=>0!==e[n]))){for(r in u)o.o(u,r)&&(o.m[r]=u[r]);i&&i(o)}for(n&&n(t);s{"use strict";var e=o("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),n=o("./node_modules/@babel/runtime/helpers/typeof.js"),t=o("./src/Resources/public/js/c4g-maps-i18n.js"),r=e(o("./node_modules/react-dom/index.js")),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var l={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(l,u,i):l[u]=e[u]}return l.default=e,r&&r.set(e,l),l}(o("./node_modules/react/index.js"));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:n})(e)}o("./node_modules/elm-pep/dist/elm-pep.js");var u=l.default.lazy((function(){return Promise.all([o.e("vendors-node_modules_proj4_lib_index_js-node_modules_babel_runtime_helpers_asyncToGenerator_j-2f127b"),o.e("src_Resources_public_js_components_c4g-maps_jsx")]).then(o.bind(o,"./src/Resources/public/js/components/c4g-maps.jsx"))})),i=l.default.lazy((function(){return o.e("src_Resources_public_js_components_c4g-consent-banner_jsx").then(o.bind(o,"./src/Resources/public/js/components/c4g-consent-banner.jsx"))}));window.initMap=function(e){var n=null;if(e.mapDiv&&(n=document.querySelector("#"+e.mapDiv)),n||(n=jQuery("#c4g_map_"+e.mapId)[0]),n){if(jQuery(n).find("div.ol-viewport")&&(jQuery(n).find("div.ol-viewport").remove(),$('*[class^="c4g-external"]').empty()),e.cookie){var t=!1,a=document.cookie.split(";");for(var o in a)a.hasOwnProperty(o)&&a[o].indexOf(e.cookie.name)>-1&&(!e.cookie.value||a[o].indexOf(e.cookie.value)>-1)&&(t=!0);if(!t){if("undefined"!=typeof klaro&&klaro.getManager&&klaro.getManager()){var s={update:function(n,t,r){var l=!1,a=document.cookie.split(";");for(var o in a)a.hasOwnProperty(o)&&a[o].indexOf(e.cookie.name)>-1&&(!e.cookie.value||a[o].indexOf(e.cookie.value)>-1)&&(l=!0);l&&window.initMap(e)}};klaro.getManager().watch(s)}else"undefined"!=typeof HofffConsentManager&&HofffConsentManager.addEventListener("consent:accepted",(function(n){var t=!1,r=document.cookie.split(";");for(var l in r)r.hasOwnProperty(l)&&r[l].indexOf(e.cookie.name)>-1&&(!e.cookie.value||r[l].indexOf(e.cookie.value)>-1)&&(t=!0);t&&window.initMap(e)}));return r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(i,{mapData:e})),jQuery("#c4g-map-container-"+e.mapId)[0])}}new IntersectionObserver((function(n){n.forEach((function(n){if(n.intersectionRatio>0)return r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(u,{mapData:e})),jQuery("#c4g-map-container-"+e.mapId)[0])}))})).observe(n)}},window.initMaps=function(e){var n,a=function(n){var a;if(e.hasOwnProperty(n)&&(e[n].mapDiv&&(a=jQuery(e[n].mapDiv)[0]||jQuery("#"+e[n].mapDiv)[0]||jQuery("."+e[n].mapDiv)[0]),a||(a=jQuery("#c4g_map_"+e[n].mapId)[0]),a)){if(e[n].cookie){var o=!1,s=document.cookie.split(";");for(var c in s)s.hasOwnProperty(c)&&s[c].indexOf(e[n].cookie.name)>-1&&(!e[n].cookie.value||s[c].indexOf(e[n].cookie.value)>-1)&&(o=!0);if(!o){if("undefined"!=typeof klaro&&klaro.getManager&&klaro.getManager()){var f={update:function(t,r,l){var a=!1,o=document.cookie.split(";");for(var u in o)o.hasOwnProperty(u)&&o[u].indexOf(e[n].cookie.name)>-1&&(!e[n].cookie.value||o[u].indexOf(e[n].cookie.value)>-1)&&(a=!0);a&&window.initMap(e[n])}};klaro.getManager().watch(f)}else if("undefined"!=typeof HofffConsentManager)HofffConsentManager.addEventListener("consent:accepted",(function(t){var r=!1,l=document.cookie.split(";");for(var a in l)l.hasOwnProperty(a)&&l[a].indexOf(e[n].cookie.name)>-1&&(!e[n].cookie.value||l[a].indexOf(e[n].cookie.value)>-1)&&(r=!0);r&&window.initMap(e[n])}));else if("undefined"!=typeof cookiebar){var d=(0,t.getLanguage)(e[n]);return cookiebar.addModule(parseInt(e[n].cookie.value),(function(){e[n].cookie=!1,window.initMap(e[n])}),{selector:"#c4g-map-container-"+e[n].mapId,message:e[n].cookie.info,button:{show:!0,text:d.ACCEPT,type:"button"}}),{v:null}}return{v:r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(i,{mapData:e[n]}),l.default.createElement(u,{mapData:e[n]})),jQuery("#c4g-map-container-"+e[n].mapId)[0])}}}e[n].renderAsObserver=!0,Object.keys(e).length>1&&(e[n].renderAsObserver=!1),e[n].renderAsObserver?new IntersectionObserver((function(t){t.forEach((function(t){t.intersectionRatio>0&&r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(u,{mapData:e[n]})),t.target)}))})).observe(a):r.default.render(l.default.createElement(l.Suspense,{fallback:l.default.createElement("div",null,"Loading...")},l.default.createElement(u,{mapData:e[n]})),document.querySelector("#c4g-map-container-"+e[n].mapId))}};for(var o in e)if(n=a(o))return n.v},jQuery(document).ready((function(){void 0!==window.mapData&&window.initMaps(window.mapData)}))})()})();
\ No newline at end of file
diff --git a/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.1594c40bb8c241ce1852.js b/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.1594c40bb8c241ce1852.js
deleted file mode 100644
index fa50fdd3..00000000
--- a/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.1594c40bb8c241ce1852.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see src_Resources_public_js_components_c4g-maps_jsx.bundle.1594c40bb8c241ce1852.js.LICENSE.txt */
-(self.webpackChunkmapsbundle=self.webpackChunkmapsbundle||[]).push([["src_Resources_public_js_components_c4g-maps_jsx","src_Resources_public_js_components_c4g-titlebar_jsx"],{"./src/Resources/public/js/c4g-baselayer-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.OSM_REL_ATTRIBUTION=r.C4gBaselayerController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-baselayer.js"),i=t("./src/Resources/public/js/c4g-overlay.js"),l=t("./src/Resources/public/js/c4g-maps-config.js"),c=t("./src/Resources/public/js/c4g-maps-utils.js"),u=a(t("./node_modules/ol/layer/Tile.js")),p=(a(t("./node_modules/ol/source/TileJSON.js")),t("./node_modules/ol/source.js")),b=(a(t("./node_modules/ol/source/VectorTile.js")),t("./node_modules/ol/layer.js")),d=a(t("./node_modules/ol/Collection.js")),h=a(t("./node_modules/olcs/lib/olcs/OLCesium.js")),m=(a(t("./node_modules/ol/layer/VectorTile.js")),a(t("./node_modules/ol-ext/source/GeoImage.js"))),g=a(t("./node_modules/ol/source/GeoTIFF.js")),f=a(t("./node_modules/ol/layer/WebGLTile.js")),y=a(t("./node_modules/ol/proj/Projection.js")),_=r.OSM_REL_ATTRIBUTION='© OpenStreetMap contributors.';r.C4gBaselayerController=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.proxy=r,this.mapController=r.options.mapController,this.arrBaselayers={},this.baselayerIds=[],this.baseKeys=this.mapController.data.base_keys}),[{key:"loadBaseLayers",value:function(){var e;e=this,jQuery.ajax(this.proxy.api_baselayer_url,{dataType:this.mapController.data.jsonp?"jsonp":"json"}).done((function(r){return r.baselayer&&(e.addBaseLayers(r.baselayer),c.utils.callHookFunctions(window.c4gMapsHooks.proxy_baselayer_loaded)),!0})).fail((function(){return console.warn("An error occured while trying to load the baselayers. Do you have configured a default profile with baselayers?"),e.mapController.spinner.hide(),!1})).always((function(){}))}},{key:"addBaseLayers",value:function(e){var r,t,a;if(e.length>0)for(a=0;a0&&e[0].id?t=e[0].id:(t=0,this.baselayerIds.push(t),this.arrBaselayers[t]||(this.arrBaselayers[t]={id:0,name:"c4g_default",provider:"osm",style:"Mapnik"})),this.showBaseLayer(t)),this.proxy.baselayers_loaded=!0,c.utils.callHookFunctions(this.proxy.hook_baselayer_loaded,this.baselayerIds)}},{key:"createBaseLayer",value:function(e,r,t){var a,o={};e=e||{},window.isSecureContext&&(e.crossOrigin="anonymous");var n=1,s=this.mapController.data;if(s.cookie){n=0;var i=document.cookie.split(";");for(var l in i)i.hasOwnProperty(l)&&i[l].indexOf(s.cookie.name)>-1&&(!s.cookie.value||i[l].indexOf(s.cookie.value)>-1)&&(n=2)}var c="../../../"+this.mapController.data.dummyBaselayer,h=null;if(c&&(h=new p.XYZ({url:c})),h&&0===n)(o=new u.default).setSource(h);else switch(r.provider){case"custom":var k=!0;r.url?(e.url=r.url,k=!1):r.urls&&(e.urls=r.urls,k=!1),r.attribution&&(e.attributions=r.attribution),k?console.warn("custom url(s) missing -> switch to default"):o=new u.default({source:new p.XYZ(e),extent:r.extend});break;case"osm":if(t.osm[r.style])o=new u.default({source:new p.OSM(jQuery.extend(t.osm[r.style],e))});else if("osm_custom"===r.style){var v=!0;r.url?(e.url=r.url,v=!1):r.urls&&(e.urls=r.urls,v=!1),v?console.warn("custom url(s) missing -> switch to default"):o=new u.default({source:new p.XYZ(e)})}else console.warn("unsupported osm-style -> switch to default");break;case"stadiaMaps":var w,S;if(t.stadiaMaps[r.style])if("Watercolor"===r.style?(o=new b.Group({layers:[new u.default,new u.default]}),w=new p.StadiaMaps({layer:"stamen_watercolor"}),S=new p.StadiaMaps({layer:"stamen_terrain_labels"})):(o=new u.default,w=new p.StadiaMaps(jQuery.extend(t.stadiaMaps[r.style]))),w.apiKey=r.api_key,o instanceof b.Group){var C=o.getLayers().getArray();C[0].setSource(w),C[1].setSource(S)}else o.setSource(w);else console.warn("unsupported osm-style -> switch to default");break;case"con4gisIo":if(this.baseKeys[r.id]){var R=this.baseKeys[r.id];e.url=r.url.replace("{key}",R.key),e.attributions=R.attribution+" "+e.attributions;var E=new p.XYZ(e);(o=new u.default).setSource(E)}break;case"mapbox":r.api_key&&r.app_id&&r.mapbox_type?(o=new u.default,"Mapbox"===r.mapbox_type?(e.url=r.url+r.app_id+"/tiles/{z}/{x}/{y}?access_token="+r.api_key,a=new p.XYZ(jQuery.extend(t.mapbox[r.mapbox_type],e))):(e.url=r.url_classic+r.app_id+"/{z}/{x}/{y}.png?access_token="+r.api_key,a=new p.XYZ(jQuery.extend(t.mapbox[r.mapbox_type],e))),o.setSource(a)):r.hide_in_be?(e.url="con4gis/baseLayerTileService/"+r.id+"/{z}/{x}/{y}",o=new u.default({source:new p.XYZ(jQuery.extend(t.mapbox[r.mapbox_type],e))})):console.warn("wrong mapbox configuration!");break;case"mapz":o=new u.default,a=new p.XYZ(jQuery.extend(t.mapz,e)),o.setSource(a);break;case"otm":o=new u.default,a=new p.XYZ(jQuery.extend(t.otm,e)),o.setSource(a);break;case"klokan":console.warn("wrong klokan configuration!");break;case"here":r.api_key&&r.app_id&&r.here_type?("normal"===r.style?e.url="https://{1-4}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"transit"===r.style?e.url="https://{1-4}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day.transit/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"pedestrian"===r.style?e.url="https://{1-4}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/pedestrian.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"terrain"===r.style?e.url="https://{1-4}.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/terrain.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"satellite"===r.style?e.url="https://{1-4}.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/satellite.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"hybrid"===r.style&&(e.url="https://{1-4}.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/hybrid.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key),a=new p.XYZ(jQuery.extend(t.here[r.here_type],e)),(o=new u.default({preload:1/0})).setSource(a)):r.hide_in_be?(e.url=e.url="con4gis/baseLayerTileService/"+r.id+"/{z}/{x}/{y}",o=new u.default({source:new p.XYZ(jQuery.extend(t.mapbox[r.here_type],e))})):console.warn("wrong HERE configuration!");break;case"thunder":r.api_key&&r.thunderforest_type?(r.style&&(e.url="https://tile.thunderforest.com/"+r.style+"/{z}/{x}/{y}.png?apikey="+r.api_key),o=new u.default,a=new p.XYZ(jQuery.extend(t.thunderforest[r.thunderforest_type],e)),o.setSource(a)):r.hide_in_be?(e.url="con4gis/baseLayerTileService/"+r.id+"/{z}/{x}/{y}",o=new u.default({source:new p.XYZ(jQuery.extend(t.mapbox[r.thunderforest_type],e))})):console.warn("wrong Thunderforest configuration!");break;case"google":console.warn("google-maps are currently unsupported");break;case"bing":r.api_key&&r.style?(o=new u.default,a=new p.BingMaps({culture:navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage,key:r.api_key,imagerySet:r.style}),o.setSource(a)):console.warn("wrong bing-key or invalid imagery-set!");break;case"wms":o=-1!==r.url.indexOf("https")?new u.default({source:new p.TileWMS({url:r.url,params:{LAYERS:r.params.layers,VERSION:r.params.version,TRANSPARENT:r.params.transparent},gutter:r.gutter,attributions:r.attribution+" "+_,crossOrigin:"anonymous"})}):new u.default({source:new p.TileWMS({url:r.url,params:{LAYERS:r.params.layers,VERSION:r.params.version,TRANSPARENT:r.params.transparent},gutter:r.gutter,attributions:r.attribution+" "+_})});break;case"image":var O=new y.default({code:"image",units:"pixels",extent:r.extent?r.extent:[0,0,1920,1080]});o=new b.Image({source:new p.ImageStatic({url:r.imageSrc,imageExtent:r.extent?r.extent:[0,0,1920,1080],projection:O})});break;case"geoimage":var T=JSON.parse(r.geoImageJson);T.url=r.imageSrc?r.imageSrc:arrSource.url,o=new b.Image(jQuery.extend({source:new m.default(T)},e));break;case"geotiff":var x=[{url:r.imageSrc?r.imageSrc:""}];o=new f.default(jQuery.extend({source:new g.default({sources:x,nodata:0})},e));break;case"owm":o=new u.default({source:new p.XYZ({url:r.url+r.app_id+"/{z}/{x}/{y}?hash="+r.api_key,attributions:r.attribution+" "+_})});break;case"group":var P=[];for(var I in r.layerGroup)if(r.layerGroup.hasOwnProperty(I)){var j={};j=this.getAttributions(j,r.layerGroup[I],t);var L=this.createBaseLayer(j,r.layerGroup[I],t),A=this.proxy.options.mapController.map.getView().getResolutionForZoom(r.layerGroup[I].minZoom),F=this.proxy.options.mapController.map.getView().getResolutionForZoom(r.layerGroup[I].maxZoom);L.setMinResolution(F),L.setMaxResolution(A),P.push(L)}o=new b.Group({layers:P});break;default:console.warn("unsupported provider")}if(r.consentId)if("undefined"!=typeof klaro&&klaro.getManager&&klaro.getManager()){var M,z=klaro.getManager();if(o instanceof u.default||o instanceof f.default)a=o.getSource(),z.getConsent(r.consentId)||o.setSource(h),M={update:function(e,t,n){n[r.consentId]?o.setSource(a):o.setSource(h)}};else if(o instanceof b.Group){var N=o.getLayers();z.getConsent(r.consentId)||o.setLayers(new d.default([new u.default({source:h})])),M={update:function(e,t,a){a[r.consentId]?o.setLayers(N):o.setLayers(new d.default([new u.default({source:h})]))}}}z.watch(M)}else if("undefined"!=typeof HofffConsentManager)if(o instanceof u.default||o instanceof f.default)a=o.getSource(),HofffConsentManager.addEventListener("consent:accepted",(function(e){e.consentId==r.consentId&&o.setSource(a)})),HofffConsentManager.addEventListener("consent:revoked",(function(e){e.consentId==r.consentId&&o.setSource(h)})),HofffConsentManager.requiresConsent(r.consentId)||o.setSource(h);else if(o instanceof b.Group){var D=o.getLayers();HofffConsentManager.addEventListener("consent:accepted",(function(e){e.consentId==r.consentId&&o.setLayers(D)})),HofffConsentManager.addEventListener("consent:revoked",(function(e){e.consentId==r.consentId&&o.setLayers(new d.default)})),HofffConsentManager.requiresConsent(r.consentId)||o.setLayers(new d.default)}return(o instanceof u.default||o instanceof f.default)&&o.setZIndex(-2),o}},{key:"filterLayersForBaselayer",value:function(e){var r=this.proxy.layerController.arrLayers;for(var t in r)if(r.hasOwnProperty(t)){var a=r[t];if(a){var o=!1;if("all"===a.activeForBaselayers||a.renderSpecial)continue;a.activeForBaselayers&&(o=!!a.activeForBaselayers.includes(e)),o?(r[t].display=!0,this.proxy.layerController&&this.proxy.layerController.show(t)):(r[t].display=!1,this.proxy.layerController&&this.proxy.layerController.hide(t))}}}},{key:"getAttributions",value:function(e,r,t){var a;if(r.attribution)e.attributions?e.attributions=e.attributions+" "+r.attribution:e.attributions=_+" "+r.attribution;else if(!e.attributions)switch(r.provider){case"osm":t.osm[r.style]?e.attributions=t.osm[r.style].attributions:e.attributions=_;break;case"stadiaMaps":e.attributions=t.stadiaMaps[r.style].attributions;break;case"mapbox":e.attributions=t.mapbox[r.mapbox_type].attributions;break;case"mapz":e.url=r.url,e.attributions=t.mapz.attributions;break;case"otm":e.url=r.url,e.attributions=t.otm.attributions;break;case"klokan":e.attributions=t.klokan[r.klokan_type].attributions;break;case"here":e.attributions=t.here[r.here_type].attributions;break;case"thunder":e.attributions=t.thunderforest[r.thunderforest_type].attributions;break;case"geoimage":case"geotiff":break;default:e.attributions=_}if(this.mapController.data&&this.mapController.data.attribution&&this.mapController.data.attribution.additional)if(e.attributions){var o=this.mapController.data.attribution.additional;for(s=!1,a=0;a=0&&(s.minZoom=m.minZoom),m.maxZoom&&m.maxZoom>=0&&(s.maxZoom=m.maxZoom),n=this.createBaseLayer(s,m,d),m.hasOverlays)for(u=0;u0)for(var f in g.overlayController.arrOverlays)g.overlayController.arrOverlays.hasOwnProperty(f)&&"length"!==f&&g.overlayController.arrOverlays[f].changeOpacity(0)}if((t=this.arrBaselayers[e]).overlayController&&t.overlayController.arrOverlays&&t.overlayController.arrOverlays.length>0)for(var y in t.overlayController.arrOverlays)if(t.overlayController.arrOverlays.hasOwnProperty(y)&&"length"!==y){var _=t.overlayController.arrOverlays[y];_.changeOpacity(_.opacity)}if("baseMapsLayer"===(r=this.mapController.map.getLayers()).item(0).get("checkSum")&&(o=r.item(0).getLayers(),void 0!==this.arrBaselayers[e])&&((t=this.arrBaselayers[e].layer)&&(a=!0,o.forEach((function(e,r,o){e&&e===t?(e.setVisible(!0),a=!1):e?e.setVisible(!1):a=!1}),this),a&&o.push(t)),(p=this.mapController.map.getView()).getZoom(),p.getCenter(),m.minZoom&&m.minZoom>=0||m.maxZoom&&m.maxZoom>=0)){m.minZoom&&p.getZoom()m.maxZoom&&p.setZoom(m.maxZoom);var k=this.mapController.data;p.setMinZoom(parseInt(m.minZoom,10)||0),p.setMaxZoom(parseInt(m.maxZoom,10)||19),this.mapController.map.setView(p)}void 0!==m&&(this.mapController.setBaselayerId(m.id),c.utils.callHookFunctions(this.proxy.hook_baselayer_visibility,m),void 0!==m&&((k=this.mapController.data).cesium&&k.cesium.enable&&(k.cesium.always||m.cesium)?(this.ol3d||(this.ol3d=new h.default({map:this.mapController.map,createSynchronizers:!1})),this.ol3d.setEnabled(!0),jQuery(".c4g-control-container-top-left").hasClass("c4g-cesium-enabled")||jQuery(".c4g-control-container-top-left").addClass("c4g-cesium-enabled")):(this.ol3d&&this.ol3d.getEnabled()&&this.ol3d.setEnabled(!1),jQuery(".c4g-control-container-top-left").hasClass("c4g-cesium-enabled")&&jQuery(".c4g-control-container-top-left").removeClass("c4g-cesium-enabled"))))}}])}()},"./src/Resources/public/js/c4g-baselayer.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gBaselayer=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=t("./src/Resources/public/js/c4g-overlay-controller.js");r.C4gBaselayer=(0,o.default)((function e(r,t){if((0,n.default)(this,e),this.id=r.id,this.pid=r.pid,this.name=r.name,this.display_name=r.display_name,this.provider=r.provider,this.osm_style=r.osm_style,this.osm_style_url1=r.osm_style_url1,this.osm_style_url2=r.osm_style_url2,this.osm_style_url3=r.osm_style_url3,this.osm_style_url4=r.osm_style_url4,this.osm_keyname=r.osm_keyname,this.mapbox_type=r.mapbox_type,this.bing_style=r.bing_style,this.style=r.style,this.attribution=r.attribution,this.infopage=r.infopage,this.params=r.params,this.wms_gutter=r.wms_gutter,this.minZoom=r.minZoom,this.maxZoom=r.maxZoom,this.protect_baselayer=r.protect_baselayer,this.permitted_groups=r.permitted_groups,this.api_key=r.apiKey?r.apiKey:r.api_key,this.app_id=r.app_id,this.thunderforest_type=r.thunderforest_type,this.here_type=r.here_type,this.cesium=r.cesium,this.hide_in_be=r.hide_in_be,this.url=r.url,this.urls=r.urls,this.klokan_type=r.klokan_type,this.style_url=r.style_url,this.hasOverlays=r.hasOverlays,this.overlays=r.overlays,this.imageSrc=r.image_src,this.geoImageJson=r.geoimage_json,this.preview_image=r.preview_image,r.layerGroup){var a=[];for(var o in r.layerGroup)r.layerGroup.hasOwnProperty(o)&&(a[o]=new e(r.layerGroup[o].entry),a[o].minZoom=r.layerGroup[o].minZoom,a[o].maxZoom=r.layerGroup[o].maxZoom);this.layerGroup=a}this.consentId=!!r.consentId&&r.consentId,this.overlayController=new s.C4gOverlayController(this),this.layer=!1,this.controller=t}))},"./src/Resources/public/js/c4g-layer-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.BetterLayerController=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./node_modules/ol/source.js"),l=t("./node_modules/ol/proj.js"),c=a(t("./node_modules/ol/format/OSMXML.js")),u=a(t("./node_modules/ol/format/GML3.js")),p=a(t("./node_modules/ol/format/GML32.js")),b=a(t("./node_modules/ol/format/GML2.js")),d=t("./node_modules/ol/loadingstrategy.js"),h=t("./node_modules/ol/layer.js"),m=E(t("./node_modules/ol/format.js")),g=a(t("./node_modules/proj4/lib/index.js")),f=t("./node_modules/ol/proj/proj4.js"),y=a(t("./node_modules/ol/proj/Projection.js")),_=a(t("./node_modules/ol/Collection.js")),k=t("./src/Resources/public/js/c4g-maps-utils.js"),v=t("./node_modules/ol/style.js"),w=t("./node_modules/ol/geom.js"),S=a(t("./node_modules/ol/Feature.js")),C=E(t("./node_modules/ol/extent.js"));function R(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(R=function(e){return e?t:r})(e)}function E(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=R(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}var O=jQuery.extend({OSMXML:c.default,GML2:b.default,GML32:p.default,GML3:u.default},m);r.BetterLayerController=function(){return(0,s.default)((function e(r){(0,n.default)(this,e),this.handleZoom=this.handleZoom.bind(this);var t=this;this.proxy=r,this.loaders=[],this.controllers={},this.arrLocstyles=[],this.objIds={},this.currentZoomLevel=0,this.extent={maxX:-1/0,maxY:-1/0,minX:1/0,minY:1/0},this.mapController=r.options.mapController,this.vectorCollection=new _.default,this.loaderFunction=function(e,r,a){var o=function(){if(t.loaders.hasOwnProperty(n)){var o=t.loaders[n];if(o.preventLoading)o.arrExtents.push(e);else if(o.params||o.url){var s=t.objLayers.find((function(e){return e.id==o.layerId}))||{};t.performOvp({url:o.url,params:o.params,locstyleId:o.locstyle,chain:o.chain,layer:s},{extent:e,resolution:r,projection:a})}else t.performOwnData(o,{extent:e,resolution:r,projection:a},(function(e){for(var r=[],a=t.objLayers.find((function(e){return e.id==o.layerId}))||{},n=0;n1&&o&&Array.isArray(o)){var l=0;o[0]&&o[0].setZIndex&&e.get("zindex")&&(l+=e.get("zindex")),o[0]&&o[0].setZIndex&&(l+=100-e.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()[1],o[0].setZIndex(l));var c=[0,0],u=1;if(o[0]){if(o[0].getImage()&&o[0].getImage().getRadius&&"function"==typeof o[0].getImage().getRadius){var p=parseInt(o[0].getImage().getRadius(),10);p&&(c=[-p,p])}else o[0].getImage()&&o[0].getImage().getAnchor&&"function"==typeof o[0].getImage().getAnchor&&(c=o[0].getImage().getAnchor()||[0,0]);o[0].getImage()&&o[0].getImage().getScale()&&1!==o[0].getImage().getScale()&&(u=o[0].getImage().getScale(),c=[c[0]*u,c[1]*u]),t.proxy.mapData.cluster_fillcolor&&(u+=(a-1)/t.vectorCollection.getLength())}var b=k.utils.getRgbaFromHexAndOpacity(t.proxy.mapData.cluster_fillcolor,{unit:"%",value:70}),d=t.proxy.mapData.cluster_fontcolor;if(e.get("cluster_fillcolor")&&(b=k.utils.getRgbaFromHexAndOpacity(e.get("cluster_fillcolor"),{unit:"%",value:70})),e.get("cluster_fontcolor")&&(d=e.get("cluster_fontcolor")),d=k.utils.getRgbaFromHexAndOpacity(d),o.push(new v.Style({text:new v.Text({text:"●",font:"60px sans-serif",offsetX:-1*c[0],offsetY:-1*c[1],scale:u,fill:new v.Fill({color:b})}),zIndex:l})),o.push(new v.Style({text:new v.Text({text:a.toString(),offsetX:-1*c[0],offsetY:-1*c[1]+3,scale:u,fill:new v.Fill({color:d})}),zIndex:l})),e&&e.get("markLocstyle")){var h,m="#"+t.proxy.mapData.starboard.colorZoomMarker,g=new v.Fill({color:m});h=o[0].getImage()&&o[0].getImage().getRadius&&o[0].getImage().getRadius()?parseInt(o[0].getImage().getRadius()):o[0].getImage()&&o[0].getImage().getIcon&&o[0].getImage()&&o[0].getImage().getIcon()?(h=o[0].getImage().getIcon().getSize())[0]:25;var f=new v.Style({image:new v.Circle({fill:g,radius:h}),fill:g});o.push(f)}}else if(o&&Array.isArray(o)){var y=0;if(o[0]&&o[0].setZIndex&&e.get("zindex")&&(y+=e.get("zindex")),o[0]&&o[0].setZIndex){var _=e.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates();y+=100-(_="number"==typeof(_="number"==typeof _[0]?_:_[0])[0]?_:_[0])[1],o[0].setZIndex(y)}if(e&&e.get("markLocstyle")){var w,S="#"+t.proxy.mapData.starboard.colorZoomMarker,C=new v.Fill({color:S});w=o[0].getImage()&&o[0].getImage().getRadius&&o[0].getImage().getRadius()?parseInt(o[0].getImage().getRadius()):o[0].getImage()&&o[0].getImage().getIcon&&o[0].getImage()&&o[0].getImage().getIcon()?(w=o[0].getImage().getIcon().getSize())[0]:25;var R=new v.Style({image:new v.Circle({fill:C,radius:w}),fill:C});o.push(R)}}return o},this.mapController.data.cluster_all&&(this.vectorSource=new i.Cluster({source:this.vectorSource,geometryFunction:this.geometryFunction,distance:this.mapController.data.cluster_distance||20})),this.vectorLayer=new h.Vector({source:this.vectorSource,zIndex:10}),this.vectorLayers=[],this.layerRequests={},this.ovpKey=this.mapController.data.ovp_key,window.c4gMapsHooks.hook_map_zoom=window.c4gMapsHooks.hook_map_zoom||[],window.c4gMapsHooks.hook_map_zoom.push(this.handleZoom)}),[{key:"hide",value:function(e,r,t,a){var o,n;if(Array.isArray(r)?o=r:r instanceof h.Vector?n=r:o=this.objIds[t],o){if(this.mapController.map.getView().dispatchEvent({type:"change:resolution"}),e>=0){var s=this.loaders[e];s&&(this.loaders[e].preventLoading=!0,s.request&&s.request.abort())}if(o.length>0)for(var i in o)o.hasOwnProperty(i)&&this.vectorCollection.remove(o[i])}else n&&this.mapController.map.removeLayer(n)}},{key:"show",value:function(e,r,t,a){var o,n;if(Array.isArray(r))for(var s in o=r,this.currentZoomLevel++,o)o.hasOwnProperty(s)&&this.mapController.filter&&(o[s].set("zindex",this.currentZoomLevel),parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.hideFeatureMulti(o[s]):this.mapController.filter.hideFeature(o[s]));else r instanceof h.Vector?(n=r,this.mapController.filter&&(parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.filterLayerMulti(n):this.mapController.filter.filterLayer(n))):o=this.objIds[t];if(e>=0&&this.loaders[e]&&this.loaders[e].preventLoading){for(var i in this.loaders[e].preventLoading=!1,this.loaders[e].arrExtents)if(this.loaders[e].arrExtents.hasOwnProperty(i)&&this.vectorSource){var l=this.loaders[e].arrExtents[i];this.vectorSource.removeLoadedExtent(l)}this.loaders[e].arrExtents=[]}if(o){for(var c in o)if(o.hasOwnProperty(c)){var u=this.vectorCollection.getArray(),p=!1;for(var b in u)u[b].ol_uid==o[c].ol_uid&&(p=!0);p||this.vectorCollection.push(o[c])}}else n&&this.mapController.map.addLayer(n)}},{key:"zoomTo",value:function(e){var r,t,a=this;if(e.childs&&e.childs.length)for(var o in e.childs)e.childs.hasOwnProperty(o)&&(r=this.getChildsExtent(r,e.childs[o]));for(var n in t=e.features&&0!==e.features.length?e.features:this.objIds[e.id])t.hasOwnProperty(n)&&(r=r?C.extend(r,t[n].getGeometry().clone().getExtent()):t[n].getGeometry().clone().getExtent());if(!r)return!1;var s=jQuery(".c4g-starboard-container").css("width");s?(s=s.split("."),s=Array.isArray(s)?s[0]:s,s=parseInt(s)+50):s=50;var i=parseInt(this.proxy.mapData.starboard.maxZoom)||22;return t&&1===t.length?this.mapController.map.getView().fit(r,{padding:[50,s,50,50],duration:500,maxZoom:i,callback:function(e){e&&window.setTimeout((function(){var e=t[0].getGeometry().clone().getExtent(),r=a.mapController.map.getPixelFromCoordinate([(e[0]+e[2])/2,(e[1]+e[3])/2]),o=a.mapController.map.getFeaturesAtPixel(r,{hitTolerance:10});o&&o[0]&&o[0].get("features")&&o[0].get("features").length>1&&(o[0].getGeometry().getCoordinates(),a.mapController.map.dispatchEvent({type:"click",pixel:r}))}),100)}}):this.mapController.map.getView().fit(r,{padding:[50,s,50,50],duration:500,maxZoom:i}),!0}},{key:"getChildsExtent",value:function(e,r){if(r.childs&&r.childs.length)for(var t in r.childs)r.childs.hasOwnProperty(t)&&(e=this.getChildsExtent(e,r.childs[t]));if(r.features&&r.features.length)for(var a in r.features)r.features.hasOwnProperty(a)&&(e=e?C.extend(e,r.features[a].getGeometry().clone().getExtent()):r.features[a].getGeometry().clone().getExtent());else e=this.getExtentForLayer(e,r.key);return e}},{key:"getExtentForLayer",value:function(e,r){var t=this.objIds[layerId];if(t&&t.length)for(var a in t)t.hasOwnProperty(a)&&(e=e?C.extend(e,t[a].getGeometry().getExtent()):t[a].getGeometry().getExtent());return e}},{key:"setChildFeatureFlag",value:function(e,r,t){if(e.childs&&e.childs.length)for(var a in e.childs)e.childs.hasOwnProperty(a)&&this.setChildFeatureFlag(e.childs[a],r,t);if(e.features&&e.features.length)for(var o in e.features)e.features.hasOwnProperty(o)&&e.features[o].set(r,t)}},{key:"loadLayers",value:function(){var e=this;if(0===this.proxy.mapId)return window.setTimeout((function(){e.mapController.setLayersInitial([],[])}),50),!1;jQuery.ajax(this.proxy.api_layer_url,{dataType:this.mapController.data.jsonp?"jsonp":"json"}).done((function(r){k.utils.callHookFunctions(window.c4gMapsHooks.hook_layer,r),k.utils.callHookFunctions(window.c4gMapsHooks.loaded,e.proxy),e.objLayers=r.layer;var t=[],a=[],o=[];for(var n in r.layer)if(r.layer.hasOwnProperty(n))if("startab"===r.layer[n].type){var s=[e.getStructureFromLayer(r.layer[n],o.length)];s.awesomeIcon=r.layer[n].awesomeicon,o.push(s)}else{var i=e.getStructureFromLayer(r.layer[n],t.length);i.hide_in_starboard?(t=i.childs?t.concat(i.childs):t,a=i.features?a.concat(i.features):a):t.push(i)}var l=[];for(var c in t)t.hasOwnProperty(c)&&(l.push(e.getInitialStates(t[c])),a&&(a=a.concat(e.getFeaturesFromStruct(t[c]))));var u=[];for(var p in o)o.hasOwnProperty(p)&&u.push(e.getInitialStates(o[p][0]));if(e.arrLayers=t,e.proxy.locationStyleController.loadLocationStyles(e.arrLocstyles,{done:function(r){e.mapController.setLocStyles(r,(function(){window.setTimeout((function(){var r=e.mapController.map.getView().getZoom();e.mapController.map.getView().setZoom(r+.265)}),100),window.setTimeout((function(){var r=e.mapController.map.getView().getZoom();e.mapController.map.getView().setZoom(r-.265)}),300)}))}}),e.vectorCollection.extend(a),e.mapController.map.addLayer(e.vectorLayer),e.mapController.setLayersInitial(e.arrLayers,l),e.mapController.setTabLayers(o,u),("LOCATIONS"===e.proxy.mapData.calc_extent||"CENTERLOCS"===e.proxy.mapData.calc_extent)&&e.extent&&e.extent.maxX!==1/0&&e.extent.maxX!==-1/0){var b=e.mapController.map.getView(),d=[parseInt(e.mapController.props.mapData.min_gap,10),parseInt(e.mapController.props.mapData.min_gap,10),parseInt(e.mapController.props.mapData.min_gap,10),parseInt(e.mapController.props.mapData.min_gap,10)],h=[e.extent.minX,e.extent.minY,e.extent.maxX,e.extent.maxY];"CENTERLOCS"===e.proxy.mapData.calc_extent?b.fit(h,{maxZoom:e.mapController.data.center.zoom}):b.fit(h,{padding:d})}return k.utils.callHookFunctions(window.c4gMapsHooks.layer_loaded,e),e.proxy.layers_loaded=!0,!0})).fail((function(){return console.warn("An error occured while trying to load the layers..."),!1})).always((function(){}))}},{key:"getInitialStates",value:function(e){var r=[];if(e.childs&&e.childs.length>0)for(var t in e.childs)e.childs.hasOwnProperty(t)&&r.push(this.getInitialStates(e.childs[t]));return this.mapController.map.getView().getZoom(),{active:!e.hide,collapsed:!parseFloat(e.initial_opened),greyed:e.zoom&&!this.compareZoom(e.zoom),id:e.id,childStates:r}}},{key:"getFeaturesFromStruct",value:function(e){var r=[],t=(this.mapController.map.getView().getZoom(),e.zoom&&!this.compareZoom(e.zoom));if(e.childs&&e.childs.length>0)for(var a in e.childs)e.childs.hasOwnProperty(a)&&(r=r.concat(this.getFeaturesFromStruct(e.childs[a])));return!e.features||t||e.hide||(r=r.concat(e.features)),r}},{key:"getStructureFromLayer",value:function(e,r){var t=this,a=this,o=!1,n=[],s=[],c=!!e.hide;a.mapController.data.layers&&a.mapController.data.layers.length>0&&(c=!a.mapController.data.layers.split(",").find((function(r){return r==e.id}))),e.activeForBaselayers&&"all"!==e.activeForBaselayers&&(c=!e.activeForBaselayers.includes(a.mapController.state.activeBaselayerId||a.mapController.data.default_baselayer));var u=!1,p=-1,b=e.locstyle;e.content&&e.content.length>0&&(n=this.getFeaturesForLayer(e),b=e.locstyle||e.content[0].locationStyle);var m=this.arrLocstyles.findIndex((function(e){return e===b}));if(-1===m&&b&&this.arrLocstyles.push(b),e.async_content&&0!=e.async_content&&!e.excludeFromSingleLayer){var _,w,S="",C=0,R="",E=!1,T=!1,x=e.id;if(e.content&&e.content[0]&&e.content[0].data){var P=e.content[0].data;S=P.url,o=P.popup,_=P.hover_location,w=P.hover_style,R=P.params,C=e.locstyle}e.content&&e.content[0]&&e.content[0].settings&&(E=e.content[0].settings.forceNodes,T=!!e.content[0].settings.showAdditionalGeometries),-1===(m=this.arrLocstyles.findIndex((function(e){return e===C})))&&C&&this.arrLocstyles.push(C),p=this.loaders.length,this.loaders.push({chain:r,url:S,preventLoading:c,forceNodes:E,arrExtents:[],popup:o,showAddGeoms:T,locstyleId:C,hover_location:_,hover_style:w,params:R,layerId:x})}if(e.childs&&e.childs.length>0){for(var I in e.childs)if(e.childs.hasOwnProperty(I)){var j=r+","+s.length,L=this.getStructureFromLayer(e.childs[I],j);L.hide_in_starboard?(s=L.childs?s.concat(L.childs):s,n=L.features?n.concat(L.features):n,this.mapController.filter&&(parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.filterLayerMulti(u):this.mapController.filter.filterLayer(u))):s.push(L)}s.filter((function(e,r){return r===s.findIndex((function(r){return e.id===r.id}))}))}else if(e.split_geojson){var A=e.geojson_attributes.split(",")[0],F=!!e.geojson_zoom;for(var M in n)n.hasOwnProperty(M)&&s.push({features:[n[M]],vectorLayer:!1,zoom:e.zoom,initial_opened:e.initial_opened,locstyle:b,zoomTo:F,activeForBaselayers:e.activeForBaselayers,id:n[M].ol_uid,key:e.key,name:n[M].get(A),hide:c,childs:[]});n=[]}if(e.excludeFromSingleLayer){var z=!1,N=new i.Vector;if(e.async_content&&"0"!==e.async_content){var D="table"===e.type||e.content&&e.content[0].settings.boundingBox?d.bbox:d.all;N=new i.Vector({strategy:D});var B=this,G=function(r,t,a){if(e.content&&e.content[0].settings.boundingBox&&(r[0]===1/0||r[0]===-1/0))N.removeLoadedExtent();else if("overpass"===e.type){var o=e.content[0].data;B.performOvp({url:o.url,layerId:e.id,layer:e,vectorSource:N,params:o.params,locstyleId:e.locstyle},{extent:r,resolution:t,projection:a})}else if("table"===e.type)B.performOwnData({layerId:e.id,locstyleId:e.locstyle},{extent:r,resolution:t,projection:a},(function(r){for(var t=[],a=0;a1&&n&&Array.isArray(n)){var l=[0,0];if(n[0])if(n[0].getImage()&&n[0].getImage().getRadius&&"function"==typeof n[0].getImage().getRadius){var c=parseInt(n[0].getImage().getRadius(),10);c&&(l=[-c,c])}else n[0].getImage()&&n[0].getImage().getAnchor&&"function"==typeof n[0].getImage().getAnchor&&(l=n[0].getImage().getAnchor()||[0,0]);var u=k.utils.getRgbaFromHexAndOpacity("4975A8",{unit:"%",value:70});n.push(new v.Style({text:new v.Text({text:"●",font:"60px sans-serif",offsetX:-1*l[0],offsetY:-1*l[1],fill:new v.Fill({color:u})})})),n.push(new v.Style({text:new v.Text({text:o.toString(),offsetX:-1*l[0],offsetY:-1*l[1]+3,fill:new v.Fill({color:"#FFFFFF"})})}))}return n},H){H.data&&H.data.properties&&H.data.properties.projection&&H.data.properties.projCode&&(g.default.defs(H.data.properties.projection,H.data.properties.projCode),(0,f.register)(g.default),K=new y.default({code:H.data.properties.projection}));var W=new O[H.format]({featureProjection:"EPSG:3857",dataProjection:K});if("wfs"===e.type){if(H.locstyleWfs){var V=function(){if(H.locstyleWfs.hasOwnProperty(Z)){var e=H.locstyleWfs[Z].locstyle;-1===t.arrLocstyles.findIndex((function(r){return r===e}))&&e&&t.arrLocstyles.push(e)}};for(var Z in H.locstyleWfs)V()}N=new i.Vector({format:new O.WFS({version:H.data.version,gmlFormat:W}),loader:function(e,r,t,o,n){t.getCode();var s=(0,l.transformExtent)(e,t,"EPSG:4326");s=[s[1],s[0],s[3],s[2]];var i=H.data.url+s.join(",");fetch(i,{headers:{"Content-Type":"application/json"}}).then((function(e){e.json().then((function(e){var r=W.readFeatures(e);for(var t in r)if(r.hasOwnProperty(t)){var n=r[t],s=a.getWfsStyle(n,H);n.set("locstyle",s);var i=n.getId();N.getFeatureById(i)||N.addFeature(n)}o(r)}))})).catch((function(){N.removeLoadedExtent(e),n()}))},strategy:d.bbox}),z=!1,o=!(!H.data||!H.data.popup)&&H.data.popup}else N=new i.Vector({format:W,url:H.data.url}),o=!(!H.data||!H.data.popup)&&H.data.popup}}this.vectorSources.push(N),e.cluster&&(N=new i.Cluster({source:N,geometryFunction:this.geometryFunction,distance:parseInt(e.cluster.distance,10)})),u=new h.Vector({source:N,style:z||this.clusterStyleFunction,zIndex:parseInt(e.zIndex||"0")}),this.vectorLayers.push(u),u.popup=o,a.proxy.hook_locstyles_loaded.push((function(e){u.changed()}));var q=e.zoom&&!this.compareZoom(e.zoom);c||q||this.mapController.map.addLayer(u),n=!1}return e.hideInStarboard?{childs:s,features:n,hide_in_starboard:!0}:{features:n,vectorLayer:u,loader:p,zoom:e.zoom,initial_opened:e.initial_opened,locstyle:b,activeForBaselayers:e.activeForBaselayers,popup:o||e.popup,id:e.id,key:e.key,name:e.name,tags:e.tags,hide:c,childs:s,zoomTo:e.zoomTo}}},{key:"getFeaturesForLayer",value:function(e){var r,t=this,a=[],o=function(){if(e.content.hasOwnProperty(n)){var r=e.content[n],o=r.data;if(o){var s;if(o.properties&&o.properties.projection&&o.properties.projCode&&(g.default.defs(o.properties.projection,o.properties.projCode),(0,f.register)(g.default),new y.default({code:o.properties.projection})),"urlData"===e.content[n].type){if("kml"===e.type)return{v:!1};if("gpx"===e.type)return{v:!1}}else o.properties&&(s=new O[e.content[n].type]({featureProjection:"EPSG:3857",dataProjection:o.properties.projection}));var i=r.locationStyle||e.locstyle,l=t.arrLocstyles.findIndex((function(e){return e===i}));if(-1===l&&i&&t.arrLocstyles.push(i),"GeoJSON"===e.content[n].type){if("FeatureCollection"===o.type){var c=function(){if(o.features.hasOwnProperty(u)){var e=s.readFeature(o.features[u]);e.get("locstyle")?-1===(l=t.arrLocstyles.findIndex((function(r){return r===e.get("locstyle")})))&&e.get("locstyle")&&t.arrLocstyles.push(e.get("locstyle")):e.set("locstyle",i),r.hover_location&&(e.set("hover_style",r.hover_style),e.set("hover_location",r.hover_location)),r.loc_linkurl&&e.set("loc_linkurl",r.loc_linkurl),o.properties&&(e.get("tooltip")||e.set("tooltip",o.properties.tooltip),e.get("label")||e.set("label",o.properties.label),e.get("popup")||e.set("popup",o.properties.popup)),a.push(e)}};for(var u in o.features)c()}else if(o&&o.type){var p=s.readFeature(o);p.set("locstyle",i),p.set("noFilter",e.noRealFilter),r.hover_location&&(p.set("hover_style",r.hover_style),p.set("hover_location",r.hover_location)),o.loc_linkurl&&p.set("loc_linkurl",o.loc_linkurl),a.push(p)}}else s&&fetch(o.url).then((function(e){e.text().then((function(e){var r=(new DOMParser).parseFromString(e,"text/xml"),t=s.readFeature(r.childNodes[0].outerHTML);for(var n in t)if(t.hasOwnProperty(n)){var l=t[n];l.set("locstyle",i),o.hover_location&&(l.set("hover_style",o.hover_style),l.set("hover_location",o.hover_location)),o.loc_linkurl&&l.set("loc_linkurl",o.loc_linkurl),a.push(l)}}))}))}}};for(var n in e.content)if(r=o())return r.v;if("LOCATIONS"===this.proxy.mapData.calc_extent||"CENTERLOCS"===this.proxy.mapData.calc_extent)for(var s in a)if(a.hasOwnProperty(s)){var i=a[s].getGeometry().getExtent();this.extent.maxXi[0]&&(this.extent.minX=i[0]),this.extent.minY>i[1]&&(this.extent.minY=i[1])}return this.objIds.hasOwnProperty(e.id)?[]:(e.split_geojson||(this.objIds[e.id]=a),a)}},{key:"geometryFunction",value:function(e){var r=e.getGeometry();return r instanceof w.Point?r:null}},{key:"performOvp",value:function(e,r){this.controllers[e.layerId]&&(this.controllers[e.layerId].abort(),delete this.controllers[e.layerId]);var t=this;this.controllers[e.layerId]=new AbortController;var a=this.controllers[e.layerId].signal,o=(0,l.transformExtent)(r.extent,r.projection,"EPSG:4326"),n="",s=e.url,i=decodeURIComponent(e.params);if(s){s.indexOf("{key}")>-1&&(s=s.replace("{key}",t.ovpKey));var c=i.indexOf("(bbox)")>=0?/\(bbox\)/g:/\{{bbox\}}/g;s+=s.includes("?")?"&":"?",i&&"<"===i.substr(0,1).trim()?(n=' ',s=(s+="data="+encodeURIComponent(i.replace(c,n))).replace("output=json","output=xml"),fetch(s,{signal:a}).then((function(r){r.text().then((function(r){t.parseOvpData(r,e)})).catch((function(e){console.log(e.message)}))})).catch((function(e){e.code&&20!==e.code&&console.log("Fetch Error :-S",e.message)}))):(n=o[1]+","+o[0]+","+o[3]+","+o[2],s+="data="+encodeURIComponent(i.replace(c,n).replace("out:json","out:xml")),fetch(s,{signal:a}).then((function(r){r.text().then((function(r){t.parseOvpData(r,e)})).catch((function(e){console.log(e.message)}))})).catch((function(e){e.code&&20!==e.code&&console.log("Fetch Error :-S",e.message)})))}}},{key:"parseOvpData",value:function(e,r){var t,a=r.layer,o=a.content[0],n=o.data;if("string"!=typeof e)return!1;var s=e;if(!o.settings.showAdditionalGeometries){for(var l=(new DOMParser).parseFromString(e,"text/xml"),u=l.getElementsByTagName("way"),p=0;p0;)m.removeChild(m.children[0]);s=(new XMLSerializer).serializeToString(l)}var g=new c.default;try{t=g.readFeatures(s,{featureProjection:"EPSG:3857"})}catch(e){console.warn("Can not read feature.")}if(n.popup)for(var f=0;f-1?(this.addFeatures(t,r.chain),this.mapController.setObjLayers(this.arrLayers)):r.vectorSource instanceof i.Cluster?r.vectorSource.getSource().addFeatures(t):r.vectorSource.addFeatures(t)}},{key:"performOwnData",value:function(e,r,t){if(this.controllers[e.layerId]&&(this.controllers[e.layerId].abort(),delete this.controllers[e.layerId]),r.extent[0]===1/0||r.extent[0]===-1/0||r.extent[1]===1/0||r.extent[1]===-1/0||r.extent[2]===1/0||r.extent[2]===-1/0||r.extent[3]===1/0||r.extent[3]===-1/0)return!1;var a=(0,l.transformExtent)(r.extent,r.projection,"EPSG:4326"),o=a[0]+","+a[1]+";"+a[2]+","+a[3],n=this.proxy.api_layercontentdata_url+"/"+e.layerId+"/"+o;this.controllers[e.layerId]=new AbortController;var s=this.controllers[e.layerId].signal;fetch(n,{signal:s}).then((function(e){e.json().then(t).catch((function(e){console.log(e.message)}))})).catch((function(e){e.code&&20!==e.code&&console.log("Fetch Error :-S",e.message)}))}},{key:"performOtherData",value:function(e,r){var t=e.data;e.settings,fetch(t.url).then((function(e){r(e)})).catch((function(){console.log("Tell me why")}))}},{key:"parseOwnData",value:function(e,r){var t=(0,l.transform)([parseFloat(e.geox),parseFloat(e.geoy)],"EPSG:4326","EPSG:3857"),a=new w.Point(t),o=new S.default(a);o.setId(e.id),o.set("noFilter",r.noRealFilter),o.set("hover_location",r.hover_location),o.set("hover_style",r.hover_style);var n=e.popup?e.popup:jQuery.extend({},r.popup);n&&n.content&&n.content.search&&n.content.search("itemId")&&(n.content=n.content.replace("itemId",e.id)),e.label&&o.set("label",e.label),e.tooltip&&o.set("tooltip",e.tooltip),e.loc_linkurl&&o.set("loc_linkurl",e.loc_linkurl),o.set("popup",n),o.set("zoom_onclick",r.zoom_onclick),o.set("tid",e.id);var s=e.locstyle||r.locstyle;return o.set("locstyle",s),this.mapController.filter&&(parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.hideFeatureMulti(o):this.mapController.filter.hideFeature(o)),o}},{key:"addFeatures",value:function(e,r){var t,a,o=this,n=o.vectorCollection.getLength();if(o.vectorCollection.extend(e),t=o.vectorCollection.getArray().slice(n),"string"==typeof r){var s=r.split(","),i=1;for(a=o.arrLayers[s[0]];r[i];)a=a.childs[s[i]],i++}else a=o.arrLayers[r];a.features?a.features=a.features.concat(t):a.vectorLayer&&a.vectorLayer.getSource().getSource().addFeatures(e)}},{key:"handleZoom",value:function(e){var r=e.options.mapController,t=r.state.arrLayerStates,a=r.state.objLayers,o=r.map.getView().getZoom();for(var n in t)t.hasOwnProperty(n)&&a[n]&&(t[n]=this.handleZoomChilds(o,t[n],a[n]));this.mapController&&this.mapController.setLayerStates(t)}},{key:"handleZoomChilds",value:function(e,r,t){for(var a in r.childStates)r.childStates.hasOwnProperty(a)&&(r.childStates[a]=this.handleZoomChilds(e,r.childStates[a],t.childs[a]));var o=t.zoom&&!this.compareZoom(t.zoom);return r.greyed!==o&&(o||t.hide?this.hide(t.loader,t.features||t.vectorLayer):this.show(t.loader,t.features||t.vectorLayer)),r.greyed=o,r}},{key:"compareZoom",value:function(e){var r=this.mapController.map.getView().getZoom();return parseInt(e.min,10)r}},{key:"getWfsStyle",value:function(e,r){var t=r.locstyleWfs;for(var a in t)if(t.hasOwnProperty(a)){var o=t[a],n=e.get(o.key);switch(o.compare){case"==":if(n==o.value)return o.locstyle;break;case">":if(n>o.value)return o.locstyle;break;case"<":if(n{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gLocationStyleController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-locationstyle.js"),l=t("./src/Resources/public/js/c4g-maps-utils.js");r.C4gLocationStyleController=function(){return(0,s.default)((function e(r){(0,n.default)(this,e),this.proxy=r,this.mapController=r.options.mapController,this.arrLocStyles={},this.resizeOnZoom=r.options.mapController.data.resizeLocstyles}),[{key:"loadLocationStyles",value:function(e,r){var t,a,n={},s={},c=this,u=1;if(t=r&&"object"===(0,o.default)(r)?r:{},a=function(e,r){r&&(n[r]=!1,s[r]=!1),jQuery.ajax({dataType:c.proxy.options.mapController.data.jsonp?"jsonp":"json",url:c.proxy.api_locstyle_url,data:{ids:e}}).done((function(e){var a,o,n=!0;if(e.length>0){for(a=0;a100)for(;e.length>0;)a(e.splice(0,100),u),u++;else e.length>0&&a(e)}}])}()},"./src/Resources/public/js/c4g-locationstyle.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gLocationStyle=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-maps-utils.js"),l=t("./node_modules/ol/style.js"),c=t("./node_modules/ol/geom.js"),u=a(t("./node_modules/ol/style/Circle.js")),p=a(t("./node_modules/ol-ext/style/Photo.js"));r.C4gLocationStyle=function(){return(0,s.default)((function e(r,t){(0,n.default)(this,e),this.id=r.id,this.editor=this.getStyleEditorConfig(r),this.name=r.name,this.tooltip=r.tooltip,this.label=r.label,this.minzoom=r.minzoom,this.maxzoom=r.maxzoom,this.fnStyleFunction=r.style_function_js,this.fnStyleFunction&&"string"==typeof this.fnStyleFunction&&(this.fnStyleFunction=this.fnStyleFunction.replace(/ol.Style./gi,"window.olStyle."),this.fnStyleFunction=this.fnStyleFunction.replace(/ol.Geom./gi,"window.olStyle."),window.olStyle||(window.olStyle={Stroke:l.Stroke,Style:l.Style,Icon:l.Icon,Fill:l.Fill,Point:c.Point,CircleStyle:u.default,Circle:c.Circle,Text:l.Text})),this.controller=t,this.locStyleArr=r}),[{key:"getStyleFunction",value:function(){var e,r,t,a,n,s,c,u,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=this,p||(p=this.locStyleArr),a=new l.Stroke({color:i.utils.getRgbaFromHexAndOpacity(p.strokecolor[0],p.strokecolor[1]),width:parseInt(p.strokewidth.value?p.strokewidth.value:2,10)}),n=new l.Fill({color:i.utils.getRgbaFromHexAndOpacity(p.fillcolor[0],p.fillcolor[1])}),t=this.createImageStyle(p,a,n),r=function(r,b,d){var h,m,g=e.controller.mapController.map.getView().getZoom();if(parseInt(e.locStyleArr.maxzoom,10)&&parseInt(e.locStyleArr.maxzoom,10)g)return null;if(d)return p.id;r||(r=this),h=[],m=r&&"function"==typeof r.get&&r.get("label")?r.get("label"):!!p.label&&p.label;var f=e.controller.mapController.data.default_label_color,y=e.getScaleFactor(p);if(m){p.label_outl_color&&p.label_outl_width.value&&(c=new l.Stroke({color:i.utils.getRgbaFromHexAndOpacity(p.label_outl_color||f,{unit:"%",value:100}),width:parseInt(p.label_outl_width.value,10)}),"1"===p.label_outl_box&&(u=new l.Fill({color:i.utils.getRgbaFromHexAndOpacity(p.label_outl_color||f,{unit:"%",value:100})}))),p.label_offset||(p.label_offset=[0,0,"px"]);var _=p.font_size&&"object"===(0,o.default)(p.font_size)&&null!==p.font_size?p.font_size.value:p.font_size?p.font_size:"13",k={text:m,font:(p.font_weight||"normal")+" "+(p.font_style||"normal")+" "+_+"px "+(p.font_family||"sans-serif"),offsetX:parseInt(p.label_offset[0]||0,10),offsetY:parseInt(p.label_offset[1]||0,10),textAlign:p.label_align_hor,textBaseline:p.label_align_ver,scale:y,fill:new l.Fill({color:i.utils.getRgbaFromHexAndOpacity(p.font_color[0]||f,p.font_color[1])}),stroke:c};"1"===p.label_outl_box&&(k.backgroundFill=u,k.backgroundStroke=c),s=new l.Text(k)}t&&0!==y&&t.setScale&&t.setScale(y);var v,w=!1,S=parseInt(e.locStyleArr.label_minzoom,10),C=parseInt(e.locStyleArr.label_maxzoom,10);if(g>=S&&(C>=g||0===C)&&(w=!0),m&&w?(r&&r.get&&"function"==typeof r.get&&r.get("zIndex")&&(v=r.get("zIndex")),h.push(new l.Style({image:t,text:s,stroke:a,fill:n,zIndex:v}))):h.push(new l.Style({image:t,stroke:a,fill:n})),p.line_arrows&&r&&"function"==typeof r.getGeometry&&"Point"!==r.getGeometry().getType()&&"function"==typeof r.getGeometry().forEachSegment){var R=e.createLineArrowStyles(p,r,a,n);h=h.concat(R)}return h},this.fnStyleFunction&&(r=Function("feature","data","map",this.fnStyleFunction)),r}},{key:"getScaleFactor",value:function(e){var r,t,a,o,n=0,s=this.controller.mapController.map.getView().getZoom(),i="cust_icon_svgphoto".includes(e.styletype)?parseFloat(e.icon_scale):1;return e.icon_resize_zoom?(r=parseInt(e.icon_resize_src_zoom,10),t=parseFloat(e.icon_resize_scale_factor),a=parseFloat(e.icon_resize_min_scale),o=parseFloat(e.icon_resize_max_scale)):this.controller.resizeOnZoom&&(r=parseInt(this.controller.resizeOnZoom.srcZoom,10),t=parseFloat(this.controller.resizeOnZoom.scaleFactor),a=parseFloat(this.controller.resizeOnZoom.minScale),o=parseFloat(this.controller.resizeOnZoom.maxScale)),s>r?(n=i+t*(s-r))>o&&(n=o):s=0&&o.controller.mapController.map.getView().getZoom()>=p)&&(n.push(new l.Style({geometry:new c.Point(u),text:new l.Text({text:"ᐳ",font:i+" sans-serif",offsetX:0,offsetY:1,fill:a,stroke:t,textAlign:"right",rotateWithView:!0,rotation:-Math.atan2(u[1]-r[1],u[0]-r[0])})})),e.line_arrows_back&&n.push(new l.Style({geometry:new c.Point(r),text:new l.Text({text:"ᐳ",font:i+" sans-serif",offsetX:0,offsetY:-1,fill:a,stroke:t,textAlign:"right",rotateWithView:!0,rotation:-Math.atan2(r[1]-u[1],r[0]-u[0])})})))})),n}},{key:"getStyleEditorConfig",value:function(e){var r;return(r={}).collect=e.editor_collect||void 0,r.iconSrc=e.editor_icon||void 0,r.vars=e.editor_vars||void 0,r.sort=e.editor_sort||!1,r.sort&&(r.sort=parseInt(r.sort,10)||!1),r}}])}()},"./src/Resources/public/js/c4g-maps-config.js":(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.config=r.OSM_REL_ATTRIBUTION=void 0;var a=t("./node_modules/ol/format.js"),o=t("./node_modules/ol/tilegrid.js"),n=r.OSM_REL_ATTRIBUTION='© OpenStreetMap contributors.';r.config={osm:{CycleMap:{attributions:'Style by OpenCycleMap '+n,crossOrigin:"anonymous",minZoom:0,maxZoom:19,url:"https://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png"},German:{attributions:'Style by openstreetmap.de '+n,crossOrigin:"anonymous",minZoom:0,maxZoom:19,url:"https://{a-c}.tile.openstreetmap.de/{z}/{x}/{y}.png"},LandscapeMap:{attributions:'Style by OpenCycleMap '+n,crossOrigin:"anonymous",minZoom:0,maxZoom:19,url:"https://{a-c}.tile.opencyclemap.org/landscape/{z}/{x}/{y}.png"},Mapnik:{attributions:n,crossOrigin:"anonymous"},NONE:""},stadiaMaps:{alidade_smooth:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"alidade_smooth",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},alidade_smooth_dark:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"alidade_smooth_dark",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},alidade_satellite:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"alidade_satellite",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},outdoors:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"outdoors",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},stamen_toner:{attributions:['Stadia Maps ','Stamen Design ','OpenMapTiles ','OpenStreetMap '],layer:"stamen_toner",minZoom:0,maxZoom:16,retina:!0,crossOrigin:"anonymous"},stamen_terrain:{attributions:['Stadia Maps ','Stamen Design ','OpenMapTiles ','OpenStreetMap '],layer:"stamen_terrain",minZoom:0,retina:!0,crossOrigin:"anonymous"},stamen_watercolor:{attributions:['Stadia Maps ','Stamen Design ','OpenMapTiles ','OpenStreetMap '],layer:"stamen_watercolor",minZoom:0,maxZoom:16,crossOrigin:"anonymous"},osm_bright:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"osm_bright",minZoom:0,maxZoom:20,tilePixelRatio:2,crossOrigin:"anonymous"},NONE:""},mapquest:{MapQuestOpen:{layer:"osm"},MapQuestHyb:{layer:"hyb"},MapQuestSat:{layer:"sat"},NONE:""},mapbox:{Mapbox:{tileSize:[512,512],attributions:'© Mapbox '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"},MapboxClassic:{attributions:'© Mapbox '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"}},otm:{attributions:"Kartendaten: "+n+', SRTN | Kartendarstellung © OpenTopoMap (CC-BY-SA )'},mapz:{attributions:'© 2021 mapz.com '+n,minZoom:0,maxZoom:22,tilePixelRatio:2},klokan:{OpenMapTiles:{format:new a.MVT,tileGrid:(0,o.createXYZ)({tileSize:512,maxZoom:22}),tilePixelRatio:8,attributions:'© OpenMapTiles '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"},TileHosting:{format:new a.MVT,tileGrid:(0,o.createXYZ)({tileSize:512,maxZoom:22}),tilePixelRatio:8,attributions:'© TileHosting '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"}},here:{HERE:{tileSize:[512,512],attributions:"Map Tiles © "+(new Date).getFullYear()+' HERE '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"}},thunderforest:{Thunderforest:{tileSize:[512,512],attributions:'Map Tiles © Thunderforest '+n,minZoom:0,maxZoom:19,crossOrigin:"anonymous"}}}},"./src/Resources/public/js/c4g-maps-constant.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.cssConstants=void 0,r.cssConstants={OPEN:"c4g-open",CLOSE:"c4g-close",CLOSEABLE:"c4g-closeable",ENABLED:"c4g-enabled",DISABLED:"c4g-disabled",HIDE:"c4g-hide",ICON:"c4g-icon",CONTROL:"c4g-control",COPY:"c4g-copy",REFRESH:"c4g-refresh",ACTIVE:"c4g-active",INACTIVE:"c4g-inactive",LOADING:"c4g-loading",ANIMATION_SPIN:"c4g-animation-spin",LARGE:"c4g-large",SMALL:"c4g-small",HORIZONTAL:"c4g-horizontal",VERTICAL:"c4g-vertical",ATTRIBUTION_LOGO:"c4g-attribution-logo",CONTROL_CONTAINER_TL:"c4g-control-container-top-left",CONTROL_CONTAINER_TR:"c4g-control-container-top-right",CONTROL_CONTAINER_BL:"c4g-control-container-bottom-left",CONTROL_CONTAINER_BL_SUB:"c4g-control-container-bottom-left-sub",CONTROL_CONTAINER_BR:"c4g-control-container-bottom-right",GEOSEARCH:"c4g-geosearch",GEOSEARCH_WRAPPER:"c4g-geosearch-wrapper",GEOSEARCH_TRIGGER:"c4g-geosearch-trigger",GEOSEARCH_START:"c4g-geosearch-start",GRATICULE:"c4g-graticule",MEASURETOOLS_VIEW_TRIGGER_SELECT:"c4g-measuretools-view-trigger-select",MEASURETOOLS_VIEW_TRIGGER_DRAW_LINESTRING:"c4g-measuretools-view-trigger-draw-line",MEASURETOOLS_VIEW_TRIGGER_DRAW_POLYGON:"c4g-measuretools-view-trigger-draw-polygon",MEASURETOOLS_VIEW_TRIGGER_DRAW_CIRCLE:"c4g-measuretools-view-trigger-draw-circle",MEASURETOOLS_VIEW_TRIGGER_DRAW_FREEHAND:"c4g-measuretools-view-trigger-draw-freehand",PRINT:"c4g-print",INFOPAGE_VIEW_TRIGGER:"c4g-infopage-view-trigger",INFOPAGE:"c4g-infopage",ADDITIONALPANEL_VIEW_TRIGGER:"c4g-additionalpanel-view-trigger",ADDITIONALPANEL:"c4g-additionalpanel",OVERVIEWMAP:"c4g-overviewmap",OVERVIEWMAP_WRAPPER:"c4g-overviewmap-wrapper",PERMALINK:"c4g-permalink",PERMALINK_POPUP:"c4g-permalink-popup",POPUP_CLOSE:"c4g-popup-close",POPUP_ROUTE_WRAPPER:"c4g-popup-route-wrapper",POPUP_ROUTE_FROM:"c4g-popup-route-from",POPUP_ROUTE_TO:"c4g-popup-route-to",PORTSIDE:"c4g-portside",PORTSIDE_CONTAINER:"c4g-portside-container",PORTSIDE_CONTROL:"c4g-portside-control",PORTSIDE_WRAPPER:"c4g-portside-wrapper",PORTSIDE_TITLEBAR:"c4g-portside-titlebar",PORTSIDE_TOP_TOOLBAR:"c4g-portside-top-toolbar",PORTSIDE_CONTENT_CONTAINER:"c4g-portside-content-container",PORTSIDE_BOTTOM_TOOLBAR:"c4g-portside-bottom-toolbar",PORTSIDE_STATUSBAR:"c4g-portside-statusbar",PORTSIDE_VIEWTRIGGERBAR:"c4g-portside-viewtriggerbar",PORTSIDE_HEADLINE:"c4g-portside-headline",PORTSIDE_BUTTONBAR:"c4g-portside-buttonbar",PORTSIDE_BUTTON:"c4g-portside-button",PORTSIDE_HIDE:"c4g-portside-hide",PORTSIDE_CLOSE:"c4g-portside-close",SPINNER:"c4g-spinner",STARBOARD:"c4g-starboard",STARBOARD_CONTAINER:"c4g-starboard-container",STARBOARD_CONTROL:"c4g-starboard-control",STARBOARD_WRAPPER:"c4g-starboard-wrapper",STARBOARD_TITLEBAR:"c4g-starboard-titlebar",STARBOARD_CONTENT_CONTAINER:"c4g-starboard-content-container",STARBOARD_BOTTOM_TOOLBAR:"c4g-starboard-bottom-toolbar",STARBOARD_STATUSBAR:"c4g-starboard-statusbar",STARBOARD_VIEWTRIGGERBAR:"c4g-starboard-viewtriggerbar",STARBOARD_HEADLINE:"c4g-starboard-headline",STARBOARD_BUTTONBAR:"c4g-starboard-buttonbar",STARBOARD_BUTTON:"c4g-starboard-button",STARBOARD_VIEW_TRIGGER_BASELAYERSWITCHER:"c4g-starboard-view-trigger-baselayerswitcher",STARBOARD_VIEW_TRIGGER_LAYERSWITCHER:"c4g-starboard-view-trigger-layerswitcher",STARBOARD_CLOSE:"c4g-starboard-close",STARBOARD_CONTENT_BASELAYERSWITCHER:"c4g-content-baselayerswitcher",STARBOARD_BASELAYERTREE:"c4g-baselayertree",STARBOARD_LAYERTREE:"c4g-layertree",STARBOARD_CONTENT_LAYERSWITCHER:"c4g-content-layerswitcher",STARBOARD_LOCSTYLE:"c4g-starboard-locstyle",STARBOARD_LOCSTYLE_POINT:"c4g-starboard-locstyle-point",STARBOARD_LOCSTYLE_SQUARE:"c4g-starboard-locstyle-square",STARBOARD_LOCSTYLE_STAR:"c4g-starboard-locstyle-star",STARBOARD_LOCSTYLE_X:"c4g-starboard-locstyle-x",STARBOARD_LOCSTYLE_CROSS:"c4g-starboard-locstyle-cross",STARBOARD_LOCSTYLE_TRIANGLE:"c4g-starboard-locstyle-triangle",TOOLTIP_POPUP:"c4g-tooltip-popup",ZOOM_LEVEL:"c4g-zoom-level",OL_CONTROL:"ol-control",OL_UNSELECTABLE:"ol-unselectable",OL_OVERLAYCONTAINER:"ol-overlaycontainer",OL_OVERLAYCONTAINER_SE:"ol-overlaycontainer-stopevent",OL_VIEWPORT:"ol-viewport",OL_ZOOM:"ol-zoom",OL_ZOOM_IN:"ol-zoom-in",OL_ZOOM_EXT:"ol-zoom-extent",OL_ZOOM_HOME:"ol-zoom-home",OL_ZOOM_POS:"ol-zoom-position",OL_ZOOM_WITH_EXT:"ol-zoom-with-extent",OL_ZOOM_WITH_HOME:"ol-zoom-with-home",OL_ZOOM_WITH_POS:"ol-zoom-with-position",OL_ZOOM_SLIDER:"ol-zoom-slider",OL_ZOOM_WITH_SLIDER:"ol-zoom-with-slider",NONE:""}},"./src/Resources/public/js/c4g-maps-control-zoomlevel.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.Zoomlevel=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/assertThisInitialized.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=t("./src/Resources/public/js/c4g-maps-constant.js"),p=t("./node_modules/ol/control.js");function b(e,r,t){return r=(0,l.default)(r),(0,i.default)(e,d()?Reflect.construct(r,t||[],(0,l.default)(e).constructor):r.apply(e,t))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}r.Zoomlevel=function(e){function r(e){var t,a,o;if((0,n.default)(this,r),t=b(this,r,[e]),(0,s.default)(t),!e||!e.mapController)return console.warn("Zoomlevel control needs to know the map."),(0,i.default)(t,!1);var l=(e=jQuery.extend({className:u.cssConstants.ZOOM_LEVEL,undefinedHTML:""},e)).mapController.map.getView();return(a=document.createElement("div")).className=e.className,a.innerHTML=parseInt(l.getZoom()),o=function(){a.innerHTML=parseInt(l.getZoom())},e.mapController.map.getView().on("change:resolution",(function(){o()})),t.view=l,b(this,r,[{element:a,target:e.target}])}return(0,c.default)(r,e),(0,o.default)(r)}(p.Control)},"./src/Resources/public/js/c4g-maps-controls.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.MapsControls=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-constant.js"),i=t("./src/Resources/public/js/c4g-maps-control-zoomlevel.js"),l=t("./src/Resources/public/js/c4g-maps-interaction-geopicker.js"),c=t("./src/Resources/public/js/c4g-maps-interaction-geopicker-geojson.js"),u=t("./node_modules/ol/proj.js"),p=t("./node_modules/ol/control.js"),b=t("./node_modules/ol/coordinate.js"),d=t("./src/Resources/public/js/c4g-maps-i18n.js"),h={};r.MapsControls=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.mapController=r,this.controls={},this.leftSlideElements=[],this.rightSlideElements=[],h=(0,d.getLanguage)(r.data)}),[{key:"init",value:function(){var e=this.mapController.map,r=(this.mapController.proxy,this.mapController.data),t=document.createElement("div");t.className=s.cssConstants.CONTROL_CONTAINER_TL+" "+s.cssConstants.OL_UNSELECTABLE,this.mapController.$overlaycontainer_stopevent.prepend(t),this.controlContainerTopLeft=t;var a=document.createElement("div");a.className=s.cssConstants.CONTROL_CONTAINER_BL+" "+s.cssConstants.OL_UNSELECTABLE,jQuery(t).after(a),this.leftSlideElements.push(a);var o=document.createElement("div");o.className=s.cssConstants.CONTROL_CONTAINER_TR+" "+s.cssConstants.OL_UNSELECTABLE,jQuery(a).after(o),this.rightSlideElements.push(o);var n=document.createElement("div");n.className=s.cssConstants.CONTROL_CONTAINER_BR+" "+s.cssConstants.OL_UNSELECTABLE,jQuery(o).after(n),this.rightSlideElements.push(n);var d,m=[{name:"layerswitcher",sort:r.layerswitcher.enable},{name:"baselayerswitcher",sort:r.baselayerswitcher.enable},{name:"geosearch",sort:r.geosearch.enable},{name:"legend",sort:r.legend.enable},{name:"measure",sort:r.measuretools.enable},{name:"permalink",sort:r.permalink.enable}];m.sort((d="sort",function(e,r){return e[d]>r[d]?1:r[d]>e[d]?-1:0}));for(var g=0;g{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.GeoPickerGeoJSON=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),l=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),c=t("./node_modules/ol/interaction.js"),u=(t("./node_modules/ol/index.js"),t("./node_modules/ol/geom.js"),t("./node_modules/ol/style.js"),t("./node_modules/ol/layer.js")),p=t("./node_modules/ol/format.js"),b=t("./node_modules/ol/source.js");function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}t("./node_modules/ol/proj.js"),r.GeoPickerGeoJSON=function(e){function r(e){var t;(0,n.default)(this,r);var a,o,l,c=e.mapContainer.data,h=new b.Vector({}),m=new u.Vector({source:h});if(e.mapContainer.map.addLayer(m),a=this,o=r,l=[{type:c.geopicker.type,freehand:!0,source:h}],o=(0,i.default)(o),(t=(0,s.default)(a,d()?Reflect.construct(o,l||[],(0,i.default)(a).constructor):o.apply(a,l))).vectorSource=h,t.$fieldGeoJSON=jQuery(c.geopicker.input_geojson),t.$fieldGeoJSON.val())try{var g=new p.GeoJSON({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}).readFeature(t.$fieldGeoJSON.val());t.vectorSource.addFeature(g)}catch(l){console.log(l)}return t.on("drawstart",(function(e){t.vectorSource.clear()})),t.on("drawend",(function(e){var r=new p.GeoJSON({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}).writeFeature(e.feature);t.$fieldGeoJSON.val(r)})),t}return(0,l.default)(r,e),(0,o.default)(r)}(c.Draw)},"./src/Resources/public/js/c4g-maps-interaction-geopicker.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.GeoPicker=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),l=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),c=t("./node_modules/ol/interaction.js"),u=t("./node_modules/ol/index.js"),p=t("./node_modules/ol/geom.js"),b=t("./node_modules/ol/style.js"),d=t("./node_modules/ol/layer.js"),h=t("./node_modules/ol/source.js"),m=t("./node_modules/ol/proj.js"),g=t("./node_modules/ol/extent.js");function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}r.GeoPicker=function(e){function r(e){var t,a,n,l,c,b,y,_,k,v,w,S;return(0,o.default)(this,r),v=this,w=r,S=[{handleEvent:e.handleEvent}],w=(0,i.default)(w),(t=(0,s.default)(v,f()?Reflect.construct(w,S||[],(0,i.default)(v).constructor):w.apply(v,S))).options=e||{},t.options.mapContainer&&t.options.mapContainer.data?(a=t.options.mapContainer.data,n=t.options.mapContainer,t.$fieldGeoX=jQuery(a.geopicker.input_geo_x),t.$fieldGeoY=jQuery(a.geopicker.input_geo_y),t.opticLayerSource=new h.Vector({}),t.opticLayerVector=new d.Vector({source:t.opticLayerSource,style:t.geoPickerStyleFunction}),t.opticLayerFeature=null,t.$fieldGeoX.val()&&t.$fieldGeoY.val()?(l=t.$fieldGeoY.val(),c=t.$fieldGeoX.val(),a.geopicker.anonymous&&(t.$fieldGeoY.remove(),t.$fieldGeoX.remove(),b=l.indexOf("."),y=c.indexOf("."),l=l.replace(/\D/g,""),c=c.replace(/\D/g,""),_=Math.round(9999999998*Math.random()+1),k=Math.round(9999999998*Math.random()+1),l=_>4999999999?parseInt(l)-_:parseInt(l)+_,c=k<5e9?parseInt(c)-k:parseInt(c)+k,c+="",l=(l+="").substr(0,b)+"."+l.substr(b,l.length-b),c=c.substr(0,y)+"."+c.substr(y,c.length-y)),t.opticLayerFeature=new u.Feature({geometry:new p.Point((0,m.fromLonLat)([parseFloat(c),parseFloat(l)])),pickerColor:[0,180,100,1],anonymous:a.geopicker.anonymous}),t.opticLayerSource.addFeature(t.opticLayerFeature),(0,g.isEmpty)(t.opticLayerSource.getExtent())||n.map.getView().fit(t.opticLayerSource.getExtent(),n.map.getSize()),n.map.getView().setZoom(15)):a.geoLocation&&"function"==typeof a.geoLocation.setTracking&&a.geoLocation.setTracking(!0),n.map.addLayer(t.opticLayerVector),t):(console.warn('The GeoPicker needs a "mapContainer" in order to work.'),(0,s.default)(t,!1))}return(0,l.default)(r,e),(0,n.default)(r,[{key:"geoPickerStyleFunction",value:function(e,r,t){var a,o,n;return t?-1:(o=[255,255,255,1],a=e&&"function"==typeof e.get&&e.get("pickerColor")?e.get("pickerColor"):[200,0,0,.7],n=[],e&&"function"==typeof e.get&&!e.get("anonymous")&&(n.push(new b.Style({image:new b.Circle({radius:2,fill:new b.Fill({color:a}),stroke:new b.Stroke({color:o,width:2})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:20,stroke:new b.Stroke({color:o,width:4})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:20,stroke:new b.Stroke({color:a,width:2})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:40,stroke:new b.Stroke({color:o,width:4})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:40,stroke:new b.Stroke({color:a,width:2})}),zIndex:1/0}))),n.push(new b.Style({image:new b.Circle({radius:60,stroke:new b.Stroke({color:o,width:4})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:60,stroke:new b.Stroke({color:a,width:2})}),zIndex:1/0})),n)}},{key:"handleEvent",value:function(e){return!("singleclick"===e.type&&!this.options.disableClickEvent&&!this.options.mapContainer.data.geopicker.disabled&&this.pick(e.coordinate))}},{key:"pick",value:function(e){var r;return r=(0,m.toLonLat)(e),this.opticLayerFeature=new u.Feature({geometry:new p.Point(e)}),this.opticLayerSource.clear(),this.opticLayerSource.addFeature(this.opticLayerFeature),this.$fieldGeoX.val(r[0]),this.$fieldGeoY.val(r[1]),this.$fieldGeoX.change(),this.$fieldGeoY.change(),!0}}])}(c.Interaction)},"./src/Resources/public/js/c4g-maps-misc-maphover.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.MapHover=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-maps-misc-tooltippopup.js"),l=t("./src/Resources/public/js/c4g-maps-utils.js"),c=t("./node_modules/ol/Observable.js");t("./src/Resources/public/js/c4g-maps-constant.js"),r.MapHover=function(){return(0,s.default)((function e(r){if((0,n.default)(this,e),this.options=r||{},this.options=jQuery.extend({activate:!0},this.options),!this.options.mapController)return console.warn("MapHover needs a mapController"),!1;this.listenerKey=!1,this.map=this.options.mapController.map,this.lastFeatureStyle=null,this.lastHoveredFeature=null,this.hoverTooltip=new i.TooltipPopUp({map:this.map,offset:[10,10],orientation:this.options.mapController.data.tooltipOrientation||"bottom-left",horizontal:!0,closeable:!1}),this.hoverTooltip.hide(),this.options.activate&&this.activate()}),[{key:"activate",value:function(){this.listenerKey||(this.listenerKey=this.map.on("pointermove",this.getHoverFunction(),this))}},{key:"deactivate",value:function(){this.listenerKey&&((0,c.unByKey)(this.listenerKey),this.listenerKey=!1)}},{key:"isActive",value:function(){return!!this.listenerKey}},{key:"getHoverFunction",value:function(){var e=this;return function(r){var t,a,n,s,i,c,u,p=e.options.mapController.data,b=e.options.mapController.proxy;if(a=!1,t=e.map.forEachFeatureAtPixel(r.pixel,(function(e,r){return{feature:e,layer:r}})),e.map.getView().getResolution(),!t)return e.hoverTooltip.hide(),u=document.querySelector(".ol-viewport"),jQuery(u).css("cursor","default"),"1"===p.hover_popups&&"1"!=p.hover_popups_stay&&e.options.mapController.proxy.popupController.removePopup(),e.lastHoveredFeature&&e.lastFeatureStyle&&(e.lastHoveredFeature.setStyle(!1),e.lastHoveredFeature=null),!1;if(u=document.querySelector(".ol-viewport"),t.feature.get("noCursor")||jQuery(u).css("cursor","pointer"),t.feature&&"function"==typeof t.feature.get&&t.feature.get("features")&&(t.feature.get("features")[1]?a=!0:t.feature=t.feature.get("features")[0]),t.feature.get("hover_location")||e.lastHoveredFeature&&e.lastHoveredFeature.get("hover_location")){if(e.lastHoveredFeature&&t.feature===e.lastHoveredFeature)return!1;if(e.lastFeatureStyle&&e.lastHoveredFeature&&t.feature!==e.lastHoveredFeature&&(e.lastFeatureStyle?e.lastHoveredFeature.setStyle(e.lastFeatureStyle):e.lastLayerStyle&&e.lastHoveredFeature.setStyle(e.lastLayerStyle)),t.feature&&(0,o.default)(t.feature.getStyleFunction)&&"function"==typeof t.feature.getStyleFunction&&"function"==typeof t.feature.getStyleFunction()){if(e.lastHoveredFeature=t.feature,(e.lastFeatureStyle=t.feature.getStyle())||(e.lastLayerStyle=t.layer.getStyle(),e.lastFeatureStyle=e.lastLayerStyle(e.lastHoveredFeature)),t.feature.get("hover_style")&&b.locationStyleController.arrLocStyles[t.feature.get("hover_style")])if(b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)t.feature.setStyle(Function("feature","data","map",b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)(t.feature));else{var d=b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style(t.feature);t.feature.setStyle(d)}}else if(t.layer&&(0,o.default)(t.layer.getStyleFunction)&&"function"==typeof t.layer.getStyleFunction&&"function"==typeof t.layer.getStyleFunction()&&(t.feature?e.lastHoveredFeature=t.feature:(e.lastHoveredFeature=t.layer.getSource().getFeatures()[0],e.lastHoveredFeature=e.lastHoveredFeature.get("features")[0]),e.lastLayerStyle=t.layer.getStyle(),e.lastFeatureStyle=e.lastLayerStyle(e.lastHoveredFeature),t.feature.get("hover_style"))){if(!b.locationStyleController.arrLocStyles[t.feature.get("hover_style")]){var h=[];return h.push(t.feature.get("hover_style")),b.locationStyleController.loadLocationStyles(h),e.lastHoveredFeature=null,null}if(b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)t.feature.setStyle(Function("feature","data","map",b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)(t.feature));else{b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style||(b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style=b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].getStyleFunction());var m=b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style(t.feature);t.feature.setStyle(m)}}}if(t&&t.feature&&t.feature.get("styleUrl"))return!1;if(t&&t.layer&&"VECTOR_TILE"===t.layer.type)return!1;if(n=!1,!a&&t.feature&&"function"==typeof t.feature.get&&(t.feature.get("tooltip")||t.feature.get("graphicTitle"))?(n=t.feature.get("tooltip"))?"object"===(0,o.default)(n)&&n.element&&n.element.childNodes[1]&&(n=n.element.childNodes[1].innerHTML):n=t.feature.get("graphicTitle"):t.feature&&(0,o.default)(t.feature.getStyleFunction)&&t.feature.get("locstyle")&&b.locationStyleController.arrLocStyles&&b.locationStyleController.arrLocStyles[t.feature.get("locstyle")]&&b.locationStyleController.arrLocStyles[t.feature.get("locstyle")].tooltip?n=b.locationStyleController.arrLocStyles[t.feature.get("locstyle")].tooltip:t.layer&&(0,o.default)(t.layer.getStyleFunction)&&"function"==typeof t.layer.getStyleFunction&&"function"==typeof t.layer.getStyleFunction()&&b.locationStyleController.arrLocStyles&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()()]&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()()].tooltip?n=b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()()].tooltip:t.layer&&"function"==typeof t.layer.getStyleFunction&&"function"==typeof t.layer.getStyleFunction()&&b.locationStyleController.arrLocStyles&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()(null,null,1)]&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()(null,null,1)].tooltip?n=b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()(null,null,1)].tooltip:t.layer&&t.layer.tooltip&&(n=t.layer.tooltip),a&&t.feature.get("features"))if((i=t.feature.get("features"))[0].get("tooltip")&&i[0].get("tooltip_length")){n=i[0].get("tooltip"),c=parseInt(i[0].get("tooltip_length"));for(var g=1;gc+3&&(n=n.slice(0,c))&&(n+="...")}else if(t.layer.tooltip&&t.layer.tooltip_length){for(s=n,n="",c=parseInt(t.layer.tooltip_length),g=0;gc+3&&(n=n.slice(0,c))&&(n+="...")}if(n?(n=l.utils.decodeGeoJsonProperty(n),t.feature.get("features"),(n=l.utils.replaceAllPlaceholders(n,t.feature,t.layer,p.lang)).trim()?(e.hoverTooltip.setPosition(r.coordinate),e.hoverTooltip.setContent(n),e.hoverTooltip.show()):e.hoverTooltip.hide()):e.hoverTooltip.hide(),"1"===p.hover_popups&&!a&&t.feature){if(t.feature.get("popup"))t.feature.get("popup");else{if(t.feature.get("loc_linkurl"))return;if(!t.layer||!t.layer.popup)return;t.layer.popup}var y=t.feature.getGeometry().getCoordinates();if(!y||y&&y[0]&&y[0].length){var _=t.feature.getGeometry().getExtent();y=e.map.getCoordinateFromPixel(r.pixel),y=[(_[0]+_[2])/2,(_[1]+_[3])/2]}e.options.mapController.proxy.handlePopup(t.feature,t.layer)}}}},{key:"changeFeatureStyles",value:function(){}}])}()},"./src/Resources/public/js/c4g-maps-misc-spinner.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.Spinner=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-constant.js");r.Spinner=function(){return(0,n.default)((function e(r){var t,a;(0,o.default)(this,e),t=r||{},(t=jQuery.extend({className:"",target:"."+s.cssConstants.OL_VIEWPORT},t)).className&&(t.className=" "+t.className),this.element=document.createElement("div"),this.element.className=s.cssConstants.SPINNER+t.className+" "+s.cssConstants.HIDE,jQuery(t.target).append(this.element),(a=document.createElement("span")).className=s.cssConstants.ICON+" "+s.cssConstants.ANIMATION_SPIN,this.element.appendChild(a),this.additionalActivationCounter=0}),[{key:"show",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)?jQuery(this.element).removeClass(s.cssConstants.HIDE):this.additionalActivationCounter+=1}},{key:"hide",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)||(0===this.additionalActivationCounter?jQuery(this.element).addClass(s.cssConstants.HIDE):this.additionalActivationCounter-=1)}}])}()},"./src/Resources/public/js/c4g-maps-misc-tooltippopup.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.TooltipPopUp=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-constant.js"),i=t("./node_modules/ol/index.js");r.TooltipPopUp=function(){return(0,n.default)((function e(r){var t,a,n;(0,o.default)(this,e),t=this,this.options=r||{},this.options=jQuery.extend({horizontal:!1,closeable:!1,offset:[1,-1],position:[0,0]},this.options),a="",this.options.className&&(a=" "+this.options.className),this.options.horizontal&&(a+=" "+s.cssConstants.HORIZONTAL),this.options.closeable&&(a+=" "+s.cssConstants.CLOSEABLE),this.element=document.createElement("div"),this.element.className=s.cssConstants.TOOLTIP_POPUP+a,this.options.closeable&&((n=document.createElement("button")).className=s.cssConstants.ICON+" "+s.cssConstants.POPUP_CLOSE,this.element.appendChild(n),jQuery(n).click((function(){t.close()}))),this.contentContainer=document.createElement("div"),this.element.appendChild(this.contentContainer),this.overlay=new i.Overlay({element:this.element,insertFirst:!1,offset:this.options.offset,positioning:this.options.orientation}),this.options.map&&this.options.map.addOverlay(this.overlay),this.options.position&&this.overlay.setPosition(this.options.position)}),[{key:"close",value:function(){"function"==typeof this.options.closeFunction&&this.options.closeFunction(),this.options.map&&this.options.map.removeOverlay(this.overlay)}},{key:"show",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)&&jQuery(this.element).removeClass(s.cssConstants.HIDE)}},{key:"hide",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)||jQuery(this.element).addClass(s.cssConstants.HIDE)}},{key:"getContent",value:function(){return this.contentContainer.innerHTML}},{key:"getPosition",value:function(){return this.overlay.getPosition()}},{key:"setContent",value:function(e){this.contentContainer.innerHTML=e}},{key:"setPosition",value:function(e){this.overlay.setPosition(e)}}])}()},"./src/Resources/public/js/c4g-maps-popup-info-de.js":(e,r)=>{"use strict";function t(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function a(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))}function o(e){var r=t(e);return"yes"===r||"Yes"===r?"Ja":"no"===r?"Nein":"No"===r?"nein":"limited"===r?"Eingeschränkt":"designated"===r?"Ja":"wood"===r?"Holz":"metal"===r?"Metall":"concrete"===r?"Beton":"plastic"===r?"Plastik":"stone"===r?"Stein":"steel"===r?"Stahl":"brick"===r?"Ziegel":"reinforced_concrete"===r?"Stahlbeton":"masonry"===r?"Mauerwerk":e}function n(e,r){var t="",a="32px";if(e.name||e["piste:name"]||e["xmas:name"]||e["xmas:location"]){if(e.name)var o=e.name;e["piste:name"]&&(o=e["piste:name"]),e["xmas:name"]&&(o=e["xmas:name"]),e["xmas:location"]&&(o=e["xmas:location"]),t+=o=r?' ":'"}else r&&(t+=' ');return t+=function(e){var r="";if("doctors"!==e.amenity&&"doctor"!==e.healthcare||(r+="Arzt "),"hospital"!==e.amenity&&"clinic"!==e.amenity&&"hospital"!==e.healthcare&&"clinic"!==e.healthcare||("yes"===e.emergency?r+="Krankenhaus mit Notaufnahme ":r+="Krankenhaus "),"dentist"===e.amenity&&(r+="Zahnarzt "),"pharmacy"!==e.amenity&&"pharmacy"!==e["health_facility:type"]||(r+="Apotheke "),"physiotherapist"!==e.healthcare&&"yes"!==e["health_speciality:physiotherapy"]||(r+="Physiotherapeut "),"occupational_therapist"!==e.healthcare&&"yes"!==e["health_speciality:occupational_therapy"]&&"yes"!==e["health_specialty:occupational_therapy"]||(r+="Ergotherapeut "),"psychotherapist"!==e.healthcare&&"yes"!==e["health_speciality:psychotherapy"]||(r+="Psychotherapeut "),"alternative"===e.healthcare&&(r+="Alternativ- und Komplementärmediziner "),"midwife"===e.healthcare&&(r+="Hebamme "),"speech_therapist"!==e.healthcare&&"yes"!==e["health_speciality:speech_therapy"]||(r+="Logopäde "),"yes"===e["health_speciality:music_therapy"]&&(r+="Musiktherapeut "),"veterinary"===e.amenity&&(r+="Tierarzt "),"fire_station"===e.amenity&&(r+="Feuerwehrhaus "),"fire_extinguisher"===e.emergency&&(r+="Feuerlöscher "),"aed"===e.emergency&&(r+="Mobiler Defibrilator "),"defibrillator"===e.emergency&&(r+="Mobiler Defibrilator "),"phone"===e.emergency&&(r+="Notrufsäule "),"police"===e.amenity&&(r+="Polizeiwache "),"ambulance_station"===e.emergency&&(r+="Rettungswache "),"technical"===e.emergency_service&&(r+="Technisches Hilfswerk "),"water"===e.emergency_service&&(r+="Wasserrettungsstation "),"baywatch"===e.waterway&&(r+="Wasserwacht "),"air"===e.emergency_service&&(r+="Rettungshubschrauber "),"emergency_access_point"===e.highway&&(r+="Notfallpunkt "),"lifeboat_station"!==e.amenity&&"lifeboat_station"!==e.emergency||(r+="Rettungsbootstation "),"life_ring"===e.emergency&&(r+="Rettungsring "),"siren"===e.emergency&&(r+="Sirene "),"life_ring"===e.amenity&&(r+="Rettungsring "),"rescue_station"===e.amenity&&(r+="Rettungsstation "),"fire_hydrant"===e.emergency&&("underground"===e["fire_hydrant:type"]?r+="Unterflurhydrant ":"pillar"===e["fire_hydrant:type"]?r+="Überflurhydrant ":"wall"===e["fire_hydrant:type"]?r+="Wandhydrant ":"pond"===e["fire_hydrant:type"]&&(r+="Saugstelle ")),"suction_point"===e.emergency&&(r+="Saugstelle "),"fire_water_pond"===e.emergency&&(r+="Löschteich "),"mountain"===e.emergency_service&&(r+="Bergrettungsstation "),"water_tank"===e.emergency&&(r+="Löschwassertank "),"container"===e.recycling_type&&(r+="Recycling Container "),"recycling"===e.amenity&&"yes"===e["recycling:excrement"]||"pump-out"===e["seamark:small_craft_facility:category"]?r+="Absaugstation ":"recycling"===e.amenity&&(r+="Wertstoffhof "),"yes"===e["diet:pescetarian"]?r+="pescetarische Gerichte vorhanden ":"only"===e["diet:pescetarian"]&&(r+="nur pescetarische Gerichte "),"yes"===e["diet:vegetarian"]?r+="vegetarische Gerichte vorhanden ":"only"===e["diet:vegetarian"]&&(r+="nur vegetarische Gerichte "),"yes"===e["diet:lacto_vegetarian"]?r+="lacto-vegetarische Gerichte vorhanden ":"only"===e["diet:lacto_vegetarian"]&&(r+="nur lacto-vegetarische Gerichte "),"yes"===e["diet:ovo_vegetarian"]?r+="ovo-vegetarische Gerichte vorhanden ":"only"===e["diet:ovo_vegetarian"]&&(r+="nur ovo-vegetarische Gerichte "),"yes"===e["diet:vegan"]?r+="vegane Gerichte vorhanden ":"only"===e["diet:vegan"]&&(r+="nur vegane Gerichte "),"yes"===e["diet:fruitarian"]?r+="frutarische Gerichte vorhanden ":"only"===e["diet:fruitarian"]&&(r+="nur frutarische Gerichte "),"yes"===e["diet:raw"]?r+="rohköstliche Gerichte vorhanden ":"only"===e["diet:raw"]&&(r+="nur rohköstliche Gerichte "),"yes"===e["diet:gluten_free"]?r+="glutenfreie Gerichte vorhanden ":"only"===e["diet:gluten_free"]&&(r+="nur glutenfreie Gerichte "),"yes"===e["diet:dairy_free"]?r+="milchfreie Gerichte vorhanden ":"only"===e["diet:dairy_free"]&&(r+="nur milchfreie Gerichte "),"yes"===e["diet:lactose_free"]?r+="laktosefreie Gerichte vorhanden ":"only"===e["diet:lactose_free"]&&(r+="nur laktosefreie Gerichte "),"yes"===e["diet:halal"]?r+="Halāl Gerichte vorhanden ":"only"===e["diet:halal"]&&(r+="nur Halāl Gerichte "),"yes"===e["diet:kosher"]?r+="koschere Gerichte vorhanden ":"only"===e["diet:kosher"]&&(r+="nur koschere Gerichte "),"pub"===e.amenity&&(r+="Gaststätte "),"bar"===e.amenity&&(r+="Bar "),"yes"===e.frozen_yogurt&&(r+="Frozen Yogurt im Angebot "),"yes"===e.slush_ice&&(r+="Slush Ice im Angebot "),"yes"===e.cake&&(r+="Kuchenteilchen, Gebäck etc. im Angebot "),"yes"===e.coffee&&(r+="Kaffeegetränke im Angebot "),"yes"===e.drinks&&(r+="Getränke im Angebot "),"biergarten"===e.amenity&&(r+="Biergarten "),"restaurant"===e.amenity&&(r+="Restaurant "),"fast_food"===e.amenity&&(r+="Fast Food Restaurant "),"cafe"!==e.amenity&&"coffee_shop"!==e.amenity||"ice_cream"===e.cuisine||(r+="Café, Bistro "),("cafe"===e.amenity&&"ice_cream"===e.cuisine||"ice_cream"===e.amenity)&&(r+="Eiscafe "),"alpine_hut"===e.tourism&&(r+="Berghütte "),"aquarium"===e.tourism&&(r+="Aquarium "),"apartment"===e.tourism&&(r+="Ferienwohnung "),"attraction"===e.tourism&&(r+="Sehenswürdigkeit "),"artwork"===e.tourism&&(r+="Skulptur "),"camp_site"===e.tourism&&(r+="Campingplatz "),"caravan_site"===e.tourism&&(r+="Wohnmobilstellplatz "),"chalet"===e.tourism&&(r+="Ferienwohnung /-haus "),"gallery"===e.tourism&&(r+="Kunstgalerie "),"guest_house"===e.tourism&&(r+="Pension, Gasthaus, Bed & Breakfast "),"hostel"===e.tourism&&(r+="Jugendherberge, Hostel "),"hotel"===e.tourism&&(r+="Hotel "),"motel"===e.tourism&&(r+="Motel "),"museum"===e.tourism&&(r+="Museum "),"picnic_site"===e.tourism&&(r+="Rast- und Picknickplatz "),"theme_park"===e.tourism&&(r+="Freizeit- oder Themenpark "),"viewpoint"===e.tourism&&(r+="Aussichtspunkt "),"wilderness_hut"===e.tourism&&(r+="Schutzhütte "),"wine_cellar"===e.tourism&&(r+="Weinkeller "),"zoo"===e.tourism&&(r+="Zoo / Tierpark ","enclosure"===e.zoo&&(r+="mit Wildgehege "),"petting_zoo"===e.zoo&&(r+="mit Streichelzoo "),"falconry"===e.zoo&&(r+="mit Falknerei ")),"trail_riding_station"===e.tourism&&(r+="Wanderreitstation "),"fishing"===e.club&&(r+="Angelverein "),"sport"===e.club&&"fishing"===e.sport&&(r+="fishing club "),"amateur_radio"===e.club&&(r+="Amateurfunker "),"art"===e.club&&(r+="Kunstverein "),"astronomy"===e.club&&(r+="Astronomieverein "),"automobile"===e.club&&(r+="Automobilverein "),"board_games"===e.club&&(r+="Brettspielverein "),"card_games"===e.club&&(r+="Kartenspielverein "),"charity"===e.club&&(r+="Charity-Verein "),"chess"===e.club&&(r+="Schachverein "),"cinema"===e.club&&(r+="Kinoverein "),"cooking"===e.club&&(r+="Kochverein "),"culture"===e.club&&(r+="Kulturverein "),"doityourself"===e.club&&(r+="doityourself-Verein "),"equestrian"===e.club&&(r+="Reitverein "),"ethnic"===e.club&&(r+="Ethnischer Verein "),"fan"===e.club&&(r+="Fanverein "),"freemasonry"===e.club&&(r+="Freimaurer-Verein "),"game"===e.club&&(r+="Spieleverein "),"history"===e.club&&(r+="Historischer-Verein / Verein für Geschichte "),"hunting"===e.club&&(r+="Jagdverein "),"linux"===e.club&&(r+="Linux-Verein "),"motorcycle"===e.club&&(r+="Motorradverein "),"music"===e.club&&(r+="Musikverein "),"nature"===e.club&&(r+="Naturverein "),"nudism"===e.club&&(r+="Nudisten-Verein / FKK-Verein "),"photography"===e.club&&(r+="Fotografieverein "),"politics"===e.club&&(r+="Verein für Politik "),"relegion"===e.club&&(r+="Politischer-Verein "),"scout"===e.club&&(r+="Pfadfinderin/Pfadfinder "),"smoke"===e.club&&(r+="Raucherverein "),"sport"===e.club&&(r+="Sportverein "),"theatre"===e.club&&(r+="Theaterverein "),"veterans"===e.club&&(r+="Veteranen "),"amusement_arcade"===e.leisure&&(r+="Spielhalle "),"beach_resort"===e.leisure&&(r+="Standbad "),"bird_hide"===e.leisure&&(r+="Vogelbeobachtungspunkt "),"common"===e.leisure&&(r+="Öffentliche Grünflächen "),"club"===e.leisure&&(r+="Club/Verein "),"dance"===e.leisure&&(r+="Tanzen "),"dog_park"===e.leisure&&(r+="Hundepark "),"firepit"===e.leisure&&(r+="Feuerstelle "),"fishing"===e.leisure&&(r+="Angelstelle "),"garden"===e.leisure&&(r+="Garten "),"golf_course"===e.leisure&&(r+="Golfplatz "),"hackerspace"===e.leisure&&(r+="Ort für Hackertreffen "),"horse_riding"===e.leisure&&(r+="Reitstall / Reiterhof "),"ice_rink"===e.leisure&&(r+="Eislaufbahn "),"nature_reserve"===e.leisure&&(r+="Naturschutzgebiet (NSG) "),"park"===e.leisure&&(r+="Grünanlage "),"miniature_golf"===e.leisure&&(r+="Minigolf "),"pitch"===e.leisure&&(r+="Spielfeld "),"pitch"===e.leisure&&"yes"===e.building&&(r+="Sporthalle "),"playground"===e.leisure&&"yes"===e.building?r+="Spielscheune ":"playground"===e.leisure&&(r+="Spielplatz "),"social_club"===e.leisure&&(r+="Treffpunkt für Freizeitgruppen "),"spa"===e.leisure&&(r+="Heilbad / Spa "),"sports_centre"===e.leisure&&(r+="Sportzentrum "),"climbing_adventure"===e.sport&&(r+="Seilgarten "),"stadium"===e.leisure&&(r+="Stadion "),"swimming_pool"===e.leisure&&(r+="Schwimmbecken "),"track"===e.leisure&&(r+="Rennbahn "),"water_park"===e.leisure&&(r+="Wasserpark "),"wildlife_hide"===e.leisure&&(r+="Wildbeobachtungspunkt "),"adult_gaming_centre"===e.leisure&&(r+="Spielothek "),"bowling_alley"===e.leisure&&"10pin"===e.sport&&(r+="Bowlingcenter "),"bowling_alley"===e.leisure&&"9pin"===e.sport&&(r+="Kegelbahn "),"karting"!==e.sport&&"motor"!==e.sport||(r+="Kart-/Motorsport "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),e["piste:type"])switch(e["piste:type"]){case"skitour":r+="Piste für Skitouren ";break;case"downhill":r+="Skiabfahrt ";break;case"sled":r+="Rodelberg / Rodelstrecke ";break;case"nordic":r+="Langlauf Piste ";break;case"hike":r+="Schneeschuh- und Winterwanderweg ";break;case"snow_park":r+="Snow-Park "}if(e.sport)switch(e.sport){case"surfing":r+="Surfen ";break;case"kitesurfing":r+="Kitesurfen ";break;case"water_ski":r+="Wasserski "}if(e.aerialway)switch(e.aerialway){case"cable_bar":case"gondola":r+="Lift mit Gondeln ";break;case"chair_lift":r+="Sessellift ";break;case"mixed_lift":r+="Lift mit Sesseln und Gondeln ";break;case"drag_lift":r+="Skilift ";break;case"t-bar":r+="T-Lift ";break;case"t-bar":r+="T-Lift (einseitig) ";break;case"platter":r+="Lift mit Sitzscheibe ";break;case"rope_tow":r+="Bügellift ";break;case"magic_carpet":r+="Beförderungsband ";break;default:r+="unbekannt"}if("mosque"===e.building&&(r+="Moschee "),"synagogue"===e.building&&(r+="Synagoge "),"apartments"===e.building&&(r+="Wohnung "),"farm"===e.building&&(r+="Farm "),"hotel"===e.building&&(r+="Hotel "),"house"===e.building&&(r+="Haus "),"detached"===e.building&&(r+="Freistehend "),"residential"===e.building&&(r+="Residenz "),"domitory"!==e.building&&"residential plus"!==e.building||(r+="Wohnheim "),"terrace"===e.building&&(r+="Terrasse "),"houseboat"===e.building&&(r+="Hausboot "),"bungalow"===e.building&&(r+="Bungalow "),"static_caravan"===e.building&&(r+="Stehender Wohnwagen "),"commercial"===e.building&&(r+="Kommerziell "),"retail"===e.building&&(r+="Verkauf "),"warehouse"===e.building&&(r+="Lagerhaus "),"bakehouse"===e.building&&(r+="Backstube "),"temple"===e.building&&(r+="Tempel "),"shrine"===e.building&&(r+="Schrein "),"civic"===e.building&&(r+="Bürgerlich "),"stadium"===e.building&&(r+="Stadium "),"train_station"===e.building&&(r+="Bahnhof "),"university"===e.building&&(r+="Universität "),"public"===e.building&&(r+="Öffentliches Gebäude "),"bridge"===e.building&&(r+="Brücke "),"bunker"===e.building&&(r+="Bunker "),"cabin"===e.building&&(r+="Hütte "),"conservatory"===e.building&&(r+="Wintergarten "),"construction"===e.building&&(r+="Im Bau "),"garage"===e.building&&(r+="Garage "),"garages"===e.building&&(r+="Garagen "),"greenhouse"===e.building&&(r+="Gewächshaus "),"hangar"===e.building&&(r+="Hangar "),"hut"===e.building&&(r+="Hütte "),"pavillion"===e.building&&(r+="Pavillion "),"roof"===e.building&&(r+="Überdacht "),"shed"===e.building&&(r+="Gartenhäuschen "),"transformer_tower"===e.building&&(r+="Transformator Turm "),"service"===e.building&&(r+="Service-Stelle "),"kiosk"===e.building&&(r+="Kiosk "),"carport"===e.building&&(r+="Carport "),"ruins"===e.building&&(r+="Ruinen "),"gambling"===e.amenity&&(r+="Spielhalle "),"library"===e.amenity&&(r+="Bücherei "),"fountain"===e.amenity&&(r+="Brunnen "),"attraction"===e.amenity&&(r+="Sehenswürdigkeit "),"social_centre"!==e.amenity&&"club"!==e.amenity||(r+="Verein / Club "),"townhall"===e.amenity&&(r+="Rathaus / Bürgerhaus "),"bench"===e.amenity&&(r+="Parkbank "),"grave_yard"!==e.amenity&&"cemetery"!==e.landuse||(r+="Friedhof "),"post_box"===e.amenity&&(r+="Briefkasten "),"post_office"===e.amenity&&(r+="Postamt "),"telephone"===e.amenity&&(r+="Telefon "),"atm"===e.amenity&&(r+="Geldautomat "),"bank"===e.amenity&&(r+="Bankfiliale "),"toilets"===e.amenity&&"yes"===e.diaper?r+="Öffentliche Toilette mit Wickeltisch ":"toilets"===e.amenity&&(r+="Öffentliche Toilette "),"school"===e.amenity&&"1"===e["isced:level"]?r+="Grundschule ":"school"===e.amenity&&"2"===e["isced:level"]?r+="Sekundarstufe I ":"school"===e.amenity&&"3"===e["isced:level"]?r+="Sekundarstufe II ":"school"===e.amenity&&(r+="Schule "),"kindergarten"===e.amenity&&(r+="Kindergarten "),"internet_cafe"===e.amenity&&(r+="Internetcafé "),"daycare"===e.amenity&&(r+="Kinder- und Jugendtagesstätte "),"childcare"===e.amenity&&(r+="Kinder- und Jugendtagesstätte "),"university"===e.amenity&&(r+="Universität/Hochschule "),"college"===e.amenity&&(r+="Universität/Hochschule "),"shelter"===e.amenity&&(r+="Unterstand "),"bbq"===e.amenity&&(r+="Grillplatz "),"nightclub"===e.amenity&&(r+="Diskothek / Nachtklub "),"bicycle_parking"===e.amenity&&(r+="Fahrradparkplatz "),"bicycle_rental"===e.amenity&&(r+="Fahrradverleih "),"boat_sharing"===e.amenity&&(r+="Bootsverleih "),"car_sharing"===e.amenity&&(r+="Car-Sharing "),"cinema"===e.amenity&&(r+="Kino "),"swimming_pool"===e.amenity&&(r+="Schwimmbad "),"embassy"!==e.amenity&&"embassy"!==e.diplomatic||(r+="Botschaft "),"embassy"===e.amenity&&"consulate"===e.diplomatic&&(r+="Konsulate "),"embassy"===e.amenity&&"consulate_general"===e.diplomatic&&(r+="Generalkonsulate "),"embassy"===e.amenity&&"honorary_consulate"===e.diplomatic&&(r+="Honorarkonsulate "),"embassy"===e.amenity&&"permanent_mission"===e.diplomatic&&(r+="Ständige Vertretung "),"embassy"===e.amenity&&"delegation"===e.diplomatic&&(r+="Delegation "),"embassy"===e.amenity&&"high_commission"===e.diplomatic&&(r+="Hochkommissariat "),"Barfusspfad"===e.amenity&&(r+="Barfußpfad "),"casino"===e.amenity&&(r+="Casino "),"spa"===e.amenity&&(r+="Heilbad / Spa "),"stables"===e.amenity&&(r+="Reitstall / Reiterhof "),"watering_place"===e.amenity&&(r+="Wasserstelle / Tränke "),"yes"===e.watering_place&&(r+="Wasserstelle / Tränke "),"water_point"===e.amenity&&(r+="große Trinkwasserstelle "),"taxi"===e.amenity&&(r+="Taxi "),"car_wash"===e.amenity&&(r+="Autowaschanlage "),"brothel"===e.amenity&&(r+="Bordell, Freudenhaus "),"stripclub"===e.amenity&&(r+="Stripclub "),"swingerclub"===e.amenity&&(r+="Swingerclub "),"planetarium"===e.amenity&&(r+="Planetarium "),"courthouse"===e.amenity&&(r+="Gericht "),"crematorium"===e.amenity&&(r+="Krematorium "),"crypt"!==e.amenity&&"crypt"!==e.building||(r+="Krypta "),"hunting_stand"===e.amenity&&(r+="Hochsitz "),"photo_booth"===e.amenity&&(r+="Fotoautomat "),"prison"===e.amenity&&(r+="Gefängnis "),"ranger_station"===e.amenity&&(r+="National Park Ranger Station "),"register_office"===e.amenity&&(r+="Standesamt "),"marketplace"===e.amenity&&(r+="Marktplatz / Wochenmarkt "),"solarium"===e.amenity&&(r+="Solarium "),"sauna"===e.amenity&&(r+="Sauna "),"shower"===e.amenity&&(r+="öffentliche Dusche "),"waste_disposal"===e.amenity&&(r+="Müllentsorgung auf öffentlichen Plätzen ",e.waste))switch(r+="Art: ",e.waste){case"trash":default:r+="Allgemeiner Müll ";break;case"oil":r+="Oil ";break;case"drugs":r+="Pharmazeutisch ";break;case"organic":r+="Kompost ";break;case"plastic":r+="Plastik ";break;case"rubble":r+="Schutt ";break;case"cigarettes":r+="Zigaretten "}if("waste_basket"!==e.amenity&&"dog_excrement"!==e.waste||(r+="Hunde-Code Müllcontainer "),"scout_camp"!==e.amenity&&"scout_hut"!==e.amenity&&"scout_hall"!==e.amenity||(r+="Pfadfinderheim "),"ferry_terminal"===e.amenity&&(r+="Fährhafen "),"bureau_de_change"===e.amenity&&(r+="Geldwechselstube "),"youth_club"===e.amenity&&(r+="Jugendzentrum "),"festival_grounds"===e.amenity&&(r+="Festivalgelände "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="Offene Feuerstelle "),"vending_machine"===e.amenity)if(e.vending)switch(e.vending){case"admission_tickets":r+="Eintrittskartenautomat ";break;case"animal_feed":r+="Tierfutterautomat ";break;case"bicycle_tube":r+="Fahrradschlauchautomat ";break;case"books":r+="Bücherautomat ";break;case"candles":r+="Kerzenautomat ";break;case"cigarettes":r+="Zigarettenautomat ";break;case"chemist":r+="Apotheken/Drogerie Automat ";break;case"condoms":r+="Kondomautomat ";break;case"drinks":r+="Getränkeautomat ";break;case"electronics":r+="Automat für Elektro-Zubehör ";break;case"elongated_coin":r+="Münzprägungsautomat ";break;case"excrement_bags":r+="Hundetütenspender ";break;case"feminine_hygiene":r+="Automat für Damenhygieneprodukte ";break;case"first_aid":r+="Erste-Hilfe-Automat ";break;case"fishing_tackle":r+="Automat für Angelzubehör ";break;case"fishing_bait":r+="Angelköderautomat ";break;case"flowers":r+="Blumenautomat ";break;case"food":r+="Lebensmittel-Automat ";break;case"ice_cubes":r+="Eiswürfelautomat ";break;case"ice_cream":r+="Automat für Speiseeis ";break;case"ink_cartridges":r+="Druckerpatronen Automat ";break;case"laundry_detergent":r+="Waschmittelautomat ";break;case"public_transport_tickets":r+="Fahrkartenautomat ";break;case"newspaper":r+="Zeitungsautomat ";break;case"parcel_pickup":r+="Packstation ";break;case"parcel_mail_in":r+="Paketstation ";break;case"parking_tickets":r+="Parkscheinautomat ";break;case"photos":r+="Fotoautomat ";break;case"sex_toys":r+="Automat für Sexspielzeug ";break;case"SIM_cards":r+="Automat für SIM Karten ";break;case"stamps":r+="Briefmarkenautomat ";break;case"sweets":r+="Süßigkeitenautomat ";break;case"syringes":r+="Spritzenautomat ";break;case"toll":r+="Maut-Automat ";break;case"toys":r+="Spielzeugautomat ";break;case"umbrellas":r+="Regenschirmautomat ";break;default:r+="Verkaufsautomat "}else r+="Verkaufsautomat ";if("arts_centre"===e.amenity&&(r+="Kulturzentrum "),"artwork"===e.amenity&&(r+="Kunstwerk / Kunstobjekt "),"museum"===e.amenity&&(r+="Museum "),"theatre"===e.amenity&&(r+="Theater "),"cathedral"===e.building&&(r+="Kathedrale "),"church"===e.building&&(r+="Kirche "),"chapel"===e.building&&(r+="Kapelle "),"place_of_worship"===e.amenity&&(r+="Kirche / Kultstätte "),"village"===e.abandoned&&(r+="Verlassene Stadt "),"theme_park"===e["abandoned:tourism"]&&(r+="Verlassener Vergnügungspark "),e["abandoned:amenity"],"yes"===e.abandoned&&"bunker"===e.military&&(r+="Verlassene Bunkeranlage "),"yes"===e.abandoned&&"barracks"===e.military&&(r+="Verlassene Militärbaracken "),"yes"===e.abandoned&&"airfield"===e.military&&(r+="Verlassene Militärflugplatz "),"monastery"===e.historic&&(r+="Historisches Kloster "),"monastery"===e.amenity&&(r+="Kloster "),"monastery"===e.building&&(r+="Kloster "),"manor"===e.historic&&(r+="Gutshaus / Herrenhaus "),"boundary_stone"===e.historic&&(r+="Historischer Grenzstein "),"milestone"===e.historic&&(r+="Historischer Meilenstein "),"monument"===e.historic&&(r+="Monument "),"palace"===e.historic&&(r+="Palast "),"mine"===e.historic&&(r+="Verlassene Mine "),"ruins"===e.historic&&(r+="Ruine "),"harbour"===e.historic_usage&&(r+="historischer Hafen "),"rune_stone"===e.historic&&(r+="Runenstein "),"battlefield"===e.historic&&(r+="Schlachtfeld "),"blacksmith"===e.historic&&(r+="Historische Schmiede "),"tree_shrine"!==e.historic&&"wayside_shrine"!==e.historic||(r+="Schrein / Bildstock "),"city_gate"===e.historic&&(r+="Stadttor "),"wayside_cross"===e.historic&&(r+="Wegkreuz "),"monument"===e.amenity&&(r+="Denkmal "),"memorial"===e.historic&&(r+="Denkmal "),"optical_telegraph"===e.historic&&(r+="Optischer Telegraph "),"castle"===e.historic)if(e.castle_type)switch(e.castle_type){case"defensive":r+="Burg ";break;case"palace":r+="Palast ";break;case"stately":r+="Schloss ";break;case"manor":r+="Herrenhaus ";break;case"fortress":r+="Festung ";break;case"castrum":r+="Römisches Militärlager ";break;case"shiro":r+="Shiro ";break;case"kremlin":r+="Kreml ";break;default:r+="Schloss / Burg "}else r+="Schloss / Burg ";if("archaeological_site"===e.historic&&(r+="Archäologische Fundstätte "),"tomb"===e.historic)if(e.tomb)switch(e.tomb){case"tumulus":r+="Hügelgrab ";break;case"rock-cut":r+="Felsgrab ";break;case"hypogeum":r+="Hypogäum ";break;case"war_grave":r+="Soldatenfriedhof ";break;case"mausoleum":r+="Mausoleum ";break;case"columbarium":r+="Kolumbarium ";break;case"crypt":r+="Krypta ";break;case"pyramid":r+="Pyramide ";break;case"sarcophagus":r+="Sarkophag ";break;case"vault":r+="Gruft ";break;case"tombstone":r+="Grabstein ";break;default:r+="Historische Grabstätte "}else r+="Historische Grabstätte ";if("accountant"===e.office&&(r+="Buchhalter / Wirtschaftprüfer "),"administrative"===e.office&&(r+="Kreis- bzw. Gemeindebehörde "),"architect"===e.office&&(r+="Architekturbüro "),"association"===e.office&&(r+="Verein, Vereinigung bzw. Interessengemeinschaft "),"physician"===e.office&&(r+="Arzt "),"camping"===e.office&&(r+="Rezeption Campingplatz oder Büro Freizeitpark "),"company"===e.office&&(r+="Sitz einer privaten Firma "),"educational_institution"===e.office&&(r+="Bildungseinrichtung "),"employment_agency"===e.office&&(r+="Job-Center / Arbeitsvermittlung "),"estate_agent"===e.office&&(r+="Immobilienmakler / Wohnungsbaugenossenschaft "),"forestry"===e.office&&(r+="Forstamt "),"foundation"===e.office&&(r+="Geschäftsstelle einer Stiftung "),"government"===e.office&&(r+="Behörde / Regierungseinrichtung "),"guide"===e.office&&(r+="Büro für Touristenführungen "),"insurance"===e.office&&(r+="Versicherungsbüro "),"it"===e.office&&(r+="IT-Unternehmen "),"lawyer"===e.office&&(r+="Rechtsanwaltskanzlei "),"newspaper"===e.office&&(r+="Zeitungsredaktion "),"ngo"===e.office&&(r+="Büro einer Nichtregierungsorganisation "),"notary"===e.office&&(r+="Notar "),"political_party"===e.office&&(r+="Büro einer politischen Partei "),"quango"===e.office&&(r+="Büro einer halbstaatlichen Organisation "),"realtor"===e.office&&(r+="Immobilienmakler / Wohnungsbaugenossenschaft "),"real_estate_agent"===e.office&&(r+="Immobilienmakler / Wohnungsbaugenossenschaft "),"register"===e.office&&(r+="Standesamt "),"religion"===e.office&&(r+="Büro einer religiösen Instanz "),"research"===e.office&&(r+="Forschungsunternehmen oder -institut "),"tax"===e.office&&(r+="Finanzamt "),"telecommunication"===e.office&&(r+="Telekommunikationsfirma "),"travel_agent"===e.office&&(r+="Sitz eines Reiseunternehmens "),"water_utility"===e.office&&(r+="Wasserwirtschaftsamt "),"therapist"===e.office&&(r+="Therapeut "),"city"===e.place&&(r+="Großstadt "),"town"===e.place&&(r+="Stadt/Kleinstadt "),"village"===e.place&&(r+="Dorf "),"continent"===e.place&&(r+="Kontinent "),"ocean"===e.place&&(r+="Ozean"),"track"===e.highway&&(r+="Forst-, Wald und Feldweg "),"raceway"===e.highway&&(r+="Motorsportbahn "),"designated"===e.bicycle&&(r+="Radweg "),"path"===e.highway&&(r+="Fußweg "),"parking"===e.amenity&&(r+="Parkplatz "),"services"===e.highway&&(r+="Raststätte "),"rest_area"===e.highway&&(r+="Rastplatz "),"turning_circle"===e.highway&&(r+="Wendeplatz/Wendehammer "),"service"===e.highway&&(r+="Zufahrtsstraße / Erschließungsweg "),"motorway"===e.highway&&(r+="Autobahn "),"motorway_junction"===e.highway&&(r+="Autobahnauffahrt "),"bridleway"===e.highway&&(r+="Reitweg "),"yes"===e.oneway&&(r+="Einbahnstraße "),"yes"===e.park_ride&&(r+="Park and Ride "),"unknown"===e.park_ride&&(r+="Park and Ride "),"bus"===e.park_ride&&(r+="Park and Ride "),"tram"===e.park_ride&&(r+="Park and Ride "),"bus_stop"===e.highway&&(r+="Bushaltestelle "),"pedestrian"===e.highway&&(r+="Fußgängerzone "),"street_lamp"===e.highway&&(r+="Strassenlaterne "),"traffic_signals"===e.highway&&(r+="Ampel "),"traffic_signals"===e.crossing&&(r+="Fußgängerampel "),"speed_camera"===e.highway&&(r+="Blitzer "),"yes"===e.traffic_calming&&(ret+="Verkehrsberuhigter Bereich"),"bump"===e.traffic_calming&&(r+="Kurze Bodenwelle"),"chicane"===e.traffic_calming&&(r+="Zu umfahrendenes Hinderniss"),"choker"===e.traffic_calming&&(r+="Fahrbahnverengung, zu umfahrende Hindernisse möglich"),"cushion"===e.traffic_calming&&(r+="Bodenwelle mit Lücken aus mehreren rechteckigen Huckeln"),"hump"===e.traffic_calming&&(r+="vergleichbare Bodenwelle mit etwar einer Länge von 2-4M"),"island"===e.traffic_calming&&(r+="Eine Verkehrsinsel"),"rumble_strip"===e.traffic_calming&&(r+="Holperstreifen"),"table"===e.traffic_calming&&(r+="lange Bodenwellen mit flachen Mittelstück"),"buoy_cardinal"===e["seamark:type"]&&(r+="Kardinalstonne "),"buoy_lateral"===e["seamark:type"]&&(r+="Lateraltonne "),"buoy_isolated_danger"===e["seamark:type"]&&(r+="Gefahrentonne "),"perch"===e["seamark:beacon_lateral:shape"]&&(r+="Pricke "),"fuel"===e.amenity&&"fuel_station"===e["seamark:small_craft_facility:category"]?r+="Schiffstankstelle ":"fuel"===e.amenity&&(r+="Tankstelle "),"charging_station"===e.amenity){r+="Ladestation / Stromtankstelle ";var t=e.voltage,a=" ";if(e.car){switch(e.car){case"yes":r+="Für Autos: Ja";break;case"no":r+="Für Autos: Nein";break;default:r+="Für Autos: Unbekannt"}r+=a}else r+="Für Autos: Unbekannt"+a;if(e.bicycle){switch(e.bicycle){case"yes":r+="Für E-Bike: Ja";break;case"no":r+="Für E-Bike: Nein";break;default:r+="Für E-Bike: Unbekannt"}r+=a}else r+="Für E-Bike: Unbekannt"+a;"no"===e["socket:schuko"]&&(r+="Stecker Schuko: Nein"+a),"yes"===e["socket:schuko"]&&(r+="Stecker Schuko: Ja"+a),"no"===e["socket:cee_blue"]&&(r+="Stecker CEE Blau: Nein"+a),"yes"===e["socket:cee_blue"]&&(r+="Stecker CEE Blau: Ja"+a),"no"===e["socket:cee_red_16a"]&&(r+="Stecker CEE Rot 16a: Nein"+a),"yes"===e["socket:cee_red_16a"]&&(r+="Stecker CEE Rot 16a: Ja"+a),"no"===e["socket:cee_red_32a"]&&(r+="Stecker CEE Rot 32a: Nein"+a),"yes"===e["socket:cee_red_32a"]&&(r+="Stecker CEE Rot 32a: Ja"+a),"no"===e["socket:cee_red_64a"]&&(r+="Stecker CEE Rot 64a: Nein"+a),"yes"===e["socket:cee_red_64a"]&&(r+="Stecker CEE Rot 64a: Ja"+a),"no"===e["socket:cee_red_125a"]&&(r+="Stecker CEE Rot 125a: Nein"+a),"yes"===e["socket:cee_red_125a"]&&(r+="Stecker CEE Rot 125a: Ja"+a),"no"===e["socket:nema_5_15"]&&(r+="Stecker Nema 5 15: Nein"+a),"yes"===e["socket:nema_5_15"]&&(r+="Stecker Nema 5 15: Ja"+a),"no"===e["socket:nema_5_20"]&&(r+="Stecker Nema 5 20: Nein"+a),"yes"===e["socket:nema_5_20"]&&(r+="Stecker Nema 5 20: Ja"+a),"no"===e["socket:nema_14_30"]&&(r+="Stecker Nema 14 30: Nein"+a),"yes"===e["socket:nema_14_30"]&&(r+="Stecker Nema 14 30: Ja"+a),"Nein"===e["socket:nema_14_50"]&&(r+="Stecker Nema 14 50: Nein"+a),"yes"===e["socket:nema_14_50"]&&(r+="Stecker Nema 14 50: Ja"+a),"nein"===e["socket:bs1363"]&&(r+="Stecker BS 1363: Nein"+a),"yes"===e["socket:bs1363"]&&(r+="Stecker BS 1363: Ja"+a),"no"===e["socket:type1"]&&(r+="Stecker Typ 1:Nein"+a),"yes"===e["socket:type1"]&&(r+="Stecker Typ 1: Ja"+a),"no"===e["socket:type1_combo"]&&(r+="Stecker Typ 1 Kombo: Nein"+a),"yes"===e["socket:type1_combo"]&&(r+="Stecker Typ 1 Kombo: Ja"+a),"Nein"===e["socket:type2"]&&(r+="Stecker Typ 2: Nein"+a),"yes"===e["socket:type2"]&&(r+="Stecker Typ 2: Ja"+a),"no"===e["socket:type2_combo"]&&(r+="Stecker Typ 2 Kombo: Nein"+a),"yes"===e["socket:type2_combo"]&&(r+="Stecker Typ 2 Kombo: Ja"+a),"no"===e["socket:type3"]&&(r+="Stecker Typ: Nein"+a),"yes"===e["socket:type3"]&&(r+="Stecker Typ 3: Ja"+a),"no"===e["socket:chademo"]&&(r+="Stecker CHAdeMO: Nein"+a),"yes"===e["socket:chademo"]&&(r+="Stecker CHAdeMO: Ja"+a),"no"===e["socket:magne_charge"]&&(r+="Stecker Magne : Nein"+a),"yes"===e["socket:magne_charge"]&&(r+="Stecker Magne : Ja"+a),"no"===e["socket:tesla_standard"]&&(r+="Stecker Tesla Standard: Nein"+a),"yes"===e["socket:tesla_standard"]&&(r+="Stecker Tesla Standard: Nein"+a),"no"===e["socket:tesla_supercharge"]&&(r+="Stecker Tesla Schnellladestation: Nein"+a),"yes"===e["socket:tesla_supercharge"]&&(r+="Stecker Tesla Schnellladestation: Ja"+a),"no"===e["socket:tesla_roadster"]&&(r+="Stecker Tesla Roadster: Nein"+a),"yes"===e["socket:tesla_roadster"]&&(r+="Stecker Tesla Roadster: Ja"+a),e["socket:schuko"]&&(r+="Stecker Schuko: "+e["socket:schuko"]+a),e["socket:cee_blue"]&&(r+="Stecker CEE Blau: "+e["socket:cee_blue"]+a),e["socket:cee_red_16a"]&&(r+="Stecker CEE Rot 16a: "+e["socket:cee_red_16a"]+a),e["socket:cee_red_32a"]&&(r+="Stecker CEE Rot 32a: "+e["socket:cee_red_32a"]+a),e["socket:cee_red_64a"]&&(r+="Stecker CEE Rot 64a: "+e["socket:cee_red_64a"]+a),e["socket:cee_red_125a"]&&(r+="Stecker CEE Rot 125a: "+e["socket:cee_red_125a"]+a),e["socket:nema_5_15"]&&(r+="Stecker Nema 5 15: "+e["socket:nema_5_15"]+a),e["socket:nema_5_20"]&&(r+="Stecker Nema 5 20: "+e["socket:nema_5_20"]+a),e["socket:nema_14_30"]&&(r+="Stecker Nema 14 30: "+e["socket:nema_14_30"]+a),e["socket:nema_14_50"]&&(r+="Stecker Nema 14 50: "+e["socket:nema_14_50"]+a),e["socket:bs1363"]&&(r+="Stecker BS 1363: "+e["socket:bs1363"]+a),e["socket:type1"]&&(r+="Stecker Typ 1: "+e["socket:type1"]+a),e["socket:type1_combo"]&&(r+="Stecker Typ 1 Kombo: "+e["socket:schuko"]+a),e["socket:type2"]&&(r+="Stecker Typ 2: "+e["socket:type2"]+a),e["socket:type2_combo"]&&(r+="Stecker Typ 2 Kombo: "+e["socket:type2_combo"]+a),e["socket:type3"]&&(r+="Stecker Typ 3: "+e["socket:type3"]+a),e["socket:chademo"]&&(r+="Stecker CHAdeMO: "+e["socket:chademo"]+a),e["socket:magne_charge"]&&(r+="Stecker Magne : "+e["socket:magne_charge"]+a),e["socket:tesla_standard"]&&(r+="Stecker Tesla Standard: "+e["socket:tesla_standard"]+a),e["socket:tesla_supercharge"]&&(r+="Stecker Tesla Schnellladestation: "+e["socket:tesla_supercharge"]+a),e["socket:tesla_roadster"]&&(r+="Stecker Tesla Roadster: "+e["socket:tesla_roadster"]+a),r+=a,e.voltage&&(r+="Volt: "+t+a)}if("yes"===e.tunnel&&(r+="Tunnel "),e.bridge)switch(r+="Brücken-Typ: ",e.bridge){case"swing":case"humpback":r+="Drehbrücke";break;case"aqueduct":r+="Historische Wasserpipeline";break;case"bascule":r+="Klapp bzw. Wippbrücke";break;case"boardwalk":r+="Bohlenweg";break;case"cantilever":r+="Auslegerbrücke";break;case"covered":r+="gedeckte Brücke";break;case"drawbridge":r+="Klappbrücke";break;case"lift":r+="Hubbrücke";break;case"low_water_crossing":r+="Irische Brücke";break;case"moveable":r+="Bewegliche Brücken";break;case"pontoon":r+="Schwimmbrücke";break;case"suspension":r+="Hängebrücke";break;case"trestle":r+="Trestle-Brücke";break;case"viaduct":r+="Viadukt"}if(e["bridge:movable"])switch(e["bridge:movable"]){case"swing":r+="Drehbrücke";break;case"bascule":r+="Klapp bzw. Wippbrücke";break;case"drawbridge":r+="Klappbrücke";break;case"lift":r+="Hubbrücke";break;case"submersible":r+="Senkbrücke";break;case"transporter":r+="Schwebefähre";break;case"retractable":r+="Schubbrücke"}if("nursing_home"!==e.amenity&&"retirement_home"!==e.amenity||(r+="Seniorenheim / Pflegeheim "),"social_facility"===e.amenity&&(r+="Allg. soziale Einrichtung "),e.social_facility&&("group_home"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="Seniorenheim "),"assisted_living"===e.social_facility&&(r+="Betreutes Wohnen "),"outreach"===e.social_facility&&(r+="Beratungsstelle "),"workshop"===e.social_facility&&(r+="soziale Werkstatt "),"ambulatory_care"!==e.social_facility&&"healthcare"!==e.social_facility||(r+="Ambulanter Pflegedienst "),"shelter"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="Tages- u. Kurzzeitpflege "),"shelter"===e.social_facility&&"abused"===e["social_facility:for"]&&(r+="Notunterkunft "),"food_bank"===e.social_facility&&(r+="Lebensmittelhilfe "),"hospice"===e.social_facility&&(r+="Hospiz ")),e.brewery&&(r+="Ausgeschenkte Biersorten: "+e.brewery+" "),"alcohol"===e.shop&&(r+="Spirituosenladen "),"bakery"===e.shop&&(r+="Bäckerei "),"beverages"===e.shop&&(r+="Getränkehandel "),"butcher"===e.shop&&(r+="Fleischerei "),"cheese"===e.shop&&(r+="Käsefachgeschäft "),"chocolate"===e.shop&&(r+="Schokoladenfachgeschäft "),"coffee"===e.shop&&(r+="Kaffeefachgeschäft "),"confectionery"===e.shop&&(r+="Süßwarenladen "),"convenience"===e.shop&&(r+="Lebensmittelgeschäft "),"deli"===e.shop&&(r+="Feinkostladen "),"dairy"===e.shop&&(r+="Milchladen "),"farm"===e.shop&&(r+="Hofladen "),"greengrocer"===e.shop&&(r+="Gemüsehändler "),"grocery"===e.shop&&(r+="Lebensmittelgeschäft "),"organic"===e.shop&&(r+="Bio-Laden, Reformhaus "),"pasta"===e.shop&&(r+="Pastageschäft "),"seafood"===e.shop&&(r+="Fischfachgeschäft "),"tea"===e.shop&&(r+="Teefachgeschäft "),"wine"===e.shop&&(r+="Weinhandlung "),"department_store"===e.shop&&(r+="Kaufhaus "),"general"===e.shop&&(r+="Gemischtwarenhandlung "),"kiosk"===e.shop&&(r+="Kiosk "),"mall"===e.shop&&(r+="Einkaufszentrum "),"supermarket"===e.shop&&(r+="Supermarkt "),"baby_goods"===e.shop&&(r+="Babyfachmarkt "),"bag"===e.shop&&(r+="Taschen und Koffer "),"boutique"===e.shop&&(r+="Boutique "),"clothes"===e.shop&&(r+="Bekleidung "),"fabric"===e.shop&&(r+="Textilgeschäft "),"fashion"===e.shop&&(r+="Fashion "),"jewelry"===e.shop&&(r+="Juwelier "),"leather"===e.shop&&(r+="Lederwaren "),"shoes"===e.shop&&(r+="Schuhfachgeschäft "),"variety_store"===e.shop&&(r+="Ein-Euro-Laden "),"chemist"===e.shop&&(r+="Drogerie "),"cosmetics"===e.shop&&(r+="Kosmetikfachgeschäft "),"drugstore"===e.shop&&(r+="Drogerie oder Apotheke (veraltet) "),"perfumery"===e.shop&&(r+="Parfümerie "),"erotic"===e.shop&&(r+="Erotikhandel "),"hairdresser"===e.shop&&(r+="Friseur "),"hearing_aids"===e.shop&&(r+="Hörgeräte "),"herbalist"===e.shop&&(r+="Kräuterhandel "),"massage"===e.shop&&(r+="Massagesalon "),"medical_supply"===e.shop&&(r+="Sanitätshaus "),"optician"===e.shop&&(r+="Optiker "),"tattoo"===e.shop&&(r+="Tätowierer "),"bathroom_furnishing"===e.shop&&(r+="Badmöbel und -accessoires "),"doityourself"===e.shop&&(r+="Baumarkt/Baustoffhandel "),"energy"===e.shop&&(r+="Energiehandel "),"florist"===e.shop&&(r+="Blumengeschäft "),"furnace"===e.shop&&(r+="Ofenfachgeschäft "),"garden_centre"===e.shop&&(r+="Gartencenter "),"gas"===e.shop&&(r+="Fachgeschäft für technische Gase "),"glaziery"===e.shop&&(r+="Glaserei "),"hardware"===e.shop&&(r+="Eisenwaren "),"houseware"===e.shop&&(r+="Haushaltswaren und Inneneinrichtung "),"locksmith"===e.shop&&(r+="Schlüsseldienst "),"paint"===e.shop&&(r+="Farbenfachgeschäft "),"trade"===e.shop&&(r+="Baustoffhandel "),"antiques"===e.shop&&(r+="Antiquitäten "),"bed"===e.shop&&(r+="Betten- und Matratzengeschäft "),"candles"===e.shop&&(r+="Kerzengeschäft "),"carpet"===e.shop&&(r+="Teppichfachhandel "),"curtain"===e.shop&&(r+="Gardinenfachgeschäft "),"furniture"===e.shop&&(r+="Möbel- und Einrichtungshaus "),"interior_decoration"===e.shop&&(r+="Innendekoration / Raumausstattung "),"kitchen"===e.shop&&(r+="Küchen "),"window_blind"===e.shop&&(r+="Jalousien und Rolläden "),"computer"===e.shop&&(r+="Computer-Fachhändler "),"electronics"===e.shop&&(r+="Elektronikmarkt "),"hifi"===e.shop&&(r+="Hifi-Fachhändler "),"mobile_phone"===e.shop&&(r+="Handy-Shop "),"radiotechnics"===e.shop&&(r+="Radio- und Fernsehtechnik "),"vacuum_cleaner"===e.shop&&(r+="Staubsaugerfachgeschäft "),"bicycle"===e.shop&&(r+="Fahrradfachgeschäft "),"car"===e.shop&&(r+="Autohaus "),"car_repair"===e.shop&&(r+="Autowerkstatt "),"car_parts"===e.shop&&(r+="Autoteilefachgeschäft "),"dive"!==e.shop&&"scuba_diving"!==e.shop||(r+="Tauchausrüstung "),"fishing"===e.shop&&(r+="Angelfachgeschäft "),"free_flying"===e.shop&&(r+="Fallschirmausrüstung "),"hunting"===e.shop&&(r+="Jagdausrüstung "),"motorcycle"===e.shop&&(r+="Motorradgeschäft "),"outdoor"===e.shop&&(r+="Trekking-/Outdoorladen "),"sports"===e.shop&&(r+="Sportgeschäft "),"tyres"===e.shop&&(r+="Reifenfachhandel "),"water_sports"===e.shop&&(r+="Wassersportbedarf "),"art"===e.shop&&(r+="Kunstladen "),"craft"===e.shop&&(r+="Kunsthandwerk "),"frame"===e.shop&&(r+="Bilderrahmengeschäft "),"music"===e.shop&&(r+="Musikgeschäft "),"music_instrument"===e.shop&&(r+="Musikhaus "),"photo"===e.shop&&(r+="Fotofachgeschäft "),"video"===e.shop&&(r+="Videothek "),"video_games"===e.shop&&(r+="Videospiele "),"anime"===e.shop&&(r+="Anime "),"books"===e.shop&&(r+="Buchhandlung "),"gift"===e.shop&&(r+="Andenken, Reisemitbringsel, Souveniershop "),"newsagent"===e.shop&&(r+="Zeitungshändler "),"stationery"===e.shop&&(r+="Schreibwaren "),"ticket"===e.shop&&(r+="Ticketshop "),"copyshop"===e.shop&&(r+="Kopierladen "),"funeral_directors"===e.shop&&(r+="Bestattungsunternehmen "),"laundry"===e.shop&&(r+="Waschsalon / Wäscherei "),"dry_cleaning"===e.shop&&(r+="chemische Reinigung "),"money_lender"===e.shop&&(r+="Geldverleiher "),"pawnbroker"===e.shop&&(r+="Pfandhaus / Pfandleiher "),"pet"===e.shop&&(r+="Zoo- und Tierhandlung "),"pyrotechnics"===e.shop&&(r+="Feuerwerk "),"religion"===e.shop&&(r+="Religiöse Artikel "),"beauty"===e.shop&&(r+="Schönheitssalon "),"solarium"===e.shop&&(r+="Solarium "),"tobacco"===e.shop&&(r+="Tabakwaren "),"toys"===e.shop&&(r+="Spielwaren "),"travel_agency"===e.shop&&(r+="Reisebüro "),"market_hall"===e.shop&&(r+="Markthalle "),"vacant"===e.shop&&(r+="leerstehendes Ladenlokal "),"weapons"===e.shop&&(r+="Waffenladen "),"lottery"===e.gambling&&(r+="Lottoannahmestelle "),"fish"===e.pet&&(r+="Aquaristik "),"agriucultural_engines"===e.craft&&(r+="Landmaschinenbau "),"basket_maker"===e.craft&&(r+="Korbmacher "),"beekeeper"===e.craft&&(r+="Imker "),"blacksmith"===e.craft&&(r+="Schmied "),"brewery"===e.craft&&(r+="Brauerei "),"yes"===e.microbrewery&&(r+="Hausbrauerei "),"boatbuilder"===e.craft&&(r+="Bootsbauer "),"bookbinder"===e.craft&&(r+="Buchbinder "),"builder"===e.craft&&(r+="Hausbau "),"carpenter"===e.craft&&(r+="Tischler/Schreiner, Zimmermann "),"carpet_layer"===e.craft&&(r+="Teppichleger "),"caterer"===e.craft&&(r+="Catering "),"clockmaker"===e.craft&&(r+="Uhrmacher "),"confectionery"===e.craft&&(r+="Konditorei "),"dressmaker"===e.craft&&(r+="Schneider "),"electrician"===e.craft&&(r+="Elektriker "),"gardener"===e.craft&&(r+="Garten- und Landschaftsbauer "),"glaziery"===e.craft&&(r+="Glaserei "),"handicraft"===e.craft&&(r+="Handwerkskunst "),"hvac"===e.craft&&(r+="Kälteanlagenbauer für Lüftungs-, Heizungs- und Klimatechnik "),"insulation"===e.craft&&(r+="Wärmedämmung von Gebäuden "),"jeweller"===e.craft&&(r+="Juwelier, Gold-/Silber-Schmied "),"key_cutter"===e.craft&&(r+="Schlüsselmacher "),"locksmith"===e.craft&&(r+="Schlüsseldienst "),"metal_construction"===e.craft&&(r+="Metallbauer "),"optician"===e.craft&&(r+="Optiker "),"painter"===e.craft&&(r+="Maler "),"parquet_layer"===e.craft&&(r+="Parkettverleger "),"photographer"===e.craft&&(r+="Fotograf "),"photographic_laboratory"===e.craft&&(r+="Fotolabor "),"plasterer"===e.craft&&(r+="Gipser, Verputzer, Stuckateur "),"plumber"===e.craft&&(r+="Anlagenmechaniker Sanitär-, Heizungs- und Klimatechnik. "),"pottery"===e.craft&&(r+="Töpferei "),"rigger"===e.craft&&(r+="Riggemacher (Takelage für Segelschiffe) "),"roofer"===e.craft&&(r+="Dachdecker "),"saddler"===e.craft&&(r+="Sattler "),"sailmaker"===e.craft&&(r+="Segelmacher "),"sawmill"===e.craft&&(r+="Holzverarbeitungsbetrieb "),"scaffolder"===e.craft&&(r+="Gerüstbauer "),"sculptor"===e.craft&&(r+="Bildhauer "),"shoemaker"===e.craft&&(r+="Schuhmacher "),"stand_builder"===e.craft&&(r+="Messe- / Standbauer "),"stonemason"===e.craft&&(r+="Steinmetz "),"sun_protection"===e.craft&&(r+="Rolladen- und Jalousiebauer "),"sweep"===e.craft&&(r+="Schornsteinfeger "),"tailor"===e.craft&&(r+="Schneider "),"tiler"===e.craft&&(r+="Fliesen-, Platten- und Mosaikleger "),"tinsmith"===e.craft&&(r+="Spengler, Klempner "),"upholsterer"===e.craft&&(r+="Polsterer "),"watchmaker"===e.craft&&(r+="Uhrmacher "),"window_construction"===e.craft&&(r+="Fensterbauer "),"machines"===e.rental&&(r+="Maschinenverleih "),"car_rental"===e.amenity&&(r+="Autoverleih "),"allotments"===e.landuse&&(r+="Schrebergarten "),"basin"===e.landuse&&(r+="Regenwasserrückhaltebecken "),"brownfield"===e.landuse&&(r+="Vorher bebautes Land "),"commercial"===e.landuse&&(r+="Industriegebiet "),"construction"===e.landuse&&(r+="Baugebiet "),"farmland"===e.landuse&&(r+="Ackerfläche "),"farmyard"===e.landuse&&(r+="landwirtschaftlicher Betrieb "),"forest"===e.landuse&&(r+="Forst "),"garages"===e.landuse&&(r+="Garagenkomplex "),"grass"===e.landuse&&(r+="Rasenflächen "),"greenfield"===e.landuse&&(r+="Bauerwartungsland "),"greenhouse_horticulture"===e.landuse&&(r+="Gewächshaus-Fläche "),"industrial"===e.landuse&&(r+="Gewerbe-/Industriegebiet "),"landfill"===e.landuse&&(r+="Mülldeponie "),"meadow"===e.landuse&&(r+="Grünfläche "),"orchard"===e.landuse&&(r+="Obstplantage "),"plant_nursery"===e.landuse&&(r+="Baumschule "),"quarry"===e.landuse&&(r+="Sand- und Kiesgrube "),"railway"===e.landuse&&(r+="Gebiet für Eisenbahnnutzung "),"recreation_ground"===e.landuse&&(r+="Erholungsgebiet "),"reservoir"===e.landuse&&(r+="Wasserreservoir "),"residential"===e.landuse&&(r+="Wohngebiet "),"retail"===e.landuse&&(r+="Einkaufszentrum "),"salt_pond"===e.landuse&&(r+="Saline "),"village_green"===e.landuse&&(r+="Grünfläche "),"vineyard"===e.landuse&&(r+="Weinberg "),"pond"===e.landuse&&(r+="kleiner Teich "),"salt_pond"===e.landuse&&(r+="Saline "),"animal_keeping"===e.landuse&&(r+="Weide, Paddock für Tierhaltung "),"yes"===e.entrance&&(r+="Eingang zum Gebäude "),"main"===e.entrance&&(r+="Haupteingang "),"service"===e.entrance&&(r+="Hinterausgang für Angestellte oder Zulieferer "),"exit"===e.entrance&&(r+="Ausgang des Gebäudes "),"emergency"===e.entrance&&(r+="Notausgang "),"bay"===e.natural&&(r+="Bucht "),"beach"===e.natural&&(r+="Strand "),"wood"===e.natural&&(r+="natürlicher Wald "),"glacier"===e.natural&&(r+="Gletscher "),"cave_entrance"===e.natural&&(r+="Höhle "),"spring"===e.natural&&(r+="natürliche Quelle "),"waterfall"===e.natural&&(r+="Wasserfall "),"scrub"===e.natural&&(r+="unkultiviertes Buschland "),"grassland"===e.natural&&(r+="unkultiviertes Grasland "),"wetland"===e.natural&&(r+="Feuchtgebiet "),"tree"===e.natural&&(r+="Baum"),"peak"===e.natural&&"yes"===e["summit:cross"]&&(r+="Gipfelkreuz "),"tree_row"===e.natural&&(r+="Baumreihe / Allee "),"heath"===e.natural&&(r+="Heide "),"moor"===e.natural&&(r+="Hochmoor "),"grassland"===e.natural&&(r+="unkultiviertes Grasland "),"fell"===e.natural&&(r+="Grasland oberhalb der Baumgrenze "),"bare_rock"===e.natural&&(r+="Nackter Fels "),"scree"===e.natural&&(r+="Schutt (Hangschutt) "),"volcano"===e.natural&&(r+="Vulkan "),"valley"===e.natural&&(r+="Tal "),"stone"===e.natural&&(r+="Findling "),"sea"===e.natural&&(r+="Meer "),"national_park"===e.boundary&&(r+="Nationalpark "),"protected_area"===e.boundary&&(r+="Schutzgebiet "),"yes"===e.mountain_pass&&(r+="Gebirgspass "),"waterfall"===e.waterway&&(r+="Wasserfall "),"canal"===e.waterway&&(r+="Kanal "),"canal"===e.water&&(r+="Kanal "),"river"===e.waterway&&(r+="Fluss "),"river"===e.water&&(r+="Fluss "),"riverbank"===e.waterway&&(r+="Fluss "),"ditch"===e.waterway&&(r+="Entwässerungsgraben "),"stream"===e.waterway&&(r+="Bach "),"ferry"===e.route&&(r+="Fährverbindung "),"turning_point"===e.waterway&&(r+="Wendestelle "),"lake"!==e.water&&"water"!==e.natural||(r+="See "),"cove"===e.water&&(r+="kleine Bucht "),"lagoon"===e.water&&(r+="Lagune "),"pond"===e.water&&(r+="Teich "),"reservoir"===e.water&&(r+="Wasserreservoir "),"oxbow"===e.water&&(r+="Altwassersee "),"lock"===e.water&&(r+="Schleusenkammer "),"moat"===e.water&&(r+="Burggraben "),"wastewater"===e.water&&(r+="Kläranlage "),"guest"===e.mooring&&"pier"===e.man_made||"visitor_berth"===e["seamark:small_craft_facility:category"]?r+="Gastliegeplatz ":"pier"===e.man_made&&(r+="Anlegestelle "),"boatyard"===e.waterway&&(r+="Schiffswerft "),"mooring"===e["seamark:type"]&&"dolphin"===e["seamark:mooring:category"]&&(r+="Dalben "),"foot"===e.route&&(r+="Wanderweg "),"hiking"===e.route&&(r+="Wanderweg "),"yes"===e.hiking&&"information"===e.tourism)r+="Wegweiser ";else if("information"===e.tourism&&"information"===e.tourism)if(e.information)switch(e.information){case"board":default:r+="Informationstafel ";break;case"map":r+="Informationstafel mit Karte ";break;case"office":r+="Touristeninformation ";break;case"terminal":r+="Informationsterminal ";break;case"audioguide":r+="Audioguide ";break;case"guidepost":r+="Wegweiser ";break;case"tactile_map":r+="Blindenkarte 2D ";break;case"tactile_model":r+="Blindenkarte 3D ";break;case"route_marker":r+="Wegerkennungsmarker "}else r+="Informationstafel ";if("bicycle"===e.route&&(r+="Radwanderweg "),"mtb"===e.route&&(r+="Mountainbikeroute "),"horse"===e.route&&(r+="Reitwanderweg "),"coastline"===e.natural&&(r+="Küstenlinie "),"cliff"===e.natural&&(r+="Klippe "),"dam"===e.waterway&&(r+="Staudamm "),"weir"===e.waterway&&(r+="Wehr "),"lock_gate"===e.waterway&&(r+="Schleusentor "),"yes"===e.lock&&(r+="Schleuse "),"sluice_gate"===e.waterway&&(r+="Siel "),"pumping_station"===e.man_made&&(r+="Schöpfwerk "),"groyne"===e.man_made&&(r+="Buhne "),"dyke"===e.man_made&&(r+="Deich "),"levee"===e.man_made&&(r+="Deich "),"watermill"===e.man_made&&(r+="Wassermühle "),"airfield"===e.military&&(r+="Militärflugplatz "),"naval_base"===e.military&&(r+="Marinestützpunkt "),"range"===e.military&&(r+="Waffenübungsplatz "),"military"===e.landuse&&(r+="militärisch genutztes Gebiet "),"training_area"===e.military&&(r+="Truppenübungsplatz "),"exclusion_zone"===e.military&&(r+="militärisch genutztes Gebiet "),"danger_area"===e.military&&(r+="militärische Gefahrenzone "),"barracks"===e.military&&(r+="Kaserne "),"nuclear_explosion_site"===e.military&&(r+="Atomwaffentestgelände "),("yes"===e.construction||"construction"===e.highway)&&(r+="Baustelle "),"petroleum_well"===e.man_made&&(r+="Erdölpumpe "),"storage_tank"===e.man_made&&(r+="Speichertank "),"wastewater_plant"===e.man_made&&(r+="Kläranlage "),"silo"===e.man_made&&(r+="Silo "),"water_tower"===e.man_made&&(r+="Wasserturm "),"windmill"===e.man_made&&(r+="Windmühle "),"monitoring_station"===e.man_made&&(r+="Messstation"),"crane"===e.man_made&&(r+="Kran"),"lighthouse"===e.man_made&&(r+="Leuchtturm"),"beacon"===e.man_made&&(r+="Leuchtfeuer"),"breakwater"===e.man_made&&(r+="Wellenbrecher"),"lamp"===e.man_made&&"street_lamp"===e["lamp:type"]&&(r+="Strassenlaterne "),"lantern"===e.light_source&&(r+="Strassenlaterne "),"floodlight"===e.light_source&&(r+="Flutlicht "),"signal_lamp"===e.light_source&&(r+="Signallicht "),"aviation"===e.light_source&&(r+="Befeuerung "),"warning"===e.light_source&&(r+="Warnlicht "),e.light_source&&e["light:method"])switch(r+="Licht Art: ",e["light:method"]){case"gas":r+="Gas";break;case"electric":r+="Elektrisch";break;case"incandescent":r+="strahlend";break;case"halogen":r+="Halogen";break;case"discharge":r+="Entladungslicht";break;case"metal-halide":r+="Halogen-Metalldampflampe";break;case"neon":r+="Neon";break;case"sodium":r+="Natriumdampflampe";break;case"high_pressure_sodium":r+="Hochdruck Natriumdampflampe";break;case"low_pressure_sodium":r+="Niedrigdruck Natriumdampflampe";break;case"fluorescent":r+="Fluoreszenzlampe";break;case"mercury":r+="Quecksilberlampe";break;case"LED":r+="LED";break;case"laser":r+="Laser";break;case"arc":r+="Lichtbogen";break;default:r+="Unbekannt"}if("drinking_water"===e.amenity&&(r+="Trinkwasser "),"yes"===e.drinking_water&&(r+="Trinkwasser "),"works"===e.man_made||"industrial"===e.building?r+="Industriegebäude ":"industrial"===e.landuse||"industrial"===e.abutters?r+="Industriegebiet ":"commercial"===e.abutters&&(r+="Gewerbegebiet "),e["generator:source"])switch(r+="Anlagen-Typ: ",e["generator:source"]){case"biomass":case"biofuel":case"biogas":r+="Biogasanlage";break;case"coal":r+="Kohlekraftwerk";break;case"oil":r+="Ölraffinerie";break;case"waste":r+="Müllverbrennungsanlage";break;case"wind":r+="Windkraftwerk";break;case"solar":r+="Solarkraftwerk";break;case"hydro":r+="Wasserkraftwerk";break;case"tidal":r+="Gezeitenkraftwerk";break;case"wave":r+="Wellenkraftwerk";break;case"geothermal":r+="Geothermie";break;case"osmotic":r+="Osmosekraftwerk";break;case"nuclear":r+="Atomkraftwerk";break;default:r+="unbekannt "}if("photovoltaic"===e.power_source&&(r+="Solarkraftwerk"),"line"===e.power&&(r+="Hochspannungs-Übertragungsleitung "),"cable"===e.power&&(r+="Untergrundkabel "),"cable_distribution_cabinet"===e.power&&(r+="Kabelverteilerschrank "),"plant"===e.power&&(r+="Elektrizitätskraftwerk "),"station"===e.power&&(r+="Elektrizitätskraftwerk "),"sub_station"===e.power&&(r+="Elektrizitätskraftwerk "),"compensator"===e.power&&(r+="Kompensator "),"converter"===e.power&&(r+="Konverter "),"generator"===e.power&&(r+="Generator "),"heliostat"===e.power&&(r+="Heliostat "),"insulator"===e.power&&(r+="Isulator "),"busbar"===e.line&&(r+="Sammelschiene "),"bay"===e.line&&(r+="Verbindung Schaltung und Sammelschiene "),"minor_line"===e.power&&(r+="Nebenlinie "),"pole"===e.power&&(r+="Pfahl "),"portal"===e.power&&(r+="H-förmiger Mast "),"catenary_mast"===e.power&&(r+="Fahrleitungsmast "),"substation"===e.power&&(r+="Umspannwerk "),"switch"===e.power&&(r+="Lastschalter "),"terminal"===e.power&&(r+="Terminal / Anschluss "),"tower"===e.power&&(r+="Hochspannungsleitungs "),"transformer"===e.power&&(r+="Nebenlinie "),e.barrier)switch(e.barrier){case"bollard":r+="Poller, Pfosten ";break;case"cycle_barrier":r+="Umlaufsperre, Drängelgitter ";break;case"gate":r+="Tor, Schranke ";break;case"chain":r+="Kette ";break;case"lift_gate":r+="Schlagbaum ";break;case"wall":r+="Lärmschutzwand ";break;case"toll_booth":r+="Mautstelle ";break;case"fence":switch(e.fence_type){case"barbed_wire":r+="Stacheldrahtzaun ";break;case"wood":r+="Holzzaun ";break;case"chain_link":r+="Maschendrahtzaun ";break;case"electric":r+="Weidezaun ";break;case"railing":r+="Geländer ";break;case"wire":r+="einfacher Drahtzaun ";break;case"metal":r+="Metallzaun ";break;case"pole":r+="Holzpfähle ";break;default:r+="Zaun "}break;case"block":r+="Block ";break;case"ditch":r+="Graben ";break;case"border_control":r+="Grenzkontrolle ";break;case"hedge":r+="Hecke ";break;case"retaining_wall":r+="Stützmauer ";break;case"cattle_grid":r+="Weiderost ";break;case"horse_stile":r+="Zaunübertritt ";break;default:r+="unbekannt "}if("noise_barrier"===e.wall&&(r+="Lärmschutzwand "),"retaining_wall"===e.designation&&(r+="Lärmschutzwand "),"noise_barrier"===e.designation&&(r+="Lärmschutzwand "),"surveillance"===e.man_made&&(r+="Überwachter Bereich "),e.aeroway)switch(r+="Flughafen: ",e.aeroway){case"aerodrome":r+="Flugplatz";break;case"apron":r+="Vorfeld";break;case"gate":r+="gate";break;case"helipad":r+="Hubschrauberlandeplatz";break;case"hangar":r+="Hangar";break;case"runway":r+="Start-/Landebahn";break;case"taxiway":r+="Rollweg";break;case"terminal":r+="Flughafengebäude";break;default:r+="unbekannt "}if("halt"===e.railway&&(r+="Bahn-Haltepunkt "),"crossing"===e.railway&&(r+="Bahnübergang "),"level_crossing"===e.railway&&(r+="Bahnübergang "),"station"===e.railway&&(r+="Bahnhof "),"bus_station"===e.amenity&&(r+="Busbahnhof "),"bus_station"===!e.amenity&&"station"===e.public_transport&&"yes"===e.bus&&(r+="Busbahnhof "),"rail"===e.railway&&(r+="Bahnlinie ","contact_line"===e.electrified&&(r+="elektrifizierte Bahntrasse mit Oberleitung ")),"tram"===e.railway&&(r+="Straßenbahnlinie "),"slipway"!==e["seamark:small_craft_facility:category"]&&"slipway"!==e.harbour&&"slipway"!==e.leisure||(r+="Slipanlage "),"harbour"===e["seamark:type"])if(e["seamark:harbour:category"])switch(e["seamark:harbour:category"]){case"ferry":r+="Fährhafen ";break;case"container":r+="Containerhafen ";break;case"marina":"marina"!==e.leisure&&(r+="Jachthafen ");break;case"navel_base":r+="Marine-Hafen ";break;case"tanker":r+="Hafen für Öltanker ";break;case"passenger":r+="Personenschifffahrt ";break;case"bulk":r+="Schüttgut-Hafen ";break;default:r+="Hafen "}else r+="Hafen ";return"marina"===e.leisure&&(r+="Jachthafen "),"wreck"===e.historic&&(r+="Wrack "),"animal_shelter"===e.amenity&&(r+="Tierheim "),"shelter"===e.animal&&(r+="Tierheim "),"horse_walker"===e.animal&&(r+="Pferdelauftrainer "),"yes"===e.animal_shelter&&(r+="Tierheim "),"dog"===e.animal_shelter&&(r+="Tierheim "),"cat"===e.animal_shelter&&(r+="Tierheim "),"animal_boarding"===e.amenity&&(r+="Tierpension "),"yes"===e.animal_boarding&&(r+="Tierpension "),"dog"===e.animal_boarding&&(r+="Tierpension "),"horse"===e.animal_boarding&&(r+="Tierpension "),"cat"===e.animal_boarding&&(r+="Tierpension "),"dog;cat"===e.animal_boarding&&(r+="Tierpension "),"cat;dog"===e.animal_boarding&&(r+="Tierpension "),"school"!==e.animal&&"sport"!==e.animal&&"animal_training"!==e.amenity||(r+="Tiertraining "),"swimming"===e.animal&&(r+="Badestelle für Hunde "),"feeding_place"!==e.amenity&&"animal_feeding"!==e.man_made&&"animal_feeding"!==e.amenity||(r+="Fütterungsstelle "),"wildlife_feeding"!==e.amenity&&"deer_feeding"!==e.amenity&&"game_feeding"!==e.amenity||(r+="Wildfütterung "),"cratch"!==e.amenity&&"cratch"!==e.man_made&&"feeding_rack"!==e.amenity||(r+="Futterraufe "),"manger"===e.amenity&&(r+="Krippe "),"birdhouse"===e.man_made&&(r+="Vogelhaus "),"stork"===e.birds_nest&&(r+="Storchennest "),"nest_box"===e.amenity&&(r+="Nistkasten "),"wellness"===e.animal&&(r+="Hundesalon "),"cemetery"===e.animal&&(r+="Kleintierfriedhof "),"stable"!==e.building&&"stable"!==e["building:use"]||(r+="Pferdestall "),"cowshed"===e.building&&(r+="Kuhstall "),"sty"===e.building&&(r+="Schweinestall "),"barn"===e.building&&(r+="Scheune / landwirtsch. Lagerhalle "),"farm_auxiliary"===e.building&&(r+="landwirtschaftl. Nebengebäude "),(e["river:waterway_distance"]||"milestone"===e.waterway)&&(r+="Flusskilometer "),"milestone"===e.highway&&(r+="Strassenkilometer "),"market"===e["xmas:feature"]&&(r+="Weihnachtsmarkt "),"tree"===e["xmas:feature"]&&(r+="Weihnachtsbaumverkauf "),"event"===e["xmas:feature"]&&(r+="Weihnachtsevent "),"pyramid"===e["xmas:feature"]&&(r+="Weihnachtspyramide "),'"}(e),'"}function s(e,r){var n="",s=!1;if(e["addr:housename"]&&(n+="Gebäudename: "+e["addr:housename"]+" ",s=!0),e["addr:floor"]?(n+="Etage: "+e["addr:floor"]+" ",s=!0):e["addr:level"]&&(n+="Etage: "+e["addr:level"]+" ",s=!0),e["addr:street"]&&(n+=e["addr:street"],e["addr:housenumber"]?n+=" "+e["addr:housenumber"]+" ":n+=" ",s=!0),e["addr:postcode"]&&(n+=e["addr:postcode"]+" "),e["addr:city"]&&(n+=e["addr:city"]+" ",s=!0),e.sqkm)if(e.sqkm=""+e.sqkm,e.sqkm.length>3){var l=e.sqkm.length%3,c=l>0?e.sqkm.substring(0,l):"";for(i=0;i "}else n+="Fläche "+e.sqkm+" ";if(e["contact:phone"]&&(a()?(n+='Telefon: '+e["contact:phone"]+" ",s=!0):(n+='Telefon: '+e["contact:phone"]+" ",s=!0)),e.phone&&(a()?(n+='Telefon: '+e.phone+" ",s=!0):(n+='Telefon: '+e.phone+" ",s=!0)),e["contact:fax"]?(n+="Telefax: "+e["contact:fax"]+" ",s=!0):e.fax&&(n+="Telefax: "+e.fax+" ",s=!0),e["contact:email"]?(n+='E-Mail-Adresse: '+e["contact:email"]+" ",s=!0):e.email&&(n+='E-Mail-Adresse: '+e.email+" ",s=!0),s&&(n+=" "),e.opening_hours){for(var u=e.opening_hours,p=0;0===p||u.indexOf(";")>0;)u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=u.replace("PH","FT")).replace("Tu","Di")).replace("We","Mi")).replace("Th","Do")).replace("Su","So")).replace("Mar","Mär")).replace("May","Mai")).replace("Oct","Okt")).replace("Dec","Dez")).replace('"Please make a reservation"','"Bitte vereinbaren Sie einen Termin"')).replace("off","ausgenommen"),p>0&&(u=u.replace(";"," ")),p++;n+='Öffnungszeiten: '+u+"
",u.indexOf("FT")>0?n+="(FT = Feiertag) ":n+=" "}if(e["xmas:opening_hours"]){for(u=e["xmas:opening_hours"],p=0;0===p||u.indexOf(";")>0;)u=(u=(u=(u=(u=(u=(u=(u=(u=u.replace("PH","FT")).replace("Tu","Di")).replace("We","Mi")).replace("Th","Do")).replace("Su","So")).replace("Mar","Mär")).replace("May","Mai")).replace("Oct","Okt")).replace("Dec","Dez"),p>0&&(u=u.replace(";"," ")),p++;n+='Öffnungszeiten: '+u+"
",u.indexOf("FT")>0?n+="(FT = Feiertag) ":n+=" "}if(e["xmas:url"]){var b="";t(b=e["xmas:url"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Website: Link zur Website '}e["contact:website"]?(b="",t(b=e["contact:website"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Website: Link zur Website '):e.website&&(b="",t(b=e.website),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Website: Link zur Website '),e.wikipedia&&(b="",t(b=e.wikipedia),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://wikipedia.org/wiki/"+b),n+='Wikipedia: Link zu Wikipedia '),e.wikimedia_commons&&(b="",t(b=e.wikimedia_commons),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://commons.wikimedia.org/wiki/"+b),n+='Wikimedia: Link zu Wikimedia '),e["contact:webcam"]&&(b="",t(b=e["contact:webcam"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Webcam: Link zur Webcam '),e.image&&(n+=' ');var d="";if(e.internet_access&&(d+="Internetzugriff: "+o(e.internet_access)+" "),e["internet_access:fee"]&&(d+="Internet Gebühr: "+o(e["internet_access:fee"])+" "),e["wifi_access:operator"]&&(d+="wifi Betreiber: "+e["wifi_access:operator"]+" "),e["wifi_access:technology"]&&(d+="wifi Technologie: "+e["wifi_access:technology"]+" "),e["wifi_access:ssid"]&&(d+="wifi ssid: "+e["wifi_access:ssid"]+" "),""!==d&&(n+='Internetzugang vorhanden'+d+"
"),e.wheelchair&&(n+="rollstuhlgeeignet: "+o(e.wheelchair)+" "),e["wheelchair:description"]&&(n+="Beschreibung: "+e["wheelchair:description"]+" "),e["wheelchair:entrance_width"]&&(n+="Breite des Eingangs in CM: "+e["wheelchair:entrance_width"]+" "),e["wheelchair:step_height"]&&(n+="Höhe der Stufe am Eingang in CM: "+e["wheelchair:step_height"]+" "),e["wheelchair:rooms"]&&(n+="Anzahl rollstuhlgerechter Räume: "+e["wheelchair:rooms"]+" "),e["wheelchair:places"]&&(n+="Anzahl der Rollstuhlplätze: "+e["wheelchair:places"]+" "),e["cent:places"]&&(n+="Anzahl der Rollstuhlplätze: "+e["wheelchair:places"]+" "),e["ramp:wheelchair"]&&(n+="Rampe für Rollstuhlfahrer: "+e["ramp:wheelchair"]+" "),e["capacity:disabled"]&&(n+="Behindertenparkplätze: "+o(e["capacity:disabled"])+" "),e["toilets:wheelchair"]&&(n+="Behinderdengerechte Toilette: "+o(e["toilets:wheelchair"])+" "),e.centralkey&&(n+="Zentralschlüssel: "+e.centralkey+" "),e.note&&(n+=e.note+" "),e.description&&(n+=e.description+" "),e.operator&&(n+="Betreiber: "+e.operator+" "),e.ref&&(n+="Referenz: "+e.ref+" "),"yes"===e.lit&&(n+="Dieses Objekt ist beleuchtet. "),e.shop){var h="";e.brand&&(h+="Markenzeichen: "+e.brand+" "),e.sells&&(h+="Verkaufs: "+e.sells+" "),e.origin&&(h+="Herkunftsländer: "+e.origin+" "),"yes"===e.wholesale&&(h+="Großhändler: Ja "),""!==h&&(n+='Weitere Angaben zum Shop: '+h+"
")}return r&&(t(b=r),n+=" ",n+='OSM: Link zur OpenStreetMap '),'"}Object.defineProperty(r,"__esModule",{value:!0}),r.fnTestInfoPopup=r.fnStandardInfoPopup=r.fnReducedInfoPopup=r.fnMessstation=r.fnContentTourism=r.fnContentStreetsTraffic=r.fnContentStorage=r.fnContentSports=r.fnContentShipping=r.fnContentRoute=r.fnContentProtectedArea=r.fnContentPetrol=r.fnContentNatural=r.fnContentLanduse=r.fnContentInformationCity=r.fnContentHydrants=r.fnContentHistoric=r.fnContentHealthcare=r.fnContentGeneralInformations=r.fnContentEmergency=r.fnContentCuisine=r.fnContentBarriers=r.fnContentAmenity=r.fnContentAerodrome=r.fnContent=void 0,r.fnStandardInfoPopup=function(e,r){var t=e.getProperties(),a="";return a+=n(t,r),a+=l(t),'"},r.fnReducedInfoPopup=function(e,r){var t,a=e.getProperties(),o="",i=!1;switch(t="function"==typeof r?r.call(e)[0].getImage().getSrc():r.getImage().getSrc(),("restaurant"===a.amenity||"pub"===a.amenity||"biergarten"===a.amenity)&&(i=!0),"hotel"===a.tourism&&(i=!0),"guest_house"===a.tourism&&(i=!0),"chalet"===a.tourism&&(i=!0),"hostel"===a.tourism&&(i=!0),"alpine_hut"===a.tourism&&(i=!0),"artwork"!==a.tourism&&"artwork"!==a.amenity||(i=!0),"museum"!==a.tourism&&"museum"!==a.amenity||(i=!0),"cinema"===a.amenity&&(i=!0),"theatre"===a.amenity&&(i=!0),"attraction"!==a.amenity&&"fountain"!==a.amenity&&"monument"!==a.historic&&"city_gate"!==a.historic&&"ruins"!==a.historic&&"castle"!==a.historic&&"attraction"!==a.tourism||(i=!0),"playground"===a.leisure&&(i=!0),a.aerialway&&(i=!0),"swimming_pool"!==a.amenity&&"swimming_pool"!==a.leisure&&"swimming"!==a.sport||(i=!0),"station"===a.railway&&(i=!0),"swimming"===a.sport&&(i=!0),"swimming_pool"===a.leisure&&(i=!0),"swimming_pool"===a.amenity&&(i=!0),"waterpark"===a.leisure&&(i=!0),a.water_park&&(i=!0),"sports_centre"===a.leisure&&(i=!0),i){case!1:o+=n(a,t),o+=l(a),o+=s(a,e.get("osm_type")?e.get("osm_type")+"/"+e.getId():e.getId());break;case!0:o+=n(a,t)}return'"};var l=r.fnContent=function(e){var r="";return r+=O(e),r+=T(e),r+=c(e),r+=w(e),r+=S(e),r+=C(e),r+=E(e),r+=R(e),r+=k(e),r+=v(e),r+=_(e),r+=y(e),r+=f(e),r+=h(e),r+=m(e),r+=g(e),r+=b(e),r+=u(e),r+=function(e){var r="";if(e["monastery:type"])switch(e["monastery:type"]){case"monastery":r+="Typ: Klösterliche Gemeinschaft (monastery) ";break;case"convent":r+="Typ: Bettelmönch Gemeinschaft (convent) ";break;case"canonry":r+="Typ: Kanonikat (canonry) ";break;case"commandry":r+="Typ: Militär geführt (commandry) ";break;case"hermitage":r+="Typ: Einsiedelei (hermitage) ";break;default:r+="Typ: unbekannt "}if(e["community:gender"]&&("male"===e["community:gender"]&&(r+="Geschlecht: Männergemeinschaft "),"female"===e["community:gender"]&&(r+="Geschlecht: Frauengemeinschaft ")),e.religious_rank&&("abbey"===e.religious_rank?r+="Religiöser Rang: Abtei ":"abbey"===e.religious_rank&&(r+="Religiöser Rang: Erzabtei ")),"yes"===e.shrine&&(r+="Besonderheit: Heiligengrab / Reliquienschrein "),"yes"===e.sanctuary&&(r+="Besonderheit: Heiligtum / Altarraum (Sanktuar) "),e.religion)switch(e.religion){case"animist":r+="Religion: animistisch ";break;case"bahai":r+="Religion: bahai ";break;case"buddhist":r+="Religion: buddhistisch ";break;case"christian":r+="Religion: christlich ";break;case"hindu":r+="Religion: hinduistisch ";break;case"IglesiaNiCristo":r+="Religion: IglesiaNiCristo ";break;case"jain":r+="Religion: jain ";break;case"jewish":r+="Religion: jüdisch ";break;case"multifaith":r+="Religion: pluralistisch ";break;case"muslim":r+="Religion: muslimisch ",type+="Moschee ";break;case"pagan":r+="Religion: heidnisch ";break;case"pastafarian":r+="Religion: pastafarisch ";break;case"scientologist":r+="Religion: scientologisch ";break;case"shinto":r+="Religion: schintoistisch ";break;case"sikh":r+="Religion: sikh ";break;case"spiritualist":r+="Religion: spiritistisch ";break;case"taoist":r+="Religion: taoistisch ";break;case"unitarian":r+="Religion: unitarian ";break;case"yazidi":r+="Religion: yazidi ";break;case"zoroastrian":r+="Religion: zoroastrisch ";break;default:r+="Religion: unbekannt "}if(e.denomination)switch(e.denomination){case"anglican":r+="Konfession: Anglikanische Gemeinschaft ";break;case"baptist":r+="Konfession: Baptisten ";break;case"catholic":r+="Konfession: Katholische Kirche, ohne genauere Spezifizierung ";break;case"roman_catholic":r+="Konfession: Römisch-Katholische Kirche ";break;case"old_catholic":r+="Konfession: Altkatholische Kirche (Schweiz: Christ-Katholisch) ";break;case"greek_catholic":r+="Konfession: Griechisch-Katholische Kirche, Sammelbezeichnung für die mit Rom unierten Ostkirchen des byzantinischen Ritus ";break;case"evangelical":r+="Konfession: Evangelikalismus ist eine theologische Richtung innerhalb des Protestantismus. Achtung! Nicht verwechseln mit der evangelischen (= protestantischen) Kirche ";break;case"jehovahs_witness":r+="Konfession: Zeugen Jehovas ";break;case"lutheran":r+="Konfession: Lutheraner, evangelisch-lutherisch ";break;case"mennonite":r+="Konfession: Mennoniten ";break;case"messianic_jewish":r+="Konfession: Messianische Juden, stehen theologisch den evangelikalen Christen nahe. ";break;case"methodist":r+="Konfession: Methodist Church (engl. Methodism) ";break;case"mormon":r+="Konfession: Mormonen ";break;case"new_apostolic":r+="Konfession: Neuapostolische Kirche ";break;case"orthodox":r+="Konfession: Orthodox, ohne genauere Spezifizierung ";break;case"greek_orthodox":r+="Konfession: Griechisch-Orthodox ";break;case"coptic_orthodox":r+="Konfession: Koptische Kirche, ist die christliche altorientalische Kirche Ägyptens. ";break;case"pentecostal":r+="Konfession: Pfingstbewegung ";break;case"presbyterian":r+="Konfession: Presbyterianische Kirchen ";break;case"protestant":r+="Konfession: Evangelische Kirchen ";break;case"quaker":r+="Konfession: Quäker ";break;case"reformed":r+="Konfession: Evangelisch-reformierte ";break;case"russian_orthodox":r+="Konfession: Russisch-Orthodox ";break;case"seventh_day_adventist":r+="Konfession: Siebenten-Tags-Adventisten ";break;case"christian_community":r+="Konfession: Die Christengemeinschaft ist eine christliche Kirche, die sich als selbständige Kultusgemeinschaft versteht. ";break;case"adventist":r+="Konfession: Adventisten, nicht alle Adventisten sind Siebenten-Tags-Adventisten. ";break;case"alliance":r+="Konfession: Christian and Missionary Alliance (C&MA) is an evangelical Protestant denomination within Christianity. ";break;case"assemblies_of_god":r+="Konfession: Assemblies of God, ist eine pfingstlerische Denomination. ";break;case"apostolic":r+="Konfession: Apostolische Kirche ";break;case"armenian_apostolic":r+="Konfession: Armenische Apostolische Kirche, ist eine altorientalische Kirche. ";break;case"assyrian":r+="Konfession: Assyrische Kirche des Ostens, auch Apostolische Kirche des Ostens, ist eine autokephale und völlig eigenständige Ostkirche syrischer Tradition in Nachfolge des altchristlichen Katholikats von Seleukia-Ktesiphon. ";break;case"christ_scientist":r+="Konfession: Christian Science (deutsch: Christliche Wissenschaft) ging aus der Neugeist-Bewegung hervor. ";break;case"church_of_scotland":r+="Konfession: Church of Scotland (dt. Kirche Schottlands) ist die Nationalkirche in Schottland. Im Sprachgebrauch auch „the Kirk“ genannt. ";break;case"czechoslovak_hussite":r+="Konfession: Tschechoslowakische Hussitische Kirche, ist eine christliche Kirche, die durch Abspaltung von der Römisch-Katholischen Kirche entstanden ist. Oft auch Neuhussitische Kirche genannt, vornehmlich in Tschechien verbreitet, aber auch in der Slowakei ";break;case"dutch_reformed":r+="Konfession: Niederländisch-reformierte Kirche, (einschließlich NGK und ähnliche Kirchen in Südafrika) ";break;case"exclusive_brethren":r+="Konfession: Exclusive Brethren ";break;case"foursquare":r+="Konfession: International Church of the Foursquare Gospel ";break;case"kimbanguist":r+="Konfession: Kimbanguistenkirche, ist eine afrikanische, unabhängige, christliche Kirche. ";break;case"living_waters_church":r+="Konfession: Living Waters Christian Church ";break;case"mariavite":r+="Konfession: Mariavitismus ";break;case"maronite":r+="Konfession: Syrisch-maronitische Kirche, ist eine mit Rom unierte, christliche Kirche, die den römischen Papst als Oberhaupt anerkennt. ";break;case"moravian":r+="Konfession: Herrnhuter Brüdergemeine, (auch: Unitas Fratrum, Evangelische oder Erneuerte Brüder-Unität, engl. Moravian Church) ist eine aus der böhmischen Reformation herkommende überkonfessionell-christliche Glaubensbewegung. ";break;case"nazarene":r+="Konfession: Kirche des Nazareners, ist eine Freikirche und Heiligungsgemeinde in methodistischer Tradition. ";break;case"nondenominational":r+="Konfession: Nondenominational Christianity ";break;case"old_believers":r+="Konfession: Altorthodoxe, (häufiger Altgläubige) ist eine Sammelbezeichnung für religiöse Strömungen und Gruppen innerhalb der russisch-orthodoxen Tradition. ";break;case"polish_catholic":r+="Konfession: Polnisch-Katholische Kirche ";break;case"salvation_army":r+="Konfession: Heilsarmee, ist eine christliche Freikirche mit ausgeprägter sozialer Tätigkeit. ";break;case"santo_daime":r+="Konfession: Santo Daime, ist einer synkretistischen religiöse Bewegung aus Brasilien. ";break;case"serbian_orthodox":r+="Konfession: Serbisch-Orthodoxe Kirche, bezeichnet die orthodoxe Kirche von Serbien und die ihr nachgeordneten Kirchen. ";break;case"spiritism":r+="Konfession: Spiritismus, oder Spiritualismus die Lehre des Spiritisten Allan Kardec ";break;case"united":r+="Konfession: United Church of Canada, ist die zweitgrößte Kirche in Kanada. ";break;case"united_church_of_christ":r+="Konfession: United Church of Christ, ist eine Kirche in den USA. ";break;case"united_free_church_of_scotland":r+="Konfession: United Free Church of Scotland, ist eine presbyterianische Freikirche in Schottland. ";break;case"united_methodist":r+="Konfession: Evangelisch-methodistische Kirche, (engl. United Methodist Church (UMC)) ist eine christliche Kirche in der wesleyanischen Tradition. ";break;case"united_reformed":r+="Konfession: United Reformed Church, (Vereinigte Reformierte Kirche, URC) ist eine reformierte Kirche in Großbritannien. ";break;case"uniting":r+="Konfession: Uniting Church in Australia (UCA) ist die drittgrößte christliche Denomination in Australien. ";break;case"church_of_sweden":r+="Konfession: Schwedische Kirche, ist die evangelisch-lutherische Kirche und ehemalige Staatskirche Schwedens. ";break;case"mission_covenant_church_of_sweden":r+="Konfession: Schwedische Missionskirche ist eine reformierte Kirche in Schweden. ";break;case"alternative":r+="Konfession: alternative ";break;case"ashkenazi":r+="Konfession: ashkenazi ";break;case"buchari":r+="Konfession: buchari ";break;case"conservative":r+="Konfession: conservative ";break;case"egalitarian":r+="Konfession: egalitarian ";break;case"hasidic":r+="Konfession: hasidic ";break;case"humanistic":r+="Konfession: humanistic ";break;case"kabbalah":r+="Konfession: kabbalah ";break;case"kabbalistic":r+="Konfession: kabbalistic ";break;case"karaite":r+="Konfession: karaite ";break;case"liberal":r+="Konfession: liberal ";break;case"lubavitch":r+="Konfession: lubavitch ";break;case"lubavitch_messianic":r+="Konfession: lubavitch_messianic ";break;case"mizrachi_baghdadi":r+="Konfession: mizrachi_baghdadi ";break;case"mizrachi_chida":r+="Konfession: mizrachi_chida ";break;case"mizrachi_jerusalemite":r+="Konfession: mizrachi_jerusalemite ";break;case"mizrachi_livorno":r+="Konfession: mizrachi_livorno ";break;case"mizrachi_moroccan":r+="Konfession: mizrachi_moroccan ";break;case"modern_orthodox":r+="Konfession: modern_orthodox ";break;case"neo_orthodox":r+="Konfession: neo_orthodox ";break;case"nondenominational":r+="Konfession: nondenominational ";break;case"orthodox":r+="Konfession: orthodox ";break;case"orthodox_ashkenaz":r+="Konfession: orthodox_ashkenaz ";break;case"orthodox_sefard":r+="Konfession: orthodox_sefard ";break;case"progressive":r+="Konfession: progressive ";break;case"reconstructionist":r+="Konfession: reconstructionist ";break;case"reform":r+="Konfession: reform ";break;case"renewal":r+="Konfession: renewal ";break;case"samaritan":r+="Konfession: samaritan ";break;case"sefardi":r+="Konfession: sefardi ";break;case"sefardi_amsterdam":r+="Konfession: sefardi_amsterdam ";break;case"sefardi_london":r+="Konfession: sefardi_london ";break;case"traditional":r+="Konfession: traditional ";break;case"ultra_orthodox":r+="Konfession: ultra_orthodox ";break;case"unaffiliated":r+="Konfession: unaffiliated ";break;case"yemenite":r+="Konfession: yemenite ";break;case"yemenite_baladi":r+="Konfession: yemenite_baladi ";break;case"yemenite_shami":r+="Konfession: yemenite_shami ";break;case"ahmadiya":r+="Konfession: ahmadiya ";break;case"alaouite":r+="Konfession: alaouite ";break;case"druze":r+="Konfession: druze ";break;case"ibadi":r+="Konfession: ibadi ";break;case"ismaili":r+="Konfession: ismaili ";break;case"shia":r+="Konfession: shia ";break;case"sunni":r+="Konfession: sunni ";break;case"nichiren":r+="Konfession: nichiren ";break;case"jodo_shinshu":r+="Konfession: jodo_shinshu ";break;case"jodo_shu":r+="Konfession: jodo_shu ";break;case"vajrayana":r+="Konfession: vajrayana ";break;case"shingon_shu":r+="Konfession: shingon_shu ";break;case"zen":r+="Konfession: zen ";break;case"thai_mahanikaya":r+="Konfession: thai_mahanikaya ";break;case"thai_thammayut":r+="Konfession: thai_thammayut ";break;case"asatru":r+="Konfession: asatru ";break;case"celtic":r+="Konfession: celtic ";break;case"greco-roman":r+="Konfession: greco-roman ";break;case"wicca":r+="Konfession: wicca ";break;case"irani":r+="Konfession: irani ";break;case"parsi":r+="Konfession: parsi ";break;default:r+="unbekannt "}if(e.community)switch(e.community){case"AA":r+="Ordensgemeinschaft (AA): Augustinians of the Assumption ";break;case"BSCM":r+="Ordensgemeinschaft (BSCM): Adorers of the Sacred Heart of Jesus of Montmartre ";break;case"CBMV":r+="Ordensgemeinschaft (CBMV): Augustiner-Chorfrauen B.M.V. ";break;case"CO":r+="Ordensgemeinschaft (CO): Oratorians ";break;case"CMC":r+="Ordensgemeinschaft (CMC): Congregation of the Mother Co-Redemptrix ";break;case"CRSP":r+="Ordensgemeinschaft (CRSP): Kongregation der Regularkleriker vom hl. Paulus (Barnabiten) ";break;case"CSJ":r+="Ordensgemeinschaft (CSJ): Carmel Saint-Joseph ";break;case"CSSP":r+="Ordensgemeinschaft (CSSP): Congrégation du Saint-Esprit ";break;case"CSSR":r+="Ordensgemeinschaft (CSSR): Congrégation du Très Saint Rédempteur ";break;case"FCJM":r+="Ordensgemeinschaft (FCJM): Franciscan Sisters, Daughters of the Sacred Heart of Jesus and Mary ";break;case"FMGB":r+="Ordensgemeinschaft (FMGB): Suore Francescane Missionarie di Gesù Bambino ";break;case"FMH":r+="Ordensgemeinschaft (FMH): Congregatio Filiarum Mariae Sanctissimae ab Horto ";break;case"FMM":r+="Ordensgemeinschaft (FMM): Franciscaines missionnaires de Marie ";break;case"FSC":r+="Ordensgemeinschaft (FSC): Frères des Écoles chrétiennes ";break;case"MCCI":r+="Ordensgemeinschaft (MCCI): Missionnaires comboniens du Sacré-Cœur ";break;case"MSFS":r+="Ordensgemeinschaft (MSFS): Missionnaires de Saint François de Sales ";break;case"OCart":r+="Ordensgemeinschaft (OCart): Order of the Carthusians ";break;case"OCC":r+="Ordensgemeinschaft (OCC): Ordre de Notre Dame du Mont-Carmel ";break;case"OCD":r+="Ordensgemeinschaft (OCD): Ordre des Carmes déchaux ";break;case"OCSO":r+="Ordensgemeinschaft (OCSO): Zisterzienserorden der strengeren Observanz (Trappisten) ";break;case"OFM":r+="Ordensgemeinschaft (OFM): Ordre des Frères Mineurs (Franziskaner) ";break;case"OFMCap":r+="Ordensgemeinschaft (OFMCap): Ordre des Frères Mineurs Capucins ";break;case"OFMConv":r+="Ordensgemeinschaft (OFMConv): Ordre des Frères Mineurs Conventuels ";break;case"OFS":r+="Ordensgemeinschaft (OFS): Franciscans secular Third Order ";break;case"OMI":r+="Ordensgemeinschaft (OMI): Oblats de Marie ";break;case"OP":r+="Ordensgemeinschaft (OP): Ordre des Frères Prêcheurs ";break;case"OPraem":r+="Ordensgemeinschaft (OPraem): Ordre des chanoines réguliers de Prémontré ";break;case"OSB":r+="Ordensgemeinschaft (OSB): Order of Saint Benedict ";break;case"OSC":r+="Ordensgemeinschaft (OSC): Ordre de Sainte-Claire ou Ordre des Pauvres Dames ";break;case"OSSS":r+="Ordensgemeinschaft (OSSS): Ordre de Sainte-Brigitte ";break;case"OVM":r+="Ordensgemeinschaft (OVM): Order of the Visitation of Holy Mary (Salesianerinnen) ";break;case"PSDP":r+="Ordensgemeinschaft (PSDP): Petites sœurs des pauvres (Kleinen Schwestern der Armen) ";break;case"PFJ":r+="Ordensgemeinschaft (PFJ): Petits Frères de Jésus ";break;case"SDB":r+="Ordensgemeinschaft (SDB): Société de Saint François de Sales ";break;case"SJ":r+="Ordensgemeinschaft (SJ): Compagnie de Jésus ";break;case"SOC":r+="Ordensgemeinschaft (SOC): Order of Cistercians ";break;case"SSCC":r+="Ordensgemeinschaft (SSCC): Congregation of the Sacred Hearts of Jesus and Mary ";break;case"SSF":r+="Ordensgemeinschaft (SSF): Society of St Francis ";break;case"SSJE":r+="Ordensgemeinschaft (SSJE): Society of St John the Evangelist ";break;case"SSpS":r+="Ordensgemeinschaft (SSpS): Steyler Missionsschwestern ";break;case"TOR":r+="Ordensgemeinschaft (TOR): Terzo Ordine Regolare di San Francesco ";break;default:r+="unbekannt "}return r}(e),r+=function(e){var r="";return"surveillance"===e.man_made&&("indoor"===e.surveillance&&(r+="Innenbereich wird überwacht"),"outdoor"===e.surveillance&&(r+="Außenbereich wird überwacht"),"public"===e.surveillance&&(r+="Öffentliche Überwachung"),"camera"===e["surveillance:type"]&&(r+="Überwachungstyp: Kamera"),"guard"===e["surveillance:type"]&&(r+="Überwachungstyp: Wächter"),"ALPR"===e["surveillance:type"]&&(r+="Überwachungstyp: ALPR"),"town"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Ort"),"parking"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Parkplatz"),"traffic"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Verkehr"),"shop"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Shops"),"bank"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Bank"),"building"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Gebäude")),r}(e),r+=function(e){var r="";if(e["building:color"]&&(r+="Gebäudenfarbe: "+e["building:color"]+""),e["building:height"]&&(r+="Gebäudenhöhe: "+e["building:height"]+" m"),e["building:level"]&&(r+="Etage: "+e["building:level"]+""),e["building:part"]){switch(e["building:part"]){case"roof":t="Dach";break;case"retail":t="Einzelhandel";break;case"tower":t="Turm";break;default:t=e["building:part"]}r+="Gebäudeteile: "+e["building:part"]+""}if(e["roof:color"]&&(r+="Dachfarbe: "+e["roof:colour"]+""),e["roof:shape"]){switch(e["roof:shape"]){case"gabled":t="Satteldach";break;case"flat":t="Flachdach";break;case"skillion":t="Schrägdach";break;case"half-hipped":t="Schopf- oder Krüppelwalmdach";break;case"hipped":t="Walmdach";break;case"pyramidal":t="Zeltdach";break;case"gambrel":t="Mansard-Giebeldach";break;case"mansard":t="Mansard-Walmdach";break;case"dome":t="Kuppeldach";break;case"onion":t="Zwiebelhelm";break;case"round":t="Tonnendach";break;case"saltbox":t="Berliner Dach";break;default:t=e["roof:shape"]}r+="Dachform: "+e["roof:shape"]+""}if(e["roof:height"]&&(r+="Dachhöhe: "+e["roof:height"]+" m"),e["roof:material"]){switch(e["roof:material"]){case"concrete":t="Beton";break;case"copper":t="Kupfer";break;case"eternit":t="gewellt";break;case"plastic":t="Kunststoff";break;case"asphalt":t="Asphalt";break;case"glass":t="Glas";break;case"grass":t="Gras";break;case"gravel":t="Kies";break;case"metal":t="Metall";break;case"plants":t="Pflanzen";break;case"roof_tiles":t="Dachziegel";break;case"shadecloth":t="Schattenstoff";break;case"slate":t="Schiefer";break;case"tar_paper":t="Teerpapier";break;case"stone":t="Stein";break;case"thatch":t="Strohdach";break;case"wood":t="Holz";break;case"palm_leaves":t="Palmblätter";break;case"bamboo":t="Bambus";break;case"solar":t="Solaranlage";break;default:t=e["roof:material"]}r+="Dachmaterial: "+e["roof:material"]+" "}if(e["roof:orientation"]){switch(e["roof:orientation"]){case"north":t="Norden";break;case"north_east":t="Nordosten";break;case"east":t="Osten";break;case"south_east":t="Südosten";break;case"south":t="Süden";break;case"south_west":t="Südwesten";break;case"west":t="Westen";break;case"north_west":t="Nordwesten";break;default:t=e["roof:orientation"]}r+="Dachausrichtung: "+e["roof:orientation"]+" "}if(e["roof:direction"]&&(r+="Dachausrichtung: "+e["roof:direction"]+" "),e["building:type"]){var t;switch(e["building:type"]){case"apartments":t="Apartments";break;case"bungalow":t="Bungalow";break;case"cabin":case"hut":t="Hütte";break;case"detached":t="Einfamilienhaus";break;case"dormitory":t="Studentenwohnheim";break;case"hotel":t="Hotel";break;case"house":t="Haus";break;case"houseboat":t="Hausboot";break;case"static_caravan":t="Wohnwagen";break;case"terrace":t="Terrasse";break;case"commercial":t="kommerziell";break;case"kiosk":t="Kiosk";break;case"office":t="Büro";break;case"retail":t="Einzelhandel";break;case"supermarket":t="Supermarkt";break;case"warehouse":t="Lager";break;case"cathedral":t="Kathedrale";break;case"chapel":t="Kapelle";break;case"church":t="Kirche";break;case"mosque":t="Moschee";break;case"religious":t="religiös";break;case"shrine":t="Schrein";break;case"synagogue":t="Synagoge";break;case"temple":t="Tempel";break;case"bakehouse":t="Bäckerei";break;case"civic":t="zivil";break;case"hospital":t="Krankenhaus";break;case"kindergarten":t="Kindergarten";break;case"public":t="Öffentlichkeit";break;case"school":t="Schule";break;case"toilets":t="Toiletten";break;case"train_station":t="Bahnhof";break;case"transportation":t="Lieferung";break;case"university":t="Universität";break;case"barn":t="Scheune";break;case"conservatory":t="Konservatorium";break;case"cowshed":t="Kuhstall";break;case"farm_auxiliary":t="landwirtschaftliche Hilfskräfte";break;case"greenhouse":t="Treibhaus";break;case"stable":t="Stall";break;case"sty":t="Schweinestall";break;case"grandstand":t="Tribüne";break;case"pavilion":t="Pavillon";break;case"riding_hall":t="Reithalle";break;case"sports_hall":t="Sporthalle";break;case"stadium":t="Stadion";break;case"hangar":t="Hangar";break;case"shed":t="Schuppen";break;case"carport":t="Carport";break;case"garage":t="Garage";break;case"garages":t="Werkstätten";break;case"parking":t="Parken";break;case"digester":t="Faulbehälter";break;case"service":t="Service";break;case"transformer_tower":t="Transformatorturm";break;case"water_tower":t="Wasserturm";break;case"bunker":t="Bunker";break;case"bridge":t="Brücke";break;case"construction":t="Konstruktion";break;case"roof":t="Dach";break;case"ruins":t="Ruinen";break;default:t=e["building:type"]}r+="Gebäudentyp: "+t+""}return r}(e),r+=function(e){var r="";if(e["generator:method"]){switch(r+="Erzeugungsart: ",e["generator:method"]){case"combustion":r+="Verbrennung";break;case"thermal":r+="thermische Nutzung (z.B. Solarthermie)";break;case"pumping":r+="durch Pumpen (z.B. die Nutzung von Geothermie)";break;case"photovoltaic":r+="Photovoltaik";break;case"gasification":r+="Vergasung, danach Verbrennung";break;case"anaerobic_digestion":r+="Erzeugung von Biogas durch Vergärung";break;case"pyrolysis":r+="Pyrolyse, Aufspaltung durch hohe Temperaturen";break;case"fission":r+="Kernspaltung";break;case"fusion":r+="Kernfusion";break;default:r+="unbekannt "}r+=" "}return e.power_source&&(r+="Erzeugungsart: ","photovoltaic"===e.power_source?r+="Photovoltaik":r+="unbekannt ",r+=" "),e["generator:output:electricity"]&&(r+="elekt. Energieerzeugung: "+e["generator:output:electricity"]+" "),e["generator:output:heat"]&&(r+="therm. Energieerzeugung: "+e["generator:output:heat"]+" "),e["generator:output:cold"]&&(r+="therm. Energieerzeugung: "+e["generator:output:cold"]+" "),e["generator:output"]&&(r+="Nennleistung: "+e["generator:output"]+" "),e["generator:output:hot_air"]&&(r+="Art des Transportmediums: "+e["generator:output:hot_air"]+" "),e["generator:output:cold_water"]&&(r+="Art des Transportmediums: "+e["generator:output:cold_water"]+" "),e["generator:output:cold_air"]&&(r+="Art des Transportmediums: "+e["generator:output:cold_air"]+" "),e["generator:output:compressed_air"]&&(r+="Art des Transportmediums: "+e["generator:output:compressed_air"]+" "),e["generator:output:steam"]&&(r+="Art des Transportmediums: "+e["generator:output:steam"]+" "),e["generator:output:vacuum"]&&(r+="Art des Transportmediums: "+e["generator:output:vacuum"]+" "),e["generator:output:battery_charging"]&&(r+="Art des Transportmediums: "+e["generator:output:battery_charging"]+" "),"PWR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-1"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-2"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-3"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-4"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-5"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-6"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"PHWR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"GCR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"FBR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"RBMK-1000"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"RBMK-1500"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"VVER"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"CANDU"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"CPR-1000"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"EPR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"tokamak"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"stellarator"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"ICF"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"cold-fusion"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"wind_turbine"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="Generatortyp: Horizontal-Achsen Windenergieanlage "),"wind_turbine"===e["generator:method"]&&"vertical_turbine"===e["generator:type"]&&(r+="Generatortyp: Vertikalrotor "),"francis_turbine"===e["generator:type"]&&(r+="Generatortyp: Francis-Turbine "),"kaplan_turbine"===e["generator:type"]&&(r+="Generatortyp: Kaplan-Turbine "),"pelton_turbine"===e["generator:type"]&&(r+="Generatortyp: Pelton-Turbine "),"stream"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="Generatortyp: Gezeitenstromgenerator mit horizontaler Achse "),"stream"===e["generator:method"]&&"vertical_axis"===e["generator:type"]&&(r+="Generatortyp: Gezeitenstromgenerator mit vertikaler Achse "),"steam_turbine"===e["generator:type"]&&(r+="Generatortyp: Dampfturbine "),"heat_pump"===e["generator:type"]&&(r+="Generatortyp: Wärmepumpe "),"solar_thermal_collector"===e["generator:type"]&&(r+="Generatortyp: Sonnenkollektor "),"solar_photovoltaic_panel"===e["generator:type"]&&(r+="Generatortyp: Photovoltaic-System "),"steam_generator"===e["generator:type"]&&(r+="Generatortyp: Dampfgenerator "),"gas_turbine"===e["generator:type"]&&(r+="Generatortyp: Gasturbine "),"combined_cycle"===e["generator:type"]&&(r+="Generatortyp: Dampfgenerator "),"reciprocating_engine"===e["generator:type"]&&(r+="Generatortyp: Verbrennungsmotor/Blockheizkraftwerk "),r}(e),r+=d(e),r+=function(e){var r="";return"container"!==e.recycling_type&&"centre"!==e.recycling_type&&"recycling"!==e.amenity||("yes"===e["recycling:glass"]&&(r+="Altglascontainer"),"yes"===e["recycling:shoes"]&&(r+="Schuhentsorgung"),"yes"===e["recycling:cooking_oil"]&&(r+="Speise-Öl-Entsorgung"),"yes"===e["recycling:paper"]&&(r+="Papierentsorgung"),"yes"===e["recycling:engine_oil"]&&(r+="Öl-Entsorgung (Maschinen-, Alt-und Motoröl)"),"yes"===e["recycling:clothes"]&&(r+="Altkleidercontainer"),"yes"===e["recycling:car_batteries"]&&(r+="Auto-Batterien-Entsorgung"),"yes"===e["recycling:cans"]&&(r+="Blechdosenentsorgung"),"yes"===e["recycling:scrap_metal"]&&(r+="Altmetallentsorgung"),"yes"===e["recycling:plastic"]&&(r+="Plastikentsorgung"),"yes"===e["recycling:batterries"]&&(r+="Batterieentsorgung"),"yes"===e["recycling:plastic_bottles"]&&(r+="Plastikflaschenentsorgung"),"yes"===e["recycling:green_waste"]&&(r+="Grünabfälle"),"yes"===e["recycling:hardcore"]&&(r+="Bauschutt und Straßenmaterial Entsorgung")),r}(e),(r+=p(e))&&(r=" "+r),'"},c=r.fnContentAerodrome=function(e){var r="";return e.aerodrome&&("international"===e.aerodrome&&(r+="Flughafentype: internationaler Flugplatz "),"regional"===e.aerodrome&&(r+="Flughafentype: regionaler Flugplatz "),"gliding"===e.aerodrome&&(r+="Flughafentype: Segelflugplatz "),"private"===e.aerodrome&&(r+="Flughafentype: Privatflugplatz ")),e.iata&&(r+="IATA-Code: "+e.iata+" "),e.icao&&(r+="ICAO-Code: "+e.icao+" "),r},u=r.fnContentNatural=function(e){var r="";if((e.forest||e.wood)&&("broadleaved"!==e.leaf_type&&"deciduous"!==e.wood||(r+="Laubwald "),"needleleaved"!==e.leaf_type&&"coniferous"!==e.wood||(r+="Nadelwald "),"mixed"!==e.leaf_type&&"mixed"!==e.wood||(r+="Mischwald "),"leafless"===e.leaf_type&&(r+="Blattlose Vegetation "),"evergreen"===e.wood&&(r+="immergrün "),"palm"===e.wood&&(r+="Palmen "),"nipa_palm"===e.wood&&(r+="Nipapalmen "),"eucalypt"===e.wood&&(r+="Eukalypten "),"filao"!==e.wood&&"casuarina"!==e.wood||(r+="Kasuarinengewächse ")),"tree"===e.natural&&(e["genus:de"]||e["species:de"]||e.leaf_type&&("broadleaved"===e.leaf_type||"deciduous"===e.leaf_type||"broadleafed"===e.leaf_type?r+="Laubbaum ":r+="Nadelbaum "),e.genus&&(r+=e.genus+" "),e["genus:de"]&&(r+=e["genus:de"]+" "),e.species&&(r+=e.species+" "),e["species:de"]&&(r+=e["species:de"]+" "),"landmark"===e.denotation&&(r+="durch Größe und herausragender Position sich deutlich aus seinem Umfeld hervorhebender Baum. "),"natural_monument"!==e.denotation&&"yes"!==e.monument||(r+="alter, unter besonderem Schutz stehender Baum. ")),"manger"===e["feeding:type"]&&(r+="Futterbehälter: Futterraufe "),"automated"===e["feeding:type"]&&(r+="Automat "),e["feeding:for"])switch(e["feeding:for"]){case"sheep":r+="Tier: Schaaf ";break;case"horse":r+="Tier: Pferd ";break;case"cow":r+="Tier: Kuh ";break;case"rabbit":r+="Tier: Kaninchen ";break;case"bunny":r+="Tier: Hase ";break;case"cat":r+="Tier: Katze ";break;case"swan":r+="Tier: Schwan ";break;case"guinea pig":case"guinea pig":r+="Tier: Meerschweinchen ";break;case"donkey":r+="Tier: Esel ";break;case"squirrel":r+="Tier: Eichhörnchen ";break;case"pig":r+="Tier: Schwein ";break;case"deer":r+="Tier: Reh ";break;case"monkey":r+="Tier: Affe ";break;case"camel":r+="Tier: Kamel ";break;case"goat":r+="Tier: Ziege ";break;case"hamster":r+="Tier: Hamster ";break;case"alpaca":r+="Tier: Alpaka ";break;default:r+="Tiere: nicht bekannt "}if(e["feeding:fodder"])switch(e["feeding:fodder"]){case"hay":r+="Füttern mit: Heu";break;case"grain":r+="Füttern mit: Getreide";break;case"corn":r+="Füttern mit: Korn*br>";break;default:r+="Füttern mit: nicht bekannt"}return"volcano"===e.natural&&"active"===e.status&&(r+="Aktiver Vulkan "),"volcano"===e.natural&&"dormant"===e.status&&(r+="Ruhender Vulkan "),"volcano"===e.natural&&"extinct"===e.status&&(r+="Erloschener Vulkan "),"volcano"===e.natural&&"stratovolcano"===e.type&&(r+="Vulkantyp:Schichtvulkan "),"volcano"===e.natural&&"shield"===e.type&&(r+="Vulkantyp:Schildvulkan "),"volcano"===e.natural&&"scoria"===e.type&&(r+="Vulkantyp:Schlacken- und Aschenkegel "),r},p=r.fnContentProtectedArea=function(e){var r="",t="";return"protected_area"===e.boundary&&(e.protect_class&&(t=e.protect_class),e.protect_id&&(t=e.protect_id),"1"===t&&(r="Beschreibung: Strenges Naturreservat, Wildnisgebiet "),"2"===t&&(r="Beschreibung: Nationalpark "),"3"===t&&(r="Beschreibung: Naturmonument "),"4"===t&&(r="Beschreibung: Biotop/Artenschutzgebiet mit Management "),"5"===t&&(r="Beschreibung: Geschützte Landschaft/Geschütztes marines Gebiet "),"6"===t&&(r="Beschreibung: Ressourcenschutzgebiet mit Management "),"7"===t&&(r="Beschreibung: Lokal geschützte Bereiche "),"97"===t&&(r="Beschreibung: Geschützt oder ausgezeichnet durch Vereinbarungen auf kontinentaler Ebene "),"98"===t&&(r="Beschreibung: Geschützt oder ausgezeichnet durch zwischenstaatliche- oder internationale Vereinbarungen "),"99"===t&&(r="andere "),"21"===t&&(r="Beschreibung: Gemeindebefinden (heilige Orte, assoziatice Orte) "),"22"===t&&(r="Beschreibung: Kulturelle Werte (Kulturgüter, historisches Erbe, Denkmalschutz) "),"23"===t&&(r="Beschreibung: Schutz zu Gundsten der Wirtschaft "),"24"===t&&(r="Beschreibung: Politische Schutzgebiete "),"25"===t&&(r="Beschreibung: Militärische Schutzgebiete "),"26"===t&&(r="Beschreibung: Historische Schutzgebiete "),"29"===t&&(r="Beschreibung: Weitere gesellschaftliche Schutzgebiete "),"11"===t&&(r="Beschreibung: Bodenschutz (Vorgabe zum Fruchtbarkeitserhalt und Erosionsschutz) "),"12"===t&&(r="Beschreibung: Wasserschutzgebiet (Trinkwasserschutzgebiet, Heilquellenschutzgebiet,..) "),"13"===t&&(r="Beschreibung: Klima und Luft (Kaltluftenstehung/Frischluftversorgung, Immissionsschutz,..) "),"14"===t&&(r="Beschreibung: Artenschutzgebiet (Angelverbot, Fischereischutzzone, Jagdschutzgebiet, Vogelschutzgebiet,..) "),"15"===t&&(r='Beschreibung: "Standortausstattung": Retentionsraum (gesetzlich geschütztes Überschwemmungsgebiet) '),"16"===t&&(r="Beschreibung: Dauerhafte Gefahrenbereiche (Lebensschutz, Bodenbewegungsgebiet,..) "),"19"===t&&(r="Beschreibung: Weitere nationale Gebiete ")),r},b=r.fnContentLanduse=function(e){var r="";return"quarry"===e.landuse&&e.resource&&(r+="Resource: "+e.resource+" "),"open_stable"===e["animal_keeping:type"]&&(r+="Offenstall "),"field_shelter"===e["animal_keeping:type"]&&(r+="Weide mit Unterstand "),"paddock"===e["animal_keeping:type"]&&(r+="Paddock "),e.animal_keeping&&(r+="Tiere: Perde "),r},d=r.fnMessstation=function(e){var r="";return"yes"===e["monitoring:water_level"]&&(r+="Pegelstand "),"yes"===e["monitoring:seismic_activity"]&&(r+="seismische Aktivitäten "),"yes"===e["monitoring:tide_gauge"]&&(r+="Tidestand "),"yes"===e["monitoring:weather"]&&(r+="Wetterdaten "),"yes"===e["monitoring:air_quality"]&&(r+="Luftqualität "),r},h=r.fnContentRoute=function(e){var r="";return e.route&&("yes"===e.roundtrip&&(r+="Rundweg "),e.length&&(r+="Länge/Distanz: "+e.length+" "),e.distance&&(r+="Länge/Distanz: "+e.distance+" "),e.symbol&&(r+="Symbol: "+e.symbol+" ")),r},m=r.fnContentPetrol=function(e){var r="";return"fuel"===e.amenity&&("yes"===e["fuel:biodiesel"]&&(r+="Biodiesel "),"yes"===e["fuel:e85"]&&(r+="Ethanol "),"yes"===e["fuel:e10"]&&(r+="E10 "),"yes"===e["fuel:lpg"]&&(r+="Autogas "),"yes"===e["fuel:cng"]&&(r+="Erdgas "),"diesel"===e.fuel&&(r+="Diesel "),"lpg"===e.fuel&&(r+="Autogas "),"yes"===e["fuel:octane_95"]&&(r+="Super Bleifrei "),"yes"===e["fuel:octane_98"]&&(r+="Super Plus "),"yes"===e["fuel:octane_100"]&&(r+="V-Power Racing "),"yes"===e["fuel:octane_102"]&&(r+="Ultimate "),"yes"===e["fuel:diesel"]&&(r+="Diesel "),"yes"===e["fuel:electricity"]&&(r+="Ladestation / Stromtankstelle ")),r},g=(r.fnContentHistoric=function(e){var r="";if("archaeological_site"===e.historic&&e.site_type)switch(e.site_type){case"megalith":r+="Megalith ";break;case"bigstone":r+="Findling ";break;case"tumulus":r+="Hügelgrab ";break;case"fortification":r+="historischer Graben / Wall ";break;default:r+="unbekannt "}return r},r.fnContentBarriers=function(e,r){var t="";return"wall"!==e.barrier&&"bollard"!==e.barrier||e.material&&(t+="Material: "+o(e.material)+" "),t}),f=r.fnContentTourism=function(e){var r="";return"camp_site"===e.tourism&&("yes"===e.dog&&(r+="Hunde erlaubt "),"no"===e.dog&&(r+="Hunde nicht erlaubt "),e.stars&&(r+=e.stars+"Sterne "),e.caravans&&(r+="Wohnmobilstellplätze "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="Feuerstellen vorhanden "),"yes"===e.washing_machine&&(r+="Waschmaschinen "),"yes"===e.dryer&&(r+="Trockner "),"yes"===e.group_only&&(r+="Nutzung nur durch Gruppen "),"reception"===e.camp_site&&(r+="Reception vorhanden ")),"information"===e.tourism&&"map"===e.information&&("topo"===e.map_type&&(r+="Topografische Karte"),"street"===e.map_type&&(r+="Straßenkarte"),"scheme"===e.map_type&&(r+="Schematische Karte"),"toposcope"===e.map_type&&(r+="Schematische Karte")),"information"===e.tourism&&"map"===e.information&&("site"===e.map_size&&(r+="Karte einer Anlage"),"city"===e.map_size&&(r+="Stadtplan"),"region"===e.map_size&&(r+="Karte der Region")),"geology"===e.board_type&&(r+="Geologische Informationen "),"history"===e.board_type&&(r+="Historische Informationen "),"nature"===e.board_type&&(r+="Informationen über Natur "),"notice"===e.board_type&&(r+="Allgemeine Information "),"plants"===e.board_type&&(r+="Informationen über Pflanzen "),"wildlife"===e.board_type&&(r+="Informationen über Wild "),r},y=r.fnContentAmenity=function(e){var r="";if("boat_sharing"===e.amenity&&(r+=e.boattype+" "),"embassy"===e.amenity&&(r+=e.country+" "),e.vending)switch(e.vending){case"admission_tickets":r+="Tickets ";break;case"animal_feed":r+="Tierfutter ";break;case"books":r+="Bücher ";break;case"candles":r+="Kerzen ";break;case"cigarettes":r+="Zigaretten ";break;case"condoms":r+="Kondome ";break;case"drinks":r+="Getränke ";break;case"first_aid":r+="Erste Hilfe Artikel ";break;case"fishing_tackle":r+="Angelequipment ";break;case"flowers":r+="Blumen ";break;case"ice_cream":r+="Eis ";break;case"laundry_detergent":r+="Waschmittel ";break;case"newspapers":r+="Zeitung ";break;case"SIM_cards":r+="SIM-Karten ";break;case"sweets":r+="Süßigkeiten ";break;case"parcel_pickup":r+="Paketstation ";break;case"ice_cubes":r+="Eiswürfel ";break;case"public_transport_tickets":r+="Tickets für öffentliche Verkehrsmittel ";break;case"parking_ticket":r+="Parkticket ";break;case"sex_toys":r+="Sexspielzeug ";break;case"stamps":r+="Briefmarken ";break;case"toll":r+="Mauttickets ";break;case"umbrellas":r+="Regenschirme ";break;default:r+="Inhalt unbekannt "}return"post_box"===e.amenity&&(e.collection_times&&(r+="Leerungszeiten: "+e.collection_times+" "),"yes"===e.drive_through&&(r+="Vom Auto aus erreichbar. ")),r},_=r.fnContentStorage=function(e){var r="";if("storage_tank"===e.man_made){if(e.content){switch(t=e.content){case"fuel":t="Diesel";break;case"oil":t="Öl";break;case"gas":t="Gas";break;case"slurry":t="Gülle";break;case"cement":t="Zement";break;case"water":t="Wasser";break;case"manure":t="Dünger";break;case"silage":t="Silage"}r+="Inhalt: "+t+" "}if(e.contents){var t;switch(t=e.contents){case"fuel":t="Diesel";break;case"oil":t="Öl";break;case"gas":t="Gas";break;case"slurry":t="Gülle";break;case"cement":t="Zement";break;case"water":t="Wasser";break;case"manure":t="Dünger";break;case"silage":t="Silage"}r+="Inhalt: "+t+" "}}return e.storage&&("gas"===e.storage&&(r+="Inhalt: Gas "),"oil"===e.storage&&(r+="Inhalt: Öl ")),r},k=r.fnContentInformationCity=function(e){var r="";if(e["name:de"]&&(r+="deutscher Name: "+e["name:de"]+" "),e.population>=1e4)if(e.population=""+e.population,e.population.length>3){var t=e.population.length%3,a=t>0?e.population.substring(0,t):"";for(i=0;i "}else r+="Einwohnerzahl "+e.population+" ";return e.population<=1e4&&(r+="Einwohnerzahl: "+e.population+" "),r},v=r.fnContentEmergency=function(e){var r="";if(e.lifeboat&&("inshore"===e.lifeboat?r+="Einsatzgebiet: Inshore (Binnen) ":"offshore"===e.lifeboat&&(r+="Einsatzgebiet: Offshore (Buten) ")),e["lifeboat:class"]&&(r+="Bootstyp: "+e["lifeboat:class"]+" "),e["siren:type"]){switch(t=e["siren:type"]){case"mechanical":t="mechanisch";break;case"electronic":t="elektronisch";break;case"pneumatic":t="pneumatisch";break;case"electromechanic":t="elektromechanisch"}r+="Typ: "+t+" "}if(e["siren:purpose"]){var t;switch(t=e["siren:purpose"]){case"air_raid":t="Luftschutz";break;case"tornado":t="Tornado";break;case"storm":t="Sturm";break;case"civil_defense":t="Bevölkerungsschutz";break;case"fire":t="Feuer"}r+="Nutzung: "+t+" "}return e["siren:model"]&&(r+="Model: "+e["siren:model"]+" "),e["siren:range"]&&(r+="Hörweite: "+e["siren:range"]+" "),r},w=r.fnContentCuisine=function(e){var r="";if(e.cuisine){var t="";"supermarket"!==e.shop&&"convenience"!==e.shop&&"deli"!==e.shop&&"organic"!==e.shop||"restaurant"===e.amenity?r+="Küche: ":r+="Spezialitäten: ","arabic"===e.cuisine&&(t+="arabisch "),"italian"===e.cuisine&&(t+=" italienisch "),"international"===e.cuisine&&(t+=" international "),"regional"===e.cuisine&&(t+=" regional "),"chinese"===e.cuisine&&(t+=" chinesisch "),"greek"===e.cuisine&&(t+=" griechisch "),"african"===e.cuisine&&(t+=" afrikanisch "),"german"===e.cuisine&&(t+=" deutsch "),"mexican"===e.cuisine&&(t+=" mexikanisch "),"french"===e.cuisine&&(t+=" französisch "),"indian"===e.cuisine&&(t+=" indisch "),"iranian"===e.cuisine&&(t+=" iranisch "),"lebanese"===e.cuisine&&(t+=" libanesisch "),"thai"===e.cuisine&&(t+=" thailändisch "),"balkan"===e.cuisine&&(t+=" balkan "),"turkish"===e.cuisine&&(t+=" türkisch "),"bavarian"===e.cuisine&&(t+=" bayrisch "),"czech"===e.cuisine&&(t+=" tschechisch "),"portuguese"===e.cuisine&&(t+=" portugiesisch "),"spanish"===e.cuisine&&(t+=" spanisch "),"japanese"===e.cuisine&&(t+=" japanisch "),"fish"===e.cuisine&&(t+=" Fisch "),"brazilian"===e.cuisine&&(t+=" brasilianisch "),"asian"===e.cuisine&&(t+=" asiatisch "),"mediterranean"===e.cuisine&&(t+=" mediterran "),"seafood"===e.cuisine&&(t+=" Meeresfrüchte "),"ice_cream"===e.cuisine&&(t+=" Eiscrem "),"burger"===e.cuisine&&(t+=" Fast Food "),"frozen_yogurt"===e.cuisine&&(t+=" Frozen Yogurt "),""===t&&(t=e.cuisine+" "),r+=t}return r},S=r.fnContentShipping=function(e){var r="";if((e.harbour="yes")&&("yes"===e["access:tide"]&&(r+="Zufahrtsbeschränkung durch Tide"),"yes"===e["access:swell"]&&(r+="Zufahrtsbeschränkung durch Schwell"),"yes"===e["access:ice"]&&(r+="Zufahrtsbeschränkung durch Eis"),e.vhf_channel&&(r+="UKW-Kanal: "+e.vhf_channel+""),e.mmsi&&(r+="MMSI-Nummer: "+e.mmsi+""),e["harbour:information"]&&(r+="Information :"+e["harbour:information"]+"")),"yes"===e.motorboat&&(r+="Fahren mit Motor erlaubt"),"no"===e.motorboat&&(r+="Fahren mit Motor nicht erlaubt"),e.CEMT&&(r+="CEMT: "+e.CEMT+""),"yes"===e.intermittent&&(r+="Fluss zeitweise ausgetrocknet"),"yes"===e.tidal&&(r+="Gezeiten beeinflussen die Strömung"),e.draft&&(r+="Fahrwassertiefe: "+e.draft+" m"),"slipway"!==e.leisure&&"slipway"!==e.harbour||("hand"===e.operating&&(r+="Funktionsweise: Handbetrieb, Slipwagen "),"car"===e.operating&&(r+="Funktionsweise: mit Auto, Bootsanhänger "),"cable_winch"===e.operating&&(r+="Funktionsweise: Seilwinde "),"travellift"===e.operating&&(r+="Funktionsweise: Travellift "),"crane"===e.man_made&&(r+="mit Kran ",e["crane:maxload"]&&(r+="Maximale Last: "+e["crane:maxload"]+" "),e["ship:maxdraft"]&&(r+="Maximaler Tiefgang: "+e["ship:maxdraft"]+" "),e["ship:maxlength"]&&(r+="Maximale Bootslänge: "+e["ship:maxlength"]+" ")),"yes"===e.vehicle&&(r+="Mit Fahrzeug erreichbar ")),r+=function(e){var r="";return"wreck"===e.historic&&(e["wreck:date_sunk"]&&(r+="Gesunken am: "+e["wreck:date_sunk"]+" "),e["wreck:depth"]&&(r+="Tiefe: "+e["wreck:depth"]+" "),e["wreck:clearance"]&&(r+="Freiraum: "+e["wreck:clearance"]+" "),e["wreck:date_commissioned"]&&(r+="Anerkannt seit: "+e["wreck:date_commissioned"]+" "),e["wreck:gross_tonnage"]&&(r+="Gewicht: "+e["wreck:gross_tonnage"]+" "),e["wreck:length"]&&(r+="Länge: "+e["wreck:length"]+" "),e["wreck:width"]&&(r+="Breite: "+e["wreck:width"]+" "),e["wreck:cargo"]&&("timber"===e["wreck:cargo"]?r+="Ladung: Holz ":"coal"===e["wreck:cargo"]?r+="Ladung: Kohle ":r+="Ladung: "+e["wreck:cargo"]+" "),"yes"===e["wreck:visible_at_low_tide"]&&(r+="Sichtbar bei Niedrigwasser: Ja "),"no"===e["wreck:visible_at_low_tide"]&&(r+="Sichtbar bei Niedrigwasser: Nein "),"yes"===e["wreck:visible_at_high_tide"]&&(r+="Sichtbar bei Hochwasser: Ja "),"no"===e["wreck:visible_at_high_tide"]&&(r+="Sichtbar bei Hochwasser: Nein "),"yes"===e.access&&(r+="Zutritt möglich "),"no"===e.access&&(r+="Zutritt nicht möglich "),"permit_required"===e.access&&(r+="Zutritt nur mit Genehmigung ")),r}(e),"ferry"===e.route||"ferry_terminal"===e.amenity||"yes"===e.ferry){var t=e.duration;""!==t&&"undefined"!==t&&null!=t&&(r+="Fahrtzeit in Std. : "+t+" "),"yes"===e.motorcar&&(r+="Autos erlaubt "),"no"===e.motorcar&&(r+="Autos nicht erlaubt "),"no"===e.motor_vehicle&&(r+="Fahrzeuge nicht erlaubt "),"yes"===e.motor_vehicle&&(r+="Fahrzeuge erlaubt "),"yes"===e.vehicle&&(r+="Fahrzeuge erlaubt "),"no"===e.vehicle&&(r+="Keine Fahrzeuge "),"no"===e.bicycle&&(r+="Keine Fahrräder "),"no"===e.bicycle&&(r+="Fahrräder erlaubt "),"yes"===e.hgv&&(r+="LKW erlaubt "),"no"===e.hgv&&(r+="LKW nicht erlaubt "),"yes"===e.foot&&(r+="Fussgänger erlaubt "),"no"===e.foot&&(r+="Fussgänger nicht erlaubt "),"yes"===e.bicycle&&(r+="Fahrradfahrer erlaubt "),"no"===e.bicycle&&(r+="Fahrradfahrer nicht erlaubt "),"yes"===e["ferry:cable"]&&(r+="Seilfähre ")}if(e["seamark:light:1:colour"]){switch(a=e["seamark:light:1:colour"]){case"white":a="Weiß";break;case"red":a="Rot";break;case"green":a="Grün";break;case"blue":a="Blau";break;case"yellow":a="Gelb";break;case"amber":a="Bernsteinfarben"}r+="Farbe des Lichts: "+a+" "}if("lighthouse"===e.man_made&&(e["seamark:light:1:character"]&&(r+="Rhytmus des Lichtes: "+e["seamark:light:1:character"]+" "),e["seamark:light:1:period"]&&(r+="Periode: "+e["seamark:light:1:period"]+" "),e["seamark:light:1:height"]&&(r+="Höhe: "+e["seamark:light:1:height"]+" m "),e["seamark:light:1:range"]&&(r+="Reichweite: "+e["seamark:light:1:range"]+" sm ")),e["seamark:light:colour"]){var a;switch(a=e["seamark:light:colour"]){case"white":a="Weiß";break;case"red":a="Rot";break;case"green":a="Grün";break;case"blue":a="Blau";break;case"yellow":a="Gelb";break;case"amber":a="Bernsteinfarben"}r+="Farbe des Lichts: "+a+" "}return"lighthouse"===e.man_made&&(e["seamark:light:character"]&&(r+="Rhytmus des Lichtes: "+e["seamark:light:character"]+" "),e["seamark:light:height"]&&(r+="Höhe: "+e["seamark:light:height"]+" m "),e["seamark:light:range"]&&(r+="Reichweite: "+e["seamark:light:range"]+" sm "),e["seamark:light:period"]&&(r+="Periode: "+e["seamark:light:period"]+" ")),r},C=r.fnContentHydrants=function(e){var r="";if("fire_hydrant"===e.emergency){var t=e["fire_hydrant:count"];"undefined"!==t&&null!=t&&""!==t&&(r+="Anzahl: "+t+" ");var a=e["fire_hydrant:diameter"];"undefined"!==a&&null!=a&&""!==a&&(r+="Rohrdurchmesser: "+a+" mm ");var o=e["fire_hydrant:pressure"];"undefined"!==o&&null!=o&&""!==o&&(r+="suction"===o?"Druck in bar / Saugleitung: Saugleitung ":"Druck in bar / Saugleitung: "+o+" ");var n=e["fire_hydrant:position"];"undefined"!==n&&null!=n&&""!==n&&("lane"===n?r+="Position: Fahrbahn ":"parking_lot"===n?r+="Position: Parkbucht ":"sidewalk"===n?r+="Position: Bürgersteig ":"green"===n&&(r+="Position: Wiese "));var s=e.water_volume;"undefined"!==s&&null!=s&&""!==s&&(r+="Volumen: "+s+" ");var i=e["fire_hydrant:awwa_class"];if("undefined"!==i&&null!=i&&""!==i)r+="AWWA Klasse: "+i+" ";else{var l=e.flow_rate;"undefined"!==l&&null!=l&&""!==l&&(r+="Durchfluss: "+l+" ")}var c=e.water_source;"undefined"!==c&&null!=c&&""!==c&&"main"!==c&&(r+="Wasserquelle: "+c+" ");var u=e["couplings:type"];"undefined"!==u&&null!=u&&""!==u&&(r+="Kopplungstyp: "+u+" ");var p=e["couplings:diameter"];"undefined"!==p&&null!=p&&""!==p&&(r+="Kopplungsdurchmesser: "+p+" ");var b=e["pillar:type"];"dry_barrel"===b&&(r+="Typ Überflurhydrant: "+b+" "),"fire_hydrant"===e["disused:emergency"]&&(r+="Aktuell unbrauchbar."),""===r&&(r="Keine Details vorhanden.")}return r},R=r.fnContentStreetsTraffic=function(e){var r="";if("yes"===e["red_turn:right"]&&(r+="Ampel mit Grünpfeil "),"no"===e["red_turn:right"]&&(r+="Ampel ohne Grünpfeil "),e.bridge&&(e.height&&(r+="Höhe über dem Grund: "+e.height+" m "),e.length&&(r+="Länge der Brücke: "+e.length+" m "),e.bridge_ref&&(r+="Bauwerksnummer: "+e.bridge_ref+" "),e.start_date&&(r+="Baujahr: "+e.start_date+";"),e.maxweight&&(r+="Tragfähigkeit: "+e.maxweight+" t")),e.highway&&"yes"===e.toll&&(r+="Mautpflichtige Straße "),"yes"===e["toll:hgv"]&&(r+="Mautpflichtige Straße für LKWs "),e.surface)switch(r+="Oberfläche: ",e.surface){case"grass":r+="Gras ";break;case"paved":r+="versiegelt ";break;case"asphalt":r+="Asphalt ";break;case"cobblestone":r+="Naturstein unbehauen ";break;case"sett":r+="behauenes Steinpflaster ";break;case"concrete":r+="Beton ";break;case"unpaved":r+="ohne Straßenbelag ";break;case"paving_stones":r+="Pflastersteine ";break;case"compacted":r+="verdichtete Deckschicht aus Natursteinmaterial ";break;case"dirt":r+="unbefestigt ";break;case"fine_gravel":r+="Splitt/Kies ";break;case"grass_paver":r+="Rasengittersteine ";break;case"gravel":r+="Schotter ";break;case"earth":case"ground":r+="naturbelassene Oberfläche ";break;case"metal":r+="Metall ";break;case"mud":r+="Matsch, Morast ";break;case"sand":r+="Sand ";break;case"wood":r+="Holz ";break;case"tartan":r+="Tartan- oder Kunststoffbelag ";break;case"artificial_turf":r+="Kunstrasen ";break;case"clay":r+="Ascheplatz ";break;default:r+="unbekannt "}if("grade1"===e.tracktype&&(r+="Wegbeschaffenheit: Befestigter Weg (Asphalt, Beton oder Pflastersteine) "),"grade2"===e.tracktype&&(r+="Wegbeschaffenheit: Befestigter Weg (Schotter oder andere verdichtete Materialien) "),"grade3"===e.tracktype&&(r+="Wegbeschaffenheit: Befestigter oder ausgebesserter Weg, der harten und weichen Untergrund enthält (z. B. Feinschotter-, Sand- oder Erdweg) "),"grade4"===e.tracktype&&(r+="Wegbeschaffenheit: Unbefestigter Weg, hauptsächlich weiche Materialien, Pflanzenwuchs entlang der Spurmitte (z. B. Gras-, Sand- oder Erdweg) "),"grade5"===e.tracktype&&(r+="Wegbeschaffenheit: Unbefestigter Weg, Oberfläche besteht aus Sand, Erde etc., oft nur Abdruck in Gras, teilweise schwer von umgebendem Gelände unterscheidbar "),"yes"===e.motorcycle&&(r+=" mit dem Auto befahrbar. "),"no"===e.motorcycle&&(r+=" keine motorisierten Fahrzeuge zugelassen. "),"excellent"===e.trail_visibility&&(r+="Wegerkennbarkeit: Gut ausgewiesener Weg "),"good"===e.trail_visibility&&(r+="Wegerkennbarkeit: Wegmarkierung sichbar, aber manchmal etwas schwer zu finden "),"intermediate"===e.trail_visibility&&(r+="Wegerkennbarkeit: Weg nicht durchgegend sichbar "),"bad"===e.trail_visibility&&(r+="Wegerkennbarkeit: Wegspur ist kaum zu erkennen "),"horrible"===e.trail_visibility&&(r+="Wegerkennbarkeit: Oft kein Weg vorhanden "),"no"===e.trail_visibility&&(r+="Wegerkennbarkeit: Meistens keine Wegspur zu erkennen "),"hiking"===e.sac_scale&&(r+="Weg: Weg gut gebahnt. (Schwierigskeitstyp: 1)"),"mountain_hiking"===e.sac_scale&&(r+="Weg: Durchgehend gut ersichtlicher und gut begehbarer Weg (Schwierigskeitstyp: 2)"),"demanding_mountain_hiking"===e.sac_scale&&(r+="Weg: Heikle Stellen können mit Seilen oder Ketten gesichert sein. Leitern sind möglich. Eventuell sind die Hände fürs Gleichgewicht nötig. (Schwierigskeitstyp: 3)"),"alphine_hiking"===e.sac_scale&&(r+="Weg: Wegspur kaum vorhanden. An gewissen Stellen benötigt man die Hände zum weiterkommen (Schwierigskeitstyp: 4)"),"demanding_alphine_hiking"===e.sac_scale&&(r+="Weg: Oft weglos, einzelne einfache Kletterstellen bis II. (Schwierigskeitstyp: 5)"),"difficult_alpine_hiking"===e.sac_scale&&(r+="Weg: Schwieriges Alpinenwandern,Kletterstellen bis II. Schwierigskeitstyp: 6"),e["mtb:name"]&&(r+="Fahrradstrecke :"+e["mtb:name"]+""),"0"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Keine besondere Schwierigkeiten.Wegbeschaffenheit: fester und griffiger Untergrund.Hindernisse: Keine HindernisseGefälle: Leicht bis mäßigKurven: weitFahrtechnik: keine besonderes fahrtechnisches Können nötig"),"1"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der Weg enthält flache Wurzeln und kleinere Steine. Häufig auch vereizelte Wasserrinnen und ErosionsschädenWegbeschaffenheit: loserer Untergrund möglich, kleine Wurzeln und SteineHindernisse: kleine Hindernisse, Wasserrinnen, ErosionsschädenGefälle: bis zu 40%Kurven: engFahrtechnik: Fahrtechnische Grundkentnisse nötig. Hindernisse können überrollt werden"),"2"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der Weg enthält größere Wurzeln und Steine. Häufig auch vereizelte Wasserrinnen und ErosionsschädenWegbeschaffenheit: Untergrund meist nicht verfestigt, größere Wurzeln und SteineHindernisse: flache Absätze und TreppenGefälle: bis zu 70%Kurven: leichte SpitzkehrenFahrtechnik: Fortgeschrittene Fahrtechnik nötig."),"3"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Auf dem Weg findet man verblockte Singletrails mit vielen größeren Felsbrocken und/oder WurzelpassagenWegbeschaffenheit: verblockt, viele große Wurzeln/Felsen - rutschiger Untergrund, loses GeröllHindernisse: hohe AbsätzeGefälle: 70% oder mehrKurven: enge SpitzkehrenFahrtechnik: Sehr gute Bike-Beherrschung nötig."),"4"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Auf dem Weg sind sehr steile und stark verblockte Singletrails mit großen Felsbrocken und/oder anspruchsvollen Wurzelpassagen, dazwischen häufig loses Geröll und extreme SteilrampenWegbeschaffenheit: verblockt, viele große Wurzeln/Felsen - rutschiger Untergrund, loses GeröllHindernisse: Steilrampen, kaum fahrbare AbsätzeGefälle: 70% oder mehrKurven: Ösenartige SpitzkehrenFahrtechnik: Perfekte Bike-Beherrschung mit Trial-Techniken nötig."),"5"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der weg wird charakterisiert durch blockartiges Gelände mit Gegenanstiegen, Geröllfeldern und Erdrutschen, ösenartigen Spitzkehren, mehreren hohen, direkt aufeinanderfolgenden Absätzen und Hindernissen wie umgefallenen BäumenWegbeschaffenheit: verblockt mit Gegenanstiegen / rutschiger Untergrund, loses Geröll / der Weg ist eher ein WandersteigHindernisse: Steilrampen, kaum fahrbare AbsätzeGefälle: 70% oder mehrKurven: Ösenartige Spitzkehren mit HindernissenFahrtechnik: excellente Bike-Beherrschung spezieller Trial-Techniken nötig."),"6"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der weg ist hochanspruchsvoll, und selbst für Profis und Trial-Fahrer nicht passierbarWegbeschaffenheit: Großteils nur noch kletterbarHindernisse: Absätze > 2 m, Leitern, Trittstufen, Kletterstellen bei denen man beide Hände braucht.Gefälle: 100% oder mehrKurven: - Fahrtechnik: hier reicht auch die beste Fahrtechnik nicht mehr"),"10"===e.maxspeed&&(r+="Vekehrsberühigter Bereich. Hier gilt eine maximale Fahrgeschwindigkeit von 10 Km/h sowie die Regel rechts vor links."),"30"===e.maxspeed&&(r+="Vekehrsberühigter Bereich. Hier gilt rechts vor links sowie eine maximale Geschwindigkeit von 30 Km/h"),"50"===e.maxspeed&&(r+="Maximal erlaubte Geschwindigkeit von 50 Km/h darf nicht überschritten werden "),"70"===e.maxspeed&&(r+="Maximal erlaubte Geschwindigkeit von 50 Km/h darf nicht überschritten werden "),"80"===e.maxspeed&&(r+="Maximale Geschwindigkeit von 80 Km/h darf nicht überschritten werden."),"100"===e.maxspeed&&(r+="Maximale Geschwindigkeit von 100 Km/h darf nicht überschritten werden."),"no"===e.overtaking&&(r+="Überholverbot, Fahrzeuge dürfen nicht überholen !"),"yes"===e.noexit&&(r+="Die Straße endet hier, es handelt sich um eine Sackgasse"),"yes"===e.oneway&&(r+="Es handelt sich hier um eine Einbahnstraße, sie dürfen diese Straße nur in eine Richtung befahren"),"designated"===e.priority_road&&(r+="Es handelt sich hierbei um eine Vorfahrtsstraße, derjenige, der sich auf dieser befindet, hat gegenüber anderen Fahrzeugen die Vorfahrt!"),"end"===e.priority_road&&(r+="Die Vorfahrtsstraße endet hier und die Regelung wird aufgehoben"),"emergency_bay"===e.highway&&(r+="Hier befindet sich eine Bucht die nur in Notfällen zur Benuzung zur Verfügung steht"),"yes"===e.traffic_calming&&(r+="Verkehrsberuhigter Bereich"),"bump"===e.traffic_calming&&(r+="Kurze Bodenwelle"),"chicane"===e.traffic_calming&&(r+="Zu umfahrendenes Hinderniss"),"choker"===e.traffic_calming&&(r+="Fahrbahnverengung, zu umfahrende Hindernisse möglich"),"cushion"===e.traffic_calming&&(r+="Bodenwelle mit Lücken aus mehreren rechteckigen Huckeln"),"hump"===e.traffic_calming&&(r+="vergleichbare Bodenwelle mit etwar einer Länge von 2-4M"),"island"===e.traffic_calming&&(r+="Eine Verkehrsinsel"),"rumble_strip"===e.traffic_calming&&(r+="Holperstreifen"),"table"===e.traffic_calming&&(r+="lange Bodenwellen mit flachen Mittelstück"),"parking"===e.amenity){"yes"===e.fee&&(r+="kostenpflichtig ");var t=e["capacity:women"];if(""!==t&&"no"!==t&&null!=t){var a="unbekannt";"yes"!==t&&(a=t),r+="Frauenparkplätze (Anzahl: "+a+") "}}return e.park_ride&&("bus"===e.park_ride&&(r+="Busanbindung "),"tram"===e.park_ride&&(r+="Bahnanbindung "),"unknown"===e.park_ride&&(r+="Verkehrsmittel unbekannt ")),e["railway:position"]&&(r+="Streckenkilometer Position: "+e["railway:position"]+" "),e.uic_ref&&(r+="UIC: "+e.uic_ref+" "),r},E=r.fnContentSports=function(e){var r="";return"9pin"===e.sport&&(r+="Mögliche Sportart: Kegeln "),"10pin"===e.sport&&(r+="Mögliche Sportart: Bowling "),"american_football"===e.sport&&(r+="Mögliche Sportart: American Football "),"aikido"===e.sport&&(r+="Mögliche Sportart: Aikido "),"archery"===e.sport&&(r+="Mögliche Sportart: Bogenschießen "),"athletics"===e.sport&&(r+="Mögliche Sportart: Leichtathletik "),"australian_football"===e.sport&&(r+="Mögliche Sportart: Australian Football "),"base"===e.sport&&(r+="Mögliche Sportart: Objektspringen "),"badminton"===e.sport&&(r+="Mögliche Sportart: Badminton "),"baseball"===e.sport&&(r+="Mögliche Sportart: Baseball "),"basketball"===e.sport&&(r+="Mögliche Sportart: Basketball "),"beachvolleyball"===e.sport&&(r+="Mögliche Sportart: Beachvolleyball "),"bmx"===e.sport&&(r+="Mögliche Sportart: BMX "),"boules"===e.sport&&(r+="Mögliche Sportart: Boccia "),"boule"===e.sport&&(r+="Mögliche Sportart: Boccia "),"bowls"===e.sport&&(r+="Mögliche Sportart: Bowls "),"boxing"===e.sport&&(r+="Mögliche Sportart: Boxen "),"canadian_football"===e.sport&&(r+="Mögliche Sportart: Canadian Football "),"canoe"===e.sport&&(r+="Mögliche Sportart: Paddeln "),"chess"===e.sport&&(r+="Mögliche Sportart: Schach "),"cliff_diving"===e.sport&&(r+="Mögliche Sportart: Klippenspringen "),"climbing"===e.sport&&(r+="Mögliche Sportart: Klettern "),"climbing_adventure"===e.sport&&(r+="Mögliche Sportart: Klettern "),"cricket"===e.sport&&(r+="Mögliche Sportart: Cricket "),"cricket_nets"===e.sport&&(r+="Mögliche Sportart: Cricket Netz "),"croquet"===e.sport&&(r+="Mögliche Sportart: Croquet "),"curling"===e.sport&&(r+="Mögliche Sportart: Curling "),"cycling"===e.sport&&(r+="Mögliche Sportart: Radrennen, Radsport "),"dog_racing"===e.sport&&(r+="Mögliche Sportart: Hunderennen "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),"fencing"===e.sport&&(r+="Mögliche Sportart: Fechten "),"equestrian"===e.sport&&(r+="Mögliche Sportart: Reiten "),"football"===e.sport&&(r+="Mögliche Sportart: American Football "),"free_flying"===e.sport&&(r+="Mögliche Sportart: Freeflying "),"gaelic_games"===e.sport&&(r+="Mögliche Sportart: Gaelic games "),"golf"===e.sport&&(r+="Mögliche Sportart: Golf "),"gymnastics"===e.sport&&(r+="Mögliche Sportart: Gymnastik "),"hockey"===e.sport&&(r+="Mögliche Sportart: Hockey "),"horseshoes"===e.sport&&(r+="Mögliche Sportart: Hufeisenwerfen "),"horse_racing"===e.sport&&(r+="Mögliche Sportart: Pferderennen "),"ice_stock"===e.sport&&(r+="Mögliche Sportart: Eisstockschießen "),"judo"===e.sport&&(r+="Mögliche Sportart: Judo "),"karting"===e.sport&&(r+="Mögliche Sportart: Kartfahren "),"kitesurfing"===e.sport&&(r+="Mögliche Sportart: Kitesurfing "),"korfball"===e.sport&&(r+="Mögliche Sportart: Korfball "),"motor"===e.sport&&(r+="Mögliche Sportart: Motorsport "),"multi"===e.sport&&(r+="Mögliche Sportart: Mehrfachsport "),"obstacle_course"===e.sport&&(r+="Mögliche Sportart: Hindernislauf "),"orienteering"===e.sport&&(r+="Mögliche Sportart: Orientierungslauf "),"paddle_tennis"===e.sport&&(r+="Mögliche Sportart: Paddle-Tennis "),"paragliding"===e.sport&&(r+="Mögliche Sportart: Gleitschirmfliegen "),"Pelota"===e.sport&&(r+="Mögliche Sportart: Pelota "),"rasquet"===e.sport&&(r+="Mögliche Sportart: Racquetball "),"rowing"===e.sport&&(r+="Mögliche Sportart: Rudern "),"rugby_league"===e.sport&&(r+="Mögliche Sportart: Rugby League "),"rugby_union"===e.sport&&(r+="Mögliche Sportart: Rugby Union "),"running"===e.sport&&(r+="Mögliche Sportart: Laufsport "),"scuba_diving"===e.sport&&(r+="Mögliche Sportart: Sporttauchen "),"shooting"===e.sport&&(r+="Mögliche Sportart: Sportschießen "),"skating"===e.sport&&(r+="Mögliche Sportart: Eislaufsport "),"skateboard"===e.sport&&(r+="Mögliche Sportart: Skateboard "),"skiing"===e.sport&&(r+="Mögliche Sportart: Skifahren "),"soccer"===e.sport&&(r+="Mögliche Sportart: Fußball "),"surfing"===e.sport&&(r+="Mögliche Sportart: Surfen "),"swimming"===e.sport&&(r+="Mögliche Sportart: Schwimmen "),"table_tennis"===e.sport&&(r+="Mögliche Sportart: Tischtennis "),"taekwondo"===e.sport&&(r+="Mögliche Sportart: Taekwondo "),"team_handball"===e.sport&&(r+="Mögliche Sportart: Handball "),"tennis"===e.sport&&(r+="Mögliche Sportart: Tennis "),"toboggan"===e.sport&&(r+="Mögliche Sportart: Rodeln "),"volleyball"===e.sport&&(r+="Mögliche Sportart: Volleyball "),"water_ski"===e.sport&&(r+="Mögliche Sportart: Wasserski "),"weightlifting"===e.sport&&(r+="Mögliche Sportart: Gewichtheben "),"wrestling"===e.sport&&(r+="Mögliche Sportart: Ringen "),r},O=r.fnContentGeneralInformations=function(e){var r="";return e.width&&(r+="Breite: "+e.width+" m "),e.height&&(r+="Höhe: "+e.height+" m "),e.maxwidth&&(r+="Maximalbreite: "+e.maxwidth+" m "),e.maxheight&&(r+="Maximalhöhe: "+e.maxheight+" m "),e.maxweight&&(r+="Maximalgewicht: "+e.maxweight+" t "),e.maxspeed&&(r+="Höchstgeschwindigkeit: "+e.maxspeed+" km/h "),e.min_age&&(r+="Mindestalter: "+e.min_age+" "),e.max_age&&(r+="Maximalalter: "+e.max_age+" "),"yes"===e.nudism&&(r+="Freikörperkultur "),"yes"===e.ruins&&(r+="Ruine "),e.ele&&(r+="Höhe über NN: "+e.ele+" m "),e["xmas:day_date"]&&(r+="Dauer von - bis: "+e["xmas:day_date"]+" "),e["rotor:diameter"]&&(r+="Rotordurchmesser: "+e["rotor:diameter"]+" m "),e["xmas:note"]&&(r+="Hinweis: "+e["xmas:note"]+" "),"port"===e["seamark:beacon_lateral:category"]&&(r+="Backbord "),"starboard"===e["seamark:beacon_lateral:category"]&&(r+="Steuerbord "),"yes"===e["service:bicycle:retail"]&&(r+="Fahrradverkauf "),"yes"===e["service:bicycle:repair"]&&(r+="Fahrradreparatur "),"yes"===e["service:bicycle:rental"]&&(r+="Fahrradverleih "),"yes"===e["service:bicycle:pump"]&&(r+="Benutzung einer Luftpumpe möglich "),"yes"===e["service:bicycle:diy"]&&(r+="Benutzung von Werkzeug möglich "),"yes"===e["service:bicycle:cleaning"]&&(r+="Fahrräder werden gewaschen "),"yes"===e["service:bicycle:second_hand"]&&(r+="Verkauf von gebrauchten Fahrrädern "),"yes"===e["service:bicycle:charging"]&&(r+="Elektro-Fahrräder können geladen werden "),"yes"===e.cafe&&(r+="Kleine Café-Ecke "),"yes"===e.breakfast&&(r+="Besonderes Frühstücksangebot "),"yes"===e.snack&&(r+="Back-Snacks warm oder kalt "),"yes"===e.indoor_seating&&(r+="Sitzmöglichkeiten im Innenbereich "),"yes"===e.outdoor_seating&&(r+="Sitzmöglichkeiten im Außenbereich "),"yes"===e.self_service&&(r+="Selbstbedienungsbäckerei "),"yes"===e.bakehouse&&(r+="Backstube "),"yes"===e.pastry_shop&&(r+="Gebäck aus der Konditorei "),"yes"===e.fair_trade&&(r+="einige Fair-Trade-Produkte im Sortiment "),"only"===e.fair_trade&&(r+="fast ausschließlich Fair-Trade-Produkte im Sortiment "),"no"===e.fair_trade&&(r+="keine Fair-Trade-Produkte im Sortiment "),r},T=r.fnContentHealthcare=function(e){var r="";return"doctors"!==e.amenity&&"physician"!==e.office&&"doctor"!==e.healthcare||(r+=function(e){var r="",t="",a=e["healthcare:speciality"];return""!==a&&("general"===a&&(t+="Allgemeinmedizin "),"allergology"===a&&(t+="Allergologie "),"anaesthetics"===a&&(t+="Anästhesiologie "),"biochemistry"===a&&(t+="Medizinische und chemische Labordiagnostik "),"biological_haematology"===a&&(t+="Biologische Hämatologie "),"biology"===a&&(t+="Medizinische Biologie "),"cardiology"===a&&(t+="Kardiologie "),"cardiac_surgery"===a&&(t+="Kardiovaskularchirurgie "),"child_psychiatry"===a&&(t+="Kinder- u. Jugendpsychatrie "),"dental_oral_maxillo_facial_surgery"===a&&(t+="Zahn-, Mund-, Kiefer- und Gesichtschirurgie "),"dermatology"===a&&(t+="Hautkrankheiten "),"dermatovenereology"===a&&(t+="Haut- und Geschlechtskrankheiten "),"diagnostic_radiology"===a&&(t+="Diagnostische Radiologie "),"emergency"===a&&(t+="Unfall- und Notfallmedizin "),"endocrinology"===a&&(t+="Endokrinologie "),"gastroenterological_surgery"===a&&(t+="Gastroenterologische Chirurgie "),"gastroenterology"===a&&(t+="Gastroenterologie "),"geriatrics"===a&&(t+="Geriatrie "),"gynaecology"===a&&(t+="Geburtshilfe und Frauenheilkunde "),"haematology"===a&&(t+="Allgemeine Hämatologie "),"hepatology"===a&&(t+="Hepatologie "),"immunology"===a&&(t+="Immunologie "),"infectious_diseases"===a&&(t+="Ansteckende Krankheiten "),"intensive"===a&&(t+="Intensivmedizin "),"internal"===a&&(t+="Allgemeine (innere) Medizin "),"maxillofacial_surgery"===a&&(t+="Mund-Kiefer-Gesichtschirurgie "),"nephrology"===a&&(t+="Nierenkrankheiten "),"neurology"===a&&(t+="Neurologie "),"neurophysiology"===a&&(t+="Klinische Neurophysiologie "),"neuropsychiatry"===a&&(t+="Neuropsychiatrie(Neurologie und Psychiatrie) "),"neurosurgery"===a&&(t+="Neurochirurgie "),"nuclear"===a&&(t+="Nuklearmedizin "),"occupational"===a&&(t+="Arbeitsmedizin "),"oncology"===a&&(t+="Onkologie "),"ophthalmology"===a&&(t+="Augenheilkunde "),"orthopaedics"===a&&(t+="Orthopädie "),"otolaryngology"===a&&(t+="Hals-Nasen-Ohren-Heilkunde "),"paediatric_surgery"===a&&(t+="Kinderchirurgie "),"paediatrics"===a&&(t+="Kinderheilkunde "),"palliative"===a&&(t+="Palliativmedizin "),"physiatry"===a&&(t+="Physikalischeund Rehabilitative Medizin "),"plastic_surgery"===a&&(t+="Plastische Chirurgie "),"proctology"===a&&(t+="Proktologie "),"psychiatry"===a&&(t+="Psychiatrie "),"pulmonology"===a&&(t+="Lungen- und Bronchialheilkunde "),"radiology"===a&&(t+="Radiologie "),"radiotherapy"===a&&(t+="Strahlentherapie "),"rheumatology"===a&&(t+="Rheumatologie "),"stomatology"===a&&(t+="Stomatologie "),"surgery"===a&&(t+="Chirurgie "),"surgical_oncology"===a&&(t+="Krebschirurgie "),"thoracic_surgery"===a&&(t+="Thoraxchirurgie "),"transplant"===a&&(t+="Transplantationsmedizin "),"trauma"===a&&(t+="Unfallchirurgie "),"tropical"===a&&(t+="Tropenmedizin "),"urology"===a&&(t+="Urologie "),"vascular_surgery"===a&&(t+="Gefäßchirurgie "),"venereology"===a&&(t+="Geschlechtskrankheiten "),"acupuncture"===a&&(t+="Akupunktur "),"naturopathy"===a&&(t+="Naturheilkunde "),"chiropractic"===a&&(t+="Chiropraktik "),"homeopathy"===a&&(t+="Homöopathie "),"osteopathy"===a&&(t+="Osteopathie ")),""!==e.health_specialty&&("yes"===e["health_specialty:family_medicine"]&&(t+="Allgemeinmedizin "),"yes"===e["health_specialty:emergency_medicine"]&&(t+="Notfallmedizin "),"yes"===e["health_specialty:anaesthesiology"]&&(t+="Anästhesie "),"yes"===e["health_specialty:dermatology"]&&(t+="Dermatologie "),"yes"===e["health_specialty:ear_nose_throat"]&&(t+="Hals, Nasen, Ohren (HNO) "),"yes"===e["health_specialty:occupational_medicine"]&&(t+="Arbeitsnmedizin "),"yes"===e["health_specialty:internal_medicine"]&&(t+="innere Medizin "),"yes"===e["health_specialty:neurology"]&&(t+="Neurologie "),"yes"===e["health_specialty:ophthalmology"]&&(t+="Augenheilkunde "),"yes"===e["health_specialty:palliative_medicine"]&&(t+="Palliativmedizin "),"yes"===e["health_specialty:psychiatry"]&&(t+="Psychatrie "),"yes"===e["health_specialty:gynaecology"]&&(t+="Gynäkologie "),"yes"===e["health_specialty:urology"]&&(t+="Urologie "),"yes"===e["health_specialty:pain_medicine"]&&(t+="Schmerzmedizin "),"yes"===e["health_specialty:environmental_medicine"]&&(t+="Umweltmedizin "),"yes"===e["health_specialty:intensive_care_medicin"]&&(t+="Intensivmedizin "),"yes"===e["health_specialty:paediatrics"]&&(t+="Kinder- u. Jugendmedizin "),"yes"===e["health_specialty:physiatry"]&&(t+="Physikalische und Rehabilitative Medizin "),"yes"===e["health_specialty:radiology"]&&(t+="Radiologie "),"yes"===e["health_specialty:general"]&&(t+="Allgemeinmedizin "),"yes"===e["health_specialty:occupational_therapy"]&&(t+="Ergotherapie "),"yes"===e["health_specialty:pulmonology"]&&(t+="Pneumologie "),"yes"===e["health_specialty:acupuncture"]&&(t+="Akupunktur "),"yes"===e["health_specialty:orthopaedics"]&&(t+="Orthopädie "),"yes"===e["health_specialty:chiropractic"]&&(t+="Chiropraktik "),"yes"===e["health_specialty:sports_medicine"]&&(t+="Sportmedizin ")),""!==t&&(r+="Fachgebiete: ",r+=''+t+"
"),r}(e),e.medical_area&&(r+=e.medical_area+" "),e.type&&(r+=e.type+" "),e["doctors:de"]&&(r+=e["doctors:de"]+" "),e["note:de"]&&(r+=e["note:de"]+" ")),"yes"===e.dispensing&&(r+="Apotheke mit Rezepteinlösung "),"abused"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen die Misshandlung erlitten haben "),"child"===e["social_facility:for"]&&(r+="Einrichtung für: Kinder "),"disabled"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen mit körperlicher oder geistiger Behinderung "),"diseased"===e["social_facility:for"]&&(r+="Einrichtung für: Erkrankte Menschen "),"drug_addicted"===e["social_facility:for"]&&(r+="Einrichtung für: Drogensüchtige "),"homeless"===e["social_facility:for"]&&(r+="Einrichtung für: Obdachlose "),"juvenile"===e["social_facility:for"]&&(r+="Einrichtung für: Jugendliche und Teenager "),"mental_health"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen mit psychischen Problemen "),"migrant"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen mit Migrationshintergrund "),"orphan"===e["social_facility:for"]&&(r+="Einrichtung für: Waisen "),"senior"===e["social_facility:for"]&&(r+="Einrichtung für: Senioren "),"underprivileged"===e["social_facility:for"]&&(r+="Einrichtung für: Arme oder benachteiligte Menschen "),"unemployed"===e["social_facility:for"]&&(r+="Einrichtung für: Arbeitslose "),"victim"===e["social_facility:for"]&&(r+="Einrichtung für: Opfer eines Verbrechens "),r};r.fnTestInfoPopup=function(e){var r=e.getProperties(),t="";for(var a in r)t=t+a+"="+r[a]+" ";return'"}},"./src/Resources/public/js/c4g-maps-popup-info-en.js":(e,r)=>{"use strict";function t(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function a(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))}function o(e){var r=t(e);return"yes"===r||"Yes"===r?"yes":"no"===r||"No"===r?"no":"limited"===r?"limited":"designated"===r?"designated":"wood"===r?"wood":"metal"===r?"metal":"concrete"===r?"concrete":"plastic"===r?"plastic":"stone"===r?"stone":"steel"===r?"steel":"brick"===r?"brick":"reinforced_concrete"===r?"reinforced_concrete":"masonry"===r?"masonry":e}function n(e,r){var t="",a="32px";if(e.name||e["piste:name"]||e["xmas:name"]||e["xmas:location"]){if(e.name)var o=e.name;e["piste:name"]&&(o=e["piste:name"]),e["xmas:name"]&&(o=e["xmas:name"]),e["xmas:location"]&&(o=e["xmas:location"]),t+=o=r?' ":'"}else r&&(t+=' ');return t+=function(e){var r="";if("doctors"!==e.amenity&&"doctor"!==e.healthcare||(r+="doctor "),"hospital"!==e.amenity&&"clinic"!==e.amenity&&"hospital"!==e.healthcare&&"clinic"!==e.healthcare||("yes"===e.emergency?r+="hospital with emergency facilities ":r+="hospital "),"dentist"===e.amenity&&(r+="dentist "),"pharmacy"!==e.amenity&&"pharmacy"!==e["health_facility:type"]||(r+="pharmacy "),"physiotherapist"!==e.healthcare&&"yes"!==e["health_speciality:physiotherapy"]||(r+="physiotherapist "),"occupational_therapist"!==e.healthcare&&"yes"!==e["health_speciality:occupational_therapy"]&&"yes"!==e["health_specialty:occupational_therapy"]||(r+="occupational_therapist "),"psychotherapist"!==e.healthcare&&"yes"!==e["health_speciality:psychotherapy"]||(r+="psychotherapist "),"alternative"===e.healthcare&&(r+="alternative "),"midwife"===e.healthcare&&(r+="midwife "),"speech_therapist"!==e.healthcare&&"yes"!==e["health_speciality:speech_therapy"]||(r+="speech_therapist "),"yes"===e["health_speciality:music_therapy"]&&(r+="music_therapy "),"veterinary"===e.amenity&&(r+="veterinary "),"fire_station"===e.amenity&&(r+="fire station "),"fire_extinguisher"===e.emergency&&(r+="fire extinguisher "),"aed"===e.emergency&&(r+="aed "),"defibrillator"===e.emergency&&(r+="defibrillator "),"phone"===e.emergency&&(r+="call box "),"police"===e.amenity&&(r+="police "),"ambulance_station"===e.emergency&&(r+="ambulance station "),"technical"===e.emergency_service&&(r+="technical "),"water"===e.emergency_service&&(r+="water "),"baywatch"===e.waterway&&(r+="baywatch "),"air"===e.emergency_service&&(r+="rescue helicopter "),"emergency_access_point"===e.highway&&(r+="emergency access point "),"lifeboat_station"!==e.amenity&&"lifeboat_station"!==e.emergency||(r+="lifeboat station "),"life_ring"===e.emergency&&(r+="life ring "),"siren"===e.emergency&&(r+="siren "),"life_ring"===e.amenity&&(r+="life ring "),"rescue_station"===e.amenity&&(r+="rescue station "),"fire_hydrant"===e.emergency&&("underground"===e["fire_hydrant:type"]?r+="underground hydrant ":"pillar"===e["fire_hydrant:type"]?r+="pillar hydrant ":"wall"===e["fire_hydrant:type"]?r+="wall hydrant ":"pond"===e["fire_hydrant:type"]&&(r+="suction point ")),"suction_point"===e.emergency&&(r+="suction point "),"fire_water_pond"===e.emergency&&(r+="fire protection pond "),"mountain"===e.emergency_service&&(r+="mountain rescue service "),"water_tank"===e.emergency&&(r+="fire water tank "),"container"===e.recycling_type&&(r+="Recycling container "),"recycling"===e.amenity&&"yes"===e["recycling:excrement"]||"pump-out"===e["seamark:small_craft_facility:category"]?r+="suction station ":"recycling"===e.amenity&&(r+=" buyback centre "),"yes"===e["diet:pescetarian"]?r+="pescetarian available ":"only"===e["diet:pescetarian"]&&(r+="just pescetarian "),"yes"===e["diet:vegetarian"]?r+="vegetarian vorhanden ":"only"===e["diet:vegetarian"]&&(r+="just vegetarian "),"yes"===e["diet:lacto_vegetarian"]?r+="lacto_vegetarian available ":"only"===e["diet:lacto_vegetarian"]&&(r+="just lacto vegetarian "),"yes"===e["diet:ovo_vegetarian"]?r+="ovo vegetarian available ":"only"===e["diet:ovo_vegetarian"]&&(r+="just ovo_vegetarian "),"yes"===e["diet:vegan"]?r+="vegan available ":"only"===e["diet:vegan"]&&(r+="just vegan "),"yes"===e["diet:fruitarian"]?r+="fruitarian available ":"only"===e["diet:fruitarian"]&&(r+="hust fruitarian "),"yes"===e["diet:raw"]?r+="raw availaibe ":"only"===e["diet:raw"]&&(r+="just raw "),"yes"===e["diet:gluten_free"]?r+="gluten free available ":"only"===e["diet:gluten_free"]&&(r+="just gluten free "),"yes"===e["diet:dairy_free"]?r+="dairy free available ":"only"===e["diet:dairy_free"]&&(r+="just dairy free "),"yes"===e["diet:lactose_free"]?r+="lactose free available ":"only"===e["diet:lactose_free"]&&(r+="just lactose free "),"yes"===e["diet:halal"]?r+="halal available ":"only"===e["diet:halal"]&&(r+="just halal "),"yes"===e["diet:kosher"]?r+="kosher available ":"only"===e["diet:kosher"]&&(r+="just kosher "),"pub"===e.amenity&&(r+="pub "),"bar"===e.amenity&&(r+="bar "),"yes"===e.frozen_yogurt&&(r+="frozen yogurt "),"yes"===e.slush_ice&&(r+="slush ice "),"yes"===e.cake&&(r+="cake "),"yes"===e.coffee&&(r+="coffee "),"yes"===e.drinks&&(r+="drinks "),"biergarten"===e.amenity&&(r+="biergarten "),"restaurant"===e.amenity&&(r+="restaurant "),"fast_food"===e.amenity&&(r+="fast food "),"cafe"!==e.amenity&&"coffee_shop"!==e.amenity||"ice_cream"===e.cuisine||(r+="cafe "),("cafe"===e.amenity&&"ice_cream"===e.cuisine||"ice_cream"===e.amenity)&&(r+="ice cream "),"alpine_hut"===e.tourism&&(r+="alpine hut "),"aquarium"===e.tourism&&(r+="aquarium "),"apartment"===e.tourism&&(r+="apartment "),"attraction"===e.tourism&&(r+="attraction "),"artwork"===e.tourism&&(r+="artwork "),"camp_site"===e.tourism&&(r+="camp site "),"caravan_site"===e.tourism&&(r+="caravan site "),"chalet"===e.tourism&&(r+="chalet "),"gallery"===e.tourism&&(r+="gallery "),"guest_house"===e.tourism&&(r+="guest house "),"hostel"===e.tourism&&(r+="hostel "),"hotel"===e.tourism&&(r+="hotel "),"motel"===e.tourism&&(r+="motel "),"museum"===e.tourism&&(r+="museum "),"picnic_site"===e.tourism&&(r+="picnic site "),"theme_park"===e.tourism&&(r+="theme park "),"viewpoint"===e.tourism&&(r+="viewpoint "),"wilderness_hut"===e.tourism&&(r+="wilderness_hut "),"wine_cellar"===e.tourism&&(r+="wine cellar "),"zoo"===e.tourism&&(r+="zoo ","enclosure"===e.zoo&&(r+="enclosure "),"petting_zoo"===e.zoo&&(r+="petting zoo "),"falconry"===e.zoo&&(r+="falconry ")),"trail_riding_station"===e.tourism&&(r+="trail riding station "),"fishing"===e.club&&(r+="fishing club "),"sport"===e.club&&"fishing"===e.sport&&(r+="fishing club "),"amateur_radio"===e.club&&(r+="amateur radio club "),"art"===e.club&&(r+="art club "),"astronomy"===e.club&&(r+="astronomy club "),"automobile"===e.club&&(r+="automobile club "),"board_games"===e.club&&(r+="board games club "),"card_games"===e.club&&(r+="card games club "),"charity"===e.club&&(r+="charity club "),"chess"===e.club&&(r+="chess club "),"cinema"===e.club&&(r+="cinema club "),"cooking"===e.club&&(r+="cooking club "),"culture"===e.club&&(r+="culture club "),"doityourself"===e.club&&(r+="doityourself club "),"equestrian"===e.club&&(r+="equestrian club "),"ethnic"===e.club&&(r+="ethnic club "),"fan"===e.club&&(r+="fan club "),"freemasonry"===e.club&&(r+="freemasonry club "),"game"===e.club&&(r+="game club "),"history"===e.club&&(r+="history club "),"hunting"===e.club&&(r+="hunting club "),"linux"===e.club&&(r+="linux club "),"motorcycle"===e.club&&(r+="motorcycle club "),"music"===e.club&&(r+="music club "),"nature"===e.club&&(r+="nature club "),"nudism"===e.club&&(r+="nudism club "),"photography"===e.club&&(r+="photography club "),"politics"===e.club&&(r+="politics club "),"religion"===e.club&&(r+="religion club "),"scout"===e.club&&(r+="scout club "),"smoke"===e.club&&(r+="smoke club "),"sport"===e.club&&(r+="sport club "),"theatre"===e.club&&(r+="theatre club "),"veterans"===e.club&&(r+="veterans club "),"amusement_arcade"===e.leisure&&(r+="penny arcade / gambling hall "),"beach_resort"===e.leisure&&(r+="beach resort "),"bird_hide"===e.leisure&&(r+="bird hide "),"common"===e.leisure&&(r+="common "),"club"===e.leisure&&(r+="club "),"dance"===e.leisure&&(r+="dance "),"dog_park"===e.leisure&&(r+="dog_park "),"firepit"===e.leisure&&(r+="firepit "),"fishing"===e.leisure&&(r+="fishing "),"garden"===e.leisure&&(r+="garden "),"golf_course"===e.leisure&&(r+="golf course "),"hackerspace"===e.leisure&&(r+="hackerspace "),"horse_riding"===e.leisure&&(r+="horse riding "),"ice_rink"===e.leisure&&(r+="ice rink "),"nature_reserve"===e.leisure&&(r+="nature reserve "),"park"===e.leisure&&(r+="park "),"miniature_golf"===e.leisure&&(r+="miniature golf "),"pitch"===e.leisure&&(r+="pitch "),"pitch"===e.leisure&&"yes"===e.building&&(r+="gym "),("playground"===e.leisure&&"yes"===e.building||"playground"===e.leisure)&&(r+="playground "),"social_club"===e.leisure&&(r+="social club "),"spa"===e.leisure&&(r+="spa "),"sports_centre"===e.leisure&&(r+="sports centre "),"climbing_adventure"===e.sport&&(r+="climbing adventure "),"stadium"===e.leisure&&(r+="stadium "),"swimming_pool"===e.leisure&&(r+="swimming pool "),"track"===e.leisure&&(r+="track "),"water_park"===e.leisure&&(r+="water park "),"wildlife_hide"===e.leisure&&(r+="wildlife hide "),"adult_gaming_centre"===e.leisure&&(r+="adult gaming_centre "),"bowling_alley"===e.leisure&&"10pin"===e.sport&&(r+="10pin bowling_alley "),"bowling_alley"===e.leisure&&"9pin"===e.sport&&(r+="9pin bowling_alley "),"karting"!==e.sport&&"motor"!==e.sport||(r+="karting "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),e["piste:type"])switch(e["piste:type"]){case"skitour":r+="skitour ";break;case"downhill":r+="downhill ";break;case"sled":r+="sled ";break;case"nordic":r+="nordic ";break;case"hike":r+="hike ";break;case"snow_park":r+="snow park "}if(e.sport)switch(e.sport){case"surfing":r+="surfing ";break;case"kitesurfing":r+="kitesurfing ";break;case"water_ski":r+="water ski "}if(e.aerialway)switch(e.aerialway){case"cable_bar":r+="cable bar ";break;case"gondola":r+="gondola ";break;case"chair_lift":r+="chair lift ";break;case"mixed_lift":r+="mixed lift ";break;case"drag_lift":r+="drag lift ";break;case"t-bar":case"t-bar":r+="t-bar ";break;case"platter":r+="platter ";break;case"rope_tow":r+="rope tow ";break;case"magic_carpet":r+="magic carpet ";break;default:r+="unknown"}if("mosque"===e.building&&(r+="mosque "),"synagogue"===e.building&&(r+="synagogue "),"temple"===e.building&&(r+="temple "),"apartments"===e.building&&(r+="apartments "),"farm"===e.building&&(r+="farm "),"hotel"===e.building&&(r+="hotel "),"house"===e.building&&(r+="house "),"detached"===e.building&&(r+="detached "),"residential"===e.building&&(r+="residential "),"domitory"!==e.building&&"residential plus"!==e.building||(r+="domitory "),"terrace"===e.building&&(r+="terrace "),"houseboat"===e.building&&(r+="houseboat "),"bungalow"===e.building&&(r+="bungalow "),"static_caravan"===e.building&&(r+="static caravan "),"commercial"===e.building&&(r+="commercial "),"retail"===e.building&&(r+="retail "),"warehouse"===e.building&&(r+="warehouse "),"bakehouse"===e.building&&(r+="bakehouse "),"shrine"===e.building&&(r+="shrine "),"civic"===e.building&&(r+="civic "),"stadium"===e.building&&(r+="stadium "),"train_station"===e.building&&(r+="train station "),"university"===e.building&&(r+="university "),"public"===e.building&&(r+="public "),"bridge"===e.building&&(r+="bridge "),"bunker"===e.building&&(r+="bunker "),"cabin"===e.building&&(r+="cabin "),"conservatory"===e.building&&(r+="conservatory "),"construction"===e.building&&(r+="construction "),"garage"===e.building&&(r+="garage "),"garages"===e.building&&(r+="garages "),"greenhouse"===e.building&&(r+="greenhouse "),"hangar"===e.building&&(r+="hangar "),"hut"===e.building&&(r+="hut "),"pavillion"===e.building&&(r+="pavillion "),"roof"===e.building&&(r+="roof "),"shed"===e.building&&(r+="shed "),"transformer_tower"===e.building&&(r+="transformer tower "),"service"===e.building&&(r+="service "),"kiosk"===e.building&&(r+="kiosk "),"carport"===e.building&&(r+="carport "),"ruins"===e.building&&(r+="ruins "),"gambling"===e.amenity&&(r+="penny arcade "),"library"===e.amenity&&(r+="library "),"fountain"===e.amenity&&(r+="fountain "),"attraction"===e.amenity&&(r+="attraction "),"social_centre"!==e.amenity&&"club"!==e.amenity||(r+="social centre "),"townhall"===e.amenity&&(r+="townhall "),"bench"===e.amenity&&(r+="bench "),"grave_yard"!==e.amenity&&"cemetery"!==e.landuse||(r+="grave yard "),"post_box"===e.amenity&&(r+="post box "),"post_office"===e.amenity&&(r+="post office "),"telephone"===e.amenity&&(r+="telephone "),"atm"===e.amenity&&(r+="atm "),"bank"===e.amenity&&(r+="bank "),"toilets"===e.amenity&&"yes"===e.diaper?r+="toilets with diaper changing table ":"toilets"===e.amenity&&(r+="toilets "),"school"===e.amenity&&"1"===e["isced:level"]?r+="primary school ":"school"===e.amenity&&"2"===e["isced:level"]?r+="secondary school ":"school"===e.amenity&&"3"===e["isced:level"]?r+="secondary schools ":"school"===e.amenity&&(r+="school "),"kindergarten"===e.amenity&&(r+="kindergarten "),"internet_cafe"===e.amenity&&(r+="internet cafe "),"daycare"===e.amenity&&(r+="daycare "),"childcare"===e.amenity&&(r+="childcare "),"university"===e.amenity&&(r+="university "),"college"===e.amenity&&(r+="college "),"shelter"===e.amenity&&(r+="shelter "),"bbq"===e.amenity&&(r+="bbq "),"nightclub"===e.amenity&&(r+="nightclub "),"bicycle_parking"===e.amenity&&(r+="bicycle parking "),"bicycle_rental"===e.amenity&&(r+="bicycle rental "),"boat_sharing"===e.amenity&&(r+="boat sharing "),"car_sharing"===e.amenity&&(r+="car sharing "),"cinema"===e.amenity&&(r+="cinema "),"swimming_pool"===e.amenity&&(r+="swimming pool "),"embassy"!==e.amenity&&"embassy"!==e.diplomatic||(r+="embassy "),"embassy"===e.amenity&&"consulate"===e.diplomatic&&(r+="consulate "),"embassy"===e.amenity&&"consulate_general"===e.diplomatic&&(r+="consulate general "),"embassy"===e.amenity&&"honorary_consulate"===e.diplomatic&&(r+="honorary consulate "),"embassy"===e.amenity&&"permanent_mission"===e.diplomatic&&(r+="permanent mission "),"embassy"===e.amenity&&"delegation"===e.diplomatic&&(r+="delegation "),"embassy"===e.amenity&&"high_commission"===e.diplomatic&&(r+="high commission "),"Barfusspfad"===e.amenity&&(r+="barefoodpath "),"casino"===e.amenity&&(r+="casino "),"spa"===e.amenity&&(r+="spa "),"stables"===e.amenity&&(r+="stables "),"watering_place"===e.amenity&&(r+="watering place "),"yes"===e.watering_place&&(r+="watering place "),"water_point"===e.amenity&&(r+="water point "),"taxi"===e.amenity&&(r+="taxi "),"car_wash"===e.amenity&&(r+="car wash "),"brothel"===e.amenity&&(r+="brothel "),"stripclub"===e.amenity&&(r+="stripclub "),"swingerclub"===e.amenity&&(r+="swingerclub "),"planetarium"===e.amenity&&(r+="planetarium "),"courthouse"===e.amenity&&(r+="court house "),"crematorium"===e.amenity&&(r+="crematorium "),"crypt"!==e.amenity&&"crypt"!==e.building||(r+="crypt "),"hunting_stand"===e.amenity&&(r+="hunting stand "),"photo_booth"===e.amenity&&(r+="photo booth "),"prison"===e.amenity&&(r+="prison "),"ranger_station"===e.amenity&&(r+="ranger station "),"register_office"===e.amenity&&(r+="register office "),"marketplace"===e.amenity&&(r+="marketplace "),"solarium"===e.amenity&&(r+="solarium "),"sauna"===e.amenity&&(r+="sauna "),"shower"===e.amenity&&(r+="shower "),"waste_disposal"===e.amenity&&(r+="waste disposal ",e.waste))switch(r+="Typ: ",e.waste){case"trash":default:r+="General ";break;case"oil":r+="Oil ";break;case"drugs":r+="Pharmaceutical ";break;case"organic":r+="Organic ";break;case"plastic":r+="Plastic ";break;case"rubble":r+="Rubble ";break;case"cigarettes":r+="Cigarettes "}if("waste_basket"!==e.amenity&&"dog_excrement"!==e.waste||(r+="dog waste station "),"scout_camp"!==e.amenity&&"scout_hut"!==e.amenity&&"scout_hall"!==e.amenity||(r+="scout camp "),"ferry_terminal"===e.amenity&&(r+="ferry terminal "),"bureau_de_change"===e.amenity&&(r+="bureau de change "),"youth_club"===e.amenity&&(r+="youth club "),"festival_grounds"===e.amenity&&(r+="festival grounds "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="fireplace "),"vending_machine"===e.amenity)if(e.vending)switch(e.vending){case"admission_tickets":r+="vending machine admission tickets ";break;case"animal_feed":r+="vending machine animal feed ";break;case"bicycle_tube":r+="vending machine bicycle tube ";break;case"books":r+="vending machine books ";break;case"candles":r+="vending machine candles ";break;case"cigarettes":r+="vending machine cigarettes ";break;case"chemist":r+="vending machine chemist ";break;case"condoms":r+="vending machine condoms ";break;case"drinks":r+="vending machine drinks ";break;case"electronics":r+="vending machine electronics ";break;case"elongated_coin":r+="vending machine elongated_coin ";break;case"excrement_bags":r+="vending machine excrement_bags ";break;case"feminine_hygiene":r+="vending machine feminine_hygiene ";break;case"first_aid":r+="vending machine first_aid ";break;case"fishing_tackle":r+="vending machine fishing tackle ";break;case"fishing_bait":r+="vending machine fishing bait ";break;case"flowers":r+="vending machine flowers ";break;case"food":r+="vending machine food ";break;case"ice_cubes":r+="vending machine ice cubes ";break;case"ice_cream":r+="vending machine ice cream ";break;case"ink_cartridges":r+="vending machine ink cartridges ";break;case"laundry_detergent":r+="vending machine laundry detergent ";break;case"public_transport_tickets":r+="vending machine public transport tickets ";break;case"newspaper":r+="vending machine newspaper ";break;case"parcel_pickup":r+="vending machine parcel pickup ";break;case"parcel_mail_in":r+="Packege station ";break;case"parking_tickets":r+="vending machine parking tickets ";break;case"photos":r+="vending machine photos ";break;case"sex_toys":r+="vending machine sex_toys ";break;case"SIM_cards":r+="vending machine SIM_cards ";break;case"stamps":r+="vending machine stamps ";break;case"sweets":r+="vending machine sweets ";break;case"syringes":r+="vending machine syringes ";break;case"toll":r+="vending machine toll ";break;case"toys":r+="vending machine toys ";break;case"umbrellas":r+="vending machine umbrellas ";break;default:r+="vending machine "}else r+="vending machine ";if("arts_centre"===e.amenity&&(r+="arts centre "),"artwork"===e.amenity&&(r+="artwork "),"museum"===e.amenity&&(r+="museum "),"theatre"===e.amenity&&(r+="theatre "),"cathedral"===e.building&&(r+="cathedral "),"church"===e.building&&(r+="church "),"chapel"===e.building&&(r+="chapel "),"place_of_worship"===e.amenity&&(r+="place of worship "),"village"===e.abandoned&&(r+="abandoned village "),"theme_park"===e["abandoned:tourism"]&&(r+="abandoned theme park "),e["abandoned:amenity"],"yes"===e.abandoned&&"bunker"===e.military&&(r+="abandoned bunker "),"yes"===e.abandoned&&"barracks"===e.military&&(r+="abandoned barracks "),"yes"===e.abandoned&&"airfield"===e.military&&(r+="abandoned airfield "),"monastery"===e.historic&&(r+="historic monastery "),"monastery"===e.amenity&&(r+="monastery "),"monastery"===e.building&&(r+="monastery "),"manor"===e.historic&&(r+="historic manor "),"boundary_stone"===e.historic&&(r+="historic boundary stone "),"milestone"===e.historic&&(r+="historic milestone "),"monument"===e.historic&&(r+="monument "),"palace"===e.historic&&(r+="historic palace "),"mine"===e.historic&&(r+="historic mine "),"ruins"===e.historic&&(r+="ruins "),"harbour"===e.historic_usage&&(r+="historic harbour "),"rune stone"===e.historic&&(r+="rune stone "),"battlefield"===e.historic&&(r+="historic battlefield "),"blacksmith"===e.historic&&(r+="historic blacksmith "),"tree_shrine"!==e.historic&&"wayside_shrine"!==e.historic||(r+="shrine "),"city_gate"===e.historic&&(r+="historic city gate "),"wayside_cross"===e.historic&&(r+="historic wayside cross "),"monument"===e.amenity&&(r+="monument "),"memorial"===e.historic&&(r+="memorial "),"optical_telegraph"===e.historic&&(r+="historic optical telegraph "),"castle"===e.historic)if(e.castle_type)switch(e.castle_type){case"defensive":r+="defensive castle ";break;case"palace":r+="palace ";break;case"stately":r+="stately castle ";break;case"manor":r+="manor ";break;case"fortress":r+="fortress ";break;case"castrum":r+="castrum ";break;case"shiro":r+="shiro ";break;case"kremlin":r+="kremlin ";break;default:r+="castle "}else r+="castle ";if("archaeological_site"===e.historic&&(r+="archaeological site "),"tomb"===e.historic)if(e.tomb)switch(e.tomb){case"tumulus":r+="tumulus ";break;case"rock-cut":r+="rock ";break;case"hypogeum":r+="hypogeum ";break;case"war_grave":r+="war grave ";break;case"mausoleum":r+="mausoleum ";break;case"columbarium":r+="columbarium ";break;case"crypt":r+="crypt ";break;case"pyramid":r+="pyramid ";break;case"sarcophagus":r+="sarcophagus ";break;case"vault":r+="vault ";break;case"tombstone":r+="tombstone ";break;default:r+="historic tomb "}else r+="historic tomb ";if("accountant"===e.office&&(r+="accountant "),"administrative"===e.office&&(r+="administrative "),"architect"===e.office&&(r+="architect "),"association"===e.office&&(r+="association "),"physician"===e.office&&(r+="physician "),"camping"===e.office&&(r+="camping office "),"company"===e.office&&(r+="company "),"educational_institution"===e.office&&(r+="educational institution "),"employment_agency"===e.office&&(r+="employment agency "),"estate_agent"===e.office&&(r+="estate agent "),"forestry"===e.office&&(r+="forestry "),"foundation"===e.office&&(r+="foundation "),"government"===e.office&&(r+="government "),"guide"===e.office&&(r+="guide office "),"insurance"===e.office&&(r+="insurance "),"it"===e.office&&(r+="it office "),"lawyer"===e.office&&(r+="lawyer "),"newspaper"===e.office&&(r+="newspaper "),"ngo"===e.office&&(r+="ngo office "),"notary"===e.office&&(r+="notary "),"political_party"===e.office&&(r+="political party "),"quango"===e.office&&(r+="quango office "),"realtor"===e.office&&(r+="realtor "),"real_estate_agent"===e.office&&(r+="real estate agent "),"register"===e.office&&(r+="register "),"religion"===e.office&&(r+="religious office "),"research"===e.office&&(r+="research office "),"tax"===e.office&&(r+="tax office "),"telecommunication"===e.office&&(r+="telecommunication office "),"travel_agent"===e.office&&(r+="travel agent "),"water_utility"===e.office&&(r+="water utility office "),"therapist"===e.office&&(r+="therapist "),"city"===e.place&&(r+="city "),"town"===e.place&&(r+="town "),"village"===e.place&&(r+="village "),"continent"===e.place&&(r+="continent "),"ocean"===e.place&&(r+="ocean"),"track"===e.highway&&(r+="track "),"raceway"===e.highway&&(r+="raceway "),"designated"===e.bicycle&&(r+="cycle path "),"path"===e.highway&&(r+="food path "),"parking"===e.amenity&&(r+="parking "),"services"===e.highway&&(r+="services "),"rest_area"===e.highway&&(r+="rest area "),"turning_circle"===e.highway&&(r+="turning circle "),"service"===e.highway&&(r+="service road "),"motorway"===e.highway&&(r+="motorway "),"motorway_junction"===e.highway&&(r+="motorway junction "),"bridleway"===e.highway&&(r+="bridleway "),"yes"===e.oneway&&(r+="oneway "),"yes"===e.park_ride&&(r+="park and ride "),"unknown"===e.park_ride&&(r+="park and ride "),"bus"===e.park_ride&&(r+="park and ride "),"tram"===e.park_ride&&(r+="park and ride "),"bus_stop"===e.highway&&(r+="bus stop "),"pedestrian"===e.highway&&(r+="pedestrian "),"street_lamp"===e.highway&&(r+="street lamp "),"traffic_signals"===e.highway&&(r+="traffic signals "),"traffic_signals"===e.crossing&&(r+="traffic signals "),"speed_camera"===e.highway&&(r+="speed camera "),"yes"===e.traffic_calming&&(ret+="traffic calming"),"bump"===e.traffic_calming&&(r+="bump"),"chicane"===e.traffic_calming&&(r+="chicane"),"choker"===e.traffic_calming&&(r+="choker"),"cushion"===e.traffic_calming&&(r+="cushion"),"hump"===e.traffic_calming&&(r+="hump"),"island"===e.traffic_calming&&(r+="island"),"rumble_strip"===e.traffic_calming&&(r+="rumble_strip"),"table"===e.traffic_calming&&(r+="table"),"buoy_cardinal"===e["seamark:type"]&&(r+="buoy cardinal "),"buoy_lateral"===e["seamark:type"]&&(r+="buoy lateral "),"buoy_isolated_danger"===e["seamark:type"]&&(r+="buoy isolated_danger "),"perch"===e["seamark:beacon_lateral:shape"]&&(r+="perch "),"fuel"===e.amenity&&"fuel_station"===e["seamark:small_craft_facility:category"]?r+="fuel station ":"fuel"===e.amenity&&(r+="fuel "),"charging_station"===e.amenity){r+="charging station ";var t=e.voltage,a=" ";if(e.car){switch(e.car){case"yes":r+="Car: yes";break;case"no":r+="Car: No";break;default:r+="Cars: unkown"}r+=a}else r+="Cars: unkown"+a;if(e.bicycle){switch(e.bicycle){case"yes":r+="E-Bike: yes";break;case"no":r+="E-Bike: no";break;default:r+="E-Bike: unkown"}r+=a}else r+="E-Bike: unkown"+a;e["socket:schuko"]&&(r+="Schuko socket: "+e["socket:schuko"]+a),e["socket:cee_blue"]&&(r+="Cee blue socket "+e["socket:cee_blue"]+a),e["socket:cee_red_16a"]&&(r+="Cee red 16a socket "+e["socket:cee_red_16a"]+a),e["socket:cee_red_32a"]&&(r+="Cee red 32a socket "+e["socket:cee_red_32a"]+a),e["socket:cee_red_64a"]&&(r+="Cee red 64a socket "+e["socket:cee_red_64a"]+a),e["socket:cee_red_125a"]&&(r+="Cee red 125a socket "+e["socket:cee_red_125a"]+a),e["socket:nema_5_15"]&&(r+="Nema 5 15 socket "+e["socket:nema_5_15"]+a),e["socket:nema_5_20"]&&(r+="Nema 5 20 socket "+e["socket:nema_5_20"]+a),e["socket:nema_14_30"]&&(r+="Nema 14 30 socket "+e["socket:nema_14_30"]+a),e["socket:nema_14_50"]&&(r+="Nema 14 50 socket "+e["socket:nema_14_50"]+a),e["socket:bs1363"]&&(r+="Bs1363 socket "+e["socket:bs1363"]+a),e["socket:type1"]&&(r+="Type 1 socket "+e["socket:type1"]+a),e["socket:type1_combo"]&&(r+="Type 1 combo socket "+e["socket:schuko"]+a),e["socket:type2"]&&(r+="Type 2 socket "+e["socket:type2"]+a),e["socket:type2_combo"]&&(r+="Type 2 combo socket "+e["socket:type2_combo"]+a),e["socket:type3"]&&(r+="Type 3 socket "+e["socket:type3"]+a),e["socket:chademo"]&&(r+="Chademo socket "+e["socket:chademo"]+a),e["socket:magne_charge"]&&(r+="Magne charge socket "+e["socket:magne_charge"]+a),e["socket:tesla_standard"]&&(r+="Tesla standard socket "+e["socket:tesla_standard"]+a),e["socket:tesla_supercharge"]&&(r+="Tesla supercharge: "+e["socket:tesla_supercharge"]+a),e["socket:tesla_roadster"]&&(r+="Tesla_roadster socket "+e["socket:tesla_roadster"]+a),r+=a,e.voltage&&(r+="Volt: "+t+a)}if("yes"===e.tunnel&&(r+="tunnel "),e.bridge)switch(r+="bridge: ",e.bridge){case"swing":r+="swing";break;case"aqueduct":r+="aqueduct";break;case"bascule":r+="flap bridge";break;case"boardwalk":r+="boardwalk";break;case"cantilever":r+="cantilever";break;case"covered":r+="covered";break;case"drawbridge":r+="drawbridge";break;case"humpback":r+="humpback";break;case"lift":r+="lift";break;case"low_water_crossing":r+="low water crossing";break;case"moveable":r+="moveable";break;case"pontoon":r+="pontoon";break;case"suspension":r+="suspension";break;case"trestle":r+="trestle";break;case"viaduct":r+="viaduct"}if(e["bridge:movable"])switch(e["bridge:movable"]){case"swing":r+="swing";break;case"bascule":r+="bascule";break;case"drawbridge":r+="drawbridge";break;case"lift":r+="lift";break;case"submersible":r+="submersible";break;case"transporter":r+="transporter";break;case"retractable":r+="retractable"}if("nursing_home"!==e.amenity&&"retirement_home"!==e.amenity||(r+="nursing home / retirement home "),"social_facility"===e.amenity&&(r+="social facility "),e.social_facility&&("group_home"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="senior group home "),"assisted_living"===e.social_facility&&(r+="assisted living "),"outreach"===e.social_facility&&(r+="outreach "),"workshop"===e.social_facility&&(r+="workshop "),"ambulatory_care"!==e.social_facility&&"healthcare"!==e.social_facility||(r+="ambulatory care "),"shelter"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="senior shelter "),"shelter"===e.social_facility&&"abused"===e["social_facility:for"]&&(r+="abused shelter "),"food_bank"===e.social_facility&&(r+="food bank "),"hospice"===e.social_facility&&(r+="hospice ")),e.brewery&&(r+="brand of beer: "+e.brewery+" "),"alcohol"===e.shop&&(r+="alcohol shop "),"bakery"===e.shop&&(r+="bakery shop "),"beverages"===e.shop&&(r+="beverages shop "),"butcher"===e.shop&&(r+="butcher shop "),"cheese"===e.shop&&(r+="cheese shop "),"chocolate"===e.shop&&(r+="chocolate shop "),"coffee"===e.shop&&(r+="coffee shop "),"confectionery"===e.shop&&(r+="confectionery shop "),"convenience"===e.shop&&(r+="convenience shop "),"deli"===e.shop&&(r+="deli shop "),"dairy"===e.shop&&(r+="dairy shop "),"farm"===e.shop&&(r+="farm shop "),"greengrocer"===e.shop&&(r+="greengrocer shop "),"grocery"===e.shop&&(r+="grocery shop "),"organic"===e.shop&&(r+="organic shop "),"pasta"===e.shop&&(r+="pasta shop "),"seafood"===e.shop&&(r+="seafood shop "),"tea"===e.shop&&(r+="tea shop "),"wine"===e.shop&&(r+="wine shop "),"department_store"===e.shop&&(r+="department store "),"general"===e.shop&&(r+="general shop "),"kiosk"===e.shop&&(r+="kiosk "),"mall"===e.shop&&(r+="mall "),"supermarket"===e.shop&&(r+="supermarket "),"baby_goods"===e.shop&&(r+="baby goods shop "),"bag"===e.shop&&(r+="bag shop "),"boutique"===e.shop&&(r+="boutique "),"clothes"===e.shop&&(r+="clothes shop "),"fabric"===e.shop&&(r+="fabric shop "),"fashion"===e.shop&&(r+="fashion shop "),"jewelry"===e.shop&&(r+="jewelry shop "),"leather"===e.shop&&(r+="leather shop "),"shoes"===e.shop&&(r+="shoes shop "),"variety_store"===e.shop&&(r+="variety store "),"chemist"===e.shop&&(r+="chemist "),"cosmetics"===e.shop&&(r+="cosmetics shop "),"drugstore"===e.shop&&(r+="drugstore "),"perfumery"===e.shop&&(r+="perfumery "),"erotic"===e.shop&&(r+="erotic shop "),"hairdresser"===e.shop&&(r+="hairdresser "),"hearing_aids"===e.shop&&(r+="hearing aids "),"herbalist"===e.shop&&(r+="herbalist "),"massage"===e.shop&&(r+="massage "),"medical_supply"===e.shop&&(r+="medical supply shop "),"optician"===e.shop&&(r+="optician "),"tattoo"===e.shop&&(r+="tattoo "),"bathroom_furnishing"===e.shop&&(r+="bathroom furnishing "),"doityourself"===e.shop&&(r+="doityourself "),"energy"===e.shop&&(r+="energy "),"florist"===e.shop&&(r+="florist "),"furnace"===e.shop&&(r+="furnace shop "),"garden_centre"===e.shop&&(r+="garden centre "),"gas"===e.shop&&(r+="gas "),"glaziery"===e.shop&&(r+="glaziery "),"hardware"===e.shop&&(r+="hardware shop "),"houseware"===e.shop&&(r+="houseware shop "),"locksmith"===e.shop&&(r+="locksmith "),"paint"===e.shop&&(r+="paint shop "),"trade"===e.shop&&(r+="trade "),"antiques"===e.shop&&(r+="antiques shop "),"bed"===e.shop&&(r+="bed shop "),"candles"===e.shop&&(r+="candles shop "),"carpet"===e.shop&&(r+="carpet shop "),"curtain"===e.shop&&(r+="curtain shop "),"furniture"===e.shop&&(r+="furniture store "),"interior_decoration"===e.shop&&(r+="interior decoration company "),"kitchen"===e.shop&&(r+="kitchen shop "),"window_blind"===e.shop&&(r+="window blind shop "),"computer"===e.shop&&(r+="computer shop "),"electronics"===e.shop&&(r+="electronics shop "),"hifi"===e.shop&&(r+="hifi shop "),"mobile_phone"===e.shop&&(r+="mobile phone shop "),"radiotechnics"===e.shop&&(r+="radiotechnics shop "),"vacuum_cleaner"===e.shop&&(r+="vacuum cleaner shop "),"bicycle"===e.shop&&(r+="bicycle shop "),"car"===e.shop&&(r+="car shop "),"car repair"===e.shop&&(r+="car repair "),"car_parts"===e.shop&&(r+="car parts shop "),"dive"!==e.shop&&"scuba_diving"!==e.shop||(r+="scuba diving shop "),"fishing"===e.shop&&(r+="fishing shop "),"free_flying"===e.shop&&(r+="free flying shop "),"hunting"===e.shop&&(r+="hunting shop "),"motorcycle"===e.shop&&(r+="motorcycle shop "),"outdoor"===e.shop&&(r+="outdoor shop "),"sports"===e.shop&&(r+="sports shop "),"tyres"===e.shop&&(r+="tyres "),"water_sports"===e.shop&&(r+="water sports shop "),"art"===e.shop&&(r+="art "),"craft"===e.shop&&(r+="craft "),"frame"===e.shop&&(r+="frame shop "),"music"===e.shop&&(r+="music shop "),"music_instrument"===e.shop&&(r+="music instruments shop "),"photo"===e.shop&&(r+="photo shop "),"video"===e.shop&&(r+="video "),"video_games"===e.shop&&(r+="video games "),"anime"===e.shop&&(r+="anime "),"books"===e.shop&&(r+="books shop "),"gift"===e.shop&&(r+="gift shop "),"newsagent"===e.shop&&(r+="newsagent "),"stationery"===e.shop&&(r+="stationery "),"ticket"===e.shop&&(r+="ticket shop "),"copyshop"===e.shop&&(r+="copyshop "),"funeral_directors"===e.shop&&(r+="funeral directors "),"laundry"===e.shop&&(r+="laundry "),"dry_cleaning"===e.shop&&(r+="dry cleaning "),"money_lender"===e.shop&&(r+="money lender "),"pawnbroker"===e.shop&&(r+="pawnbroker "),"pet"===e.shop&&(r+="pet shop "),"pyrotechnics"===e.shop&&(r+="pyrotechnics shop "),"religion"===e.shop&&(r+="religion "),"beauty"===e.shop&&(r+="beauty "),"solarium"===e.shop&&(r+="solarium "),"tobacco"===e.shop&&(r+="tobacco shop "),"toys"===e.shop&&(r+="toys shop "),"travel_agency"===e.shop&&(r+="travel agency "),"market_hall"===e.shop&&(r+="market hall "),"vacant"===e.shop&&(r+="vacant "),"weapons"===e.shop&&(r+="weapons shop "),"lottery"===e.gambling&&(r+="lottery "),"fish"===e.pet&&(r+="fishkeeping "),"agriucultural_engines"===e.craft&&(r+="agriucultural engines "),"basket_maker"===e.craft&&(r+="basket maker "),"beekeeper"===e.craft&&(r+="beekeeper "),"blacksmith"===e.craft&&(r+="blacksmith "),"brewery"===e.craft&&(r+="brewery "),"yes"===e.microbrewery&&(r+="micro-brewery "),"boatbuilder"===e.craft&&(r+="boatbuilder "),"bookbinder"===e.craft&&(r+="bookbinder "),"builder"===e.craft&&(r+="housebuilding "),"carpenter"===e.craft&&(r+="carpenter, woodworker, joiner "),"carpet_layer"===e.craft&&(r+="carpet layer "),"caterer"===e.craft&&(r+="caterer "),"clockmaker"===e.craft&&(r+="clockmaker "),"confectionery"===e.craft&&(r+="confectionery "),"dressmaker"===e.craft&&(r+="dressmaker "),"electrician"===e.craft&&(r+="electrician "),"gardener"===e.craft&&(r+="gardener, landscaper "),"glaziery"===e.craft&&(r+="glaziery "),"handicraft"===e.craft&&(r+="handicraft "),"hvac"===e.craft&&(r+="heating, ventilation and air-conditioning technology (HVAC) "),"insulation"===e.craft&&(r+="thermal insulation "),"jeweller"===e.craft&&(r+="jeweller, gold-/silversmiths "),"key_cutter"===e.craft&&(r+="key cutter "),"locksmith"===e.craft&&(r+="locksmith "),"metal_construction"===e.craft&&(r+="metalworker "),"optician"===e.craft&&(r+="optician "),"painter"===e.craft&&(r+="painter "),"parquet_layer"===e.craft&&(r+="parquet layer "),"photographer"===e.craft&&(r+="photographer "),"photographic_laboratory"===e.craft&&(r+="photographic laboratory "),"plasterer"===e.craft&&(r+="plasterer "),"plumber"===e.craft&&(r+="plumber "),"pottery"===e.craft&&(r+="pottery "),"rigger"===e.craft&&(r+="ship rigger "),"roofer"===e.craft&&(r+="roofer "),"saddler"===e.craft&&(r+="saddler "),"sailmaker"===e.craft&&(r+="sailmaker "),"sawmill"===e.craft&&(r+="sawmill "),"scaffolder"===e.craft&&(r+="scaffolder "),"sculptor"===e.craft&&(r+="sculptor "),"shoemaker"===e.craft&&(r+="shoemaker "),"stand_builder"===e.craft&&(r+="exhibition stand builder "),"stonemason"===e.craft&&(r+="stonemason "),"sun_protection"===e.craft&&(r+="constructor for sun protection, venetian blind, shutter "),"sweep"===e.craft&&(r+="chimney sweep "),"tailor"===e.craft&&(r+="tailor "),"tiler"===e.craft&&(r+="tiler "),"tinsmith"===e.craft&&(r+="tinsmith, metalworker "),"upholsterer"===e.craft&&(r+="upholsterer "),"watchmaker"===e.craft&&(r+="watchmaker "),"window_construction"===e.craft&&(r+="window constructor "),"machines"===e.rental&&(r+="rental park for machines "),"car_rental"===e.amenity&&(r+="car rental company "),"allotments"===e.landuse&&(r+="allotment garden "),"basin"===e.landuse&&(r+="holding reservoir "),"brownfield"===e.landuse&&(r+="brownfield "),"commercial"===e.landuse&&(r+="commercial area "),"construction"===e.landuse&&(r+="construction area "),"farmland"===e.landuse&&(r+="farmland "),"farmyard"===e.landuse&&(r+="farmyard "),"forest"===e.landuse&&(r+="forest "),"garages"===e.landuse&&(r+="garages "),"grass"===e.landuse&&(r+="grass "),"greenfield"===e.landuse&&(r+="greenfield "),"greenhouse_horticulture"===e.landuse&&(r+="greenhouse horticulture "),"industrial"===e.landuse&&(r+="industry area "),"landfill"===e.landuse&&(r+="landfill "),"meadow"===e.landuse&&(r+="meadow "),"orchard"===e.landuse&&(r+="orchard "),"plant_nursery"===e.landuse&&(r+="plant nursery "),"quarry"===e.landuse&&(r+="quarry "),"railway"===e.landuse&&(r+="railway "),"recreation_ground"===e.landuse&&(r+="recreation ground "),"reservoir"===e.landuse&&(r+="reservoir "),"residential"===e.landuse&&(r+="residential "),"retail"===e.landuse&&(r+="retrail "),"salt_pond"===e.landuse&&(r+="salt pond "),"village_green"===e.landuse&&(r+="village green "),"vineyard"===e.landuse&&(r+="vineyard "),"pond"===e.landuse&&(r+="pond "),"salt_pond"===e.landuse&&(r+="salt pond "),"animal_keeping"===e.landuse&&(r+="animal keeping "),"yes"===e.entrance&&(r+="entrance "),"main"===e.entrance&&(r+="main-entrance "),"service"===e.entrance&&(r+="rear exit for staffing and suppliers "),"exit"===e.entrance&&(r+="exit "),"emergency"===e.entrance&&(r+="emergency "),"bay"===e.natural&&(r+="bay "),"beach"===e.natural&&(r+="beach "),"wood"===e.natural&&(r+="wood "),"glacier"===e.natural&&(r+="glacier "),"cave_entrance"===e.natural&&(r+="cave entrance "),"spring"===e.natural&&(r+="spring "),"waterfall"===e.natural&&(r+="waterfall "),"scrub"===e.natural&&(r+="scrub "),"grassland"===e.natural&&(r+="grassland "),"wetland"===e.natural&&(r+="wetland "),"tree"===e.natural&&(r+="tree"),"peak"===e.natural&&"yes"===e["summit:cross"]&&(r+="cross on the summit of a mountain "),"tree_row"===e.natural&&(r+="tree row, alley of trees "),"heath"===e.natural&&(r+="heath "),"moor"===e.natural&&(r+="moor "),"grassland"===e.natural&&(r+="grassland "),"fell"===e.natural&&(r+="grasland above the tree land "),"bare_rock"===e.natural&&(r+="bare rock "),"scree"===e.natural&&(r+="scree "),"volcano"===e.natural&&(r+="volcano "),"valley"===e.natural&&(r+="valley "),"stone"===e.natural&&(r+="stone "),"sea"===e.natural&&(r+="sea "),"national_park"===e.boundary&&(r+="national park "),"protected_area"===e.boundary&&(r+="protected area "),"yes"===e.mountain_pass&&(r+="mountain pass "),"waterfall"===e.waterway&&(r+="waterfall "),"canal"===e.waterway&&(r+="canal "),"canal"===e.water&&(r+="canal "),"river"===e.waterway&&(r+="river "),"river"===e.water&&(r+="river "),"riverbank"===e.waterway&&(r+="river "),"ditch"===e.waterway&&(r+="ditch "),"stream"===e.waterway&&(r+="stream "),"ferry"===e.route&&(r+="ferry "),"turning_point"===e.waterway&&(r+="turning point "),"lake"!==e.water&&"water"!==e.natural||(r+="lake "),"cove"===e.water&&(r+="cove "),"lagoon"===e.water&&(r+="lagoon "),"pond"===e.water&&(r+="pond "),"reservoir"===e.water&&(r+="waterreservoir "),"oxbow"===e.water&&(r+="oxbow lake "),"lock"===e.water&&(r+="lock chamber "),"moat"===e.water&&(r+="castle moat "),"wastewater"===e.water&&(r+="wastewater treatment plant "),"guest"===e.mooring&&"pier"===e.man_made||"visitor_berth"===e["seamark:small_craft_facility:category"]?r+="gastrointestinal ":"pier"===e.man_made&&(r+="pier "),"boatyard"===e.waterway&&(r+="boatyard "),"mooring"===e["seamark:type"]&&"dolphin"===e["seamark:mooring:category"]&&(r+="dolphin "),"foot"===e.route&&(r+="footpath "),"hiking"===e.route&&(r+="hiking trail "),"yes"===e.hiking&&"information"===e.tourism)r+="direction board ";else if("information"===e.tourism&&"information"===e.tourism)if(e.information)switch(e.information){case"board":default:r+="direction board ";break;case"map":r+="direction board with a map ";break;case"office":r+="tourist information office ";break;case"terminal":r+="tourist information terminal ";break;case"audioguide":r+="audioguide ";break;case"guidepost":r+="guidepost ";break;case"tactile_map":r+="tactile map ";break;case"tactile_model":r+="tactile model ";break;case"route_marker":r+="route marker "}else r+="direction board ";if("bicycle"===e.route&&(r+="cycle track "),"mtb"===e.route&&(r+="mountain bike route "),"horse"===e.route&&(r+="bridleway "),"coastline"===e.natural&&(r+="coastline "),"cliff"===e.natural&&(r+="cliff "),"dam"===e.waterway&&(r+="dam "),"weir"===e.waterway&&(r+="weir "),"lock_gate"===e.waterway&&(r+="lock gate "),"yes"===e.lock&&(r+="lock "),"sluice_gate"===e.waterway&&(r+="sluice gate "),"pumping_station"===e.man_made&&(r+="pumping station "),"groyne"===e.man_made&&(r+="groyne "),"dyke"===e.man_made&&(r+="dyke "),"levee"===e.man_made&&(r+="levee "),"watermill"===e.man_made&&(r+="watermill "),"airfield"===e.military&&(r+="military airfield "),"naval_base"===e.military&&(r+="naval base "),"range"===e.military&&(r+="military range "),"military"===e.landuse&&(r+="military land use "),"training_area"===e.military&&(r+="military training area "),"exclusion_zone"===e.military&&(r+="military exclusion zone "),"danger_area"===e.military&&(r+="military danger area "),"barracks"===e.military&&(r+="barracks "),"nuclear_explosion_site"===e.military&&(r+="military nuclear explosion site "),("yes"===e.construction||"construction"===e.highway)&&(r+="construction "),"petroleum_well"===e.man_made&&(r+="petroleum well "),"storage_tank"===e.man_made&&(r+="storage tank "),"wastewater_plant"===e.man_made&&(r+="wastewater plant "),"silo"===e.man_made&&(r+="silo "),"water_tower"===e.man_made&&(r+="water tower "),"windmill"===e.man_made&&(r+="windmill "),"monitoring_station"===e.man_made&&(r+="monitoring station"),"crane"===e.man_made&&(r+="crane"),"lighthouse"===e.man_made&&(r+="lighthouse"),"beacon"===e.man_made&&(r+="beacon"),"breakwater"===e.man_made&&(r+="breakwater"),"lamp"===e.man_made&&"street_lamp"===e["lamp:type"]&&(r+="street lamp "),"lantern"===e.light_source&&(r+="street lamp"),"floodlight"===e.light_source&&(r+="floodlight "),"signal_lamp"===e.light_source&&(r+="signal lamp "),"aviation"===e.light_source&&(r+="aviation "),"warning"===e.light_source&&(r+="warning "),e.light_source&&e["light:method"])switch(r+="Light Typ: ",e["light:method"]){case"gas":r+="Gas";break;case"electric":r+="electric";break;case"incandescent":r+="incandescent";break;case"halogen":r+="halogen";break;case"discharge":r+="discharge";break;case"metal-halide":r+="metal-halide";break;case"neon":r+="neon";break;case"sodium":r+="Natriumdampflampe";break;case"high_pressure_sodium":r+="high pressure sodium";break;case"low_pressure_sodium":r+="low pressure sodium";break;case"fluorescent":r+="Fluorescent";break;case"mercury":r+="Mercury";break;case"LED":r+="LED";break;case"laser":r+="Laser";break;case"arc":r+="Arc";break;default:r+="Unkown"}if("drinking_water"===e.amenity&&(r+="drinking water "),"yes"===e.drinking_water&&(r+="drinking water "),"works"===e.man_made||"industrial"===e.building?r+="industrial building ":"industrial"===e.landuse||"industrial"===e.abutters?r+="industrial area ":"commercial"===e.abutters&&(r+="commercial "),e["generator:source"])switch(r+="installation: ",e["generator:source"]){case"biomass":r+="biomass";break;case"biofuel":r+="biofuel";break;case"biogas":r+="biogas";break;case"coal":r+="coal";break;case"oil":r+="oil";break;case"waste":r+="waste";break;case"wind":r+="wind";break;case"solar":r+="solar";break;case"hydro":r+="hydro";break;case"tidal":r+="tidal";break;case"wave":r+="wave";break;case"geothermal":r+="geothermal";break;case"osmotic":r+="osmotic";break;case"nuclear":r+="nuclear";break;default:r+="unknown "}if("photovoltaic"===e.power_source&&(r+="photovoltaic"),"line"===e.power&&(r+="power line "),"cable"===e.power&&(r+="cable "),"cable_distribution_cabinet"===e.power&&(r+="cable distribution cabinet "),"plant"===e.power&&(r+="plant "),"station"===e.power&&(r+="station "),"sub_station"===e.power&&(r+="substation "),"compensator"===e.power&&(r+="compensator "),"converter"===e.power&&(r+="converter "),"generator"===e.power&&(r+="generator "),"heliostat"===e.power&&(r+="heliostat "),"insulator"===e.power&&(r+="insulator "),"busbar"===e.line&&(r+="busbar "),"bay"===e.line&&(r+="bay "),"minor_line"===e.power&&(r+="minor line "),"pole"===e.power&&(r+="pole "),"portal"===e.power&&(r+="portal "),"catenary_mast"===e.power&&(r+="catenary mast "),"substation"===e.power&&(r+="substation "),"switch"===e.power&&(r+="switch "),"terminal"===e.power&&(r+="terminal "),"tower"===e.power&&(r+="tower "),"transformer"===e.power&&(r+="transformer "),e.barrier)switch(e.barrier){case"bollard":r+="bollard ";break;case"cycle_barrier":r+="cycle barrier ";break;case"gate":r+="gate ";break;case"chain":r+="chain ";break;case"lift_gate":r+="lift gate ";break;case"wall":r+="wall ";break;case"toll_booth":r+="toll booth ";break;case"fence":switch(e.fence_type){case"barbed_wire":r+="barbed wire ";break;case"wood":r+="wood ";break;case"chain_link":r+="chain link ";break;case"electric":r+="electric ";break;case"railing":r+="railing ";break;case"wire":r+="wire ";break;case"metal":r+="metal ";break;case"pole":r+="pole ";break;default:r+="fence "}break;case"block":r+="block ";break;case"ditch":r+="ditch ";break;case"border_control":r+="border control ";break;case"hedge":r+="hedge ";break;case"retaining_wall":r+="retaining wall ";break;case"cattle_grid":r+="cattle grid ";break;case"horse_stile":r+="horse stile ";break;default:r+="unknown "}if("noise_barrier"===e.wall&&(r+="noise barrier "),"retaining_wall"===e.designation&&(r+="noise barrier "),"noise_barrier"===e.designation&&(r+="noise barrier "),"surveillance"===e.man_made&&(r+="surveillance "),e.aeroway)switch(r+="airport: ",e.aeroway){case"aerodrome":r+="airport";break;case"apron":r+="apron";break;case"gate":r+="gate";break;case"helipad":r+="helipad";break;case"hangar":r+="hangar";break;case"runway":r+="runway";break;case"taxiway":r+="taxiway";break;case"terminal":r+="terminal";break;default:r+="unknown "}if("stop"===e.railway&&(r+="railway stop "),"crossing"===e.railway&&(r+="crossing "),"level_crossing"===e.railway&&(r+="lvel crossing "),"station"===e.railway&&(r+="station "),"bus_station"===e.amenity&&(r+="bus station "),"bus_station"===!e.amenity&&"station"===e.public_transport&&"yes"===e.bus&&(r+="bus station "),"rail"===e.railway&&(r+="railway ","contact_line"===e.electrified&&(r+="overhead contact line ")),"tram"===e.railway&&(r+="tram "),"slipway"!==e["seamark:small_craft_facility:category"]&&"slipway"!==e.harbour&&"slipway"!==e.leisure||(r+="slipway "),"harbour"===e["seamark:type"])if(e["seamark:harbour:category"])switch(e["seamark:harbour:category"]){case"ferry":r+="ferry ";break;case"container":r+="container ";break;case"marina":"marina"!==e.leisure&&(r+="marina ");break;case"navel_base":r+="navel base ";break;case"tanker":r+="tanker ";break;case"passenger":r+="passenger ";break;case"bulk":r+="bulk ";break;default:r+="habour "}else r+="habour ";return"marina"===e.leisure&&(r+="marina "),"wreck"===e.historic&&(r+="wreck "),"animal_shelter"===e.amenity&&(r+="animal shelter "),"shelter"===e.animal&&(r+="shelter "),"horse_walker"===e.animal&&(r+="horse walker "),"yes"===e.animal_shelter&&(r+="animal shelter "),"dog"===e.animal_shelter&&(r+="animal shelter "),"cat"===e.animal_shelter&&(r+="animal shelter "),"animal_boarding"===e.amenity&&(r+="animal boarding "),"yes"===e.animal_boarding&&(r+="animal boarding "),"dog"===e.animal_boarding&&(r+="animal boarding "),"horse"===e.animal_boarding&&(r+="animal boarding "),"cat"===e.animal_boarding&&(r+="animal boarding "),"dog;cat"===e.animal_boarding&&(r+="animal boarding "),"cat;dog"===e.animal_boarding&&(r+="animal boarding "),"school"!==e.animal&&"sport"!==e.animal&&"animal_training"!==e.amenity||(r+="animal training "),"swimming"===e.animal&&(r+="swimming for dogs "),"feeding_place"!==e.amenity&&"animal_feeding"!==e.man_made&&"animal_feeding"!==e.amenity||(r+="animal feeding "),"wildlife_feeding"!==e.amenity&&"deer_feeding"!==e.amenity&&"game_feeding"!==e.amenity||(r+="wildlife feeding "),"cratch"!==e.amenity&&"cratch"!==e.man_made&&"feeding_rack"!==e.amenity||(r+="feeding rack "),"manger"===e.amenity&&(r+="manger "),"birdhouse"===e.man_made&&(r+="birdhouse "),"stork"===e.birds_nest&&(r+="storck "),"nest_box"===e.amenity&&(r+="nest box "),"wellness"===e.animal&&(r+="dog parlour "),"cemetery"===e.animal&&(r+="small animal cemetery "),"stable"!==e.building&&"stable"!==e["building:use"]||(r+="stable "),"cowshed"===e.building&&(r+="cowshed "),"sty"===e.building&&(r+="sty "),"barn"===e.building&&(r+="barn "),"farm_auxiliary"===e.building&&(r+="farm auxiliary "),(e["river:waterway_distance"]||"milestone"===e.waterway)&&(r+="milestone of waterway distance "),"milestone"===e.highway&&(r+="milestone "),"market"===e["xmas:feature"]&&(r+="Christmas fair "),"tree"===e["xmas:feature"]&&(r+="sale of Chrismas trees "),"event"===e["xmas:feature"]&&(r+="Chrismas event "),"pyramid"===e["xmas:feature"]&&(r+="Chrismas pyramid "),'"}(e),'"}function s(e,r){var n="",s=!1;if(e["addr:housename"]&&(n+="housename: "+e["addr:housename"]+" ",s=!0),e["addr:floor"]?(n+="floor: "+e["addr:floor"]+" ",s=!0):e["addr:level"]&&(n+="level: "+e["addr:level"]+" ",s=!0),e["addr:street"]&&(n+=e["addr:street"],e["addr:housenumber"]?n+=" "+e["addr:housenumber"]+" ":n+=" ",s=!0),e["addr:postcode"]&&(n+=e["addr:postcode"]+" "),e["addr:city"]&&(n+=e["addr:city"]+" ",s=!0),e.sqkm)if(e.sqkm=""+e.sqkm,e.sqkm.length>3){var l=e.sqkm.length%3,c=l>0?e.sqkm.substring(0,l):"";for(i=0;i "}else n+="area "+e.sqkm+" ";if(e["contact:phone"]&&(a()?(n+='phone: '+e["contact:phone"]+" ",s=!0):(n+='phone: '+e["contact:phone"]+" ",s=!0)),e.phone&&(a()?(n+='phone: '+e.phone+" ",s=!0):(n+='phone: '+e.phone+" ",s=!0)),e["contact:fax"]?(n+="fax: "+e["contact:fax"]+" ",s=!0):e.fax&&(n+="fax: "+e.fax+" ",s=!0),e["contact:email"]?(n+='email: '+e["contact:email"]+" ",s=!0):e.email&&(n+='email: '+e.email+" ",s=!0),s&&(n+=" "),e.opening_hours){for(var u=e.opening_hours,p=0;0===p||u.indexOf(";")>0;)p>0&&(u=u.replace(";"," ")),p++;n+='opening hours: '+u+"
",u.indexOf("PH")>0?n+="(PH = public holiday) ":n+=" "}if(e["xmas:opening_hours"]){for(u=e["xmas:opening_hours"],p=0;0===p||u.indexOf(";")>0;)p>0&&(u=u.replace(";"," ")),p++;n+='opening hours: '+u+"
",u.indexOf("PH")>0?n+="(PH = public holiday) ":n+=" "}if(e["xmas:url"]){var b="";t(b=e["xmas:url"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='website: website link '}e["contact:website"]?(b="",t(b=e["contact:website"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='website: website link '):e.website&&(b="",t(b=e.website),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='website: website link '),e.wikipedia&&(b="",t(b=e.wikipedia),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://wikipedia.org/wiki/"+b),n+='Wikipedia: Wikipedia link '),e.wikimedia_commons&&(b="",t(b=e.wikimedia_commons),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://commons.wikimedia.org/wiki/"+b),n+='Wikimedia: Wikimedia link '),e["contact:webcam"]&&(b="",t(b=e["contact:webcam"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='webcam: webcam link '),e.image&&(n+=' ');var d="";if(e.internet_access&&(d+="internet access: "+o(e.internet_access)+" "),e["internet_access:fee"]&&(d+="fee: "+o(e["internet_access:fee"])+" "),e["wifi_access:operator"]&&(d+="wifi operator: "+e["wifi_access:operator"]+" "),e["wifi_access:technology"]&&(d+="wifi technology: "+e["wifi_access:technology"]+" "),e["wifi_access:ssid"]&&(d+="wifi ssid: "+e["wifi_access:ssid"]+" "),""!==d&&(n+='internet access available'+d+"
"),e.wheelchair&&(n+="wheelchair: "+o(e.wheelchair)+" "),e["wheelchair:description"]&&(n+="description: "+e["wheelchair:description"]+" "),e["wheelchair:entrance_width"]&&(n+="entrance width (cm): "+e["wheelchair:entrance_width"]+" "),e["wheelchair:step_height"]&&(n+="step height (cm): "+e["wheelchair:step_height"]+" "),e["wheelchair:rooms"]&&(n+="rooms: "+e["wheelchair:rooms"]+" "),e["wheelchair:places"]&&(n+="places: "+e["wheelchair:places"]+" "),e["cent:places"]&&(n+="places: "+e["wheelchair:places"]+" "),e["ramp:wheelchair"]&&(n+="ramp: "+e["ramp:wheelchair"]+" "),e["capacity:disabled"]&&(n+="capacity parking: "+o(e["capacity:disabled"])+" "),e["toilets:wheelchair"]&&(n+="toilets: "+o(e["toilets:wheelchair"])+" "),e.centralkey&&(n+="centralkey: "+e.centralkey+" "),e.note&&(n+=e.note+" "),e.description&&(n+=e.description+" "),e.operator&&(n+="operator: "+e.operator+" "),e.ref&&(n+="reference: "+e.ref+" "),"yes"===e.lit&&(n+="This object is illuimanted. "),e.shop){var h="";e.brand&&(h+="brand: "+e.brand+" "),e.sells&&(h+="sells: "+e.sells+" "),e.origin&&(h+="source market: "+e.origin+" "),"yes"===e.wholesale&&(h+="distributor: yes "),""!==h&&(n+='further particulars: '+h+"
")}return r&&(t(b=r),n+=" ",n+='OSM: OpenStreetMap link '),'"}Object.defineProperty(r,"__esModule",{value:!0}),r.fnTestInfoPopup=r.fnStandardInfoPopup=r.fnReducedInfoPopup=r.fnMessstation=r.fnContentTourism=r.fnContentStreetsTraffic=r.fnContentStorage=r.fnContentSports=r.fnContentShipping=r.fnContentRoute=r.fnContentProtectedArea=r.fnContentPetrol=r.fnContentNatural=r.fnContentLanduse=r.fnContentInformationCity=r.fnContentHydrants=r.fnContentHistoric=r.fnContentHealthcare=r.fnContentGeneralInformations=r.fnContentEmergency=r.fnContentCuisine=r.fnContentBarriers=r.fnContentAmenity=r.fnContentAerodrome=r.fnContent=void 0,r.fnStandardInfoPopup=function(e,r){var t=e.getProperties(),a="";return a+=n(t,r),a+=l(t),'"},r.fnReducedInfoPopup=function(e,r){var t,a=e.getProperties(),o="",i=!1;switch(t="function"==typeof r?r.call(e)[0].getImage().getSrc():r.getImage().getSrc(),("restaurant"===a.amenity||"pub"===a.amenity||"biergarten"===a.amenity)&&(i=!0),"hotel"===a.tourism&&(i=!0),"guest_house"===a.tourism&&(i=!0),"chalet"===a.tourism&&(i=!0),"hostel"===a.tourism&&(i=!0),"alpine_hut"===a.tourism&&(i=!0),"artwork"!==a.tourism&&"artwork"!==a.amenity||(i=!0),"museum"!==a.tourism&&"museum"!==a.amenity||(i=!0),"cinema"===a.amenity&&(i=!0),"theatre"===a.amenity&&(i=!0),"attraction"!==a.amenity&&"fountain"!==a.amenity&&"monument"!==a.historic&&"city_gate"!==a.historic&&"ruins"!==a.historic&&"castle"!==a.historic&&"attraction"!==a.tourism||(i=!0),"playground"===a.leisure&&(i=!0),a.aerialway&&(i=!0),"swimming_pool"!==a.amenity&&"swimming_pool"!==a.leisure&&"swimming"!==a.sport||(i=!0),"station"===a.railway&&(i=!0),"swimming"===a.sport&&(i=!0),"swimming_pool"===a.leisure&&(i=!0),"swimming_pool"===a.amenity&&(i=!0),"waterpark"===a.leisure&&(i=!0),a.water_park&&(i=!0),"sports_centre"===a.leisure&&(i=!0),i){case!1:o+=n(a,t),o+=l(a),o+=s(a,e.get("osm_type")?e.get("osm_type")+"/"+e.getId():e.getId());break;case!0:o+=n(a,t)}return'"};var l=r.fnContent=function(e){var r="";return r+=O(e),r+=T(e),r+=c(e),r+=w(e),r+=S(e),r+=C(e),r+=E(e),r+=R(e),r+=k(e),r+=v(e),r+=_(e),r+=y(e),r+=f(e),r+=h(e),r+=m(e),r+=g(e),r+=b(e),r+=u(e),r+=function(e){var r="";if(e["monastery:type"])switch(e["monastery:type"]){case"monastery":r+="type: monastery ";break;case"convent":r+="type: convent ";break;case"canonry":r+="type: canonry ";break;case"commandry":r+="type: commandry ";break;case"hermitage":r+="type: hermitage ";break;default:r+="type: unknown "}if(e["community:gender"]&&("male"===e["community:gender"]&&(r+="gender: male "),"female"===e["community:gender"]&&(r+="gender: female ")),e.religious_rank&&("abbey"===e.religious_rank||"abbey"===e.religious_rank)&&(r+="religious rank: abbey "),"yes"===e.shrine&&(r+="feature: shrine "),"yes"===e.sanctuary&&(r+="feature: sanctuary "),e.religion)switch(e.religion){case"animist":r+="religion: animist ";break;case"bahai":r+="religion: bahai ";break;case"buddhist":r+="religion: buddhist ";break;case"christian":r+="religion: christian ";break;case"hindu":r+="religion: hindu ";break;case"IglesiaNiCristo":r+="religion: IglesiaNiCristo ";break;case"jain":r+="religion: jain ";break;case"jewish":r+="religion: jewish ";break;case"multifaith":r+="religion: multifaith ";break;case"muslim":r+="religion: muslim ",type+="Mosque ";break;case"pagan":r+="religion: pagan ";break;case"pastafarian":r+="religion: pastafarian ";break;case"scientologist":r+="religion: scientologist ";break;case"shinto":r+="religion: shinto ";break;case"sikh":r+="religion: sikh ";break;case"spiritualist":r+="religion: spiritualist ";break;case"taoist":r+="religion: taoist ";break;case"unitarian":r+="religion: unitarian ";break;case"yazidi":r+="religion: yazidi ";break;case"zoroastrian":r+="eligion: zoroastrian ";break;default:r+="religion: unknown "}if(e.denomination)switch(e.denomination){case"anglican":r+="denomination: Anglican ";break;case"baptist":r+="denomination: Baptist ";break;case"catholic":r+="denomination: Catholic ";break;case"roman_catholic":r+="denomination: Roman Catholic ";break;case"old_catholic":r+="denomination: Old Catholic ";break;case"greek_catholic":r+="denomination: Greek Catholic ";break;case"evangelical":r+="denomination: Evangelical";case"jehovahs_witness":r+="denomination: Jehovahs Witness ";break;case"lutheran":r+="denomination: Lutheran ";break;case"mennonite":r+="denomination: Mennonite ";break;case"messianic_jewish":r+="denomination: Messianic Jewish ";break;case"methodist":r+="denomination: Methodist ";break;case"mormon":r+="denomination: Mormon ";break;case"new_apostolic":r+="denomination: New Apostolic ";break;case"orthodox":r+="denomination: Orthodox ";break;case"greek_orthodox":r+="denomination: Greek Orthodox ";break;case"coptic_orthodox":r+="denomination: coptic orthodox ";break;case"pentecostal":r+="denomination: pentecostal ";break;case"presbyterian":r+="denomination: Presbyterian ";break;case"protestant":r+="denomination: Protestant ";break;case"quaker":r+="denomination: Quaker ";break;case"reformed":r+="denomination: Reformed ";break;case"russian_orthodox":r+="denomination: Russian-Orthodox ";break;case"seventh_day_adventist":r+="denomination: Seventh Day Adventist ";break;case"christian_community":r+="denomination: Christian Community ";break;case"adventist":r+="denomination: Adventist ";break;case"alliance":r+="denomination: Alliance ";break;case"assemblies_of_god":r+="denomination: Assemblies of God ";break;case"apostolic":r+="denomination: Apostolic ";break;case"armenian_apostolic":r+="denomination: Armenian Apostolic ";break;case"assyrian":r+="denomination: Assyrian ";break;case"christ_scientist":r+="denomination: Christ Scientist ";break;case"church_of_scotland":r+="denomination: Church of Scotland ";break;case"czechoslovak_hussite":r+="denomination: Czechoslovak Hussite ";break;case"dutch_reformed":r+="denomination: Dutch Reformed ";break;case"exclusive_brethren":r+="denomination: Exclusive Brethren ";break;case"foursquare":r+="denomination: Foursquare ";break;case"kimbanguist":r+="denomination: Kimbanguist ";break;case"living_waters_church":r+="denomination: Living Waters Church ";break;case"mariavite":r+="denomination: Mariavite ";break;case"maronite":r+="denomination: Maronite ";break;case"moravian":r+="denomination: Moravian ";break;case"nazarene":r+="denomination: Nazarene ";break;case"nondenominational":r+="denomination: Nondenominational ";break;case"old_believers":r+="denomination: Old Believers ";break;case"polish_catholic":r+="denomination: Polish-Catholic ";break;case"salvation_army":r+="denomination: Salvation Army ";break;case"santo_daime":r+="denomination: Santo Daime ";break;case"serbian_orthodox":r+="denomination: Serbisch-Orthodox ";break;case"spiritism":r+="denomination: Spiritism ";break;case"united":r+="denomination: United ";break;case"united_church_of_christ":r+="denomination: United Church of Christ ";break;case"united_free_church_of_scotland":r+="denomination: United Free Church of Scotland ";break;case"united_methodist":r+="denomination: United Methodist ";break;case"united_reformed":r+="denomination: United Reformed ";break;case"uniting":r+="denomination: Uniting ";break;case"church_of_sweden":r+="denomination: Church of Sweden ";break;case"mission_covenant_church_of_sweden":r+="denomination: Mission Covenant Church Of Sweden ";break;case"alternative":r+="denomination: alternative ";break;case"ashkenazi":r+="denomination: ashkenazi ";break;case"buchari":r+="denomination: buchari ";break;case"conservative":r+="denomination: conservative ";break;case"egalitarian":r+="denomination: egalitarian ";break;case"hasidic":r+="denomination: hasidic ";break;case"humanistic":r+="denomination: humanistic ";break;case"kabbalah":r+="denomination: kabbalah ";break;case"kabbalistic":r+="denomination: kabbalistic ";break;case"karaite":r+="denomination: karaite ";break;case"liberal":r+="denomination: liberal ";break;case"lubavitch":r+="denomination: lubavitch ";break;case"lubavitch_messianic":r+="denomination: lubavitch messianic ";break;case"mizrachi_baghdadi":r+="denomination: mizrachi baghdadi ";break;case"mizrachi_chida":r+="denomination: mizrachi chida ";break;case"mizrachi_jerusalemite":r+="denomination: mizrachi jerusalemite ";break;case"mizrachi_livorno":r+="denomination: mizrachi livorno ";break;case"mizrachi_moroccan":r+="denomination: mizrachi moroccan ";break;case"modern_orthodox":r+="denomination: modern orthodox ";break;case"neo_orthodox":r+="denomination: neo orthodox ";break;case"nondenominational":r+="denomination: nondenominational ";break;case"orthodox":r+="denomination: orthodox ";break;case"orthodox_ashkenaz":r+="denomination: orthodox ashkenaz ";break;case"orthodox_sefard":r+="denomination: orthodox sefard ";break;case"progressive":r+="denomination: progressive ";break;case"reconstructionist":r+="denomination: reconstructionist ";break;case"reform":r+="denomination: reform ";break;case"renewal":r+="denomination: renewal ";break;case"samaritan":r+="denomination: samaritan ";break;case"sefardi":r+="denomination: sefardi ";break;case"sefardi_amsterdam":r+="denomination: sefardi amsterdam ";break;case"sefardi_london":r+="denomination: sefardi london ";break;case"traditional":r+="denomination: traditional ";break;case"ultra_orthodox":r+="denomination: ultra orthodox ";break;case"unaffiliated":r+="denomination: unaffiliated ";break;case"yemenite":r+="denomination: yemenite ";break;case"yemenite_baladi":r+="denomination: yemenite baladi ";break;case"yemenite_shami":r+="denomination: yemenite shami ";break;case"ahmadiya":r+="denomination: ahmadiya ";break;case"alaouite":r+="denomination: alaouite ";break;case"druze":r+="denomination: druze ";break;case"ibadi":r+="denomination: ibadi ";break;case"ismaili":r+="denomination: ismaili ";break;case"shia":r+="denomination: shia ";break;case"sunni":r+="denomination: sunni ";break;case"nichiren":r+="denomination: nichiren ";break;case"jodo_shinshu":r+="denomination: jodo shinshu ";break;case"jodo_shu":r+="denomination: jodo shu ";break;case"vajrayana":r+="denomination: vajrayana ";break;case"shingon_shu":r+="denomination: shingon shu ";break;case"zen":r+="denomination: zen ";break;case"thai_mahanikaya":r+="denomination: thai mahanikaya ";break;case"thai_thammayut":r+="denomination: thai thammayut ";break;case"asatru":r+="denomination: asatru ";break;case"celtic":r+="denomination: celtic ";break;case"greco_roman":r+="denomination: greco roman ";break;case"wicca":r+="denomination: wicca ";break;case"irani":r+="denomination: irani ";break;case"parsi":r+="denomination: parsi ";break;default:r+="unknown "}if(e.community)switch(e.community){case"AA":r+="community (AA): Augustinians of the Assumption ";break;case"BSCM":r+="community (BSCM): Adorers of the Sacred Heart of Jesus of Montmartre ";break;case"CBMV":r+="community (CBMV): Augustiner-Chorfrauen B.M.V. ";break;case"CO":r+="community (CO): Oratorians ";break;case"CMC":r+="community (CMC): Congregation of the Mother Co-Redemptrix ";break;case"CRSP":r+="community (CRSP): Kongregation der Regularkleriker vom hl. Paulus (Barnabiten) ";break;case"CSJ":r+="community (CSJ): Carmel Saint-Joseph ";break;case"CSSP":r+="community (CSSP): Congrégation du Saint-Esprit ";break;case"CSSR":r+="community (CSSR): Congrégation du Très Saint Rédempteur ";break;case"FCJM":r+="community (FCJM): Franciscan Sisters, Daughters of the Sacred Heart of Jesus and Mary ";break;case"FMGB":r+="community (FMGB): Suore Francescane Missionarie di Gesù Bambino ";break;case"FMH":r+="community(FMH): Congregatio Filiarum Mariae Sanctissimae ab Horto ";break;case"FMM":r+="community (FMM): Franciscaines missionnaires de Marie ";break;case"FSC":r+="community (FSC): Frères des Écoles chrétiennes ";break;case"MCCI":r+="community (MCCI): Missionnaires comboniens du Sacré-Cœur ";break;case"MSFS":r+="community (MSFS): Missionnaires de Saint François de Sales ";break;case"OCart":r+="community (OCart): Order of the Carthusians ";break;case"OCC":r+="community (OCC): Ordre de Notre Dame du Mont-Carmel ";break;case"OCD":r+="community (OCD): Ordre des Carmes déchaux ";break;case"OCSO":r+="community (OCSO): Trappists (lat. Ordo Cisterciensis Strictioris Observantiae) ";break;case"OFM":r+="community (OFM): Ordre des Frères Mineurs (Franziskaner) ";break;case"OFMCap":r+="community (OFMCap): Ordre des Frères Mineurs Capucins ";break;case"OFMConv":r+="community (OFMConv): Ordre des Frères Mineurs Conventuels ";break;case"OFS":r+="community (OFS): Franciscans secular Third Order ";break;case"OMI":r+="community (OMI): Oblats de Marie ";break;case"OP":r+="community (OP): Ordre des Frères Prêcheurs ";break;case"OPraem":r+="community (OPraem): Ordre des chanoines réguliers de Prémontré ";break;case"OSB":r+="community (OSB): Order of Saint Benedict ";break;case"OSC":r+="community (OSC): Ordre de Sainte-Claire ou Ordre des Pauvres Dames ";break;case"OSSS":r+="community (OSSS): Ordre de Sainte-Brigitte ";break;case"OVM":r+="community (OVM): Order of the Visitation of Holy Mary (Salesianerinnen) ";break;case"PSDP":r+="community (PSDP): Petites sœurs des pauvres (Kleinen Schwestern der Armen) ";break;case"PFJ":r+="community (PFJ): Petits Frères de Jésus ";break;case"SDB":r+="community (SDB): Société de Saint François de Sales ";break;case"SJ":r+="community (SJ): Compagnie de Jésus ";break;case"SOC":r+="community (SOC): Order of Cistercians ";break;case"SSCC":r+="community (SSCC): Congregation of the Sacred Hearts of Jesus and Mary ";break;case"SSF":r+="community (SSF): Society of St Francis ";break;case"SSJE":r+="community (SSJE): Society of St John the Evangelist ";break;case"SSpS":r+="community (SSpS): Steyler Missionsschwestern ";break;case"TOR":r+="community (TOR): Terzo Ordine Regolare di San Francesco ";break;default:r+="unknown "}return r}(e),r+=function(e){var r="";return"surveillance"===e.man_made&&("indoor"===e.surveillance&&(r+="indoor surveillance"),"outdoor"===e.surveillance&&(r+="outdoor surveillance"),"public"===e.surveillance&&(r+="public surveillance"),"camera"===e["surveillance:type"]&&(r+="type of surveillance: camera"),"guard"===e["surveillance:type"]&&(r+="type of surveillance: guard"),"ALPR"===e["surveillance:type"]&&(r+="type of surveillance: ALPR"),"town"===e["surveillance:zone"]&&(r+="zone of surveillance: town"),"parking"===e["surveillance:zone"]&&(r+="zone of surveillance: parking"),"traffic"===e["surveillance:zone"]&&(r+="zone of surveillance: traffic"),"shop"===e["surveillance:zone"]&&(r+="zone of surveillance: shop"),"bank"===e["surveillance:zone"]&&(r+="zone of surveillance: bank"),"building"===e["surveillance:zone"]&&(r+="zone of surveillance: building")),r}(e),r+=function(e){var r="";return e["building:color"]&&(r+="building color: "+e["building:color"]+""),e["building:height"]&&(r+="building height: "+e["building:height"]+" m"),e["building:level"]&&(r+="level: "+e["building:level"]+""),e["building:part"]&&(r+="building part: "+e["building:part"]+""),e["roof:color"]&&(r+="roof color: "+e["roof:colour"]+""),e["roof:shape"]&&(r+="roof shape: "+e["roof:shape"]+""),e["roof:height"]&&(r+="roof height: "+e["roof:height"]+" m"),e["roof:material"]&&(r+="roof material: "+e["roof:material"]+" "),e["roof:orientation"]&&(r+="roof orientation: "+e["roof:orientation"]+" "),e["roof:direction"]&&(r+="roof direction: "+e["roof:direction"]+" "),e["building:type"]&&(r+="building type: "+e["building:type"]+""),r}(e),r+=function(e){var r="";if(e["generator:method"]){switch(r+="method of generation: ",e["generator:method"]){case"combustion":r+="combustion";break;case"thermal":r+="thermal";break;case"pumping":r+="pumping";break;case"photovoltaic":r+="photovoltaic";break;case"gasification":r+="gasification";break;case"anaerobic_digestion":r+="anaerobic digestion";break;case"pyrolysis":r+="pyrolysis";break;case"fission":r+="fission";break;case"fusion":r+="fusion";break;default:r+="unknown "}r+=" "}return e.power_source&&(r+="power source: ","photovoltaic"===e.power_source?r+="photovoltaic":r+="unknown ",r+=" "),e["generator:output:electricity"]&&(r+="electricity generation: "+e["generator:output:electricity"]+" "),e["generator:output:heat"]&&(r+="heat generation: "+e["generator:output:heat"]+" "),e["generator:output:cold"]&&(r+="cold generation: "+e["generator:output:cold"]+" "),e["generator:output"]&&(r+="output: "+e["generator:output"]+" "),e["generator:output:hot_air"]&&(r+="hot-air generation: "+e["generator:output:hot_air"]+" "),e["generator:output:cold_water"]&&(r+="cold water generation: "+e["generator:output:cold_water"]+" "),e["generator:output:cold_air"]&&(r+="cold air generation: "+e["generator:output:cold_air"]+" "),e["generator:output:compressed_air"]&&(r+="compressed air generation: "+e["generator:output:compressed_air"]+" "),e["generator:output:steam"]&&(r+="steam generation: "+e["generator:output:steam"]+" "),e["generator:output:vacuum"]&&(r+="vacuum generation: "+e["generator:output:vacuum"]+" "),e["generator:output:battery_charging"]&&(r+="battery charging: "+e["generator:output:battery_charging"]+" "),"PWR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-1"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-2"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-3"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-4"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-5"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-6"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"PHWR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"GCR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"FBR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"RBMK-1000"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"RBMK-1500"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"VVER"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"CANDU"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"CPR-1000"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"EPR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"tokamak"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"stellarator"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"ICF"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"cold-fusion"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"wind_turbine"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="generator method: horizontal axis wind turbine "),"wind_turbine"===e["generator:method"]&&"vertical_axis"===e["generator:type"]&&(r+="generator method: vertical axis wind turbine "),"francis_turbine"===e["generator:type"]&&(r+="generator type: francis-turbine "),"kaplan_turbine"===e["generator:type"]&&(r+="generator type: kaplan-turbine "),"pelton_turbine"===e["generator:type"]&&(r+="generator type: pelton-turbine "),"stream"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="generator method: horizontal axis sea current power station "),"stream"===e["generator:method"]&&"vertical_axis"===e["generator:type"]&&(r+="generator type: vertical axis sea current power station "),"steam_turbine"===e["generator:type"]&&(r+="generator type: steam turbine "),"heat_pump"===e["generator:type"]&&(r+="generator type: heat pump "),"solar_thermal_collector"===e["generator:type"]&&(r+="generator type: solar thermal collector "),"solar_photovoltaic_panel"===e["generator:type"]&&(r+="generator type: solar photovoltaic panel "),"steam_generator"===e["generator:type"]&&(r+="generator type: steam generator "),"gas_turbine"===e["generator:type"]&&(r+="generator type: gas turbine "),"combined_cycle"===e["generator:type"]&&(r+="generator type: combined cycle "),"reciprocating_engine"===e["generator:type"]&&(r+="generator type: reciprocating engine "),r}(e),r+=d(e),r+=function(e){var r="";return"container"!==e.recycling_type&&"centre"!==e.recycling_type&&"recycling"!==e.amenity||("yes"===e["recycling:glass"]&&(r+="glass container"),"yes"===e["recycling:shoes"]&&(r+="shoe container"),"yes"===e["recycling:cooking_oil"]&&(r+="recycling of cooking oil"),"yes"===e["recycling:paper"]&&(r+="recycling of paper"),"yes"===e["recycling:engine_oil"]&&(r+="recycling of engine oil"),"yes"===e["recycling:clothes"]&&(r+="recycling of clothes"),"yes"===e["recycling:car_batteries"]&&(r+="recycling of car batteries"),"yes"===e["recycling:cans"]&&(r+="recycling of cans"),"yes"===e["recycling:scrap_metal"]&&(r+="recycling of scrap metal"),"yes"===e["recycling:plastic"]&&(r+="recycling of plastic"),"yes"===e["recycling:batterries"]&&(r+="recycling of batterries"),"yes"===e["recycling:plastic_bottles"]&&(r+="recycling of plastic bottles"),"yes"===e["recycling:green_waste"]&&(r+="recycling of green waste"),"yes"===e["recycling:hardcore"]&&(r+="recycling of hardcore")),r}(e),(r+=p(e))&&(r=" "+r),'"},c=r.fnContentAerodrome=function(e){var r="";return e.aerodrome&&("international"===e.aerodrome&&(r+="type of airport: international "),"regional"===e.aerodrome&&(r+="type of airport: regional "),"gliding"===e.aerodrome&&(r+="type of airport: gliding "),"private"===e.aerodrome&&(r+="type of airport: private ")),e.iata&&(r+="IATA-Code: "+e.iata+" "),e.icao&&(r+="ICAO-Code: "+e.icao+" "),r},u=r.fnContentNatural=function(e){var r="";if((e.forest||e.wood)&&("broadleaved"!==e.leaf_type&&"deciduous"!==e.wood||(r+="broadleaved "),"needleleaved"!==e.leaf_type&&"coniferous"!==e.wood||(r+="needleleaved "),"mixed"!==e.leaf_type&&"mixed"!==e.wood||(r+="mixed "),"leafless"===e.leaf_type&&(r+="leafless "),"evergreen"===e.wood&&(r+="evergreen "),"palm"===e.wood&&(r+="palm "),"nipa_palm"===e.wood&&(r+="nipa palm "),"eucalypt"===e.wood&&(r+="eucalypt "),"filao"!==e.wood&&"casuarina"!==e.wood||(r+="casuarina ")),"tree"===e.natural&&(e["genus:de"]||e["species:de"]||e.leaf_type&&("broadleaved"===e.leaf_type||"deciduous"===e.leaf_type||"broadleafed"===e.leaf_type?r+="broad-leaved ":r+="conifer "),e.genus&&(r+=e.genus+" "),e["genus:de"]&&(r+=e["genus:de"]+" "),e.species&&(r+=e.species+" "),e["species:de"]&&(r+=e["species:de"]+" "),"landmark"===e.denotation&&(r+="landmark "),"natural_monument"!==e.denotation&&"yes"!==e.monument||(r+="natural monument ")),"manger"===e["feeding:type"]&&(r+="manger:rack for fodder "),"automated"===e["feeding:type"]&&(r+="automated "),e["feeding:for"])switch(e["feeding:for"]){case"sheep":r+="animal: sheep ";break;case"horse":r+="animal: horse ";break;case"cow":r+="animal: cow ";break;case"rabbit":r+="animal: rabbit ";break;case"bunny":r+="animal: bunny ";break;case"cat":r+="animal: cat ";break;case"swan":r+="animal: swan ";break;case"guinea pig":case"guinea pig":r+="animal: guinea pig ";break;case"donkey":r+="animal: donkey ";break;case"squirrel":r+="animal: squirrel ";break;case"pig":r+="animal: pig ";break;case"deer":r+="animal: deer ";break;case"monkey":r+="animal: monkey ";break;case"camel":r+="animal: camel ";break;case"goat":r+="animal: goat ";break;case"hamster":r+="animal: hamster ";break;case"alpaca":r+="animal: alpaca ";break;default:r+="animal: unknown "}if(e["feeding:fodder"])switch(e["feeding:fodder"]){case"hay":r+="feed with: hay";break;case"grain":r+="feed with: grain";break;case"corn":r+="feed with: corn*br>";break;default:r+="feed with: unknown"}return"volcano"===e.natural&&"active"===e.status&&(r+="active volcano "),"volcano"===e.natural&&"dormant"===e.status&&(r+="dormant volcano "),"volcano"===e.natural&&"extinct"===e.status&&(r+="extinct volcano "),"volcano"===e.natural&&"stratovolcano"===e.type&&(r+="type of volcanism:stratovolcano "),"volcano"===e.natural&&"shield"===e.type&&(r+="type of volcanism:shield "),"volcano"===e.natural&&"scoria"===e.type&&(r+="type of volcanism:scoria "),r},p=r.fnContentProtectedArea=function(e){var r="",t="";return"protected_area"===e.boundary&&(e.protect_class&&(t=e.protect_class),e.protect_id&&(t=e.protect_id),"1"===t&&(r="description: Strict Nature Reserve, Wilderness Area "),"2"===t&&(r="description: National Park "),"3"===t&&(r="description: Natural Monument or Feature "),"4"===t&&(r="description: Habitat/Species Management Area "),"5"===t&&(r="description: Protected Landscape/ Seascape "),"6"===t&&(r="description: Protected area with sustainable use of natural resources "),"7"===t&&(r="description: nature-feature area "),"97"===t&&(r="description: protected by continental agreements "),"98"===t&&(r="description: protected by interstate- or international conventions "),"99"===t&&(r="other continental or international national protected areas "),"21"===t&&(r="description: Community life: religious, sacred areas, associative locations, recreation "),"22"===t&&(r="description: Cultural assets (cultural assets and - efforts, districts historical heritage, monument conservation) "),"23"===t&&(r="description: Protection in favor of economics "),"24"===t&&(r="description: Political protection "),"25"===t&&(r="description: Military areas (military refuges, test area) "),"26"===t&&(r="description: Historic: for colonial-stuff and protectorates. "),"29"===t&&(r="description: other social protected areas "),"11"===t&&(r="description: soil: crop yield, erosion protection, ... "),"12"===t&&(r="description: water: water protection area, fresh water, drinking water, springs, ... "),"13"===t&&(r='description: climate and -air: gasper supply/cold air, ...for emission-, immission control in OSM existent, see "Low Emission Zone" (LEZ) '),"14"===t&&(r="description: species: no fishing, protected for fishery, protected for hunting, plants, ... "),"15"===t&&(r="description: location condition: floodwater retention area, protection forest, grazing land, ... "),"16"===t&&(r='description: longtime hazard area: contamination, earth-moving area, "problem sites" ... '),"19"===t&&(r="description: other national resources protected areas ")),r},b=r.fnContentLanduse=function(e){var r="";return"quarry"===e.landuse&&e.resource&&(r+="Resource: "+e.resource+" "),"open_stable"===e["animal_keeping:type"]&&(r+="open stable "),"field_shelter"===e["animal_keeping:type"]&&(r+="field shelter "),"paddock"===e["animal_keeping:type"]&&(r+="paddock "),e.animal_keeping&&(r+="animals: horses "),r},d=r.fnMessstation=function(e){var r="";return"yes"===e["monitoring:water_level"]&&(r+="water level "),"yes"===e["monitoring:seismic_activity"]&&(r+="seismic activity "),"yes"===e["monitoring:tide_gauge"]&&(r+="tide gauge "),"yes"===e["monitoring:weather"]&&(r+="weather "),"yes"===e["monitoring:air_quality"]&&(r+="air quality "),r},h=r.fnContentRoute=function(e){var r="";return e.route&&("yes"===e.roundtrip&&(r+="roundtrip "),e.length&&(r+="length: "+e.length+" "),e.distance&&(r+="distance: "+e.distance+" "),e.symbol&&(r+="symbol: "+e.symbol+" ")),r},m=r.fnContentPetrol=function(e){var r="";return"fuel"===e.amenity&&("yes"===e["fuel:biodiesel"]&&(r+="biodiesel "),"yes"===e["fuel:e85"]&&(r+="e85 "),"yes"===e["fuel:e10"]&&(r+="e10 "),"yes"===e["fuel:lpg"]&&(r+="lpg "),"yes"===e["fuel:cng"]&&(r+="cng "),"diesel"===e.fuel&&(r+="diesel "),"lpg"===e.fuel&&(r+="lpg "),"yes"===e["fuel:octane_95"]&&(r+="octane 95 "),"yes"===e["fuel:octane_98"]&&(r+="octane 98 "),"yes"===e["fuel:octane_100"]&&(r+="octane 100 "),"yes"===e["fuel:octane_102"]&&(r+="octane 102 "),"yes"===e["fuel:diesel"]&&(r+="diesel "),"yes"===e["fuel:electricity"]&&(r+="charging station / loading station ")),r},g=(r.fnContentHistoric=function(e){var r="";if("archaeological_site"===e.historic&&e.site_type)switch(e.site_type){case"megalith":r+="megalith ";break;case"bigstone":r+="bigstone ";break;case"tumulus":r+="tumulus ";break;case"fortification":r+="fortification ";break;default:r+="unknown "}return r},r.fnContentBarriers=function(e,r){var t="";return"wall"!==e.barrier&&"bollard"!==e.barrier||e.material&&(t+="material: "+o(e.material)+" "),t}),f=r.fnContentTourism=function(e){var r="";return"camp_site"===e.tourism&&("yes"===e.dog&&(r+="dogs allowed "),"no"===e.dog&&(r+="dogs forbidden "),e.stars&&(r+=e.stars+"stars "),e.caravans&&(r+="caravan sites "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="Thers is an openfire. "),"yes"===e.washing_machine&&(r+="washing machine "),"yes"===e.dryer&&(r+="dryer "),"yes"===e.group_only&&(r+="use for groups only "),"reception"===e.camp_site&&(r+="reception available ")),"information"===e.tourism&&"map"===e.information&&("topo"===e.map_type&&(r+="topo"),"street"===e.map_type&&(r+="street"),"scheme"===e.map_type&&(r+="scheme"),"toposcope"===e.map_type&&(r+="toposcope")),"information"===e.tourism&&"map"===e.information&&("site"===e.map_size&&(r+="map of site"),"city"===e.map_size&&(r+="city map"),"region"===e.map_size&&(r+="map of region")),"geology"===e.board_type&&(r+="geologic information "),"history"===e.board_type&&(r+="historic information "),"nature"===e.board_type&&(r+="information about nature "),"notice"===e.board_type&&(r+="general information "),"plants"===e.board_type&&(r+="information about plants "),"wildlife"===e.board_type&&(r+="information about wildlife "),r},y=r.fnContentAmenity=function(e){var r="";if("boat_sharing"===e.amenity&&(r+=e.boattype+" "),"embassy"===e.amenity&&(r+=e.country+" "),e.vending)switch(e.vending){case"admission_tickets":r+="tickets ";break;case"animal_feed":r+="animal feed ";break;case"books":r+="books ";break;case"candles":r+="candles ";break;case"cigarettes":r+="cigarettes ";break;case"condoms":r+="condoms ";break;case"drinks":r+="drinks ";break;case"first_aid":r+="first aid articles ";break;case"fishing_tackle":r+="fishing tackle ";break;case"flowers":r+="flowers ";break;case"ice_cream":r+="ice cream ";break;case"laundry_detergent":r+="laundry detergent ";break;case"newspapers":r+="newspapers ";break;case"SIM_cards":r+="sIM-cards ";break;case"sweets":r+="sweets ";break;case"parcel_pickup":r+="parcel pickup ";break;case"ice_cubes":r+="ice cubes ";break;case"public_transport_tickets":r+="public transport tickets ";break;case"parking_ticket":r+="parking tickets ";break;case"sex_toys":r+="sex toys ";break;case"stamps":r+="stamps ";break;case"toll":r+="toll ";break;case"umbrellas":r+="umbrellas ";break;default:r+="content unknown "}return"post_box"===e.amenity&&(e.collection_times&&(r+="collection times: "+e.collection_times+" "),"yes"===e.drive_through&&(r+="accessible by car. ")),r},_=r.fnContentStorage=function(e){var r="";if("storage_tank"===e.man_made){if(e.content){switch(t=e.content){case"fuel":t="fuel";break;case"oil":t="oil";break;case"gas":t="gas";break;case"slurry":t="slurry";break;case"cement":t="cement";break;case"water":t="water";break;case"manure":t="manure";break;case"silage":t="silage"}r+="content: "+t+" "}if(e.contents){var t;switch(t=e.contents){case"fuel":t="fuel";break;case"oil":t="oil";break;case"gas":t="gas";break;case"slurry":t="slurry";break;case"cement":t="cement";break;case"water":t="water";break;case"manure":t="manure";break;case"silage":t="silage"}r+="content: "+t+" "}}return e.storage&&("gas"===e.storage&&(r+="content: gas "),"oil"===e.storage&&(r+="content: oil ")),r},k=r.fnContentInformationCity=function(e){var r="";if(e["name:de"]&&(r+="german name: "+e["name:de"]+" "),e.population>=1e4)if(e.population=""+e.population,e.population.length>3){var t=e.population.length%3,a=t>0?e.population.substring(0,t):"";for(i=0;i "}else r+="population "+e.population+" ";return e.population<=1e4&&(r+="population: "+e.population+" "),r},v=r.fnContentEmergency=function(e){var r="";if(e.lifeboat&&("inshore"===e.lifeboat?r+="application: inshore ":"offshore"===e.lifeboat&&(r+="application: offshore ")),e["lifeboat:class"]&&(r+="type of boat: "+e["lifeboat:class"]+" "),e["siren:type"]){switch(t=e["siren:type"]){case"mechanical":t="mechanical";break;case"electronic":t="electronic";break;case"pneumatic":t="pneumatic";break;case"electromechanic":t="electromechanic"}r+="Typ: "+t+" "}if(e["siren:purpose"]){var t;switch(t=e["siren:purpose"]){case"air_raid":t="air raid";break;case"tornado":t="tornado";break;case"storm":t="storm";break;case"civil_defense":t="civil defence";break;case"fire":t="fire"}r+="use: "+t+" "}return e["siren:model"]&&(r+="model: "+e["siren:model"]+" "),e["siren:range"]&&(r+="range of siren: "+e["siren:range"]+" "),r},w=r.fnContentCuisine=function(e){var r="";if(e.cuisine){var t="";"supermarket"!==e.shop&&"convenience"!==e.shop&&"deli"!==e.shop&&"organic"!==e.shop||"restaurant"===e.amenity?r+="cuisine: ":r+="specialties: ","arabic"===e.cuisine&&(t+="arabic "),"italian"===e.cuisine&&(t+=" italian "),"international"===e.cuisine&&(t+=" international "),"regional"===e.cuisine&&(t+=" regional "),"chinese"===e.cuisine&&(t+=" chinese "),"greek"===e.cuisine&&(t+=" greek "),"african"===e.cuisine&&(t+=" african "),"german"===e.cuisine&&(t+=" german "),"mexican"===e.cuisine&&(t+=" mexican "),"french"===e.cuisine&&(t+=" french "),"indian"===e.cuisine&&(t+=" indian "),"iranian"===e.cuisine&&(t+=" iranian "),"lebanese"===e.cuisine&&(t+=" lebanese "),"thai"===e.cuisine&&(t+=" thai "),"balkan"===e.cuisine&&(t+=" balkan "),"turkish"===e.cuisine&&(t+=" turkish "),"bavarian"===e.cuisine&&(t+=" bavarian "),"czech"===e.cuisine&&(t+=" czech "),"portuguese"===e.cuisine&&(t+=" portuguese "),"spanish"===e.cuisine&&(t+=" spanish "),"japanese"===e.cuisine&&(t+=" japanese "),"fish"===e.cuisine&&(t+=" fish "),"brazilian"===e.cuisine&&(t+=" brazilian "),"asian"===e.cuisine&&(t+=" asian "),"mediterranean"===e.cuisine&&(t+="mediterranean "),"seafood"===e.cuisine&&(t+=" seafood "),"ice_cream"===e.cuisine&&(t+=" ice cream "),"burger"===e.cuisine&&(t+=" burger "),"frozen_yogurt"===e.cuisine&&(t+=" frozen yogurt "),""===t&&(t=e.cuisine+" "),r+=t}return r},S=r.fnContentShipping=function(e){var r="";if((e.harbour="yes")&&("yes"===e["access:tide"]&&(r+="Access restricted by tide"),"yes"===e["access:swell"]&&(r+="access restricted by swell"),"yes"===e["access:ice"]&&(r+="access restricted by ice"),e.vhf_channel&&(r+="UKW-Channel: "+e.vhf_channel+""),e.mmsi&&(r+="MMSI-Number: "+e.mmsi+""),e["harbour:information"]&&(r+="information :"+e["harbour:information"]+"")),"yes"===e.motorboat&&(r+="motorboat allowed"),"no"===e.motorboat&&(r+="motorboat prohibited "),e.CEMT&&(r+="CEMT: "+e.CEMT+""),"yes"===e.intermittent&&(r+="river intermittent dried out"),"yes"===e.tidal&&(r+="tidal influence the flow"),e.draft&&(r+=" driving depth of water: "+e.draft+" m"),"slipway"!==e.leisure&&"slipway"!==e.harbour||("hand"===e.operating&&(r+="operating: by hand "),"car"===e.operating&&(r+="operating: by car, boat trailer "),"cable_winch"===e.operating&&(r+="operating: with cable winch "),"travellift"===e.operating&&(r+="operating: by travellift "),"crane"===e.man_made&&(r+="by crane ",e["crane:maxload"]&&(r+="maxload: "+e["crane:maxload"]+" "),e["ship:maxdraft"]&&(r+="maximum permissible draught: "+e["ship:maxdraft"]+" "),e["ship:maxlength"]&&(r+="maximum permissible length of a ship: "+e["ship:maxlength"]+" ")),"yes"===e.vehicle&&(r+="accessible by vehicle ")),r+=function(e){var r="";return"wreck"===e.historic&&(e["wreck:date_sunk"]&&(r+="sunk: "+e["wreck:date_sunk"]+" "),e["wreck:depth"]&&(r+="depth: "+e["wreck:depth"]+" "),e["wreck:clearance"]&&(r+="clearance: "+e["wreck:clearance"]+" "),e["wreck:date_commissioned"]&&(r+="commissioned: "+e["wreck:date_commissioned"]+" "),e["wreck:gross_tonnage"]&&(r+="gross tonnage: "+e["wreck:gross_tonnage"]+" "),e["wreck:length"]&&(r+="length: "+e["wreck:length"]+" "),e["wreck:width"]&&(r+="width: "+e["wreck:width"]+" "),e["wreck:cargo"]&&("timber"===e["wreck:cargo"]?r+="cargo: timber ":"coal"===e["wreck:cargo"]?r+="cargo: coal ":r+="cargo: "+e["wreck:cargo"]+" "),"yes"===e["wreck:visible_at_low_tide"]&&(r+="visible at low tide: yes "),"no"===e["wreck:visible_at_low_tide"]&&(r+="visible at low tide: no "),"yes"===e["wreck:visible_at_high_tide"]&&(r+="visible at high tide: yes "),"no"===e["wreck:visible_at_high_tide"]&&(r+="visible at high tide: no "),"yes"===e.access&&(r+="accessible "),"no"===e.access&&(r+="no access possible "),"permit_required"===e.access&&(r+="permit required for acces ")),r}(e),("ferry"===e.route||"ferry_terminal"===e.amenity||"yes"===e.ferry)&&(fahrzeit=e.duration,""!==fahrzeit&&"undefined"!==fahrzeit&&null!=fahrzeit&&(r+="duration in hours : "+fahrzeit+" "),"yes"===e.motorcar&&(r+="motorcars allowed "),"no"===e.motorcar&&(r+="motorcars prohibited "),"no"===e.motor_vehicle&&(r+="motor vehicles prohibited "),"yes"===e.motor_vehicle&&(r+="motor vehicles allowed "),"yes"===e.vehicle&&(r+="vehicles allowed "),"no"===e.vehicle&&(r+="no vehicles "),"no"===e.bicycle&&(r+="no bicycles "),"no"===e.bicycle&&(r+="bicycles allowed "),"yes"===e.hgv&&(r+="hgv allowed "),"no"===e.hgv&&(r+="hgv prohibited "),"yes"===e.foot&&(r+="pedestrian allowed "),"no"===e.foot&&(r+="pedestrian prohibited "),"yes"===e.bicycle&&(r+="cyclist allowed "),"no"===e.bicycle&&(r+="cyclist prohibited "),"yes"===e["ferry:cable"]&&(r+="cable ferry ")),e["seamark:light:1:colour"]){switch(t=e["seamark:light:1:colour"]){case"white":t="white";break;case"red":t="red";break;case"green":t="green";break;case"blue":t="blue";break;case"yellow":t="yellow";break;case"amber":t="amber"}r+="colour of light: "+t+" "}if("lighthouse"===e.man_made&&(e["seamark:light:1:character"]&&(r+="light character: "+e["seamark:light:1:character"]+" "),e["seamark:light:1:period"]&&(r+="period: "+e["seamark:light:1:period"]+" "),e["seamark:light:1:height"]&&(r+="height: "+e["seamark:light:1:height"]+" m "),e["seamark:light:1:range"]&&(r+="range: "+e["seamark:light:1:range"]+" sm ")),e["seamark:light:colour"]){var t;switch(t=e["seamark:light:colour"]){case"white":t="white";break;case"red":t="red";break;case"green":t="green";break;case"blue":t="blue";break;case"yellow":t="yellow";break;case"amber":t="amber"}r+="colour of light: "+t+" "}return"lighthouse"===e.man_made&&(e["seamark:light:character"]&&(r+="light character: "+e["seamark:light:character"]+" "),e["seamark:light:height"]&&(r+="height: "+e["seamark:light:height"]+" m "),e["seamark:light:range"]&&(r+="range: "+e["seamark:light:range"]+" sm "),e["seamark:light:period"]&&(r+="period: "+e["seamark:light:period"]+" ")),r},C=r.fnContentHydrants=function(e){var r="";if("fire_hydrant"===e.emergency){var t=e["fire_hydrant:count"];"undefined"!==t&&null!=t&&""!==t&&(r+="Number: "+t+" ");var a=e["fire_hydrant:diameter"];"undefined"!==a&&null!=a&&""!==a&&(r+="Pipe diameter: "+a+" mm ");var o=e["fire_hydrant:pressure"];"undefined"!==o&&null!=o&&""!==o&&(r+="suction"===o?"Pressure in bar / Suction: Suction ":"Pressure in bar / Suction: "+o+" ");var n=e["fire_hydrant:position"];"undefined"!==n&&null!=n&&""!==n&&("lane"===n?r+="Position: Lane ":"parking_lot"===n?r+="Position: Parking Lot ":"sidewalk"===n?r+="Position: Sidewalk ":"green"===n&&(r+="Position: Green "));var s=e.water_volume;"undefined"!==s&&null!=s&&""!==s&&(r+="Volume: "+s+" ");var i=e["fire_hydrant:awwa_class"];if("undefined"!==i&&null!=i&&""!==i)r+="AWWA Class: "+i+" ";else{var l=e.flow_rate;"undefined"!==l&&null!=l&&""!==l&&(r+="Flow rate: "+l+" ")}var c=e.water_source;"undefined"!==c&&null!=c&&""!==c&&"main"!==c&&(r+="Water source: "+c+" ");var u=e["couplings:type"];"undefined"!==u&&null!=u&&""!==u&&(r+="Couplings type: "+u+" ");var p=e["couplings:diameter"];"undefined"!==p&&null!=p&&""!==p&&(r+="Couplings diameter: "+p+" ");var b=e["pillar:type"];"dry_barrel"===b&&(r+="Pillar type: "+b+" "),"fire_hydrant"===e["disused:emergency"]&&(r+="Currently disused"),""===r&&(r="No details available.")}return r},R=r.fnContentStreetsTraffic=function(e){var r="";if("yes"===e["red_turn:right"]&&(r+="red turn: allowed to turn to the right "),"no"===e["red_turn:right"]&&(r+="red turn: prohibited to turn to the right "),e.bridge&&(e.height&&(r+="height: "+e.height+" m "),e.length&&(r+="length: "+e.length+" m "),e.bridge_ref&&(r+="bridge ref: "+e.bridge_ref+" "),e.start_date&&(r+="start date: "+e.start_date+";"),e.maxweight&&(r+="maxweight: "+e.maxweight+" t")),e.highway&&"yes"===e.toll&&(r+="toll highway "),"yes"===e["toll:hgv"]&&(r+="HGV toll "),e.surface)switch(r+="surface: ",e.surface){case"grass":r+="grass ";break;case"paved":r+="paved ";break;case"asphalt":r+="asphalt ";break;case"cobblestone":r+="cobblestone ";break;case"sett":r+="sett ";break;case"concrete":r+="concrete ";break;case"unpaved":r+="unpaved ";break;case"paving_stones":r+="paving stones ";break;case"compacted":r+="compacted ";break;case"dirt":r+="dirt ";break;case"fine_gravel":r+="fine gravel ";break;case"grass_paver":r+="grass paver ";break;case"gravel":r+="gravel ";break;case"earth":r+="earth ";break;case"ground":r+="ground ";break;case"metal":r+="metal ";break;case"mud":r+="mud ";break;case"sand":r+="sand ";break;case"wood":r+="wood ";break;case"tartan":r+="tartan ";break;case"artificial_turf":r+="artificial turf ";break;case"clay":r+="clay ";break;default:r+="unknown "}if("grade1"===e.tracktype&&(r+="path surface: Solid. Usually a paved or heavily compacted hardcore surface. "),"grade2"===e.tracktype&&(r+="path surface: Mostly solid. Usually an unpaved track with surface of gravel mixed with a varying amount of sand, silt, and clay. "),"grade3"===e.tracktype&&(r+="path surface: Even mixture of hard and soft materials. Almost always an unpaved track. "),"grade4"===e.tracktype&&(r+="path surface: Mostly soft. Almost always an unpaved track prominently with soil/sand/grass, but with some hard materials, or compressed materials mixed in. "),"grade5"===e.tracktype&&(r+="path surface: Soft. Almost always an unpaved track lacking hard materials, uncompacted, with surface of soil/sand/grass. "),"yes"===e.motorcycle&&(r+=" motorcyle allowed. "),"no"===e.motorcycle&&(r+=" motorcycles prohibited. "),"excellent"===e.trail_visibility&&(r+="trail visibility: Unambiguous path or markers everywhere "),"good"===e.trail_visibility&&(r+="trail visibility: Next marker always visible, but sometimes has to be searched for. "),"intermediate"===e.trail_visibility&&(r+="trail visibility: Track mostly visible "),"bad"===e.trail_visibility&&(r+="trail visibility: Path sometimes invisible, route partly pathless "),"horrible"===e.trail_visibility&&(r+="trail visibility: Often pathless "),"no"===e.trail_visibility&&(r+="trail visibility: Mostly pathless "),"hiking"===e.sac_scale&&(r+="trail: Trail well cleared. (SAC Scale: T1 (yellow))"),"mountain_hiking"===e.sac_scale&&(r+="trail: Trail with continuous line and balanced ascent (SAC Scale: T2 (red))"),"demanding_mountain_hiking"===e.sac_scale&&(r+="trail: exposed sites may be secured with ropes or chains, possible need to use hands for balance (SAC Scale: T3 (red))"),"alphine_hiking"===e.sac_scale&&(r+="trail: sometimes need for hand use to get ahead (SAC Scale: T4 (blue))"),"demanding_alphine_hiking"===e.sac_scale&&(r+="trail: single plainly climbing up to second grade (SAC Scale: T5 (blue))"),"difficult_alpine_hiking"===e.sac_scale&&(r+="trail: climbing up to second grade (SAC Scale: T6 (blue))"),e["mtb:name"]&&(r+="cycleway :"+e["mtb:name"]+""),"0"===e["mtb:scale"]&&(r+="Mountainbikeroute: Very easy way - Gravel or packed earth. No particular difficulties. Mostly forest and meadow paths (highway=path). Sections with steps, rocks, or roots are not expected. Wide curves, easy to moderate slope. No special skills are needed to ride this. Easy to ride uphill.Surface: solid and handyObstacles: no obstaclesGradient: mild to moderateBends: wideDriving skills: no special driving skills required"),"1"===e["mtb:scale"]&&(r+="Mountainbikeroute: Smaller obstacles like roots and small stones. Erosion damage may increase difficulty. Soil may be loose in places. Tight turns, but no hairpin turns. Riding requires care and attention, but no special skill. Obstacles can be ridden over. Difficult to ride uphill.Surface: loose surface possible, small roots and stonesObstacles: small obstacles, water gutter, erosion damageGradient: < 40%Bends: wideDriving skills: basic driving skills required, obstacles can be passed over"),"2"===e["mtb:scale"]&&(r+="Mountainbikeroute: Obstacles such as large rocks and stones. Soil is often loose. Steps are expected. Wider hairpin turns, steepness of up to 70%. Requires some advanced riding skills. Only very skilled riders can go uphill on this.Surface: surface usually not compacted, larger roots and stones.Obstacles: plain steps and stairsGradient: < 70%Bends: easy hairpinsDriving skills: advanced driving skills required"),"3"===e["mtb:scale"]&&(r+="Mountainbikeroute: Many sections with large obstacles such as boulders and large roots. Many hairpin and off-balance turns. Slippery surface and talus sections may be found. The surface may be very slippery. Constant concentration and very good skills needed. Nearly impossible to ride uphill.Surface: many large roots / rocks or slippery ground, loose screeObstacles: drags, hardly driveable stepsGradient: >70%Bends: bail like hairpinsDriving skills: perfect bike control with trial skills required, like moving the rear wheel only in hairpins"),"4"===e["mtb:scale"]&&(r+="Mountainbikeroute: Very steep and difficult, with sections having large boulders and roots. Frequent loose debris. Very steep sections with very tight hairpin turns and high steps that will cause the chainring to hit the ground. Some trials techniques will be necessary. Nearly impossible to ride uphill.Surface: many large roots / rocks or slippery ground, loose screeObstacles: drags, hardly driveable stepsGradient: >70%Bends: bail like hairpinsDriving skills: perfect bike control with trial skills required, like moving the rear wheel only in hairpins"),"5"===e["mtb:scale"]&&(r+="Mountainbikeroute: Very steep and difficult with big boulder fields and debris, and landslides. Speed must be carried for counter-ascents. If at all only short passages are available for accelerating and braking. Fallen trees may make very steep passages even more difficult. Very few Mountainbikers can actually ride at this level. Most will have to push.Surface: counter-ascents / rocks or slippery ground, loose scree / path is rather a Alpine hiking (>T4) pathObstacles: drags, combinations of hardly driveable stepsGradient: >70%Bends: bail like hairpins with obstaclesDriving skills: excellent bike control with special trial skills required, moving the front and rear wheel is limited"),"6"===e["mtb:scale"]&&(r+="Mountainbikeroute: Classify ways with 6 that are not rideable at all for a mtbiker. E.g. Chains or stemples (metal rungs) on a via ferrata or simply unsecured alpine pathes that are not even partly rideable for the very best mtbikers (using trial techniques). Steepness is often >45°. If used for single points, then this highlights exceptionally difficult spots. Often spotting is impossible and falling may be lethal.Surface: Path is rather a Alpine hiking (T5 or T6) path or bare rock without visible path.Obstacles: Steps over 2m, rock faces,...Gradient: >100%Bends: no bends can be distinguished as such.Driving skills: only the very best trial specialists or vertriders will try to ride these spots. Walking the place first to find a way to clear is needed."),"10"===e.maxspeed&&(r+='traffic-calmed sector: maxspeed 10 Km/h and "right over left"'),"30"===e.maxspeed&&(r+='traffic-calmed sector: "right over left" and maxspeed 30 Km/h'),"50"===e.maxspeed&&(r+="maxspeed 50 Km/h"),"70"===e.maxspeed&&(r+="maxspeed 50 Km/h"),"80"===e.maxspeed&&(r+="maxspeed 80 Km/h"),"100"===e.maxspeed&&(r+="maxspeed 100 Km/h"),"no"===e.overtaking&&(r+="No overtaking!"),"yes"===e.noexit&&(r+="noexit"),"yes"===e.oneway&&(r+="oneway"),"designated"===e.priority_road&&(r+="priority road designated"),"end"===e.priority_road&&(r+="priority road ends"),"emergency_bay"===e.highway&&(r+="emergency bay"),"yes"===e.traffic_calming&&(r+="traffic calming"),"bump"===e.traffic_calming&&(r+="bump"),"chicane"===e.traffic_calming&&(r+="chicane"),"choker"===e.traffic_calming&&(r+="choker"),"cushion"===e.traffic_calming&&(r+="cushion"),"hump"===e.traffic_calming&&(r+="hump"),"island"===e.traffic_calming&&(r+="island"),"rumble_strip"===e.traffic_calming&&(r+="rumble strip"),"table"===e.traffic_calming&&(r+="table"),"parking"===e.amenity){"yes"===e.fee&&(r+="fee required ");var t=e["capacity:women"];if(""!==t&&"no"!==t&&null!=t){var a="unkown";"yes"!==t&&(a=t),r+="ladies parking spaces (numbers: "+a+") "}}return e.park_ride&&("bus"===e.park_ride&&(r+="bus connection "),"tram"===e.park_ride&&(r+="tram connection "),"unknown"===e.park_ride&&(r+="park ride unkown ")),e["railway:position"]&&(r+="railway position: "+e["railway:position"]+" "),e.uic_ref&&(r+="UIC: "+e.uic_ref+" "),r},E=r.fnContentSports=function(e){var r="";return"9pin"===e.sport&&(r+="possible sport : 9pin "),"10pin"===e.sport&&(r+="possible sport : 10pin "),"american_football"===e.sport&&(r+="possible sport : american football "),"aikido"===e.sport&&(r+="possible sport : aikido "),"archery"===e.sport&&(r+="possible sport : archery "),"athletics"===e.sport&&(r+="possible sport : athletics "),"australian_football"===e.sport&&(r+="possible sport : australian football "),"base"===e.sport&&(r+="possible sport : base "),"badminton"===e.sport&&(r+="possible sport : badminton "),"baseball"===e.sport&&(r+="possible sport : baseball "),"basketball"===e.sport&&(r+="possible sport : basketball "),"beachvolleyball"===e.sport&&(r+="possible sport : beachvolleyball "),"bmx"===e.sport&&(r+="possible sport : bmx "),"boules"===e.sport&&(r+="possible sport : boules "),"boule"===e.sport&&(r+="possible sport : boule "),"bowls"===e.sport&&(r+="possible sport : bowls "),"boxing"===e.sport&&(r+="possible sport : boxing "),"canadian_football"===e.sport&&(r+="possible sport : canadian football "),"canoe"===e.sport&&(r+="possible sport : canoe "),"chess"===e.sport&&(r+="possible sport : chess "),"cliff_diving"===e.sport&&(r+="possible sport : cliff diving "),"climbing"===e.sport&&(r+="possible sport : climbing "),"climbing_adventure"===e.sport&&(r+="possible sport : adventure climbing "),"cricket"===e.sport&&(r+="possible sport : cricket "),"cricket_nets"===e.sport&&(r+="possible sport : cricket nets "),"croquet"===e.sport&&(r+="possible sport : croquet "),"curling"===e.sport&&(r+="possible sport : curling "),"cycling"===e.sport&&(r+="possible sport : cycling "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),"dog_racing"===e.sport&&(r+="possible sport : dog racing "),"fencing"===e.sport&&(r+="possible sport : fencing "),"equestrian"===e.sport&&(r+="possible sport : equestrian "),"football"===e.sport&&(r+="possible sport: american football "),"free_flying"===e.sport&&(r+="possible sport: free flying "),"gaelic_games"===e.sport&&(r+="possible sport: gaelic games "),"golf"===e.sport&&(r+="possible sport: golf "),"gymnastics"===e.sport&&(r+="possible sport: gymnastik "),"hockey"===e.sport&&(r+="possible sport: hockey "),"horseshoes"===e.sport&&(r+="possible sport: horseshoes "),"horse_racing"===e.sport&&(r+="possible sport: horse racing "),"ice_stock"===e.sport&&(r+="possible sport: ice stock "),"judo"===e.sport&&(r+="possible sport: judo "),"karting"===e.sport&&(r+="possible sport: karting "),"kitesurfing"===e.sport&&(r+="possible sport: kitesurfing "),"korfball"===e.sport&&(r+="possible sport: korfball "),"motor"===e.sport&&(r+="possible sport: motor "),"multi"===e.sport&&(r+="possible sport: multi "),"obstacle_course"===e.sport&&(r+="possible sport: obstacle course "),"orienteering"===e.sport&&(r+="possible sport: orienteering "),"paddle_tennis"===e.sport&&(r+="possible sport: paddle-tennis "),"paragliding"===e.sport&&(r+="possible sport: paragliding "),"Pelota"===e.sport&&(r+="possible sport: Pelota "),"rasquet"===e.sport&&(r+="possible sport: racquet "),"rowing"===e.sport&&(r+="possible sport: rowing "),"rugby_league"===e.sport&&(r+="possible sport: rugby league "),"rugby_union"===e.sport&&(r+="possible sport: rugby union "),"running"===e.sport&&(r+="possible sport: running "),"scuba_diving"===e.sport&&(r+="possible sport: scuba diving "),"shooting"===e.sport&&(r+="possible sport: shooting "),"skating"===e.sport&&(r+="possible sport: skating "),"skateboard"===e.sport&&(r+="possible sport: skateboard "),"skiing"===e.sport&&(r+="possible sport: skiing "),"soccer"===e.sport&&(r+="possible sport: soccer "),"surfing"===e.sport&&(r+="possible sport: surfing "),"swimming"===e.sport&&(r+="possible sport: swimming "),"table_tennis"===e.sport&&(r+="possible sport: table tennis "),"taekwondo"===e.sport&&(r+="possible sport: taekwondo "),"team_handball"===e.sport&&(r+="possible sport: team handball "),"tennis"===e.sport&&(r+="possible sport: tennis "),"toboggan"===e.sport&&(r+="possible sport: toboggan "),"volleyball"===e.sport&&(r+="possible sport: volleyball "),"water_ski"===e.sport&&(r+="possible sport: water ski "),"weightlifting"===e.sport&&(r+="possible sport: weightlifting "),"wrestling"===e.sport&&(r+="possible sport: wrestling "),r},O=r.fnContentGeneralInformations=function(e){var r="";return e.width&&(r+="width: "+e.width+" m "),e.height&&(r+="height: "+e.height+" m "),e.maxwidth&&(r+="maxwidth: "+e.maxwidth+" m "),e.maxheight&&(r+="maxheight: "+e.maxheight+" m "),e.maxweight&&(r+="maxweight: "+e.maxweight+" t "),e.maxspeed&&(r+="maxspeed: "+e.maxspeed+" km/h "),e.min_age&&(r+="minimum age: "+e.min_age+" "),e.max_age&&(r+="maximum age: "+e.max_age+" "),"yes"===e.nudism&&(r+="nudism "),"yes"===e.ruins&&(r+="ruins "),e.ele&&(r+="height above sea level: "+e.ele+" m "),e["xmas:day_date"]&&(r+="period from - till: "+e["xmas:day_date"]+" "),e["rotor:diameter"]&&(r+="diameter of rotor: "+e["rotor:diameter"]+" m "),e["xmas:note"]&&(r+="information: "+e["xmas:note"]+" "),"port"===e["seamark:beacon_lateral:category"]&&(r+="port "),"starboard"===e["seamark:beacon_lateral:category"]&&(r+="starboard "),"yes"===e["service:bicycle:retail"]&&(r+="retail bicycles "),"yes"===e["service:bicycle:repair"]&&(r+="repair bicycles "),"yes"===e["service:bicycle:rental"]&&(r+="rental bicycles "),"yes"===e["service:bicycle:pump"]&&(r+="use of a pump is possible "),"yes"===e["service:bicycle:diy"]&&(r+="diy is possible "),"yes"===e["service:bicycle:cleaning"]&&(r+="cleaning bicycles "),"yes"===e["service:bicycle:second_hand"]&&(r+="sale of second hand bicycles "),"yes"===e["service:bicycle:charging"]&&(r+="charging electric bikes is possible "),"yes"===e.cafe&&(r+="cafe "),"yes"===e.breakfast&&(r+="breakfast "),"yes"===e.snack&&(r+="snack "),"yes"===e.indoor_seating&&(r+="indoor seating "),"yes"===e.outdoor_seating&&(r+="outdoor seating "),"yes"===e.self_service&&(r+="self service "),"yes"===e.bakehouse&&(r+="bakehouse "),"yes"===e.pastry_shop&&(r+="pastry shop "),"yes"===e.fair_trade&&(r+="fair trade "),"only"===e.fair_trade&&(r+="only fair trade "),"no"===e.fair_trade&&(r+="no fair trade "),r},T=r.fnContentHealthcare=function(e){var r="";return"doctors"!==e.amenity&&"physician"!==e.office&&"doctor"!==e.healthcare||(r+=function(e){var r="",t="",a=e["healthcare:speciality"];return""!==a&&("general"===a&&(t+="general "),"allergology"===a&&(t+="allergology "),"anaesthetics"===a&&(t+="anaesthetics "),"biochemistry"===a&&(t+="biochemistry "),"biological_haematology"===a&&(t+="biological haematology "),"biology"===a&&(t+="biology "),"cardiology"===a&&(t+="cardiology "),"cardiac_surgery"===a&&(t+="cardiac surgery "),"child_psychiatry"===a&&(t+="child psychiatry "),"dental_oral_maxillo_facial_surgery"===a&&(t+="dental-, oral-, maxillo- and facial-surgery "),"dermatology"===a&&(t+="dermatology "),"dermatovenereology"===a&&(t+="dermatovenereology "),"diagnostic_radiology"===a&&(t+="diagnostic radiology "),"emergency"===a&&(t+="emergency "),"endocrinology"===a&&(t+="endocrinology "),"gastroenterological_surgery"===a&&(t+="gastroenterological surgery "),"gastroenterology"===a&&(t+="gastroenterology "),"geriatrics"===a&&(t+="geriatrics "),"gynaecology"===a&&(t+="gynaecology "),"haematology"===a&&(t+="haematology "),"hepatology"===a&&(t+="hepatology "),"immunology"===a&&(t+="immunology "),"infectious_diseases"===a&&(t+="infectious diseases "),"intensive"===a&&(t+="intensive "),"internal"===a&&(t+="internal "),"maxillofacial_surgery"===a&&(t+="maxillofacial surgery "),"nephrology"===a&&(t+="nephrology "),"neurology"===a&&(t+="neurology "),"neurophysiology"===a&&(t+="neurophysiology "),"neuropsychiatry"===a&&(t+="neuropsychiatry "),"neurosurgery"===a&&(t+="neurosurgery "),"nuclear"===a&&(t+="nuclear "),"occupational"===a&&(t+="occupational "),"oncology"===a&&(t+="oncology "),"ophthalmology"===a&&(t+="ophthalmology "),"orthopaedics"===a&&(t+="orthopaedics "),"otolaryngology"===a&&(t+="otolaryngology "),"paediatric_surgery"===a&&(t+="paediatric surgery "),"paediatrics"===a&&(t+="paediatrics "),"palliative"===a&&(t+="palliative "),"physiatry"===a&&(t+="physiatry "),"plastic_surgery"===a&&(t+="plastic surgery "),"proctology"===a&&(t+="proctology "),"psychiatry"===a&&(t+="psychiatry "),"pulmonology"===a&&(t+="pulmonology "),"radiology"===a&&(t+="radiology "),"radiotherapy"===a&&(t+="radiotherapy "),"rheumatology"===a&&(t+="rheumatology "),"stomatology"===a&&(t+="stomatology "),"surgery"===a&&(t+="surgery "),"surgical_oncology"===a&&(t+="surgical oncology "),"thoracic_surgery"===a&&(t+="thoracic surgery "),"transplant"===a&&(t+="transplant "),"trauma"===a&&(t+="trauma "),"tropical"===a&&(t+="tropical "),"urology"===a&&(t+="urology "),"vascular_surgery"===a&&(t+="vascular surgery "),"venereology"===a&&(t+="venereology "),"acupuncture"===a&&(t+="acupuncture "),"naturopathy"===a&&(t+="naturopathy "),"chiropractic"===a&&(t+="chiropractic "),"homeopathy"===a&&(t+="homeopathy "),"osteopathy"===a&&(t+="osteopathy ")),""!==e.health_specialty&&("yes"===e["health_specialty:family_medicine"]&&(t+="family medicine "),"yes"===e["health_specialty:emergency_medicine"]&&(t+="emergency medicine "),"yes"===e["health_specialty:anaesthesiology"]&&(t+="anaesthesiology "),"yes"===e["health_specialty:dermatology"]&&(t+="dermatology "),"yes"===e["health_specialty:ear_nose_throat"]&&(t+="ear, nose, throat (ENT specialist) "),"yes"===e["health_specialty:occupational_medicine"]&&(t+="occupational medicine "),"yes"===e["health_specialty:internal_medicine"]&&(t+="internal medicine "),"yes"===e["health_specialty:neurology"]&&(t+="neurology "),"yes"===e["health_specialty:ophthalmology"]&&(t+="ophthalmology "),"yes"===e["health_specialty:palliative_medicine"]&&(t+="palliative medicine "),"yes"===e["health_specialty:psychiatry"]&&(t+="psychiatry "),"yes"===e["health_specialty:gynaecology"]&&(t+="gynaecology "),"yes"===e["health_specialty:urology"]&&(t+="urology "),"yes"===e["health_specialty:pain_medicine"]&&(t+="pain medicine "),"yes"===e["health_specialty:environmental_medicine"]&&(t+="environmental medicine "),"yes"===e["health_specialty:intensive_care_medicin"]&&(t+="intensive care medicin "),"yes"===e["health_specialty:paediatrics"]&&(t+="paediatrics "),"yes"===e["health_specialty:physiatry"]&&(t+="physiatry "),"yes"===e["health_specialty:radiology"]&&(t+="radiology "),"yes"===e["health_specialty:general"]&&(t+="general "),"yes"===e["health_specialty:occupational_therapy"]&&(t+="occupational therapy "),"yes"===e["health_specialty:pulmonology"]&&(t+="pulmonology "),"yes"===e["health_specialty:acupuncture"]&&(t+="acupuncture "),"yes"===e["health_specialty:orthopaedics"]&&(t+="orthopaedics "),"yes"===e["health_specialty:chiropractic"]&&(t+="chiropractic "),"yes"===e["health_specialty:sports_medicine"]&&(t+="sports medicine ")),""!==t&&(r+="subjects: ",r+=''+t+"
"),r}(e),e.medical_area&&(r+=e.medical_area+" "),e.type&&(r+=e.type+" "),e["doctors:de"]&&(r+=e["doctors:de"]+" "),e["note:de"]&&(r+=e["note:de"]+" ")),"yes"===e.dispensing&&(r+="pharmacy with dispensing "),"abused"===e["social_facility:for"]&&(r+="social facility for: abused people "),"child"===e["social_facility:for"]&&(r+="social facility for: children "),"disabled"===e["social_facility:for"]&&(r+="social facility for: disabled people "),"diseased"===e["social_facility:for"]&&(r+="social facility for: diseased people "),"drug_addicted"===e["social_facility:for"]&&(r+="social facility for: drug addicted people "),"homeless"===e["social_facility:for"]&&(r+="social facility for: homeless "),"juvenile"===e["social_facility:for"]&&(r+="social facility for: juvenile and teenager "),"mental_health"===e["social_facility:for"]&&(r+="social facility for: people with mental health problems "),"migrant"===e["social_facility:for"]&&(r+="social facility for: migrants "),"orphan"===e["social_facility:for"]&&(r+="social facility for: orphans "),"senior"===e["social_facility:for"]&&(r+="social facility for: seniors "),"underprivileged"===e["social_facility:for"]&&(r+="social facility for: underprivileged people "),"unemployed"===e["social_facility:for"]&&(r+="social facility for: unemployed "),"victim"===e["social_facility:for"]&&(r+="social facility for: victims "),r};r.fnTestInfoPopup=function(e){var r=e.getProperties(),t="";for(var a in r)t=t+a+"="+r[a]+" ";return'"}},"./src/Resources/public/js/c4g-maps-proxy.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.MapProxy=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-baselayer-controller.js"),l=t("./src/Resources/public/js/c4g-layer-controller.js"),c=t("./src/Resources/public/js/c4g-locationstyle-controller.js"),u=t("./src/Resources/public/js/c4g-popup-controller.js"),p=t("./src/Resources/public/js/c4g-maps-utils.js"),b=(t("./src/Resources/public/js/c4g-maps-constant.js"),t("./src/Resources/public/js/c4g-maps-i18n.js")),d=t("./node_modules/ol/layer.js"),h=t("./node_modules/ol/geom.js"),m=t("./node_modules/ol/proj.js"),g=t("./node_modules/ol/style.js"),f=t("./node_modules/ol/index.js"),y=t("./node_modules/ol/source.js");r.MapProxy=function(){return(0,s.default)((function e(r){var t;if((0,n.default)(this,e),this.options=jQuery.extend({mapController:!1},r),!this.options.mapController)return!1;this.hook_baselayer_loaded=[],this.hook_baselayer_visibility=[],this.hook_layer_loaded=[],this.hook_layer_visibility=[],this.hook_map_click=[],this.hook_map_zoom=[],this.hook_locstyles_loaded=[],window.c4gMapsHooks=window.c4gMapsHooks||{},window.c4gMapsHooks.proxy_layer_loaded=window.c4gMapsHooks.proxy_layer_loaded||[],window.c4gMapsHooks.proxy_layer_drawn=window.c4gMapsHooks.proxy_layer_drawn||[],window.c4gMapsHooks.proxy_baselayer_loaded=window.c4gMapsHooks.proxy_baselayer_loaded||[],this.baselayerIds=[],this.layerIds=[],this.activeLayerIds={},this.requestFunctions={},this.request={},this.baselayers_loaded=!1,this.layers_loaded=!1,t=this.options.mapController.data,(0,b.getLanguage)(t),this.mapData=t,this.mapId=t.id,this.api_baselayer_url=this.options.mapController.data.api.baselayer+"/"+t.profile+"/"+this.mapData.lang,this.api_layer_url=this.options.mapController.data.api.layer+"/"+this.mapId+"/"+this.mapData.lang,this.api_layercontent_url=this.options.mapController.data.api.layercontent,this.api_layercontentdata_url="con4gis/layerContentDataService",this.api_locstyle_url=this.options.mapController.data.api.locstyle,this.api_infowindow_url=this.options.mapController.data.api.infowindow,this.options=r,this.clickObserverActive=!0}),[{key:"initialize",value:function(){var e,r;e=this,r=this.options.mapController.map,this.baselayerController=new i.C4gBaselayerController(this),this.baselayerController.loadBaseLayers(),this.layerController=new l.BetterLayerController(this),this.layerController.loadLayers(),this.locationStyleController=new c.C4gLocationStyleController(this),this.popupController=new u.C4gPopupController(this),r.on("change:view",(function(){r.getView().on("change:resolution",(function(){var t;for(t in e.activeLayerIds)e.activeLayerIds.hasOwnProperty(t)&&e.layerController.arrLayers[t];p.utils.callHookFunctions(e.hook_map_zoom,e),e.options.mapController.data.caching&&r.getView().getZoom()&&p.utils.storeValue("zoom",r.getView().getZoom())}))})),r.getView().on("change:resolution",(function(){var t;for(t in e.activeLayerIds)e.activeLayerIds.hasOwnProperty(t)&&e.layerController.arrLayers[t];p.utils.callHookFunctions(window.c4gMapsHooks.hook_map_zoom,e),e.options.mapController.data.caching&&r.getView().getZoom()&&p.utils.storeValue("zoom",r.getView().getZoom())})),r.getView().on("change:center",(function(t){if(e.options.mapController.data.caching){var a=(0,m.toLonLat)(r.getView().getCenter());a&&(p.utils.storeValue("lon",a[0]),p.utils.storeValue("lat",a[1]))}window.c4gMapsHooks.map_center_changed=window.c4gMapsHooks.map_center_changed||[],p.utils.callHookFunctions(window.c4gMapsHooks.map_center_changed,r.getView().getCenter())})),r.on("click",(function(t){var a,o,n,s,i,l,c,u;if(!e.clickObserverActive)return!1;if(a=r.forEachFeatureAtPixel(t.pixel,(function(e,r){return e}),{hitTolerance:5}),n=r.forEachFeatureAtPixel(t.pixel,(function(e,r){return r}),{hitTolerance:5}),a&&a.get("closeCluster"))r.getView().dispatchEvent({type:"change:resolution"});else{if(n&&n.getStyle()&&"function"==typeof(c=n.getStyle())&&c(a,s)&&c(a,s)[0]&&(u=!(!c(a,s)||!c(a,s)[0])&&c(a,s)[0])&&u.getImage()&&u.getImage().setScale(.7*u.getImage().getScale()),(o=!!a&&a.get("features"))&&1===o.length)o&&1===o.length&&(a=o[0]);else if(o)if(1==o[0].get("cluster_popup"))if(r.getView().setCenter(t.coordinate),(s=r.getView().getZoom())>=(e.options.mapController.data.cluster_all?e.options.mapController.data.cluster_zoom:o[0].get("cluster_zoom"))){(l=[]).content="",l.async=!1;for(var b=0;b=(o[0].get("cluster_zoom")||e.options.mapController.data.cluster_zoom)){var _=r.getView().getResolution(),k=o.length,v=_*(e.options.mapController.data.cluster_dist_spider?e.options.mapController.data.cluster_dist_spider:20)*(.5+k/4),w=new y.Vector;for(b=0;b-1&&this.options.mapController.map.getView().getZoom(),void 0===t.zoom&&t.content&&t.content.length>0)for(var s=0;sa||t.zoom.max>0&&t.zoom.max{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.utils=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),s=g(t("./src/Resources/public/js/c4g-maps-popup-info-de.js")),i=g(t("./src/Resources/public/js/c4g-maps-popup-info-en.js")),l=t("./node_modules/ol/layer.js"),c=(a(t("./node_modules/ol/geom/Circle.js")),t("./node_modules/ol/proj.js")),u=t("./node_modules/ol/sphere.js"),p=t("./node_modules/ol/interaction.js"),b=t("./node_modules/ol/source.js"),d=t("./node_modules/ol/extent.js"),h=a(t("./node_modules/jsbi/dist/jsbi.mjs"));function m(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(m=function(e){return e?t:r})(e)}function g(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=m(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}var f=s;f="undefined"!=typeof mapData?"de"===mapData.lang?s:(mapData.lang,i):i,r.utils={capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},getUniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)},encodeGeoJsonProperty:function(e){return e?e.replace(/\\/g,"\\\\").replace(/\"/g,"''").replace(/Ä/g,"Ä").replace(/ä/g,"ä").replace(/Ö/g,"Ö").replace(/ö/g,"ö").replace(/Ü/g,"Ü").replace(/ü/g,"ü"):""},removeUmlauts:function(e){return e?e.toLowerCase().replace(/\s/g,"").replace(/\\/g,"\\\\").replace(/\"/g,"''").replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/ß/g,"ss"):""},decodeGeoJsonProperty:function(e){return e?("string"!=typeof e&&(e+=""),e.replace(/\\\\/g,"\\").replace(/\'\'/g,'"').replace(/Ä/g,"Ä").replace(/ä/g,"ä").replace(/Ö/g,"Ö").replace(/ö/g,"ö").replace(/Ü/g,"Ü;").replace(/ü/g,"ü")):""},setUrlParam:function(e,r,t){var a,o,s;if(void 0===(0,n.default)(e))return!1;if(a=location.origin+location.pathname,r){if(location.search?(s=!1,r=r.toLowerCase(),o=location.search.replace(/([^=\?\&]+)=([^&]+)/gi,(function(t,a,o,n,i){return a===r?(s=!0,a+"="+e):t})),s||(o+="&"+r+"="+e)):o="?"+r+"="+e,t)return location.search=o,!0;a+=o+location.hash}else{if(t)return location.hash=e,!0;a+=location.search+"#"+e}return a},getUrlParam:function(e){var r;return e?location.search&&(r=new RegExp("[?&]"+e+"=([^&]+)","i").exec(location.search))?r[1]:"":location.hash.substring(1)},deltaEncode:function(e){var r,t;if(!e)return[];if(1===e.length)return e;for(e.sort((function(e,r){return h.default.toNumber(h.default.subtract(h.default.BigInt(e),h.default.BigInt(r)))})),(r=[])[0]=e[0].toString(),t=1;t0)for(t=0;t>16&255,s=a>>8&255,i=255&a,l=r?r/100:1,t?[o,s,i,l]:"rgba("+o+","+s+","+i+","+l+")"},getSingleCoordinateForGeom:function(e){var r,t,a;switch(e.getType()){case"Point":r=e.getCoordinates();break;case"LineString":case"LinearRing":r=[t=(e.getFirstCoordinate()[0]+e.getLastCoordinate()[0])/2,a=(e.getFirstCoordinate()[1]+e.getLastCoordinate()[1])/2];break;case"Polygon":case"MultiPoint":var o,n=e.getCoordinates();for(o=0;o1e3?(Math.round(d/1e3*100)/100).toFixed(2)+" km":s.rawValue+" m"}else if("Polygon"===e.getType())d=Math.abs((0,u.getArea)(e)),s.rawValue=(Math.round(100*d)/100).toFixed(2),s.htmlValue=d>1e4?(Math.round(d/1e6*100)/100).toFixed(2)+" km2 ":s.rawValue+" m2 ";else if("Circle"===e.getType()&&t){var l=e.getCenter(),p=e.getRadius(),b=[l[0]+p,l[1]],d=(0,u.getDistance)((0,c.transform)(l,"EPSG:3857","EPSG:4326"),(0,c.transform)(b,"EPSG:3857","EPSG:4326"),6378137);d=Math.PI*Math.pow(d,2),s.rawValue=(Math.round(100*d)/100).toFixed(2),s.htmlValue=d>1e4?(Math.round(d/1e6*100)/100).toFixed(2)+" km2 ":s.rawValue+" m2 "}else"Circle"===e.getType()?(l=e.getCenter(),p=e.getRadius(),b=[l[0]+p,l[1]],d=(0,u.getDistance)((0,c.transform)(l,"EPSG:3857","EPSG:4326"),(0,c.transform)(b,"EPSG:3857","EPSG:4326"),6378137),s.rawValue=(Math.round(100*d)/100).toFixed(2),s.rawValue>1e4?s.htmlValue=(Math.round(100*d/100)/1e3).toFixed(2)+" km":s.htmlValue=s.rawValue+" m"):s=0;return s},getExtentForGeometries:function(e){var r;return e?((r=new b.Vector).addFeatures(e),r.getExtent()||(0,p.Extent)([0,0,0,0])):(console.warn("Geometries missing for extent calculation"),!1)},fitToExtents:function(e,r,t,a){var o,n;if(!e||!r)return console.warn("Missing extent or map for fitExtent"),!1;for(n in e)e.hasOwnProperty(n)&&(void 0===o?o=e[n]:(0,d.extend)(o,e[n]));this.fitToExtent(o,r,t,5,0,0,2)},fitToExtent:function(e,r,t,a,o,n,s){var i,l;if(!e||!r)return console.warn("Missing extent or map for fitExtent"),!1;i=r.getView(),l={padding:t||[25,25,25,25]},s&&s>0&&(l.minResolution=s),o&&o>=0&&(l.minZoom=o),n&&n>=0&&(l.maxZoom=n),a&&a>0&&i.animate({start:+new Date,duration:a,resolution:i.getResolution(),center:[0,0]});try{return i.fit(e,r.getSize(),{padding:[25,25,25,25]}),!0}catch(e){return!1}},replaceAllPlaceholders:function(e,r,t,a){var o;return e&&r?(o=this.replaceFunctionPlaceholders(e,r,t,a),o=this.replaceEditorVarsPlaceholders(o,r),o=this.replaceAttributePlaceholders(o,r)):e},replaceFunctionPlaceholders:function(e,r,t,a){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e&&r&&t?(f="de"===a||"de-DE"===a?s:i,e.replace(/\$\{FN([^\}]*)\}/g,(function(e,t,a,n){if("function"==typeof f[t]){var s="";if(o&&r.get("locstyle")){var i=o.locationStyleController.arrLocStyles[r.get("locstyle")].locStyleArr;s=i.icon_src?i.icon_src:i.svgSrc?i.svgSrc:""}return f[t](r,s)}return""}))):e},replaceEditorVarsPlaceholders:function(e,r){return e&&r&&"function"==typeof r.get?e.replace(/\$\{(EV?[LV])([^\}]*)\}/g,(function(e,t,a,o,n){var s,i;if(r.get("editorVars"))for(s=r.get("editorVars"),i=0;i2?e[e.length-2]:e[0]},getValue:function(e){return localStorage[e]||""},storeValue:function(e,r){localStorage[e]=r},decodeHTML:function(e){var r=document.createElement("textarea");return r.innerHTML=e,r.value}}},"./src/Resources/public/js/c4g-overlay-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.OSM_REL_ATTRIBUTION=r.C4gOverlayController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-config.js"),i=t("./node_modules/ol/source.js"),l=t("./node_modules/ol/layer.js"),c=a(t("./node_modules/ol-ext/source/GeoImage.js")),u=a(t("./node_modules/ol/source/GeoTIFF.js")),p=a(t("./node_modules/ol/layer/WebGLTile.js")),b=(a(t("./node_modules/ol/proj/Projection.js")),r.OSM_REL_ATTRIBUTION='© OpenStreetMap contributors.');r.C4gOverlayController=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.baselayer=r,this.arrOverlays=[]}),[{key:"showOverlayLayer",value:function(e){var r,t,a,o,n=s.config.osm,d=(s.config.stamen,s.config.stadiaMaps);switch(t={},a=new l.Tile({source:new i.OSM}),r=this.arrOverlays[e],window.isSecureContext&&(t.crossOrigin="anonymous"),r.provider){case"osm":n[r.style]?a=new l.Tile({source:new i.OSM(jQuery.extend(n[r.style],t))}):d[r.style]?a=new l.Tile({source:new i.StadiaMaps(jQuery.extend(d[r.style],t))}):"osm_custom"===r.style?(o=!0,r.attribution&&(t.attributions=r.attribution+" "+b),r.url?(t.url=r.url,o=!1):r.urls&&r.urls.length>0&&(t.urls=r.urls,o=!1),o?console.warn("custom url(s) missing -> switch to default"):a=new l.Tile({source:new i.XYZ(t)})):console.warn("unsupported osm-style -> switch to default");break;case"sea":o=!0,r.attribution&&(t.attributions=r.attribution+" "+b),r.urls&&(t.urls=r.urls,o=!1),o||(a=new l.Tile({source:new i.XYZ(t)}));break;case"wms":a=new l.Tile({source:new i.TileWMS({url:r.url,params:{LAYERS:r.params.layers,VERSION:r.params.version,TRANSPARENT:r.params.transparent},gutter:r.gutter,attributions:r.attribution+" "+b})});break;case"owm":a=new l.Tile({source:new i.XYZ({url:r.url+r.app_id+"/{z}/{x}/{y}?hash="+r.api_key,attributions:r.attribution+" "+b})});break;case"geoimage":var h=JSON.parse(r.geoImageJson);h.url=r.imageSrc?r.imageSrc:h.url,h.attributions=r.attribution,a=new l.Image({source:new c.default(h)});break;case"geotiff":var m=[{url:r.imageSrc?r.imageSrc:""}];a=new p.default({source:new u.default({sources:m,nodata:0}),zIndex:1e4});break;default:console.warn("unsupported provider")}return a.setZIndex(-1),this.arrOverlays[e].layer=a,this.arrOverlays[e].changeOpacity(r.opacity),this.arrOverlays[e].layer}}])}()},"./src/Resources/public/js/c4g-overlay.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gOverlay=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js"));r.C4gOverlay=function(){return(0,n.default)((function e(r,t){(0,o.default)(this,e),this.id=r.id,this.pid=r.pid,this.name=r.name,this.provider=r.provider,this.style=r.style,this.url=r.url,this.urls=r.urls,this.opacity=r.opacity,this.attribution=r.attribution,this.infopage=r.infopage,this.gutter=r.gutter,this.params=r.params,this.imageSrc=r.image_src,this.geoImageJson=r.geoimage_json,this.layer=!1,this.overlayArr=r,this.mapController=t}),[{key:"changeOpacity",value:function(e){var r;(r=this.layer)&&(this.mapController.map.removeLayer(r),r.setOpacity(e/100),this.mapController.map.addLayer(r))}}])}()},"./src/Resources/public/js/c4g-popup-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gPopupController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-popup.js"),i=t("./src/Resources/public/js/c4g-maps-utils.js");r.C4gPopupController=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.mapController=r.options.mapController,this.mapData=r.options.mapController.data,this.popupHandling=parseInt(this.mapData.popupHandling,10),this.external=!!this.mapData.popupDiv,this.popups=[]}),[{key:"addPopup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.popups.push(new s.C4gPopup(this)),e&&this.popups[this.popups.length-1].setContent(e),this.mapData.caching&&i.utils.storeValue("popupInfos","")}},{key:"setPopup",value:function(e){this.popups[0]||this.popups.push(new s.C4gPopup(this)),this.popups[0].setContent(e)}},{key:"removePopup",value:function(){this.popups[0]&&this.popups[0].popup&&this.popups[0].popup.getMap()?this.mapData.map.removeOverlay(this.popups[0].popup):this.popups[0]&&this.popups[0].popupComponent&&this.popups[0].popupComponent.close(!0)}}])}()},"./src/Resources/public/js/c4g-popup.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gPopup=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),s=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),i=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),l=t("./node_modules/ol/index.js"),c=t("./src/Resources/public/js/c4g-maps-utils.js"),u=a(t("./node_modules/react-dom/index.js")),p=t("./src/Resources/public/js/components/c4g-popup-container.jsx"),b=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=h(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),d=t("./node_modules/ol/geom.js");function h(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(h=function(e){return e?t:r})(e)}r.C4gPopup=function(){return(0,i.default)((function e(r){(0,s.default)(this,e);var t=this;this.popupController=r;var a=document.createElement("div");a.setAttribute("id","c4g_popup_"+r.mapData.mapId),a.className="c4g-popup-wrapper c4g-active";var o=document.createElement("button");o.className="c4g-popup-close c4g-icon",jQuery(o).click((function(e){e.preventDefault(),r.mapController.map.removeOverlay(t.popup)}));var n=document.createElement("div");if(n.className="c4g-popup-content",a.appendChild(o),a.appendChild(n),this.popupContent=n,1===r.popupHandling||0===r.popupHandling){var i=1===r.popupHandling;this.popup=new l.Overlay({element:a,positioning:"center-center",offset:[-50,50],insertFirst:!1,autoPan:i,autoPanAnimation:{duration:250},autoPanMargin:200}),r.mapController.map.addOverlay(this.popup)}else if(2===r.popupHandling){jQuery(a).addClass("c4g-popup-wrapper-nonose");var c=r.mapController.map.getView().getCenter();this.popup=new l.Overlay({position:c,positioning:"center-center",element:a,offset:[-50,0],autoPan:!1}),r.mapController.map.addOverlay(this.popup)}else if(3===r.popupHandling){var d={open:!0,alwaysExtended:!1,hideOther:r.mapController.hideOtherComponents,activeComps:r.mapController.getActiveComponents(),mapData:r.mapData,mapController:r.mapController};this.popupContainer&&(u.default.unmountComponentAtNode(this.popupContainer),delete r.mapController.components.popup,r.external||this.popupContainer.parentNode.removeChild(this.popupContainer)),d.external=r.external,this.popupContainer=r.external?document.querySelector("."+r.mapData.popupDiv):document.createElement("div"),this.popupContainer||(this.popupContainer=document.createElement("div"),d.external=!1),this.popupComponent=u.default.render(b.createElement(p.PopupContainer,d),this.popupContainer),d.external||(r.mapController.$overlaycontainer_stopevent.append(this.popupContainer),r.mapController.hideOtherComponents(this.currentPopup)),this.currentPopup=this.popupComponent,r.mapController.components.popup=this.popupComponent}}),[{key:"setContent",value:function(e){var r,t,a=e.feature,o=e.layer;if(a.get("features"))for(var s=a.get("features"),i=0;i=a[1]?s+="bottom":(i[1]=10,s+="top"),n[0]>=a[0]?(i[0]=-50,s+="-left"):(i[0]=100,s+="-right"),jQuery(t).removeClass("nose-top-left").removeClass("nose-top-right").removeClass("nose-bottom-left").removeClass("nose-bottom-right"),jQuery(t).addClass("nose-"+s),this.popup.setPositioning(s),this.popup.setOffset(i),this.popup.setPosition(a)}}])}()},"./src/Resources/public/js/c4g-router-time-conversions.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toHumanDistance=function(e){var r;return r=parseInt(e,10),(r/=1e3)>=100?r.toFixed(0)+" km":r>=10?r.toFixed(1)+" km":r>=.1?r.toFixed(2)+" km":(1e3*r).toFixed(0)+" m"},r.toHumanTime=function(e){var r,t,a;return r=parseInt(e,10),t=parseInt(r/60,10),r%=60,a=parseInt(t/60,10),t%=60,0===a&&0===t?r+" s":0===a?t+" min":a+" h "+t+" min"}},"./src/Resources/public/js/c4g-routing-permalink.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RoutingPermalink=void 0;var o=a(t("./node_modules/@babel/runtime/regenerator/index.js")),n=a(t("./node_modules/@babel/runtime/helpers/slicedToArray.js")),s=a(t("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),i=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),c=a(t("./node_modules/@babel/runtime/helpers/defineProperty.js"));r.RoutingPermalink=function(){return(0,l.default)((function e(r){(0,i.default)(this,e),(0,c.default)(this,"_router",void 0),this._router=r,this.linkFragments={},this.rawFragments={}}),[{key:"router",get:function(){return this._router},set:function(e){this._router=e}},{key:"updateLinkFragments",value:function(e,r){this.linkFragments||(this.linkFragments={}),this.linkFragments[e]=r,this.updateUrl()}},{key:"updateUrl",value:function(){var e="?mapsParams=",r=this.linkFragments;if(r.mode&&"area"===r.mode){e+=r.mode?"m:"+r.mode+"/":"",e+=r.addressArea?"a:"+r.addressArea[0]+","+r.addressArea[1]+"/":"",e+=r.detourArea?"d:"+r.detourArea+"/":"",e+=r.searchType?"s:"+r.searchType+"/":"",e+=r.forceStart?"f:"+r.forceStart:"";var t=window.location.pathname+e;history.pushState({},null,t)}else if(r.mode&&"route"===r.mode){e+=r.mode?"m:"+r.mode+"/":"",e+=r.fromAddress?"af:"+r.fromAddress[0]+","+r.fromAddress[1]+"/":"",e+=r.toAddress?"at:"+r.toAddress[0]+","+r.toAddress[1]+"/":"",e+=r.detourRoute?"d:"+r.detourRoute+"/":"",e+=r.searchType?"s:"+r.searchType+"/":"",e+=r.forceStart?"f:"+r.forceStart:"";var a=window.location.pathname+e;history.pushState({},null,a)}}},{key:"handleInitialParams",value:(r=(0,s.default)(o.default.mark((function e(){var r,t,a,s,i,l,c,u,p;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.rawFragments=this.router.props.mapController.data.initialParams,!this.rawFragments){e.next=30;break}return e.next=5,this.checkForOldParams();case 5:r=this.rawFragments.split("/").map((function(e){return e.split(":")})),t={},r.forEach((function(e){var r=(0,n.default)(e,2),a=r[0],o=r[1];return t[a]=o})),a=this.router.props.mapController.data.routerLayers,s="",e.t0=o.default.keys(a);case 11:if((e.t1=e.t0()).done){e.next=28;break}if(i=e.t1.value,!a.hasOwnProperty(i)){e.next=26;break}l=a[i],e.t2=o.default.keys(l);case 16:if((e.t3=e.t2()).done){e.next=26;break}if(c=e.t3.value,!l.hasOwnProperty(c)){e.next=24;break}if(u=l[c],p=t.s,u.mapLabel!==p){e.next=24;break}return s=c,e.abrupt("break",28);case 24:e.next=16;break;case 26:e.next=11;break;case 28:this.desiredButtonRouting=s,"area"===t.m?this.handleInitialAreaSearch(t):"route"===t.m&&this.handleInitialRouteSearch(t);case 30:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"checkForOldParams",value:(e=(0,s.default)(o.default.mark((function e(){var r,t,a,n,s,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",-1===(t=this.router.props.mapController.data.initialParams).indexOf("m:")){e.next=4;break}return e.abrupt("return");case 4:if(a=t.split("/"),r+="m:"+a[0]+"/","route"!==a[0]){e.next=20;break}return e.next=9,this.router.performGeoSearch(a[1]);case 9:return n=e.sent,e.next=12,this.router.performGeoSearch(a[2]);case 12:s=e.sent,r+="af:"+n.join()+"/",r+="at:"+s.join()+"/",r+="d:"+a[3]+"/",r+="s:"+a[4]+"/",r+="f:"+a[5]+"/",e.next=27;break;case 20:return e.next=22,this.router.performGeoSearch(a[1]);case 22:i=e.sent,r+="a:"+i.join()+"/",r+="d:"+a[2]+"/",r+="s:"+a[3]+"/",r+="f:"+a[4]+"/";case 27:this.rawFragments=r;case 28:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"handleInitialAreaSearch",value:function(e){var r=e.d||this.router.props.detourRoute.initial;this.router.setState({mode:"area",detourArea:parseFloat(r)});var t=e.a;t&&(t=t.split(",")),r=e.d;var a=e.s,o=e.f;if((r||r>1)&&this.updateLinkFragments("detourArea",r),t&&2===t.length&&(this.updateLinkFragments("addressArea",t),this.router.setAreaPoint(parseFloat(t[0]),parseFloat(t[1]))),a){var n=this.router.mapData.routerLayers;e:for(var s in n)if(n.hasOwnProperty(s))for(var i in n[s])if(n[s].hasOwnProperty(i)&&(n[s][i].keys.includes(a)||n[s][i].labels.includes(a))){this.router.setState({layerArea:s,layerValueArea:i});break e}this.updateLinkFragments("searchType",a)}o&&this.updateLinkFragments("forceStart",o),jQuery(".c4g-portside-viewtriggerbar .c4g-area-search").click()}},{key:"handleInitialRouteSearch",value:function(e){var r=e.d||this.router.props.detourRoute.initial;this.router.setState({mode:"route",detourRoute:parseFloat(r)});var t=e.af?e.af.split(",").map((function(e){return parseFloat(e)})):null,a=e.at?e.at.split(",").map((function(e){return parseFloat(e)})):null;r=e.d;var o=e.s,n=e.f;if(r&&(jQuery(this.router.toggleDetourRoute).val(r),jQuery(this.router.toggleDetourRoute).trigger("input"),this.updateLinkFragments("detourRoute",e.d)),t&&this.updateLinkFragments("fromAddress",t),a&&this.updateLinkFragments("toAddress",a),o){var s=this.router.mapData.routerLayers;e:for(var i in s)if(s.hasOwnProperty(i))for(var l in s[i])if(s[i].hasOwnProperty(l)&&(s[i][l].keys.includes(o)||s[i][l].labels.includes(o))){this.router.setState({layerRoute:i,layerValueRoute:l});break e}this.updateLinkFragments("searchType",o)}n&&this.updateLinkFragments("forceStart",e.f),t&&a&&(this.router.setRouteFrom(t[0],t[1]),this.router.setRouteTo(a[0],a[1])),this.router.recalculateRoute(),jQuery(".c4g-portside-viewtriggerbar .c4g-route-search").click()}}]);var e,r}()},"./src/Resources/public/js/c4g-user-position.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.UserPosition=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=(a(t("./node_modules/ol/Geolocation.js")),t("./node_modules/ol/source.js")),i=t("./node_modules/ol/layer.js"),l=t("./node_modules/ol/geom.js"),c=a(t("./node_modules/ol/Feature.js")),u=t("./src/Resources/public/js/c4g-maps-i18n.js");r.UserPosition=(0,o.default)((function e(r){(0,n.default)(this,e);var t=this;this.mapController=r;var a=(0,u.getLanguage)(r.data);this.feature=new c.default,this.feature.set("tooltip",a.TOOLTIP_POSITION),this.feature.set("noCursor",!0);var o=new i.Vector({source:new s.Vector({features:[this.feature]})});this.mapController.map.addLayer(o),this.mapController.data&&this.mapController.data.userLocationStyle&&this.mapController.proxy.locationStyleController.loadLocationStyles([this.mapController.data.userLocationStyle],{done:function(){if(t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].style){var e=t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].style;t.feature.setStyle(e)}else{var r=t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].getStyleFunction();t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].style=r,t.feature.setStyle(r)}}}),this.mapController.geolocation.on("change",(function(e){var r=t.mapController.geolocation.getPosition();if(r){var a=new l.Point(r);t.feature.setGeometry(a)}else window.setTimeout((function(){t.mapController.geolocation.dispatchEvent("change")}),200)})),this.mapController.geolocation.getTracking()&&this.mapController.geolocation.dispatchEvent("change")}))},"./src/Resources/public/js/components/c4g-maps.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=t("./src/Resources/public/js/c4g-maps-proxy.js"),p=t("./src/Resources/public/js/c4g-maps-constant.js"),b=t("./src/Resources/public/js/c4g-maps-misc-spinner.js"),d=t("./src/Resources/public/js/c4g-maps-misc-maphover.js"),h=t("./node_modules/ol/layer.js"),m=a(t("./node_modules/ol/control/Control.js")),g=t("./src/Resources/public/js/c4g-maps-utils.js"),f=t("./src/Resources/public/js/c4g-maps-controls.js"),y=t("./src/Resources/public/js/c4g-maps-i18n.js"),_=t("./node_modules/ol/index.js"),k=t("./node_modules/ol/proj.js"),v=t("./node_modules/ol/interaction.js"),w=t("./node_modules/ol/control.js"),S=(t("./node_modules/ol/geom.js"),a(t("./node_modules/ol/Feature.js"))),C=t("./node_modules/ol/extent.js"),R=t("./node_modules/ol/events/condition.js"),E=a(t("./node_modules/react-dom/index.js")),O=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=j(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),T=(a(t("./node_modules/ol/layer/Tile.js")),t("./src/Resources/public/js/routing-constant-i18n-en.js")),x=t("./src/Resources/public/js/routing-constant-i18n-de.js"),P=t("./src/Resources/public/js/c4g-user-position.js"),I=t("./src/Resources/public/js/components/c4g-router-view.jsx");function j(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(j=function(e){return e?t:r})(e)}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}var A=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-geosearch_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-geosearch.jsx"))})),F=O.default.lazy((function(){return Promise.all([t.e("vendors-node_modules_opening_hours_build_opening_hours_js"),t.e("src_Resources_public_js_components_c4g-feature-filter_jsx")]).then(t.bind(t,"./src/Resources/public/js/components/c4g-feature-filter.jsx"))})),M=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-baselayerswitcher_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-baselayerswitcher.jsx"))})),z=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-starboard-panel_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-starboard-panel.jsx"))})),N=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-starboard-scope_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-starboard-scope.jsx"))})),D=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-infopage_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-infopage.jsx"))})),B=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-measuretools_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-measuretools.jsx"))})),G=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-permalink_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-permalink.jsx"))})),U=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom.jsx"))})),H=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom-extent_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom-extent.jsx"))})),K=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom-home_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom-home.jsx"))})),W=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom-position_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom-position.jsx"))})),V=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-grid_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-grid.jsx"))})),Z=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-rotate_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-rotate.jsx"))})),q=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-fullscreen_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-fullscreen.jsx"))})),Q=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-print_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-print.jsx"))})),J=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-overviewmap_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-overviewmap.jsx"))})),X=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-editor-component_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-editor-component.jsx"))})),Y={},$={arrFromPositions:[],arrFromNames:[],arrToPositions:[],arrToNames:[],arrOverPositions:{},arrOverNames:{}},ee={};r.default=function(e){function r(e){var t,a,o,s;(0,n.default)(this,r),a=this,o=r,s=[e],o=(0,l.default)(o),t=(0,i.default)(a,L()?Reflect.construct(o,s||[],(0,l.default)(a).constructor):o.apply(a,s));var c=e.mapData;t.state={objLayers:[],arrLayerStates:[],openComponent:null,objTabLayers:[],styleData:{},arrTabLayerStates:[],activeBaselayerId:null},t.setObjLayers=t.setObjLayers.bind(t),t.setBaselayerId=t.setBaselayerId.bind(t),t.setLayerStates=t.setLayerStates.bind(t),t.changeActiveLayers=t.changeActiveLayers.bind(t),t.setTabStates=t.setTabStates.bind(t),t.setLocStyles=t.setLocStyles.bind(t),t.changeCollapseState=t.changeCollapseState.bind(t),t.map=null,ee=(0,y.getLanguage)(c);var T,x,I,j,A,M=t,z=!1,N=[],D=[];if("LOCATIONS"!==(c=jQuery.extend({api:{},addIdToDiv:!1,mapId:1,mapDiv:"c4g_map",center:{},calc_extent:"CENTERZOOM",attribution:{},editor:{},measuretools:{},infopage:{},account:"",starboard:{},layerswitcher:{},baselayerswitcher:{},geosearch:{}},c)).calc_extent&&"CENTERLOCS"!==c.calc_extent||(c=jQuery.extend({min_gap:25},c)),c.center=jQuery.extend({lat:52.22,lon:9.43,rotation:0,zoom:6},c.center),c.attribution=jQuery.extend({enable:!0,collapsed:!1,collapsible:!0},c.attribution),c.geosearch=jQuery.extend({enable:!1,div:!1},c.geosearch),c.permalink=jQuery.extend({enable:!1,get_parameter:!1},c.permalink),t.data=c,c.addIdToDiv&&(c.mapDiv+="_"+c.mapId),c.caching&&(window.onbeforeunload=function(){var e=M.getCurrentLayerStates(M.state.arrLayerStates);g.utils.storeValue("layers",e),g.utils.storeValue("tstampc4g",Date.now())}),window.MooTools&&Browser.Document&&(Document=Browser.Document),c.permalink.enable)if(z=g.utils.getUrlParam(c.permalink.get_parameter))switch((z=z.split("/")).length){case 6:z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],z[3]=parseFloat(z[3]),c.center.rotation=isNaN(z[3])?c.center.rotation:z[3],z[4]=parseInt(z[4],10),c.baselayer=isNaN(z[4])?c.baselayer:z[4],c.layers=z[5].split(":"),c.layers=g.utils.deltaDecode(c.layers);break;case 3:z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],c.calc_extent="CENTERZOOM";break;case 2:z[0]=parseInt(z[0],10),c.baselayer=isNaN(z[0])?c.baselayer:z[0],c.layers=z[1].split(":"),c.layers=g.utils.deltaDecode(c.layers);break;case 1:c.layers=z[0].split(":"),c.layers=g.utils.deltaDecode(c.layers);break;default:z=!1,c.layers=!1}else z=!1;else(z=g.utils.getUrlParam(c.permalink.get_parameter))&&(3===(z=z.split("/")).length?(z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],c.calc_extent="CENTERZOOM"):4===z.length&&(z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],z[3]=parseInt(z[3],10),c.default_baselayer=z[3],c.calc_extent="CENTERZOOM"),z=!1);if(t.proxy=new u.MapProxy({mapController:t}),t.components=t.components||{},t.hideOtherComponents=t.hideOtherComponents.bind(t),t.hideOtherBottomComponents=t.hideOtherBottomComponents.bind(t),t.getActiveComponents=t.getActiveComponents.bind(t),window.c4gMapsHooks.map_center_changed=window.c4gMapsHooks.map_center_changed||[],window.c4gMapsHooks.map_center_changed.push((function(e){var r=g.utils.getUrlParam(c.permalink.get_parameter);r&&r&&(r=r.split("/")).length>=3&&(e=(0,k.transform)(e,"EPSG:3857","EPSG:4326"),r[0]=e[0],r[1]=e[1],g.utils.setUrlParam(r.join("/"),c.permalink.get_parameter,!0))})),window.c4gMapsHooks.hook_map_zoom=window.c4gMapsHooks.hook_map_zoom||[],window.c4gMapsHooks.hook_map_zoom.push((function(e){var r=g.utils.getUrlParam(c.permalink.get_parameter);r&&r&&(r=r.split("/")).length>=3&&(r[2]=parseInt(I.getZoom(),10)||r[2],g.utils.setUrlParam(r.join("/"),c.permalink.get_parameter,!0))})),c.permalink.withoutGenerator&&!g.utils.getUrlParam(c.permalink.get_parameter)&&c.center){var B=[];B.push(c.center.lon),B.push(c.center.lat),B.push(c.center.zoom),g.utils.setUrlParam(B.join("/"),c.permalink.get_parameter,!0)}if(T=c.minZoom&&c.minZoom>0?c.minZoom:0,x=c.maxZoom&&c.maxZoom>0?c.maxZoom:19,c.caching&&g.utils.getValue("tstampc4g")&&g.utils.getValue("tstampc4g")+604800>Date.now()&&(g.utils.getValue("lon")&&g.utils.getValue("lat")&&(c.center.lon=g.utils.getValue("lon"),c.center.lat=g.utils.getValue("lat")),g.utils.getValue("zoom")&&(c.center.zoom=g.utils.getValue("zoom")),g.utils.getValue("layers")&&(c.layers=g.utils.getValue("layers"))),c.restr_bottomleft_lon&&c.restr_bottomleft_lat&&c.restr_topright_lon&&c.restr_topright_lat){var G=[parseFloat(c.restr_bottomleft_lon),parseFloat(c.restr_bottomleft_lat),parseFloat(c.restr_topright_lon),parseFloat(c.restr_topright_lat)];G=(0,k.transformExtent)(G,"EPSG:4326","EPSG:3857"),I=new _.View({extent:G,center:(0,k.transform)([parseFloat(c.center.lon),parseFloat(c.center.lat)],"EPSG:4326","EPSG:3857"),zoom:parseFloat(c.center.zoom),minZoom:parseInt(T,10),maxZoom:parseInt(x,10),rotation:parseFloat(c.center.rotation)})}else I=new _.View({center:(0,k.transform)([parseFloat(c.center.lon),parseFloat(c.center.lat)],"EPSG:4326","EPSG:3857"),zoom:parseFloat(c.center.zoom),minZoom:parseInt(T,10),maxZoom:parseInt(x,10),rotation:parseFloat(c.center.rotation)});if(t.geolocation=new _.Geolocation({tracking:!1,projection:I.getProjection()}),t.geolocation.on("change",(function(e){for(var r in t.geolocation.arrFuncs)t.geolocation.arrFuncs.hasOwnProperty(r)&&t.geolocation.arrFuncs[r](e,r)})),c.geolocation&&!z&&(t.geolocation.once("change",(function(e){var r=this.getPosition();if(c.geolocation_extent&&c.geolocation_extent[0]){var t=(0,k.fromLonLat)([c.geolocation_extent[0],c.geolocation_extent[1]]),a=(0,k.fromLonLat)([c.geolocation_extent[2],c.geolocation_extent[3]]),o=(0,C.boundingExtent)([t,a]);if(!r||!(0,C.containsCoordinate)(o,r))return}r&&I.setCenter(r),c.geolocation_zoom&&I.setZoom(parseInt(c.geolocation_zoom,10)),M.map&&(M.map.setView(I),M.$overlaycontainer_stopevent)})),t.geolocation.getTracking()&&t.geolocation.dispatchEvent("change")),c.profile||(N=(0,w.defaults)(),D=(0,v.defaults)()),c.geopicker&&"backend"===c.geopicker.type?(c.default_baselayer&&t.proxy.hook_baselayer_loaded.push((function(e){M.proxy.baselayerController.arrBaselayers.hasOwnProperty(c.default_baselayer)&&M.proxy.baselayerController.showBaseLayer(c.default_baselayer)})),t.map=new _.Map({controls:N,interactions:D,layers:[new h.Group({title:"Base maps",layers:[],checkSum:"baseMapsLayer"})],loadTilesWhileAnimating:!0,target:c.mapDiv,view:I})):(c.default_baselayer&&t.proxy.hook_baselayer_loaded.push((function(e){c.baselayer&&e.indexOf(c.baselayer.toString())>-1&&(c.default_baselayer=c.baselayer),c.caching&&g.utils.getValue("baselayer")&&(c.default_baselayer=g.utils.getValue("baselayer")),M.proxy.baselayerController.showBaseLayer(c.default_baselayer)})),t.map=new _.Map({controls:N,interactions:D,layers:[new h.Group({title:"Base maps",layers:[],checkSum:"baseMapsLayer"})],loadTilesWhileAnimating:!0,target:c.mapDiv,view:I})),window.c4gMapsHooks&&window.c4gMapsHooks.changeInitialView&&g.utils.callHookFunctions(window.c4gMapsHooks.changeInitialView,{mapData:c,view:I}),c.map=t.map,(j=document.getElementById(c.mapDiv))||(j=document.getElementById("#"+c.mapDiv))||(j=document.getElementById("."+c.mapDiv)),!j||!j.style)return console.warn("can not get element by id mapData.mapDiv"),(0,i.default)(t);if(c.width)if(c.margin){var U=c.margin.split(" "),H=0,K=0;switch(U.length){case 4:H=U[1],K=U[3];break;case 2:H=U[1],K=U[1];break;case 1:H=U[0],K=U[0]}0==K&&(K+="px"),0==H&&(H+="px"),j.style.width="calc("+c.width+" - "+K+" - "+H+")"}else j.style.width=c.width;if(c.height)j.style.height=c.height;else if(c.geopicker&&"backend"===c.geopicker.type){var W=j.parentElement.parentElement.offsetHeight;j.style.height="calc(100vh - "+W+"px)",j.style.minHeight="480px",j.style.maxWidth="100vw"}else if(j.parentElement&&j.parentElement.parentElement&&!j.parentElement.parentElement.offsetHeight)j.style.height="100vh";else if(j.parentElement&&j.parentElement.parentElement){var V=j.parentElement.parentElement.offsetHeight;V<320&&(V=320),j.style.height=V+"px"}if(c.margin&&(j.style.padding=c.margin),t.$overlaycontainer_stopevent=jQuery("#"+c.mapDiv+" ."+p.cssConstants.OL_OVERLAYCONTAINER_SE),t.map.updateSize(),t.proxy.initialize(),t.spinner=new b.Spinner({className:p.cssConstants.LARGE}),t.mapHover=new d.MapHover({mapController:t}),c.mouse_nav&&(c.mouse_nav.drag_pan&&(A=c.mouse_nav.kinetic?new _.Kinetic(-.005,.05,100):null,t.map.addInteraction(new v.DragPan({kinetic:A,condition:function(e){return!c.touch_nav.twoFingers||"mouse"===e.originalEvent.pointerType||!e.activePointers||1!==e.activePointers.length}}))),c.mouse_nav.wheel_zoom&&t.map.addInteraction(new v.MouseWheelZoom),c.mouse_nav.doubleclick_zoom&&t.map.addInteraction(new v.DoubleClickZoom),c.mouse_nav.drag_zoom&&t.map.addInteraction(new v.DragZoom({condition:R.shiftKeyOnly})),c.rotate)&&t.map.addInteraction(new v.DragRotateAndZoom({condition:function(e){var r=e.originalEvent;return r.ctrlKey&&r.shiftKey}})),c.touch_nav&&(c.touch_nav.rotate&&t.map.addInteraction(new v.PinchRotate),c.touch_nav.zoom&&t.map.addInteraction(new v.PinchZoom({constrainResolution:!0}))),c.keyboard_nav&&(c.keyboard_nav.pan&&t.map.addInteraction(new v.KeyboardPan),c.keyboard_nav.zoom&&t.map.addInteraction(new v.KeyboardZoom)),t.mapsControls=new f.MapsControls(t),t.mapsControls.init(),c.layerswitcher.enable&&(c.starboard.div?(t.reactContainer=document.querySelector("."+c.starboard.div),t.reactContainer?t.reactContainer.className+=" c4g-external ol-unselectable":(t.reactContainer=document.createElement("div"),t.reactContainer.className="c4g-sideboard c4g-starboard-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.reactContainer))):(t.reactContainer=document.createElement("div"),t.reactContainer.className="c4g-sideboard c4g-starboard-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.reactContainer)),c.starboard.open?t.reactContainer.className+=" c4g-open":t.reactContainer.className+=" c4g-close"),c.baselayerswitcher.enable&&(c.baselayerswitcher.div?(t.baselayerContainer=document.querySelector("."+c.baselayerswitcher.div),t.baselayerContainer?t.baselayerContainer.className+=" c4g-external c4g-baselayer-container ol-unselectable":(t.baselayerContainer=document.createElement("div"),t.baselayerContainer.className="c4g-sideboard c4g-baselayer-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.baselayerContainer))):(t.baselayerContainer=document.createElement("div"),t.baselayerContainer.className="c4g-sideboard c4g-baselayer-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.baselayerContainer)),c.starboard.open?t.baselayerContainer.className+=" c4g-open":t.baselayerContainer.className+=" c4g-close"),c.starboardscope.enable&&(c.starboardscope.div?(t.starboardscopeContainer=document.querySelector("."+c.starboardscope.div),t.starboardscopeContainer?t.starboardscopeContainer.className+=" c4g-external c4g-starboardscope-container ol-unselectable":(t.starboardscopeContainer=document.createElement("div"),t.starboardscopeContainer.className="c4g-sideboard c4g-starboardscope-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.starboardscopeContainer))):(t.starboardscopeContainer=document.createElement("div"),t.starboardscopeContainer.className="c4g-sideboard c4g-starboardscope-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.starboardscopeContainer)),c.starboardscope.open?t.starboardscopeContainer.className+=" c4g-open":t.starboardscopeContainer.className+=" c4g-close"),c.filterDiv&&(c.filterDiv="."===c.filterDiv[0]||"#"===c.filterDiv[0]?c.filterDiv:"."+c.filterDiv,t.filterContainerParent=document.querySelector(c.filterDiv),t.filterContainerParent&&(t.filterContainerParent.className+=" c4g-external",t.filterContainer=document.createElement("div"),E.default.render(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"loading..."')},O.default.createElement(F,{target:document.querySelector(c.filterDiv),mapController:t,direction:"top",className:"c4g-feature-filter"})),t.filterContainer),t.filterContainerParent.append(t.filterContainer))),c.legend.enable&&(c.legend.div?(t.infoPageContainer=document.querySelector("."+c.legend.div),t.infoPageContainer?t.infoPageContainer.className+=" c4g-external c4g-infopage-container ol-unselectable":(t.infoPageContainer=document.createElement("div"),t.infoPageContainer.className="c4g-sideboard c4g-infopage-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.infoPageContainer))):(t.infoPageContainer=document.createElement("div"),t.infoPageContainer.className="c4g-sideboard c4g-infopage-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.infoPageContainer))),c.measuretools.enable){var Z="measuretools"===c.initial_open_comp?"c4g-open":"c4g-close";c.measuretools.div?(t.measuretoolsContainer=document.querySelector("."+c.measuretools.div),t.measuretoolsContainer?t.measuretoolsContainer.className+=" c4g-external c4g-measuretools-container ol-unselectable":(t.measuretoolsContainer=document.createElement("div"),t.measuretoolsContainer.className="c4g-sideboard c4g-measuretools-container ol-unselectable "+Z,t.$overlaycontainer_stopevent.append(t.measuretoolsContainer))):(t.measuretoolsContainer=document.createElement("div"),t.measuretoolsContainer.className="c4g-sideboard c4g-measuretools-container ol-unselectable "+Z,t.$overlaycontainer_stopevent.append(t.measuretoolsContainer))}if(c.permalink.enable&&(c.permalink.div?(t.permalinkContainer=document.querySelector(".c4g-external-permalink-container"),t.permalinkContainer?t.permalinkContainer.className+=" c4g-external":(t.permalinkContainer=document.createElement("div"),t.permalinkContainer.className="c4g-sideboard c4g-permalink-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.permalinkContainer))):(t.permalinkContainer=document.createElement("div"),t.permalinkContainer.className="c4g-sideboard c4g-permalink-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.permalinkContainer))),c.overviewmap&&(t.overviewContainer=document.createElement("div"),t.overviewContainer.className="c4g-sideboard c4g-overviewmap-container c4g-close",t.$overlaycontainer_stopevent.append(t.overviewContainer)),c.geopicker&&c.geopicker.type,c.themeData){j=document.getElementById(c.mapDiv),c.themeData.useglobal&&(j=document.getElementById("wrapper"));var q="100%",Q="100%";if(c.width&&(q=c.width),Q=c.height?c.height:j&&j.offsetHeight&&j.offsetHeight?"100%":"100vh",j&&j.style&&(j.style.setProperty("--map-height",Q),j.style.setProperty("--map-width",q)),c.themeData.maincolor){var J=g.utils.getRgbaFromHexAndOpacity(c.themeData.maincolor,c.themeData.mainopacity),X=g.utils.getRgbaFromHexAndOpacity(c.themeData.fontcolor,c.themeData.fontopacity),Y=g.utils.getRgbaFromHexAndOpacity(c.themeData.shadowcolor,c.themeData.shadowopacity),$=g.utils.getRgbaFromHexAndOpacity(c.themeData.popupMaincolor,c.themeData.popupMainopacity),re=g.utils.getRgbaFromHexAndOpacity(c.themeData.popupFontcolor,c.themeData.popupFontopacity);j&&j.style&&(j.style.setProperty("--main-color",J),j.style.setProperty("--font-color",X),j.style.setProperty("--pu-main-color",$),j.style.setProperty("--pu-font-color",re),j.style.setProperty("--shadow-color",Y))}j&&c.themeData.buttonradius&&(j.style.setProperty("--button-radius-percent",c.themeData.buttonradius+"%"),j.style.setProperty("--button-radius-pixel",c.themeData.buttonradius+"px")),j&&c.themeData.buttonsize&&j.style.setProperty("--button-size-pixel",c.themeData.buttonsize+"px"),j&&c.themeData.fontsize&&j.style.setProperty("--button-fontsize-pixel",c.themeData.fontsize+"px"),j&&c.themeData.popupMaxWidth&&j.style.setProperty("--popup-max-width",c.themeData.popupMaxWidth+"%")}if(c.caching){var te=g.utils.getValue("popupInfos");if(te&&parseInt(c.popupHandling,10)){t.data.initial_open_comp="";var ae=JSON.parse(te),oe=new S.default;oe.set("popup",ae);var ne=new h.Vector;window.setTimeout((function(){t.proxy.handlePopup(oe,ne)}),100)}}var se=t;if(t.map.on("change:size",(function(){se.setState({}),se.map&&se.map.getSize()&&j&&j.style&&j.style.setProperty("--map-height",se.map.getSize()[1]+"px")})),c.userLocation&&new P.UserPosition(t),window.c4gMapsHooks.addControls){var ie=[];for(var le in g.utils.callHookFunctions(window.c4gMapsHooks.addControls,ie),ie)ie.hasOwnProperty(le)&&t.map.addControl(new m.default(ie[le]))}return t}return(0,c.default)(r,e),(0,s.default)(r,[{key:"setLayersInitial",value:function(e,r){this.setState({objLayers:e,arrLayerStates:r})}},{key:"setBaselayerId",value:function(e){this.setState({activeBaselayerId:e})}},{key:"setObjLayers",value:function(e){this.setState({objLayers:e})}},{key:"setLocStyles",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r?this.setState({styleData:e},r()):this.setState({styleData:e})}},{key:"setLayerStates",value:function(e){if(this._isMounted&&e&&e.length>0){var r=!1;for(var t in e)e.hasOwnProperty(t)&&e[t]!==this.state.arrLayerStates&&(r=!0);r&&this.setState({arrLayerStates:e})}}},{key:"getCurrentLayerStates",value:function(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&(e[t].active&&r.push(e[t].id),e[t].childStates&&(r=r.concat(this.getCurrentLayerStates(e[t].childStates))));return r}},{key:"setLayerStateWithId",value:function(e,r){var t=this.state.arrLayerStates;for(var a in t)t.hasOwnProperty(a)&&(t[a]=this.getLayerStateWithId(t[a],e,r));this.setState({arrLayerStates:t})}},{key:"getLayerStateWithId",value:function(e,r,t){for(var a in e.id===r&&(e.active=t),e.childStates)e.childStates.hasOwnProperty(a)&&(e.childStates[a]=this.getLayerStateWithId(e.childStates[a],r,t));return e}},{key:"changeActiveLayers",value:function(e){var r=this.state.arrLayerStates;for(var t in r)if(r.hasOwnProperty(t)){if("all"!==this.state.objLayers[t].activeForBaselayers){var a=r[t].active;r[t].active=!!this.state.objLayers[t].activeForBaselayers.find((function(r){return r===e})),a!==r[t].active&&(r[t].active?this.proxy.layerController.show(this.state.objLayers[t].id,this.state.objLayers[t].features||this.state.objLayers[t].vectorLayer):this.proxy.layerController.hide(this.state.objLayers[t].id,this.state.objLayers[t].features||this.state.objLayers[t].vectorLayer))}for(var o in r[t].childStates)r[t].childStates.hasOwnProperty(o)&&(r[t].childStates[o]=this.changeActiveLayerChilds(r[t].childStates[o],this.state.objLayers[t].childs[o],e))}this.setState({arrLayerStates:r})}},{key:"changeActiveLayerChilds",value:function(e,r,t){if("all"!==r.activeForBaselayers){var a=e.active;e.active=!!r.activeForBaselayers.find((function(e){return e===t})),a!==e.active&&(e.active?this.proxy.layerController.show(r.id,r.features||r.vectorLayer):this.proxy.layerController.hide(r.id,r.features||r.vectorLayer))}for(var o in e.childStates)e.childStates.hasOwnProperty(o)&&(e.childStates[o]=this.changeActiveLayerChilds(e.childStates[o],r.childs[o],t));return e}},{key:"setTabLayers",value:function(e,r){this.setState({objTabLayers:e,arrTabLayerStates:r})}},{key:"setTabStates",value:function(e){this.setState({arrTabLayerStates:e})}},{key:"hideOtherComponents",value:function(e){var r=this.components;for(var t in r)r.hasOwnProperty(t)&&r[t]&&r[t]!==e&&(r[t].close?r[t].close():r[t].setState({open:!1}))}},{key:"changeCollapseState",value:function(e,r){var t=this.state.arrLayerStates;t[e]=r,this.setState({arrLayerStates:t})}},{key:"hideOtherBottomComponents",value:function(e){var r=this.components;for(var t in r)r.hasOwnProperty(t)&&r[t]&&r[t]!==e&&r[t].setState({openResults:!1})}},{key:"getActiveComponents",value:function(){var e=this.components,r=[];for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].state.open&&r.push(e[t]);return r}},{key:"render",value:function(){var e=this,r=this.data,t=document.querySelector("#"+r.mapDiv+" .c4g-control-container-top-left");this.arrComponents=this.arrComponents||[{name:"layerswitcher",sort:r.layerswitcher.enable},{name:"geosearch",sort:r.geosearch.enable},{name:"legend",sort:r.legend.enable},{name:"baselayerswitcher",sort:r.baselayerswitcher.enable},{name:"starboardscope",sort:r.starboardscope.enable},{name:"measuretools",sort:r.measuretools.enable},{name:"permalink",sort:r.permalink.enable},{name:"zoom",sort:r.zoom},{name:"zoomPosition",sort:r.zoomPosition},{name:"zoomHome",sort:r.zoomHome},{name:"zoomExtent",sort:r.zoomExtent},{name:"fullscreen",sort:r.fullscreen},{name:"print",sort:r.print},{name:"rotate",sort:r.rotate},{name:"graticule",sort:r.graticule},{name:"overview",sort:r.overviewmap},{name:"router",sort:r.router_enable},{name:"editor",sort:r.editor.enable}];var a="",o=this.data.caching?g.utils.getValue("panel"):"";o&&(r.initial_open_comp=""),r.layerswitcher.enable&&(a=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(z,{ref:function(r){e.components.starboard=r},target:t,mapController:this,objLayers:this.state.objLayers,styleData:this.state.styleData,tabLayers:this.state.objTabLayers,tabStates:this.state.arrTabLayerStates,layerStates:this.state.arrLayerStates,parentCallback:this.setLayerStates,tabCallback:this.setTabStates,direction:"right",open:"starboard"===r.initial_open_comp||"StarboardPanel"===o,changeCollapseState:this.changeCollapseState,external:-1!==this.reactContainer.className.indexOf("c4g-external")})),this.reactContainer));var n="";if(r.geosearch.enable){var s=this.createGeosearchOptions();s.ref=function(r){e.components.geosearch=r},n=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(A,s)),this.searchContainer)}var i="",l=void 0,c=void 0;this.proxy.baselayers_loaded&&(l=this.proxy.baselayerController.arrBaselayers[this.state.activeBaselayerId])&&l.hasOverlays&&(c=l.overlays[0]);var u=r.infopage;l&&l.infopage&&(u=u+" "+l.infopage),c&&c.infopage&&(u=u+" "+c.infopage),u&&r.legend.enable&&(i=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(D,{ref:function(r){e.components.infopage=r},target:t,external:-1!==this.infoPageContainer.className.indexOf("c4g-external"),infoContent:u,mapController:this,open:"legend"===r.initial_open_comp||"Infopage"===o})),this.infoPageContainer));var p="";r.baselayerswitcher.enable&&(p=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(M,{ref:function(r){e.components.baselayerSwitcher=r},target:t,open:"baselayers"===r.initial_open_comp||"BaselayerSwitcher"===o,changeActiveLayers:this.changeActiveLayers,external:-1!==this.baselayerContainer.className.indexOf("c4g-external"),mapController:this,baselayerController:this.proxy.baselayerController})),this.baselayerContainer));var b="";r.starboardscope.enable&&(b=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(N,{ref:function(r){e.components.starboardScope=r},target:t,open:"starboardscope"===r.initial_open_comp||"StarboardScope"===o,mapController:this})),this.starboardscopeContainer));var d="";r.measuretools.enable&&(d=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(B,{ref:function(r){e.components.measuretools=r},target:t,open:"measuretools"===r.initial_open_comp||"MeasureTools"===o,mapController:this})),this.measuretoolsContainer));var m="";r.permalink.enable&&(m=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"loading..."')},O.default.createElement(G,{ref:function(r){e.components.permalink=r},saveIds:r.permalink.saveIds,mapController:this,target:t,external:-1!==this.permalinkContainer.className.indexOf("c4g-external")})),this.permalinkContainer));var f="";if(r.overviewmap){var y;if(this.proxy.baselayers_loaded){var _=this.proxy.baselayerController.arrBaselayers[this.state.activeBaselayerId].layer;y=_ instanceof h.Group?_.getLayers().getArray()[0].getSource():_.getSource()}f=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,"Loading...")},O.default.createElement(J,{ref:function(r){e.components.overviewMap=r},mapController:this,target:t,source:y,ovmTarget:this.overviewContainer,collapsed:!0,key:23})),this.overviewContainer)}var k=[];this.arrComponents.sort((function(e,r){return e.sort>r.sort?1:-1})),this.arrComponents=this.arrComponents.filter((function(e){return e.sort&&e.sort>0}));for(var v=0;v{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.PopupContainer=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=d(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),p=t("./src/Resources/public/js/c4g-maps-i18n.js"),b=t("./src/Resources/public/js/c4g-maps-utils.js");function d(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(d=function(e){return e?t:r})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var m=u.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-titlebar_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-titlebar.jsx"))}));r.PopupContainer=function(e){function r(e){var t,a,o,s;return(0,n.default)(this,r),a=this,o=r,s=[e],o=(0,l.default)(o),(t=(0,i.default)(a,h()?Reflect.construct(o,s||[],(0,l.default)(a).constructor):o.apply(a,s))).state={content:"",open:e.open,detailsOpen:!1,activeComps:e.activeComps,conststr:!1},e.hideOther(t),t.routeButtons="",t.language=(0,p.getLanguage)(t.props.mapData),t.close=t.close.bind(t),t.toggleDetails=t.toggleDetails.bind(t),t}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r=this.props.external?"c4g-popup-container ":"c4g-sideboard c4g-popup-container ";this.state.open?r+="c4g-open ":r+="c4g-close",this.props.alwaysExtended||this.state.detailsOpen?r+=" c4g-details-open":r+=" c4g-details-closed";var t="c4g-popup-header",a=u.default.createElement("div",null);return this.state.conststr&&(t+=" c4g-routing",a=u.default.createElement(this.state.conststr,{config:this.state.config})),this.state.content?u.default.createElement("div",{className:r},u.default.createElement("div",{className:"c4g-popup-wrapper"},u.default.createElement(u.Suspense,{fallback:u.default.createElement("div",null,"Loading...")},u.default.createElement(m,{wrapperClass:t,headerClass:"c4g-popup-header-headline",header:this.props.mapData.popupHeadline||"",closeBtnClass:"c4g-titlebar-close",closeBtnCb:function(){e.close(!0)},closeBtnTitle:this.language.CLOSE,detailBtnClass:"",detailBtnCb:""},a)),u.default.createElement("div",{className:"c4g-popup-content",dangerouslySetInnerHTML:{__html:this.state.content}}))):null}},{key:"setAddButtons",value:function(e,r){this.setState({config:r,conststr:e})}},{key:"setContent",value:function(e){this.setState({content:e})}},{key:"open",value:function(e){this.props.external||this.props.hideOther(),this.setState({open:!0,activeComps:e})}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.props.mapData.caching&&b.utils.storeValue("popupInfos",""),e&&this.state.activeComps)for(var r in this.state.activeComps)this.state.activeComps.hasOwnProperty(r)&&this.state.activeComps[r].setState({open:!0});var t={open:!1,content:this.props.external?"":this.state.content};this.setState(t)}},{key:"toggleDetails",value:function(){this.setState({detailsOpen:!this.state.detailsOpen})}},{key:"componentDidUpdate",value:function(e,r,t){r.open&&!this.state.open&&this.props.mapData.caching&&b.utils.storeValue("popupInfos","")}}])}(u.Component)},"./src/Resources/public/js/components/c4g-router-popup-buttons.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RouterPopupButtons=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=h(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),p=t("./node_modules/ol/geom.js"),b=(t("./src/Resources/public/js/routing-constant-i18n.js"),t("./node_modules/ol/proj.js")),d=a(t("./node_modules/ol/format/GPX.js"));function h(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(h=function(e){return e?t:r})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}r.RouterPopupButtons=function(e){function r(e){return(0,n.default)(this,r),t=this,a=r,o=[e],a=(0,l.default)(a),(0,i.default)(t,m()?Reflect.construct(a,o||[],(0,l.default)(t).constructor):a.apply(t,o));var t,a,o}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r=this,a=this.props.config.feature.getGeometry();if(a){if(a instanceof p.LineString)return u.default.createElement("div",null,u.default.createElement("button",{className:"c4g-icon c4g-popup-route-download",title:this.props.config.router.languageConstants.ROUTER_DOWNLOAD,onMouseUp:function(){!function(){var e=r.props.config.feature,t=(new d.default).writeFeatures([e],{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326",decimals:3}),a=document.createElement("a");a.setAttribute("href","data:text/xml;charset=utf-8,"+encodeURIComponent(t));var o=e.get("name")||"route";a.setAttribute("download",o+".gpx"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}()}}),u.default.createElement("button",{className:"c4g-icon c4g-popup-route-edit",title:this.props.config.router.languageConstants.POPUP_ROUTE_EDIT,onMouseUp:function(){!function(){for(var o=a.getCoordinates(),n=1;o.length>15;)if(o=(a=a.simplify(n)).getCoordinates(),(n+=2)>42)return void Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(r.props.config.router.languageConstants.ROUTER_VIEW_ALERT_ERROR,r.props.config.router.languageConstants.ROUTER_ERROR_LINESTRING)}));e.props.config.router.openControls(!0),e.props.config.router.setMode("route");var s=(0,b.toLonLat)(o[0],"EPSG:3857");e.props.config.router.setRouteFrom(s[0],s[1]);var i=o.slice(1,o.length-2);e.props.config.router.addOverPoints(i);var l=(0,b.toLonLat)(o[o.length-1],"EPSG:3857");e.props.config.router.setRouteTo(l[0],l[1])}()}}));var o;if(a instanceof p.Polygon){var n=a.getExtent();o=[(n[0]+n[2])/2,(n[1]+n[3])/2]}else o=a.getCoordinates();return u.default.createElement("div",null,u.default.createElement("button",{className:"c4g-icon c4g-popup-route-from",title:this.props.config.router.languageConstants.POPUP_ROUTE_FROM,onMouseUp:function(){!function(){e.props.config.router.openControls(!0),e.props.config.router.setMode("route");var r=(0,b.toLonLat)(o,"EPSG:3857");e.props.config.router.setRouteFrom(r[0],r[1])}()}}),u.default.createElement("button",{className:"c4g-icon c4g-popup-route-to",title:this.props.config.router.languageConstants.POPUP_ROUTE_TO,onMouseUp:function(){!function(){e.props.config.router.openControls(!0),e.props.config.router.setMode("route");var r=(0,b.toLonLat)(o,"EPSG:3857");e.props.config.router.setRouteTo(r[0],r[1])}()}}))}return null}}])}(u.Component)},"./src/Resources/public/js/components/c4g-router-result-container.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RouterResultContainer=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=m(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),p=a(t("./node_modules/ol/format/GPX.js")),b=a(t("./node_modules/ol/format/GeoJSON.js")),d=t("./src/Resources/public/js/c4g-router-time-conversions.js"),h=(t("./src/Resources/public/js/components/c4g-titlebar.jsx"),a(t("./node_modules/react-dom/index.js")));function m(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(m=function(e){return e?t:r})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var f=u.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-router-instructions-container_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-router-instructions-container.jsx"))})),y=u.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-router-feature-list_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-router-feature-list.jsx"))}));r.RouterResultContainer=function(e){function r(e){var t,a,o,s;return(0,n.default)(this,r),a=this,o=r,s=[e],o=(0,l.default)(o),(t=(0,i.default)(a,g()?Reflect.construct(o,s||[],(0,l.default)(a).constructor):o.apply(a,s))).clickControl=t.clickControl.bind(t),t.profileTranslation={0:"car",1:"hgv",2:"bike",3:"bike",4:"bike",5:"bike",6:"bike",7:"bike",8:"foot",9:"foot",10:"wheelchair",11:"hgv",12:"scooter",13:"scooter"},window.c4gMapsHooks.hook_map_click=window.c4gMapsHooks.hook_map_click||[],window.c4gMapsHooks.hook_map_click.push((function(e){var r=t.props.mapController.map.forEachFeatureAtPixel(e.pixel,(function(e,r){return e}));if(r&&r.get("tid")){var a=r.get("tid");t.props.setResultFeat(e),t.props.setActiveId(a)}})),t}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r="",t="",a="",o="",n="";this.props.routerInstructions&&this.props.routerInstructions.instructions&&"route"===this.props.mode?(t=(0,d.toHumanTime)(this.props.routerInstructions.time),a=(0,d.toHumanDistance)(this.props.routerInstructions.distance)):this.props.featureList&&"area"===this.props.mode&&(o=this.props.detour,n=this.props.featureList.features.length);var s="",i=function(){var r="instr"===e.props.resultMode?".c4g-route-instructions-wrapper":".c4g-route-feature-wrapper",t=document.querySelector(r).cloneNode(!0);if("instr"===e.props.resultMode){var a=e.props.router.state.fromAddress,o=document.createElement("div"),n=document.createElement("label");n.innerHTML=e.props.lang.ROUTER_FROM+": ";var s=document.createElement("em");s.innerHTML=a,o.appendChild(n),o.appendChild(s),o.appendChild(document.createElement("em"));var i=e.props.router.state.toAddress,l=document.createElement("div"),c=document.createElement("label");c.innerHTML=e.props.lang.ROUTER_FROM+": ";var u=document.createElement("em");u.innerHTML=i,l.appendChild(c),l.appendChild(u),l.appendChild(document.createElement("em")),t.querySelector(".c4g-router-instructions-header").appendChild(o),t.querySelector(".c4g-router-instructions-header").appendChild(l)}t.querySelector(".c4g-router-print").remove();var p=window.open("","","left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0");p.document.write(t.innerHTML),p.document.close(),p.focus(),p.print(),p.close()};if(t&&a&&"route"===this.props.mode){var l=null;this.props.mapController.data.editor&&this.props.mapController.data.editor.config&&this.props.mapController.data.editor.config.drawStyles&&this.props.mapController.data.editor.config.drawStyles.LineString&&this.props.mapController.data.editor.config.drawStyles.LineString.elements&&this.props.mapController.data.editor.config.drawStyles.LineString.elements.length>0&&(l=u.default.createElement("button",{className:"c4g-router-editor",title:this.props.lang.ROUTER_EDITOR,onMouseUp:function(){e.exportEditor()}})),s=u.default.createElement("div",{className:"c4g-router-instructions-header"},u.default.createElement("div",{className:"c4g-router-route-time"},u.default.createElement("label",null,this.props.lang.ROUTER_VIEW_LABEL_TIME),u.default.createElement("em",null,t)),u.default.createElement("div",{className:"c4g-router-route-distance"},u.default.createElement("label",null,this.props.lang.ROUTER_VIEW_LABEL_DISTANCE),u.default.createElement("em",null,a)),u.default.createElement("button",{className:"c4g-router-download",title:this.props.lang.ROUTER_DOWNLOAD,onMouseUp:function(){e.exportGpx()}}),u.default.createElement("button",{className:"c4g-router-print",title:this.props.lang.ROUTER_PRINT,onMouseUp:function(){i()}}),l)}else o&&n&&"area"===this.props.mode&&(s=u.default.createElement("div",{className:"c4g-router-instructions-header"},u.default.createElement("div",{className:"c4g-router-area-detour"},u.default.createElement("label",null,this.props.lang.AREA_DETOUR,":"),u.default.createElement("em",null,o," km")),u.default.createElement("div",{className:"c4g-router-area-featurecount"},u.default.createElement("label",null,this.props.lang.AREA_FEATURECOUNT,":"),u.default.createElement("em",null,n)),u.default.createElement("button",{className:"c4g-router-print",onMouseUp:function(){i()}})));if("instr"===this.props.resultMode&&this.props.routerInstructions&&"route"===this.props.mode?r=u.default.createElement(u.Suspense,{fallback:u.default.createElement("div",null,'"loading.."')},u.default.createElement(f,{className:"c4g-route-instructions-wrapper",mapController:this.props.mapController,routerInstructions:this.props.routerInstructions,routerWaySource:this.props.routerWaySource,routerHintSource:this.props.routerHintSource,open:this.props.open,header:s})):("feat"===this.props.resultMode||"area"===this.props.mode||!this.props.routerInstructions&&this.props.featureList)&&(r=u.default.createElement(u.Suspense,{fallback:u.default.createElement("div",null,'"loading.."')},u.default.createElement(y,{className:"c4g-route-feature-wrapper",activeId:this.props.activeId,setActiveId:this.props.setActiveId,routeMode:this.props.mode,layerRoute:this.props.layerRoute,layerArea:this.props.layerArea,featureList:this.props.featureList,mapController:this.props.mapController,featureSource:this.props.featureSource,layerValueRoute:this.props.layerValueRoute,layerValueArea:this.props.layerValueArea,header:s}))),this.props.open){var c=this.props.mapController.data.routerResultDiv?document.querySelector("."+this.props.mapController.data.routerResultDiv):null;return c?h.default.createPortal(u.default.createElement("div",{className:this.props.className+(this.props.open?" c4g-open":" c4g-close")+(this.props.open?" c4g-details-open":"")},r),c):u.default.createElement("div",{className:this.props.className+(this.props.open?" c4g-open":" c4g-close")+(this.props.open?" c4g-details-open":"")},r)}return null}},{key:"componentDidUpdate",value:function(e,r){if(!e.open&&this.props.open){var t=document.querySelector("."+this.props.mapController.data.routerResultDiv);t&&(t.parentElement.className=t.parentElement.className.replace("c4g-close","")+" c4g-open",this.props.mapController.map.updateSize())}else if(e.open&&!this.props.open&&!e.open&&this.props.open){var a=document.querySelector("."+this.props.mapController.data.routerResultDiv);a&&(a.parentElement.className=a.parentElement.className.replace("c4g-open","")+" c4g-close",this.props.mapController.map.updateSize())}var o=this.props.className+(this.props.open?" c4g-open":" c4g-close"),n=document.getElementsByClassName(o)[0],s=document.querySelector(".c4g-router-panel.c4g-open");s&&(s=s[0]);var i=!!document.querySelector(".c4g_map")&&document.querySelector(".c4g_map")[0];i&&n&&s&&n.offsetHeight+s.offsetHeight+84>i.offsetHeight&&(n.style.height=i.offsetHeight-s.offsetHeight),"area"===this.props.mode&&"feat"!==this.props.resultMode&&this.props.router.setState({resultMode:"feat"})}},{key:"open",value:function(){this.props.setOpen(!0)}},{key:"close",value:function(){this.props.setOpen(!1)}},{key:"clickControl",value:function(){this.props.open?this.close():this.open()}},{key:"exportGpx",value:function(){var e=this.props.router.routerWaySource,r=new p.default;if(e&&e.getFeatures&&e.getFeatures()){var t=r.writeFeatures(e.getFeatures(),{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326",decimals:3}),a=document.createElement("a");a.setAttribute("href","data:text/xml;charset=utf-8,"+encodeURIComponent(t)),a.setAttribute("download","route.gpx"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),console.log(t)}}},{key:"exportEditor",value:function(){var e=this,r=this.props.router.routerWaySource;if(new b.default,r&&r.getFeatures&&r.getFeatures()){var a=r.getFeatures()[0],o={},n=this.props.mapController.data.editor.config.drawStyles.LineString.elements;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s].name);Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(r){(new r.AlertHandler).showSelectDialog(e.props.lang.ROUTER_EDITOR_ELEMENT,o,e.props.lang.ACCEPT,e.props.lang.CANCEL).then((function(r){var t=n[r].styleId;a.set("editorId",r),a.setId(),a.set("locstyle",t);var o=(new b.default).writeFeatureObject(a,{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326",decimals:6});e.props.router.openControls(!1),e.props.mapController.editor.open(),e.props.mapController.editor.addFeature(o),e.props.mapController.editor.reRender()}))}))}}},{key:"slideInCollidingElements",value:function(){}},{key:"slideOutCollidingElements",value:function(){}}])}(u.Component)},"./src/Resources/public/js/components/c4g-router-view.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RouterView=void 0;var n=a(t("./node_modules/@babel/runtime/regenerator/index.js")),s=a(t("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),i=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),c=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),u=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),p=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),b=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=P(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),d=t("./src/Resources/public/js/components/c4g-router-result-container.jsx"),h=t("./src/Resources/public/js/routing-constants.js"),m=t("./node_modules/ol/index.js"),g=t("./node_modules/ol/geom.js"),f=t("./node_modules/ol/format.js"),y=t("./node_modules/ol/extent.js"),_=t("./node_modules/ol/proj.js"),k=t("./node_modules/ol/style.js"),v=t("./node_modules/ol/layer.js"),w=t("./node_modules/ol/source.js"),S=t("./node_modules/ol/geom/Polygon.js"),C=t("./node_modules/ol/interaction.js"),R=(a(t("./node_modules/ol/format/OSMXML.js")),t("./src/Resources/public/js/c4g-routing-permalink.js")),E=t("./src/Resources/public/js/routing-constant-i18n.js"),O=t("./src/Resources/public/js/c4g-maps-constant.js"),T=t("./src/Resources/public/js/c4g-maps-utils.js"),x=t("./src/Resources/public/js/components/c4g-router-popup-buttons.jsx");function P(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(P=function(e){return e?t:r})(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}var j=b.default.lazy((function(){return Promise.resolve().then(t.bind(t,"./src/Resources/public/js/components/c4g-titlebar.jsx"))})),L=b.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-router-controls_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-router-controls.jsx"))}));r.RouterView=function(e){function r(e){var t,a,o,n;(0,i.default)(this,r),a=this,o=r,n=[e],o=(0,u.default)(o),(t=(0,c.default)(a,I()?Reflect.construct(o,n||[],(0,u.default)(a).constructor):o.apply(a,n))).setActiveId=t.setActiveId.bind(t),t.setOpen=t.setOpen.bind(t),t.close=t.close.bind(t),t.openControls=t.openControls.bind(t),t.resetFromPoint=t.resetFromPoint.bind(t),t.resetToPoint=t.resetToPoint.bind(t),t.resetAreaPoint=t.resetAreaPoint.bind(t),t.toggleResultDetails=t.toggleResultDetails.bind(t),t.setResultInstr=t.setResultInstr.bind(t),t.setResultFeat=t.setResultFeat.bind(t),t.recalculateRoute=t.recalculateRoute.bind(t);var s=t.props.mapController,l=[];for(var p in t.languageConstants=(0,E.getLanguage)(s.data),s.data.router_profiles)s.data.router_profiles.hasOwnProperty(p)&&l.push({id:p,text:s.data.router_profiles[p]});var b=null,d=null,h=null,m=null;if(s.data.showFeatures){var g=s.data.routerLayers;for(var f in g)g.hasOwnProperty(f)&&(b=b||f,h=Object.keys(g[b])[0]||h,d=d||f,m=Object.keys(g[d])[0]||m)}return t.state={router:e.router,objSettings:{proxyUrl:s&&s.data?s.data.proxyUrl:"",keyAutocomplete:s&&s.data?s.data.autocomplete:"",center:function(){var e=s.map.getView().getCenter();return e=(0,_.transform)(e,"EPSG:3857","EPSG:4326")},resultCount:s.data.geosearch.result_count,geosearchParams:s.data.geosearch.params},activeId:null,openResults:!1,containerAddresses:{arrFromPositions:[],arrFromNames:[],arrToPositions:[],arrToNames:[],arrAreaPositions:[],arrAreaNames:[],arrOverPositions:{},arrOverNames:{}},fromAddress:"",toAddress:"",areaAddress:"",layerRoute:b,layerArea:d,layerValueRoute:h,layerValueArea:m,detourRoute:e.detourRoute.initial,detourArea:e.detourArea.initial,featureList:{features:[],type:""},mode:s.data.initialMode,overPtCtr:0,overAddresses:[],featureSource:void 0,routerWaySource:void 0,areaCircleSource:void 0,routerHintSource:void 0,areaPoint:null,fromPoint:null,toPoint:null,overPoints:[],profiles:l||[],currentProfile:l&&l[0]&&l[0].id?l[0].id:0,open:"routing"===e.mapController.data.initial_open_comp||!1,openSettings:"routing"===e.mapController.data.initial_open_comp||!1,routerInstructions:{},resultMode:e.mapController.data.initialResultMode||"instr"},t.popupRouteButtonWrapper="",t.swapPoints=t.swapPoints.bind(t),s.data.usePermalink&&(t.permalink=new R.RoutingPermalink(t)),t.profileTranslation={0:"car",1:"hgv",2:"bike",3:"bike",4:"bike",5:"bike",6:"bike",7:"bike",8:"foot",9:"foot",10:"wheelchair",11:"hgv",12:"scooter",13:"scooter"},t.init(),t}return(0,p.default)(r,e),(0,l.default)(r,[{key:"render",value:function(){var e=this,r=this.props.mapController.data,t={waySource:this.state.routerWaySource,hintSource:this.state.routerHintSource,featureSource:this.state.featureSource},a={};"route"===this.state.mode?a={min:r.detourRoute.min,max:r.detourRoute.max,value:this.state.detourRoute,router:this}:"area"===this.state.mode&&(a={min:r.detourArea.min,max:r.detourArea.max,value:this.state.detourArea,router:this});var o,n={from:this.resetFromPoint,to:this.resetToPoint,area:this.resetAreaPoint},s=this.createOverSettings(),i="";"route"===this.state.mode?i=this.props.mapController.data.routerHeadline||this.languageConstants.ROUTER_DEFAULT_HEADLINE_ROUTE:"area"===this.state.mode&&(i=this.props.mapController.data.areaHeadline||this.languageConstants.ROUTER_DEFAULT_HEADLINE_AREA),this.props.mapController.data.areaSearch&&!this.props.mapController.data.areaSearchOnly&&(o=b.default.createElement("div",{className:"c4g-router-mode-switcher"},b.default.createElement("button",{id:"c4g-router-button-route",className:"route"===this.state.mode?"c4g-active":"c4g-inactive",onMouseUp:function(){e.setMode("route")},title:this.languageConstants.ROUTER_FIND_ROUTE}),b.default.createElement("button",{id:"c4g-router-button-area",className:"area"===this.state.mode?"c4g-active":"c4g-inactive",onMouseUp:function(){e.setMode("area")},title:this.languageConstants.AREA_NAME})));var l=this.state.routerInstructions.instructions,c="",u=[];return this.state.featureList.features.length>0&&(this.state.fromAddress&&this.state.toAddress&&"route"===this.state.mode||this.state.areaAddress&&"area"===this.state.mode)&&u.push(b.default.createElement("button",{id:"c4g-router-button-feature",className:"feat"===this.state.resultMode&&this.state.openResults?"c4g-active":"c4g-inactive",onMouseUp:this.setResultFeat,key:1,title:"Ergebnisliste anzeigen"})),l&&l.length>0&&"route"===this.state.mode&&u.push(b.default.createElement("button",{id:"c4g-router-button-instructions",className:"instr"===this.state.resultMode&&this.state.openResults?"c4g-active":"c4g-inactive",onMouseUp:this.setResultInstr,key:2,title:"Routenhinweise anzeigen"})),this.props.mapController.data.routerResultDiv||u.unshift(b.default.createElement("button",{className:"c4g-router-hide-form-button "+(this.state.openSettings?"c4g-active":"c4g-inactive"),onMouseUp:function(){e.setState({openSettings:!e.state.openSettings})},key:3,title:this.languageConstants.ROUTER_SETTINGS})),u.length>1&&(c=b.default.createElement("div",null,u)),b.default.createElement("div",{className:"c4g-router-wrapper"},b.default.createElement(b.Suspense,{key:0,fallback:b.default.createElement("div",null,"Loading...")},b.default.createElement(j,{wrapperClass:"c4g-router-header",header:i,headerClass:"c4g-router-headline",detailBtnClass:"c4g-router-extended-options",hideContainer:".c4g-router-container-right",detailBtnCb:this.toggleDetails,closeBtnClass:"c4g-router-close",closeBtnCb:this.close,closeBtnTitle:this.languageConstants.CLOSE})),b.default.createElement(b.default.Fragment,null,o,b.default.createElement("div",{className:"c4g-router-switcher"},c)),b.default.createElement(b.Suspense,{key:1,fallback:b.default.createElement("div",null,'"loading"')},b.default.createElement(L,{router:this,open:this.props.mapController.data.routerResultDiv||this.state.open&&this.state.openSettings,setOpen:this.openControls,profiles:this.state.profiles,className:"c4g-router-panel",objSettings:this.state.objSettings,objFunctions:this.objFunctions,overSettings:s,enableOverPoints:this.props.mapController.data.enableOverPoints,sources:t,layers:this.props.mapController.data.routerLayers,containerAddresses:this.state.containerAddresses,resetFunctions:n,mapController:this.props.mapController,currentProfile:this.state.currentProfile,fromAddress:this.state.fromAddress,switchTargets:this.props.mapController.data.enableTargetSwitch,toAddress:this.state.toAddress,areaAddress:this.state.areaAddress,mode:this.state.mode,sliderOptions:a,title:this.languageConstants.CTRL_ROUTER,target:this.props.target})),b.default.createElement(b.Suspense,{key:2,fallback:b.default.createElement("div",null,'"loading"')},b.default.createElement(d.RouterResultContainer,{visible:this.state.open,open:this.state.open&&this.state.openResults,setOpen:this.setOpen,direction:"bottom",className:"c4g-router-result-container",mapController:this.props.mapController,mode:this.state.mode,setResultFeat:this.setResultFeat,routerInstructions:this.state.routerInstructions,featureList:this.state.featureList,routerWaySource:this.state.routerWaySource,detour:this.state.detourArea,layerRoute:this.state.layerRoute,layerValueRoute:this.state.layerValueRoute,layerArea:this.state.layerArea,resultMode:this.state.resultMode,router:this,layerValueArea:this.state.layerValueArea,routerHintSource:this.state.routerHintSource,featureSource:this.state.featureSource,profile:this.state.currentProfile,activeId:this.state.activeId,setActiveId:this.setActiveId,detailOpen:this.state.resultDetailOpen,toggleDetailOpen:this.toggleResultDetails,headline:"Router Ergebnisse",lang:this.languageConstants})))}},{key:"setResultInstr",value:function(e){e.stopPropagation(),this.setState({resultMode:"instr",openResults:!0})}},{key:"setResultFeat",value:function(e){e.stopPropagation(),this.setState({resultMode:"feat",openResults:!0})}},{key:"close",value:function(){this.setState({open:!1})}},{key:"getProfileById",value:function(e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2]||this.performReverseSearch("areaAddress",[e,r]);var a=new g.Point([e,r]);this.setState({areaPoint:a},(function(){return t.updateRouteLayersAndPoints()}))}},{key:"setRouteFrom",value:function(e,r){var t=this;arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.performReverseSearch("fromAddress",[e,r]);var a=new g.Point([e,r]);this.setState({fromPoint:a},(function(){t.updateRouteLayersAndPoints()}))}},{key:"setRouteTo",value:function(e,r){var t=this;arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.performReverseSearch("toAddress",[e,r]);var a=new g.Point([e,r]);this.setState({toPoint:a},(function(){return t.updateRouteLayersAndPoints()}))}},{key:"addOverPoint",value:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this,n=this.state.overAddresses,s=this.state.overPtCtr;s++,a?n.splice(t,1,e+", "+r):this.performReverseSearch("overAddress",[e,r],t);var i=new g.Point([e,r]),l=this.state.overPoints;l.splice(t,1,i),this.setState({overPoints:l,overAddresses:n,overPtCtr:s},(function(){return o.updateRouteLayersAndPoints()}))}},{key:"addOverPoints",value:function(e){for(var r=this,t=this.state.overAddresses,a=this.state.overPoints,o=this.state.overPtCtr,n=0;n0)for(var a in this.state.overPoints)if(this.state.overPoints.hasOwnProperty(a)&&null!==this.state.overPoints[a]){var o=new m.Feature({geometry:this.state.overPoints[a].clone().transform("EPSG:4326","EPSG:3857")});this.props.mapController.data.router_interim_locstyle&&this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle]&&(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].style||(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].style=this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].getStyleFunction()),o.setStyle(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].style)),this.locationsSource.addFeature(o)}this.props.mapController.data.routeStartButton||this.recalculateRoute()}else if("area"===this.state.mode){if(this.state.areaPoint){var n=new m.Feature({geometry:this.state.areaPoint.clone().transform("EPSG:4326","EPSG:3857")});this.props.mapController.data.areaCenterLocstyle&&this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle]?(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].style||(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].style=this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].getStyleFunction()),n.setStyle(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].style)):this.props.mapController.proxy.locationStyleController.loadLocationStyles([this.props.mapController.data.areaCenterLocstyle],{done:function(){e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].style||(e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].style=e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].getStyleFunction()),n.setStyle(e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].style)}}),this.areaSource.addFeature(n)}this.performArea()}}},{key:"resetFromPoint",value:function(){var e=this,r=e.state.containerAddresses;r.arrFromPositions=[],r.arrFromNames=[],this.setState({fromPoint:null,containerAddresses:r,fromAddress:""},(function(){e.updateRouteLayersAndPoints()}))}},{key:"resetToPoint",value:function(){var e=this,r=e.state.containerAddresses;r.arrToPositions=[],r.arrToNames=[],this.setState({toPoint:null,containerAddresses:r,toAddress:""},(function(){e.updateRouteLayersAndPoints()}))}},{key:"resetAreaPoint",value:function(){var e=this,r=e.state.containerAddresses;r.arrAreaPositions=[],r.arrAreaNames=[],this.setState({areaPoint:null,containerAddresses:r,areaAddress:""},(function(){e.updateRouteLayersAndPoints()}))}},{key:"createAutocompleteFunctions",value:function(){var e={},r=this;return e.fromFunctions={selectListener:function(e,t){var a=t.item.value,o=r.state.containerAddresses.arrFromNames.findIndex((function(e){return e===a})),n=r.state.containerAddresses.arrFromPositions[o],s=new g.Point([n[1],n[0]]);r.setState({fromPoint:s,fromAddress:r.state.containerAddresses.arrFromNames[o]},(function(){r.updateRouteLayersAndPoints(),r.recalculateRoute()}))},deleteFunction:function(e){r.resetFromPoint()},changeListener:function(){}},e.toFunctions={selectListener:function(e,t){var a=t.item.value,o=r.state.containerAddresses.arrToNames.findIndex((function(e){return e===a})),n=r.state.containerAddresses.arrToPositions[o],s=new g.Point([n[1],n[0]]);r.setState({toPoint:s,toAddress:r.state.containerAddresses.arrToNames[o]},(function(){r.updateRouteLayersAndPoints(),r.recalculateRoute()}))},deleteFunction:function(e){r.resetToPoint()},changeListener:function(){}},e.areaFunctions={selectListener:function(e,t){var a=t.item.value,o=r.state.containerAddresses.arrAreaNames.findIndex((function(e){return e===a})),n=r.state.containerAddresses.arrAreaPositions[o],s=new g.Point([n[1],n[0]]);r.setState({areaPoint:s,areaAddress:r.state.containerAddresses.arrAreaNames[o]},(function(){r.updateRouteLayersAndPoints(),r.performArea()}))},deleteFunction:function(e){var t=r.state.containerAddresses;t.arrAreaPositions=[],t.arrAreaNames=[],r.setState({areaPoint:null,containerAddresses:t,areaAddress:""},(function(){}))},changeListener:function(){}},e}},{key:"addPopupHook",value:function(){var e=this;window.c4gMapsHooks.proxy_appendPopup=window.c4gMapsHooks.proxy_appendPopup||[],window.c4gMapsHooks.proxy_appendPopup.push((function(r){var t=r.mapController,a=r.popup;if(t.components.router&&a.popup.routing_link)if(3!==parseInt(t.data.popupHandling,10)){var o=function(r){var t=r.feature,a=e,o=function(e){if(a.openControls(!0),a.setMode("route"),jQuery(e.currentTarget).hasClass(O.cssConstants.POPUP_ROUTE_FROM)){var r=(0,_.toLonLat)(t.getGeometry().getCoordinates(),"EPSG:3857");a.setRouteFrom(r[0],r[1])}else{var o=(0,_.toLonLat)(t.getGeometry().getCoordinates(),"EPSG:3857");a.setRouteTo(o[0],o[1])}},n=document.createElement("div");n.className=O.cssConstants.POPUP_ROUTE_WRAPPER;var s=document.createElement("button");s.className=O.cssConstants.ICON+" "+O.cssConstants.POPUP_ROUTE_FROM,jQuery(s).click(o),n.appendChild(s);var i=document.createElement("span");s.appendChild(i);var l=document.createElement("button");l.className=O.cssConstants.ICON+" "+O.cssConstants.POPUP_ROUTE_TO,jQuery(l).click(o),n.appendChild(l);var c=document.createElement("span");return l.appendChild(c),n}(a);$(r.div).append(o)}else if(r.comp){var n={feature:a.feature,router:e};r.comp.setAddButtons(x.RouterPopupButtons,n)}}))}},{key:"init",value:function(){var e=this;this.mapData=this.props.mapController.data;var r=[this.props.mapController.data.router_from_locstyle,this.props.mapController.data.router_to_locstyle,this.props.mapController.data.router_point_locstyle,this.props.mapController.data.areaCenterLocstyle,this.props.mapController.data.clickLocstyle];this.props.mapController.data.priorityFeatures&&(this.props.mapController.data.priorityLocstyle&&r.push(this.props.mapController.data.priorityLocstyle),this.props.mapController.data.negativePriorityLocstyle&&r.push(this.props.mapController.data.negativePriorityLocstyle)),this.props.mapController.proxy.locationStyleController.loadLocationStyles(r);var t=this.props.mapController.data;for(var a in this.objLayers={},t.routerLayers)t.routerLayers.hasOwnProperty(a)&&(this.objLayers[a]=t.routerLayers[a][Object.keys(t.routerLayers[a])[0]]);this.routingAltWaySource=new w.Vector,this.routerWaySource=new w.Vector,this.areaCircleSource=new w.Vector;var o=this.mapData.areaCircleColor,n=parseInt(this.mapData.areaCircleOpacity)||0===parseInt(this.mapData.areaCircleOpacity)?this.mapData.areaCircleOpacity:50,s=new k.Style({fill:new k.Fill({color:T.utils.getRgbaFromHexAndOpacity(o,n)})});this.areaCircleLayer=new v.Vector({source:this.areaCircleSource,zIndex:-1,style:[s,new k.Style({stroke:new k.Stroke({color:"rgba(0, 51, 119, 0.9)",width:4}),zIndex:-1})]}),this.routerWayLayer=new v.Vector({source:this.routerWaySource,zIndex:1,style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.6)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(0, 51, 119, 0.9)",width:4})})]}),this.routerAltWayLayer=new v.Vector({source:this.routingAltWaySource,zIndex:0,style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.6)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(0, 51, 119, 0.4)",width:4})})]});var i=new C.Select({style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.0)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(255, 51, 119, 0.0)",width:4})})]});i.on("select",(function(r){var t=r.selected[0];if(t){var a=t.getGeometry();a&&"LineString"===a.getType()?e.showAltRoute(e.response,t.getId()):t&&e.clickFeatureEntryForFeature(t)}})),this.mapSelectInteraction=i,this.modWayInteraction=new C.Modify({source:this.routerWaySource,style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.0)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(255, 51, 119, 0.0)",width:4})})]}),this.modWayInteraction.on("modifystart",(function(r){!0===e.state.open&&(e.modifyStartPoint=new g.Point(r.mapBrowserEvent.coordinate).transform("EPSG:3857","EPSG:4326"))})),this.modWayInteraction.on("modifyend",(function(r){if(!0===e.state.open){var t,a=new g.Point(r.mapBrowserEvent.coordinate).transform("EPSG:3857","EPSG:4326"),o=1/0,n=Object.keys(e.state.overPoints);if(n.length>0){for(var s in e.state.overPoints)if(e.state.overPoints.hasOwnProperty(s)){var i=e.calcDistance(e.modifyStartPoint.getCoordinates(),e.state.overPoints[s].getCoordinates());i0&&this.props.mapController.data.showFeatures||jQuery(".c4g-router-instructions-wrapper").css("display","block"),"1"==this.props.mapController.data.router_api_selection||"1"==e.routeType)e.routes[r].legs[0].summary&&(i=e.routes[r].legs[0].summary.split(",")[0],l=e.routes[r].legs[0].summary.split(",")[1],e.routes[r].legs[1]&&(l=e.routes[r].legs[1].summary.split(",")[1])),c=e.routes[r].distance,u=e.routes[r].duration;else if("0"==this.props.mapController.data.router_api_selection||"0"==e.routeType)e.route_name&&(i=e.route_name[0],l=e.route_name[1]),e.route_summary&&(c=e.route_summary.total_distance,u=e.route_summary.total_time);else if("2"==this.props.mapController.data.router_api_selection||"2"==e.routeType){u=e.routes[r].summary.duration,c=e.routes[r].summary.distance;for(var p=[],b=e.routes[r].segments,d=0;d"+this.languageConstants.ROUTER_VIEW_LABEL_ROUTE+" "+i+" → "+l+" "+this.languageConstants.ROUTER_VIEW_LABEL_DISTANCE+" "+c+" "+this.languageConstants.ROUTER_VIEW_LABEL_TIME+" "+u+" ":this.routeProfile&&this.routeProfile.active&&Array.isArray(this.routeProfile.active)&&(n.innerHTML=""+this.languageConstants.ROUTER_VIEW_LABEL_PROFILE+" "+this.props.mapController.data.router_profiles[this.routeProfile.active]+" "+this.languageConstants.ROUTER_VIEW_LABEL_DISTANCE+" "+c+" "+this.languageConstants.ROUTER_VIEW_LABEL_TIME+" "+u+" "),o=document.createElement("div"),s='',"1"===this.props.mapController.data.router_api_selection||"1"==e.routeType||"0"===this.props.mapController.data.router_api_selection||"0"==e.routeType||"2"===this.props.mapController.data.router_api_selection||"2"==e.routeType||"3"===this.props.mapController.data.router_api_selection||"3"==e.routeType||"4"===this.props.mapController.data.router_api_selection||e.routeType,s+="
",o.innerHTML=s,this.adjustInstructionMapInteraction()}}},{key:"performGeoSearch",value:(a=(0,s.default)(n.default.mark((function e(r){var a,o,s,i,l,c;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(a=this).geoSearchApi+"?format=json&limit=1&q="+encodeURI(r),s=a.props.mapController.map,i=s.getView().calculateExtent(s.getSize()),i=(0,_.transformExtent)(i,s.getView().getProjection(),"EPSG:4326"),l="&viewbox="+i[0]+","+i[1]+","+i[2]+","+i[3],this.mapData&&this.mapData.geosearch&&this.mapData.geosearch.searchKey&&this.mapData.geosearch.url&&(o=this.mapData.geosearch.url+"search.php?key="+this.mapData.geosearch.searchKey+"&format=json&limit=1&q="+encodeURI(r)+l),this.mapData.geosearch.params)for(c in this.mapData.geosearch.params)this.mapData.geosearch.params.hasOwnProperty(c)&&(o+="&"+c+"="+this.mapData.geosearch.params[c]);return e.next=10,fetch(o).then((function(e){if(e)return e.json().then((function(e){return[parseFloat(e[0].lon),parseFloat(e[0].lat)]}));Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(a.props.langConstants.ROUTER_VIEW_ALERT_ERROR,a.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}))})).catch((function(){Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(a.props.langConstants.ROUTER_VIEW_ALERT_ERROR,a.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}))}));case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"performSearch",value:function(e,r,a){var o,n,s,i,l;if(i=this,""===e.val())return delete i[r],"";if(n=(o=i.props.mapController.map).getView().calculateExtent(o.getSize()),s="&viewbox="+(n=(0,_.transformExtent)(n,o.getView().getProjection(),"EPSG:4326"))[0]+","+n[1]+","+n[2]+","+n[3],l=i.geoSearchApi+"?format=json&limit=1&q="+encodeURI(e.val())+s,this.mapData&&this.mapData.geosearch&&this.mapData.geosearch.searchKey&&this.mapData.geosearch.url&&(l=this.mapData.geosearch.url+"search.php?key="+this.mapData.geosearch.searchKey+"&format=json&limit=1&q="+encodeURI(e.val())+s),this.mapData.geosearch.params)for(var c in this.mapData.geosearch.params)this.mapData.geosearch.params.hasOwnProperty(c)&&(l+="&"+c+"="+this.mapData.geosearch.params[c]);return jQuery.ajax({url:l}).done((function(o){if(o.length>0)if("overValue"===r){i.overValue||(i.overValue=[]);for(var n=new g.Point([parseFloat(o[0].lon),parseFloat(o[0].lat)]),s=e.next()[0];!jQuery(s).hasClass("c4g-router-input-clear");)s=jQuery(s).next()[0];s.id=n.ol_uid,i.overValue.push(n),i.$buttonOver.prop("disabled",!1)}else{var l=[parseFloat(o[0].lon),parseFloat(o[0].lat)],c=new g.Point(l);"fromValue"===r?i.setState({fromPoint:c,fromAddress:e.val()},(function(){return i.updateRouteLayersAndPoints()})):"toValue"===r?i.setState({toPoint:c,toAddress:e.val()},(function(){return i.updateRouteLayersAndPoints()})):"areaValue"===r&&i.setState({areaPoint:c,areaAddress:e.val()})}else Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(i.props.langConstants.ROUTER_VIEW_ALERT_ERROR,i.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}));a&&"function"==typeof a&&a()})).fail((function(){Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(i.props.langConstants.ROUTER_VIEW_ALERT_ERROR,i.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}))})),""}},{key:"performReverseSearch",value:function(e,r,t){var a,o=this;a=this.geoReverseSearchApi+"?format=json&lat="+r[1]+"&lon="+r[0],this.mapData&&this.mapData.geosearch&&this.mapData.geosearch.reverseKey&&this.mapData.geosearch.url&&(a=this.mapData.geosearch.url+"reverse.php?key="+this.mapData.geosearch.reverseKey+"&format=json&lat="+r[1]+"&lon="+r[0]),jQuery.ajax({url:a}).done((function(r){if(r){var a="";switch(r.address&&((r.address.road||r.address.path||r.address.pedestrian)&&(a+=r.address.road||r.address.path||r.address.pedestrian,r.address.house_number&&(a+=" "+r.address.house_number)),(r.address.city||r.address.town)&&(a+=a?", ":"",a+=r.address.city||r.address.town)),""===a&&(a=r.display_name),e){case"areaAddress":o.setState({areaAddress:a},(function(){""===jQuery("#areaInput").val()&&jQuery("#areaInput").val(a)}));break;case"fromAddress":o.setState({fromAddress:a},(function(){""===jQuery("#routingFrom").val()&&jQuery("#routingFrom").val(a)}));break;case"toAddress":o.setState({toAddress:a},(function(){""===jQuery("#routingTo").val()&&jQuery("#routingTo").val(a)}));break;case"overAddress":var n=o.state.overAddresses;n.splice(t,1,a),o.setState({overAddresses:n})}}}))}},{key:"performArea",value:function(){var e=this,r=this.state.areaPoint;if(r){if(this.mapData.drawCircle){(0,_.transform)(r.getCoordinates(),"EPSG:4326","EPSG:3857");var t=(0,S.circular)(r.getCoordinates(),1e3*this.state.detourArea,128).transform("EPSG:4326","EPSG:3857"),a=new m.Feature(t);this.areaCircleSource.clear(),this.areaCircleSource.addFeature(a)}var o=[r.getCoordinates()[1],r.getCoordinates()[0]],n="con4gis/areaService/"+this.props.mapController.data.profile+"/"+this.state.layerArea+"/"+this.state.detourArea+"/"+o;n+="?profile="+this.state.currentProfile,e.areaAjax&&e.areaAjax.abort(),e.areaAjax=jQuery.ajax({url:n}).done((function(r){if(e.response=r,r){var t=e.showFeatures(r[0],r[1],"area",!1);e.setState({featureList:{features:t,type:r[1]},featureSource:e.routerFeaturesSource,openResults:!0},(function(){e.showFeatures(r[0],r[1],"area",!1)}))}}))}}},{key:"performViaRoute",value:function(e,r,a){var o,n,s,i,l;if(n=this,this.state.featureSource&&this.state.featureSource.clear(),this.mapSelectInteraction.getFeatures().clear(),e||(e=this.fromPoint)){if(!r){if(!r)return;r=this.toPoint}if(a||this.overPoints&&(a=this.overPoints),s=[e.getCoordinates()[1],e.getCoordinates()[0]],i=[r.getCoordinates()[1],r.getCoordinates()[0]],a&&Object.keys(a).length>0)for(var c in l=[],a)a.hasOwnProperty(c)&&a[c]&&l.push([a[c].getCoordinates()[1],a[c].getCoordinates()[0]]);if(this.props.mapController.data.router_api_selection>="1"){var u=this.props.mapController.data.profile;if(o="con4gis/routeService/"+this.props.mapController.data.lang+"/"+u+"/"+this.state.layerRoute+"/"+this.state.detourRoute+"/"+s,a)for(var p=0;p0)){var r=n.showFeatures(e.features,e.type,"router");n.setState({featureList:{features:r,type:e.type},featureSource:n.routerFeaturesSource,openResults:!0})}else n.setState({openResults:!0})})).always((function(){n.routeAjax=void 0,n.props.mapController.data.closeAfterSearch})),""}try{return o="con4gis/routeService/"+profileId+"?output=json&instructions=true&alt=false&loc_from="+s+"&loc_to="+i,jQuery.ajax({url:o}).done((function(e){e&&n.showRoute(e)})),""}catch(e){console.log("Please use a more modern API-Version for the Routeservice")}}}},{key:"recalculateRoute",value:function(){"route"===this.state.mode?this.state.fromPoint&&this.state.toPoint&&(this.state.overPoints&&Object.keys(this.state.overPoints).length>0?this.performViaRoute(this.state.fromPoint,this.state.toPoint,this.state.overPoints):this.performViaRoute(this.state.fromPoint,this.state.toPoint)):this.performArea()}},{key:"getActiveLayer",value:function(e){return this.objLayers[e]}},{key:"showFeatures",value:function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"router",o=this;if((arguments.length>3?arguments[3]:void 0)||this.routerFeaturesSource.clear(),!(e=e.elements)||0===e.length){var n;if(this.mapData.drawCircle){var s=this.areaCircleSource.getFeatures()[0];if(s&&s.getGeometry()&&s.getGeometry().getExtent()&&(n=s.getGeometry().getExtent()),n&&(0,y.getArea)(n)>0){var i=jQuery(".c4g-sideboard.c4g-open").css("width");i?(i=i.split("."),i=Array.isArray(i)?i[0]:i,i=parseInt(i)+50):i=50;var l=[50,i,50,50];this.props.mapController.map.getView().fit(n,{padding:l})}}return[]}var c=this.mapData,u="route"===this.state.mode?this.state.layerRoute:this.state.layerArea,p="route"===this.state.mode?this.state.layerValueRoute:this.state.layerValueArea,b=this.getActiveLayer(u).layerData,d=[],h=[],f=e.length?e.slice():e.elements.slice(),k=[],v=[];if(this.bestFeatureIds=[],this.worstFeatureIds=[],c.priorityFeatures&&c.priorityLocstyle&&e.length>0){f.sort((function(e,r){return parseFloat(e[c.routerLayers[u][p].mapLabel])-parseFloat(r[c.routerLayers[u][p].mapLabel])}));for(var w=parseInt(c.priorityFeatures,10),S=w>f.length?f.length:w,C=w+S>f.length?f.length-S:w,R=0;Rf.length-1-C;E--)v[E]=f[E],this.worstFeatureIds.push(f[E].id)}r=f,"petrols"===t&&"area"!==a&&(e=e.elements);var O=(0,y.createEmpty)();if("overpass"!==t){for(var T=0;e&&T0&&o.props.mapController.proxy.locationStyleController.loadLocationStyles(h,{done:function(){for(var e=0;e0&&this.routerFeaturesSource.addFeatures(d),this.mapData.drawCircle){var U=this.areaCircleSource.getFeatures()[0];U&&U.getGeometry()&&U.getGeometry().getExtent()&&(O=(0,y.extend)(O,U.getGeometry().getExtent()))}if((0,y.getArea)(O)>0){var H=jQuery(".c4g-sideboard.c4g-open").css("width");H?(H=H.split("."),H=Array.isArray(H)?H[0]:H,H=parseInt(H)+50):H=50;var K=[50,H,50,50];this.props.mapController.map.getView().fit(O,{padding:K})}return r}},{key:"showRoute",value:function(e){this.showRouteLayer(e,0),this.showRouteInstructions(e,0)}},{key:"showAltRoute",value:function(e,r){this.showRouteLayer(e,r),this.showRouteInstructions(e,r)}},{key:"showRouteLayer",value:function(e,r){var t,a,o,n;if(r=r||0,e&&(this.routerWaySource.clear(),this.routingAltWaySource.clear(),t=this.props.mapController.map.getView(),"1"==this.props.mapController.data.router_api_selection||"2"==this.props.mapController.data.router_api_selection||"1"==e.routeType||"2"==e.routeType?(a=new f.Polyline,e.routes&&(e.routes[1]&&(1===r?(n=a.readFeatures(e.routes[0].geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(0):(n=a.readFeatures(e.routes[1].geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(1)),(o=a.readFeatures(e.routes[r].geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(r))):"0"==this.props.mapController.data.router_api_selection||"0"==e.routeType?o=(a=new f.Polyline({factor:this.props.mapController.data.router_viaroute_precision||1e6})).readFeatures(e.route_geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}):"3"==this.props.mapController.data.router_api_selection?(a=new f.Polyline,e.paths&&e.paths[1]&&(1==r?(n=a.readFeatures(e.paths[0].points,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(0):(n=a.readFeatures(e.paths[1].points,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(1)),(o=a.readFeatures(e.paths[r].points,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(r)):"4"!=this.props.mapController.data.router_api_selection&&"4"!=e.routeType||(a=new f.Polyline({factor:1e6}),e.trip&&e.trip.legs&&e.trip.legs[1]&&(1==r?(n=a.readFeatures(e.trip.legs[1].shape,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(0):(n=a.readFeatures(e.trip.legs[1].shape,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(1)),(o=a.readFeatures(e.trip.legs[r].shape,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(r)),"1"==this.props.mapController.data.router_alternative&&(e.routes&&e.routes.length>1&&e.routes[1]||e.paths&&e.paths.length>1&&e.paths[1])&&this.routingAltWaySource.addFeatures(n),o)){this.routerWaySource.addFeatures(o),this.props.mapController.map.renderSync(),t.animate({start:+new Date,duration:2e3,resolution:t.getResolution(),center:[0,0]});var s=jQuery(".c4g-starboard-container").css("width");s?(s=s.split("."),s=Array.isArray(s)?s[0]:s,s=parseInt(s)+50):s=50,t.fit(o[0].getGeometry(),{size:this.props.mapController.map.getSize(),padding:[50,s,50,50]})}}},{key:"adjustInstructionMapInteraction",value:function(e){var r,t,a,o=this;r=function(e){o.routerHintSource.clear();var r=o.routerWaySource.getFeatures()[0].getGeometry().getCoordinates(),t=e.data("pos");if(t){var a=t.split(",");a[0]=parseFloat(a[0]),a[1]=parseFloat(a[1]);var n=(0,_.fromLonLat)(a),s=new m.Feature({geometry:new g.Point(n)});o.routerHintSource.addFeature(s),o.options.mapController.map.getView().setCenter(n)}if(r){var i=e.data("start"),l=e.data("end");if(l){var c=new g.LineString(r.slice(i,l));(s=new m.Feature({geometry:c})).setStyle(new k.Style({stroke:new k.Stroke({color:"rgba(255, 0, 0, 1)",width:20})}));var u=o.options.mapController.map.getView().getZoom();o.routerHintSource.addFeature(s),o.options.mapController.map.getView().fit(c);var p=o.options.mapController.map.getView().getZoom(),b=Math.round((u+p)/2);b=b>p?p:b,o.options.mapController.map.getView().setZoom(b)}}},t=function(e){var r;if(o.routerWaySource&&o.routerWaySource.getFeatures()&&"0"==o.options.mapController.data.router_api_selection&&(r=o.routerWaySource.getFeatures()[0])){o.routerHintSource.clear();var t=new m.Feature({geometry:new g.Point(r.getGeometry().getCoordinates()[e.data("pos")])});o.routerHintSource.addFeature(t)}if(o.routerWaySource&&o.routerWaySource.getFeatures()&&o.options.mapController.data.router_api_selection>="1"&&(r=o.routerWaySource.getFeatures()[0])){o.routerHintSource.clear();var a=e.data("pos");if(a){var n=a.split(",");n[0]=parseFloat(n[0]),n[1]=parseFloat(n[1]);var s=(0,_.fromLonLat)(n);t=new m.Feature({geometry:new g.Point(s)}),o.routerHintSource.addFeature(t)}var i=(r=o.routerWaySource.getFeatures()[0]).getGeometry().getCoordinates();if(i){var l=e.data("start"),c=e.data("end");c&&((t=new m.Feature({geometry:new g.LineString(i.slice(l,c))})).setStyle(new k.Style({stroke:new k.Stroke({color:"rgba(255, 0, 0, 1)",width:15})})),o.routerHintSource.addFeature(t))}}},a=function(){o.routerHintSource.clear()},jQuery("[data-start]",e).each((function(e,o){var n=jQuery(o);n.click((function(){r(n)})),n.on("mouseenter",(function(){t(n)})),n.on("mouseleave",(function(){a()}))})),jQuery("[data-pos]",e).each((function(e,o){var n=jQuery(o);n.click((function(){r(n)})),n.on("mouseenter",(function(){t(n)})),n.on("mouseleave",(function(){a()}))}))}},{key:"addMapInputInteraction",value:function(){var e,r=this;r.fnMapRouterInteraction=function(t){if(!0===r.state.open){var a=r.props.mapController.map.forEachFeatureAtPixel(t.pixel,(function(e,r){return e}));if(a&&a.getId()){var o=a.getId().search&&a.getId().search("/")?parseFloat(a.getId().substring(a.getId().search("/")+1)):a.getId();r.setState({activeId:o,openResults:!0},(function(){if(document.querySelector(".c4g-route-feature-wrapper")){var e=document.querySelector(".c4g-route-feature-wrapper"),r=document.querySelector("li.route-features-list-element.c4g-active");e&&r&&e.scrollTo(0,r.offsetTop)}}))}else if(e=(0,_.toLonLat)(t.coordinate),r.areaSource.clear(),"route"===r.state.mode){if(""===r.state.fromAddress)r.setRouteFrom(e[0],e[1]),r.recalculateRoute();else if(""===r.state.toAddress)r.setRouteTo(e[0],e[1]),r.recalculateRoute();else if(r.state.overPtCtr>0)for(var n=0;n{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=p(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js"));function p(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(p=function(e){return e?t:r})(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}r.default=function(e){function r(e){return(0,n.default)(this,r),t=this,a=r,o=[e],a=(0,l.default)(a),(0,i.default)(t,b()?Reflect.construct(a,o||[],(0,l.default)(t).constructor):a.apply(t,o));var t,a,o}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r="";this.props.detailBtnClass&&this.props.detailBtnCb&&(r=u.default.createElement("button",{className:this.props.detailBtnClass,onMouseUp:this.props.detailBtnCb}));var t="";this.props.closeBtnClass&&this.props.closeBtnCb&&(t=u.default.createElement("button",{className:this.props.closeBtnClass,onMouseUp:this.props.closeBtnCb,title:this.props.closeBtnTitle}));var a="";return this.props.hideContainer&&(a=u.default.createElement("button",{className:"c4g-sideboard-hide",onMouseUp:function(){jQuery(e.props.hideContainer).removeClass("c4g-open").addClass("c4g-close")}})),u.default.createElement("div",{className:this.props.wrapperClass},u.default.createElement("span",{className:this.props.headerClass},this.props.header),a,t,r,this.props.children)}}])}(u.Component)},"./src/Resources/public/js/routing-constant-i18n-de.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.routingConstantsGerman=void 0,r.routingConstantsGerman={CTRL_ROUTER:"Router öffnen/schließen",ROUTER_VIEW_ADDRESS_INPUT:"Route finden",ROUTER_FROM_LABEL:"Start",ROUTER_OVER_LABEL:"Zwischenziel",ROUTER_TO_LABEL:"Ziel",ROUTER_CLEAR_TITLE:"Löschen",ROUTER_CLEAR_HTML:"",ROUTER_Label_Interim:"Zwischenziel",ROUTER_DEFAULT_HEADLINE_ROUTE:"Router",ROUTER_DEFAULT_HEADLINE_AREA:"Umkreissuche",ROUTER_SWITCH:"Wechsel von Start und Ziel",ROUTER_OVER:"Zwischenziel hinzufügen",ROUTER_PRINT:"Routenbeschreibung drucken",ROUTER_DOWNLOAD:"Route als GPX herunterladen",ROUTER_EDITOR:"Route in den Editor exportieren",ROUTER_EDITOR_ELEMENT:"Element im Editor.",ROUTER_VIEW_LABEL_ROUTE:"Route:",ROUTER_VIEW_LABEL_DISTANCE:"Entfernung:",ROUTER_VIEW_LABEL_TIME:"Zeit:",ROUTER_VIEW_LABEL_PROFILE:"Profil:",ROUTER_VIEW_ALERT_ERROR:"Fehler",ROUTER_VIEW_ALERT_ADDRESS:"Adresse nicht gefunden.",ROUTER_VIEW_ALERT_GOCODING:"Zugriff auf Geocoder fehlgeschlagen.",ROUTER_ERROR_POLYLINE:"Route konnte nicht berechnet werden.",ROUTER_ERROR_LINESTRING:"Strecke lässt sich nicht im Router.",POPUP_ROUTE_FROM:"Route von hier",POPUP_ROUTE_TO:"Route hierhin",POPUP_ROUTE_EDIT:"Strecke im Router öffnen",ROUTER:"Router",ROUTER_N:"Norden",ROUTER_E:"Ost",ROUTER_S:"Süden",ROUTER_W:"Westen",ROUTER_NE:"Nordost",ROUTER_SE:"Südost",ROUTER_SW:"Südwest",ROUTER_NW:"Nordwest",ROUTER_DIRECTION_0:"Unbekannte Anweisung[ auf %s ]",ROUTER_DIRECTION_1:"Geradeaus weiterfahren[ auf %s ]",ROUTER_DIRECTION_2:"Leicht rechts abbiegen [auf %s ]",ROUTER_DIRECTION_3:"Rechts abbiegen[ auf %s ]",ROUTER_DIRECTION_4:"Scharf rechts abbiegen[ auf %s ]",ROUTER_DIRECTION_5:"Wenden[ auf %s ]",ROUTER_DIRECTION_6:"Scharf links abbiegen[ auf %s ]",ROUTER_DIRECTION_7:"Links abbiegen[ auf %s ]",ROUTER_DIRECTION_8:"Leicht links abbiegen[ auf %s ]",ROUTER_DIRECTION_10:"Fahren Sie Richtung %d [ auf %s ]","ROUTER_DIRECTION_11-1":"In den Kreisverkehr einfahren und bei erster Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-2":"In den Kreisverkehr einfahren und bei zweiter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-3":"In den Kreisverkehr einfahren und bei dritter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-4":"In den Kreisverkehr einfahren und bei vierter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-5":"In den Kreisverkehr einfahren und bei fünfter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-6":"In den Kreisverkehr einfahren und bei sechster Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-7":"In den Kreisverkehr einfahren und bei siebter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-8":"In den Kreisverkehr einfahren und bei achter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-9":"In den Kreisverkehr einfahren und bei neunter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-x":"In den Kreisverkehr einfahren und bei einer der vielen Möglichkeiten[ in Richtung %s ] verlassen",ROUTER_DIRECTION_15:"Sie haben Ihr Ziel erreicht","ROUTER_5.X_TYPE_0":" %m fahren[ auf %s ]","ROUTER_5.X_TYPE_1":" %m dem Straßenverlauf folgen[ als %s ]","ROUTER_5.X_TYPE_2":" Fahren Sie[ auf %s ] los","ROUTER_5.X_TYPE_3":" Das Ziel befindet sich %m ","ROUTER_5.X_TYPE_4":" Weiterfahren[ auf %s ]","ROUTER_5.X_TYPE_5":" %m [auf %s ]auffahren","ROUTER_5.X_TYPE_6":" %m [auf %s ]abfahren","ROUTER_5.X_TYPE_7":" Den Fahrstreifen %m benutzen [auf %s ]","ROUTER_5.X_TYPE_8":" %m abbiegen [auf %s ]","ROUTER_5.X_TYPE_9":" Den Fahrstreifen %m benutzen [auf %s ]","ROUTER_5.X_TYPE_10":" %m fahren um auf der Straße zu bleiben","ROUTER_5.X_TYPE_11":" Im Kreisverkehr die %z. Ausfahrt nehmen [auf %s ]","ROUTER_5.X_TYPE_12":" Im Kreisverkehr die %z. Ausfahrt nehmen [auf %s ]","ROUTER_5.X_TYPE_13":" %m fahren [auf %s ]","ROUTER_5.X_TYPE_14":" abbiegen[ auf %s ]","ROUTER_5.X_MOD_0":"Uturn","ROUTER_5.X_MOD_1":"Scharf rechts","ROUTER_5.X_MOD_2":"Rechts","ROUTER_5.X_MOD_3":"Leicht rechts","ROUTER_5.X_MOD_4":"Geradeaus","ROUTER_5.X_MOD_5":"Leicht links","ROUTER_5.X_MOD_6":"Links","ROUTER_5.X_MOD_7":"Scharf links","ROUTER_5.X_MOD_8":"in der Nähe",ROUTER_FROM:"Start",ROUTER_TO:"Ziel",ROUTER_CENTER:"Zentrum",ROUTER_FIND_ROUTE:"Route finden",ROUTER_LOC_ROUTE_TO:"Route hierhin",ROUTER_ROUTEDESC:"Routenbeschreibung",ROUTER_ROUTENAME:"Route",ROUTER_DISTANCE:"Distanz",ROUTER_TIME:"Zeit",ROUTER_REV_GEOCODING:"Ermittle Adresse...",ROUTER_ERROR_REV_GEOCODING:"Fehler beim Ermitteln der Adresse",ROUTER_SEARCHING:"Suche Adresse...",ROUTER_ERROR_SEARCHING:"Fehler beim Suchen der Adresse",ROUTER_CALC_ROUTE:"Berechne Route...",ROUTER_ERROR_CALC_ROUTE:"Fehler beim Berechnen der Route",ROUTER_SETTINGS:"Routeneinstellungen",AREA_NAME:"Umkreissuche",AREA_PROFILE:"Profil",AREA_FEATURECOUNT:"Gefundene Elemente",ROUTE_DETOUR:"Umweg",AREA_DETOUR:"Radius",INSTRUCTION_HEADLINE:"Routenbeschreibung",FEATURES_HEADLINE:"Lokationen",ROUTE_POSITION:"Position ermitteln",START_ROUTE:"Suche starten",REMOVE_ADDRESS:"Adresse löschen",CAR:"Auto",BIKE:"Fahrrad",ROADBIKE:"Rennrad",MOUNTAINBIKE:"Mountainbike",ELECTRICBIKE:"E-Bike",TRUCK:"Lastkraftwagen",WALK:"FußgängerIn",WANDER:"WandererIn",WHEEL:"Rollstuhl",SCOOT:"Roller",MOTORBIKE:"Motorrad",CLOSE:"Schließen",NONE:""}},"./src/Resources/public/js/routing-constant-i18n-en.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.routingConstantsEnglish=void 0,r.routingConstantsEnglish={ROUTER_VIEW_ADDRESS_INPUT:"Find route",ROUTER_FROM_LABEL:"Start",ROUTER_TO_LABEL:"End",ROUTER_CLEAR_TITLE:"Delete",ROUTER_CLEAR_HTML:"",ROUTER_Label_Interim:"Interim Goal",ROUTER_DEFAULT_HEADLINE_ROUTE:"Router",ROUTER_DEFAULT_HEADLINE_AREA:"Area search",ROUTER_SWITCH:"Switch between Start and End",ROUTER_OVER:"Add interim goal",ROUTER_PRINT:"Print route description",ROUTER_DOWNLOAD:"Download route as GPX",ROUTER_EDITOR:"Export route into the editor",ROUTER_EDITOR_ELEMENT:"Element in the editor",POPUP_ROUTE_FROM:"Route from here",POPUP_ROUTE_TO:"Route to here",POPUP_ROUTE_EDIT:"Open line in router",ROUTER_VIEW_LABEL_ROUTE:"Route:",ROUTER_VIEW_LABEL_DISTANCE:"Distance:",ROUTER_VIEW_LABEL_TIME:"Time:",ROUTER_VIEW_LABEL_PROFILE:"Profile",ROUTER_VIEW_ALERT_Error:"Error",ROUTER_VIEW_ALERT_ADDRESS:"Address not found.",ROUTER_VIEW_ALERT_GOCODING:"No access to geocoding.",ROUTER_ERROR_POLYLINE:"Could not calculate route.",ROUTER_ERROR_LINESTRING:"Could not open line in router.",ROUTER:"Router",ROUTER_N:"Head north",ROUTER_E:"Head east",ROUTER_S:"Head south",ROUTER_W:"Head west",ROUTER_NE:"Head northeast",ROUTER_SE:"Head southeast",ROUTER_SW:"Head southwest",ROUTER_NW:"Head northwest",ROUTER_DIRECTION_0:"unknown direction[ onto %s ]",ROUTER_DIRECTION_1:"straight ahead[ onto %s ]",ROUTER_DIRECTION_2:"slight right[ onto %s ]",ROUTER_DIRECTION_3:"right[ onto %s ]",ROUTER_DIRECTION_4:"sharp right[ onto %s ]",ROUTER_DIRECTION_5:"turn[ onto %s ]",ROUTER_DIRECTION_6:"sharp turn left[ onto %s ]",ROUTER_DIRECTION_7:"turn left[ onto %s ]",ROUTER_DIRECTION_8:"light turn left[ onto %s ]",ROUTER_DIRECTION_10:"drive in direction of %d [ onto %s ]","ROUTER_DIRECTION_11-1":"Take the first exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-2":"Take the 2nd exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-3":"Take the 3rd exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-4":"Take the 4th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-5":"Take the 5th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-6":"Take the 6th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-7":"Take the 7th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-8":"Take the 8th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-9":"Take the 9th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-x":"Take one of the exits in the roundabout[ onto %s ]",ROUTER_DIRECTION_15:"Destination reached","ROUTER_5.X_TYPE_0":" Turn %m on[ %s ]","ROUTER_5.X_TYPE_1":" Follow the course of the road %m[ as %s ]","ROUTER_5.X_TYPE_2":" Depart[ on %s ]","ROUTER_5.X_TYPE_3":" Arrive %m ","ROUTER_5.X_TYPE_4":" Continue driving[ on %s ]","ROUTER_5.X_TYPE_5":" Take the ramp %m[ on %s ]","ROUTER_5.X_TYPE_6":" Take the ramp %m[ to exit on%s ]","ROUTER_5.X_TYPE_7":" Take the %m site of the fork to[ %s ]","ROUTER_5.X_TYPE_8":" Turn %m[ on %s ]","ROUTER_5.X_TYPE_9":" Take the lane %m[ on %s ]","ROUTER_5.X_TYPE_10":" Turn %m to stay on the road","ROUTER_5.X_TYPE_11":" Leave the roundabout on the %z. exit[ to %s ]","ROUTER_5.X_TYPE_12":" Leave the roundabout on the %z. exit[ to %s ]","ROUTER_5.X_TYPE_13":" Turn %m[ on %s ]","ROUTER_5.X_TYPE_14":" Follow the road %m","ROUTER_5.X_MOD_0":"Uturn","ROUTER_5.X_MOD_1":"sharp right","ROUTER_5.X_MOD_2":"right","ROUTER_5.X_MOD_3":"slight right","ROUTER_5.X_MOD_4":"straight","ROUTER_5.X_MOD_5":"slight left","ROUTER_5.X_MOD_6":"left","ROUTER_5.X_MOD_7":"sharp left","ROUTER_5.X_MOD_8":"somehow",ROUTER_FROM:"Start",ROUTER_TO:"End",ROUTER_CENTER:"Center",ROUTER_FIND_ROUTE:"Find route",ROUTER_LOC_ROUTE_TO:"Route to here",ROUTER_ROUTEDESC:"Description",ROUTER_ROUTENAME:"Route",ROUTER_DISTANCE:"Distance",ROUTER_TIME:"Time",ROUTER_REV_GEOCODING:"Identified address...",ROUTER_ERROR_REV_GEOCODING:"Fault! Can not identifiy address",ROUTER_SEARCHING:"Search address...",ROUTER_ERROR_SEARCHING:"Fault! Can not find address",ROUTER_CALC_ROUTE:"Calc route...",ROUTER_ERROR_CALC_ROUTE:"Fault! Can not calc address",ROUTER_SETTINGS:"Routing settings",CTRL_ROUTER:"Toggle router",AREA_NAME:"Search perimeter",AREA_PROFILE:"Profile",AREA_FEATURECOUNT:"Found features",ROUTE_DETOUR:"Detour",AREA_DETOUR:"Radius",INSTRUCTION_HEADLINE:"Route Instructions",FEATURES_HEADLINE:"Locations",ROUTE_POSITION:"Get user position",START_ROUTE:"Start search",CAR:"Car",BIKE:"Bike",ROADBIKE:"Road bike",MOUNTAINBIKE:"Mountain bike",ELECTRICBIKE:"E-Bike",TRUCK:"Truck",WALK:"Pedestrian",WANDER:"Wanderer",WHEEL:"Wheelchair",SCOOT:"Router",MOTORBIKE:"Motorbike",CLOSE:"Close",NONE:""}},"./src/Resources/public/js/routing-constant-i18n.js":(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLanguage=function(e){if(void 0!==e)return"de"===e.lang?jQuery.extend(a.routingConstantsGerman,n.langConstantsGerman):jQuery.extend(o.routingConstantsEnglish,s.langConstantsEnglish)};var a=t("./src/Resources/public/js/routing-constant-i18n-de.js"),o=t("./src/Resources/public/js/routing-constant-i18n-en.js"),n=t("./src/Resources/public/js/c4g-maps-constant-i18n-de.js"),s=t("./src/Resources/public/js/c4g-maps-constant-i18n-en.js")},"./src/Resources/public/js/routing-constants.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.routingConstants=void 0,r.routingConstants={ROUTER_INPUT_WRAPPER:"c4g-router-input-wrapper",ROUTER_PROFILE_WRAPPER:"c4g-router-profile-wrapper",ROUTER_INPUT_FROM:"c4g-router-input-from",ROUTER_INPUT_TO:"c4g-router-input-to",ROUTER_INPUT_OVER:"c4g-router-input-over",ROUTER_INPUT_CLEAR:"c4g-router-input-clear",ROUTER_BUTTONBAR:"c4g-router-buttonbar",ROUTER_ATTRIBUTION_WRAPPER:"c4g-router-attribution-wrapper",ROUTER_INSTRUCTIONS_WRAPPER:"c4g-router-instructions-wrapper",ROUTER_INSTRUCTIONS_HEADER:"c4g-router-instructions-header",ROUTER_SWITCH:"c4g-router-switch",ROUTER_OVER:"c4g-router-over",ROUTER_PRINT:"c4g-router-print",ROUTER_PROFILE_CAR:"c4g-router-profile-car",ROUTER_PROFILE_TRUCK:"c4g-router-profile-hgv",ROUTER_PROFILE_BIKE:"c4g-router-profile-bike",ROUTER_PROFILE_FOOT:"c4g-router-profile-foot",ROUTER_PROFILE_WHEELCHAIR:"c4g-router-profile-wheelchair",ROUTER_PROFILE_SCOOTER:"c4g-router-profile-scooter",ROUTER_INSTRUCTIONS_TABLE:"c4g-router-instruction-table",ROUTER_INSTRUCTIONS_ITEM:"c4g-router-instruction-item",ROUTER_INSTRUCTIONS_ITEM_ODD:"c4g-router-instruction-item--odd",ROUTER_INSTRUCTIONS_ITEM_EVEN:"c4g-router-instruction-item--even",ROUTER_INSTRUCTIONS_ITEM_DIRECTION:"c4g-router-instruction-item_direction",ROUTER_INSTRUCTIONS_ITEM_DIRECTION_ICON:"c4g-router-instruction-item_direction-icon",ROUTER_INSTRUCTIONS_ITEM_DIRECTION_TEXT:"c4g-router-instruction-item_text",ROUTER_INSTRUCTIONS_ITEM_DIRECTION_DISTANCE:"c4g-router-instruction-item_distance",ROUTE_LAYER_VALUES:"c4g-routing-layer-values",ROUTE_LAYERS_SELECT:"c4g-routing-layers-select",ROUTE_TOGGLE:"c4g-routing-toggle",OUTPUT_DETOUR:"c4g-routing-output",ROUTE_START_BUTTON:"c4g-route-search-start",ROUTER_SEARCH:"c4g-router-search",ROUTE_POSITION:"c4g-router-position",ROUTE_ERROR:"c4g-routing-error",NONE:""}},"?cdec":()=>{},"?753a":()=>{},"?4e4d":()=>{},"?662e":()=>{}}]);
\ No newline at end of file
diff --git a/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.a744cd61f2b1f6edc519.js b/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.a744cd61f2b1f6edc519.js
new file mode 100644
index 00000000..b77f39fd
--- /dev/null
+++ b/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.a744cd61f2b1f6edc519.js
@@ -0,0 +1,2 @@
+/*! For license information please see src_Resources_public_js_components_c4g-maps_jsx.bundle.a744cd61f2b1f6edc519.js.LICENSE.txt */
+(self.webpackChunkmapsbundle=self.webpackChunkmapsbundle||[]).push([["src_Resources_public_js_components_c4g-maps_jsx","src_Resources_public_js_components_c4g-titlebar_jsx"],{"./src/Resources/public/js/c4g-baselayer-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.OSM_REL_ATTRIBUTION=r.C4gBaselayerController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-baselayer.js"),i=t("./src/Resources/public/js/c4g-overlay.js"),l=t("./src/Resources/public/js/c4g-maps-config.js"),c=t("./src/Resources/public/js/c4g-maps-utils.js"),u=a(t("./node_modules/ol/layer/Tile.js")),p=(a(t("./node_modules/ol/source/TileJSON.js")),t("./node_modules/ol/source.js")),b=(a(t("./node_modules/ol/source/VectorTile.js")),t("./node_modules/ol/layer.js")),d=a(t("./node_modules/ol/Collection.js")),h=a(t("./node_modules/olcs/lib/olcs/OLCesium.js")),m=(a(t("./node_modules/ol/layer/VectorTile.js")),a(t("./node_modules/ol-ext/source/GeoImage.js"))),g=a(t("./node_modules/ol/source/GeoTIFF.js")),f=a(t("./node_modules/ol/layer/WebGLTile.js")),y=a(t("./node_modules/ol/proj/Projection.js")),_=r.OSM_REL_ATTRIBUTION='© OpenStreetMap contributors.';r.C4gBaselayerController=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.proxy=r,this.mapController=r.options.mapController,this.arrBaselayers={},this.baselayerIds=[],this.baseKeys=this.mapController.data.base_keys}),[{key:"loadBaseLayers",value:function(){var e;e=this,jQuery.ajax(this.proxy.api_baselayer_url,{dataType:this.mapController.data.jsonp?"jsonp":"json"}).done((function(r){return r.baselayer&&(e.addBaseLayers(r.baselayer),c.utils.callHookFunctions(window.c4gMapsHooks.proxy_baselayer_loaded)),!0})).fail((function(){return console.warn("An error occured while trying to load the baselayers. Do you have configured a default profile with baselayers?"),e.mapController.spinner.hide(),!1})).always((function(){}))}},{key:"addBaseLayers",value:function(e){var r,t,a;if(e.length>0)for(a=0;a0&&e[0].id?t=e[0].id:(t=0,this.baselayerIds.push(t),this.arrBaselayers[t]||(this.arrBaselayers[t]={id:0,name:"c4g_default",provider:"osm",style:"Mapnik"})),this.showBaseLayer(t)),this.proxy.baselayers_loaded=!0,c.utils.callHookFunctions(this.proxy.hook_baselayer_loaded,this.baselayerIds)}},{key:"createBaseLayer",value:function(e,r,t){var a,o={};e=e||{},window.isSecureContext&&(e.crossOrigin="anonymous");var n=1,s=this.mapController.data;if(s.cookie){n=0;var i=document.cookie.split(";");for(var l in i)i.hasOwnProperty(l)&&i[l].indexOf(s.cookie.name)>-1&&(!s.cookie.value||i[l].indexOf(s.cookie.value)>-1)&&(n=2)}var c="../../../"+this.mapController.data.dummyBaselayer,h=null;if(c&&(h=new p.XYZ({url:c})),h&&0===n)(o=new u.default).setSource(h);else switch(r.provider){case"custom":var k=!0;r.url?(e.url=r.url,k=!1):r.urls&&(e.urls=r.urls,k=!1),r.attribution&&(e.attributions=r.attribution),k?console.warn("custom url(s) missing -> switch to default"):o=new u.default({source:new p.XYZ(e),extent:r.extend});break;case"osm":if(t.osm[r.style])o=new u.default({source:new p.OSM(jQuery.extend(t.osm[r.style],e))});else if("osm_custom"===r.style){var v=!0;r.url?(e.url=r.url,v=!1):r.urls&&(e.urls=r.urls,v=!1),v?console.warn("custom url(s) missing -> switch to default"):o=new u.default({source:new p.XYZ(e)})}else console.warn("unsupported osm-style -> switch to default");break;case"stadiaMaps":var w,S;if(t.stadiaMaps[r.style])if("Watercolor"===r.style?(o=new b.Group({layers:[new u.default,new u.default]}),w=new p.StadiaMaps({layer:"stamen_watercolor"}),S=new p.StadiaMaps({layer:"stamen_terrain_labels"})):(o=new u.default,w=new p.StadiaMaps(jQuery.extend(t.stadiaMaps[r.style]))),w.apiKey=r.api_key,o instanceof b.Group){var C=o.getLayers().getArray();C[0].setSource(w),C[1].setSource(S)}else o.setSource(w);else console.warn("unsupported osm-style -> switch to default");break;case"con4gisIo":if(this.baseKeys[r.id]){var R=this.baseKeys[r.id];e.url=r.url.replace("{key}",R.key),e.attributions=R.attribution+" "+e.attributions;var E=new p.XYZ(e);(o=new u.default).setSource(E)}break;case"mapbox":r.api_key&&r.app_id&&r.mapbox_type?(o=new u.default,"Mapbox"===r.mapbox_type?(e.url=r.url+r.app_id+"/tiles/{z}/{x}/{y}?access_token="+r.api_key,a=new p.XYZ(jQuery.extend(t.mapbox[r.mapbox_type],e))):(e.url=r.url_classic+r.app_id+"/{z}/{x}/{y}.png?access_token="+r.api_key,a=new p.XYZ(jQuery.extend(t.mapbox[r.mapbox_type],e))),o.setSource(a)):r.hide_in_be?(e.url="con4gis/baseLayerTileService/"+r.id+"/{z}/{x}/{y}",o=new u.default({source:new p.XYZ(jQuery.extend(t.mapbox[r.mapbox_type],e))})):console.warn("wrong mapbox configuration!");break;case"mapz":o=new u.default,a=new p.XYZ(jQuery.extend(t.mapz,e)),o.setSource(a);break;case"otm":o=new u.default,a=new p.XYZ(jQuery.extend(t.otm,e)),o.setSource(a);break;case"klokan":console.warn("wrong klokan configuration!");break;case"here":r.api_key&&r.app_id&&r.here_type?("normal"===r.style?e.url="https://{1-4}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"transit"===r.style?e.url="https://{1-4}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day.transit/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"pedestrian"===r.style?e.url="https://{1-4}.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/pedestrian.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"terrain"===r.style?e.url="https://{1-4}.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/terrain.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"satellite"===r.style?e.url="https://{1-4}.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/satellite.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key:"hybrid"===r.style&&(e.url="https://{1-4}.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/hybrid.day/{z}/{x}/{y}/256/png?app_id="+r.app_id+"&app_code="+r.api_key),a=new p.XYZ(jQuery.extend(t.here[r.here_type],e)),(o=new u.default({preload:1/0})).setSource(a)):r.hide_in_be?(e.url=e.url="con4gis/baseLayerTileService/"+r.id+"/{z}/{x}/{y}",o=new u.default({source:new p.XYZ(jQuery.extend(t.mapbox[r.here_type],e))})):console.warn("wrong HERE configuration!");break;case"thunder":r.api_key&&r.thunderforest_type?(r.style&&(e.url="https://tile.thunderforest.com/"+r.style+"/{z}/{x}/{y}.png?apikey="+r.api_key),o=new u.default,a=new p.XYZ(jQuery.extend(t.thunderforest[r.thunderforest_type],e)),o.setSource(a)):r.hide_in_be?(e.url="con4gis/baseLayerTileService/"+r.id+"/{z}/{x}/{y}",o=new u.default({source:new p.XYZ(jQuery.extend(t.mapbox[r.thunderforest_type],e))})):console.warn("wrong Thunderforest configuration!");break;case"google":console.warn("google-maps are currently unsupported");break;case"bing":r.api_key&&r.style?(o=new u.default,a=new p.BingMaps({culture:navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage,key:r.api_key,imagerySet:r.style}),o.setSource(a)):console.warn("wrong bing-key or invalid imagery-set!");break;case"wms":o=-1!==r.url.indexOf("https")?new u.default({source:new p.TileWMS({url:r.url,params:{LAYERS:r.params.layers,VERSION:r.params.version,TRANSPARENT:r.params.transparent},gutter:r.gutter,attributions:r.attribution+" "+_,crossOrigin:"anonymous"})}):new u.default({source:new p.TileWMS({url:r.url,params:{LAYERS:r.params.layers,VERSION:r.params.version,TRANSPARENT:r.params.transparent},gutter:r.gutter,attributions:r.attribution+" "+_})});break;case"image":var O=new y.default({code:"image",units:"pixels",extent:r.extent?r.extent:[0,0,1920,1080]});o=new b.Image({source:new p.ImageStatic({url:r.imageSrc,imageExtent:r.extent?r.extent:[0,0,1920,1080],projection:O})});break;case"geoimage":var T=JSON.parse(r.geoImageJson);T.url=r.imageSrc?r.imageSrc:arrSource.url,o=new b.Image(jQuery.extend({source:new m.default(T)},e));break;case"geotiff":var x=[{url:r.imageSrc?r.imageSrc:""}];o=new f.default(jQuery.extend({source:new g.default({sources:x,nodata:0})},e));break;case"owm":o=new u.default({source:new p.XYZ({url:r.url+r.app_id+"/{z}/{x}/{y}?hash="+r.api_key,attributions:r.attribution+" "+_})});break;case"group":var P=[];for(var I in r.layerGroup)if(r.layerGroup.hasOwnProperty(I)){var j={};j=this.getAttributions(j,r.layerGroup[I],t);var L=this.createBaseLayer(j,r.layerGroup[I],t),A=this.proxy.options.mapController.map.getView().getResolutionForZoom(r.layerGroup[I].minZoom),F=this.proxy.options.mapController.map.getView().getResolutionForZoom(r.layerGroup[I].maxZoom);L.setMinResolution(F),L.setMaxResolution(A),P.push(L)}o=new b.Group({layers:P});break;default:console.warn("unsupported provider")}if(r.consentId)if("undefined"!=typeof klaro&&klaro.getManager&&klaro.getManager()){var M,z=klaro.getManager();if(o instanceof u.default||o instanceof f.default)a=o.getSource(),z.getConsent(r.consentId)||o.setSource(h),M={update:function(e,t,n){n[r.consentId]?o.setSource(a):o.setSource(h)}};else if(o instanceof b.Group){var N=o.getLayers();z.getConsent(r.consentId)||o.setLayers(new d.default([new u.default({source:h})])),M={update:function(e,t,a){a[r.consentId]?o.setLayers(N):o.setLayers(new d.default([new u.default({source:h})]))}}}z.watch(M)}else if("undefined"!=typeof HofffConsentManager)if(o instanceof u.default||o instanceof f.default)a=o.getSource(),HofffConsentManager.addEventListener("consent:accepted",(function(e){e.consentId==r.consentId&&o.setSource(a)})),HofffConsentManager.addEventListener("consent:revoked",(function(e){e.consentId==r.consentId&&o.setSource(h)})),HofffConsentManager.requiresConsent(r.consentId)||o.setSource(h);else if(o instanceof b.Group){var D=o.getLayers();HofffConsentManager.addEventListener("consent:accepted",(function(e){e.consentId==r.consentId&&o.setLayers(D)})),HofffConsentManager.addEventListener("consent:revoked",(function(e){e.consentId==r.consentId&&o.setLayers(new d.default)})),HofffConsentManager.requiresConsent(r.consentId)||o.setLayers(new d.default)}return(o instanceof u.default||o instanceof f.default)&&o.setZIndex(-2),o}},{key:"filterLayersForBaselayer",value:function(e){var r=this.proxy.layerController.arrLayers;for(var t in r)if(r.hasOwnProperty(t)){var a=r[t];if(a){var o=!1;if("all"===a.activeForBaselayers||a.renderSpecial)continue;a.activeForBaselayers&&(o=!!a.activeForBaselayers.includes(e)),o?(r[t].display=!0,this.proxy.layerController&&this.proxy.layerController.show(t)):(r[t].display=!1,this.proxy.layerController&&this.proxy.layerController.hide(t))}}}},{key:"getAttributions",value:function(e,r,t){var a;if(r.attribution)e.attributions?e.attributions=e.attributions+" "+r.attribution:e.attributions=_+" "+r.attribution;else if(!e.attributions)switch(r.provider){case"osm":t.osm[r.style]?e.attributions=t.osm[r.style].attributions:e.attributions=_;break;case"stadiaMaps":e.attributions=t.stadiaMaps[r.style].attributions;break;case"mapbox":e.attributions=t.mapbox[r.mapbox_type].attributions;break;case"mapz":e.url=r.url,e.attributions=t.mapz.attributions;break;case"otm":e.url=r.url,e.attributions=t.otm.attributions;break;case"klokan":e.attributions=t.klokan[r.klokan_type].attributions;break;case"here":e.attributions=t.here[r.here_type].attributions;break;case"thunder":e.attributions=t.thunderforest[r.thunderforest_type].attributions;break;case"geoimage":case"geotiff":break;default:e.attributions=_}if(this.mapController.data&&this.mapController.data.attribution&&this.mapController.data.attribution.additional)if(e.attributions){var o=this.mapController.data.attribution.additional;for(s=!1,a=0;a=0&&(s.minZoom=m.minZoom),m.maxZoom&&m.maxZoom>=0&&(s.maxZoom=m.maxZoom),n=this.createBaseLayer(s,m,d),m.hasOverlays)for(u=0;u0)for(var f in g.overlayController.arrOverlays)g.overlayController.arrOverlays.hasOwnProperty(f)&&"length"!==f&&g.overlayController.arrOverlays[f].changeOpacity(0)}if((t=this.arrBaselayers[e]).overlayController&&t.overlayController.arrOverlays&&t.overlayController.arrOverlays.length>0)for(var y in t.overlayController.arrOverlays)if(t.overlayController.arrOverlays.hasOwnProperty(y)&&"length"!==y){var _=t.overlayController.arrOverlays[y];_.changeOpacity(_.opacity)}if("baseMapsLayer"===(r=this.mapController.map.getLayers()).item(0).get("checkSum")&&(o=r.item(0).getLayers(),void 0!==this.arrBaselayers[e])&&((t=this.arrBaselayers[e].layer)&&(a=!0,o.forEach((function(e,r,o){e&&e===t?(e.setVisible(!0),a=!1):e?e.setVisible(!1):a=!1}),this),a&&o.push(t)),(p=this.mapController.map.getView()).getZoom(),p.getCenter(),m.minZoom&&m.minZoom>=0||m.maxZoom&&m.maxZoom>=0)){m.minZoom&&p.getZoom()m.maxZoom&&p.setZoom(m.maxZoom);var k=this.mapController.data;p.setMinZoom(parseInt(m.minZoom,10)||0),p.setMaxZoom(parseInt(m.maxZoom,10)||19),this.mapController.map.setView(p)}void 0!==m&&(this.mapController.setBaselayerId(m.id),c.utils.callHookFunctions(this.proxy.hook_baselayer_visibility,m),void 0!==m&&((k=this.mapController.data).cesium&&k.cesium.enable&&(k.cesium.always||m.cesium)?(this.ol3d||(this.ol3d=new h.default({map:this.mapController.map,createSynchronizers:!1})),this.ol3d.setEnabled(!0),jQuery(".c4g-control-container-top-left").hasClass("c4g-cesium-enabled")||jQuery(".c4g-control-container-top-left").addClass("c4g-cesium-enabled")):(this.ol3d&&this.ol3d.getEnabled()&&this.ol3d.setEnabled(!1),jQuery(".c4g-control-container-top-left").hasClass("c4g-cesium-enabled")&&jQuery(".c4g-control-container-top-left").removeClass("c4g-cesium-enabled"))))}}])}()},"./src/Resources/public/js/c4g-baselayer.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gBaselayer=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=t("./src/Resources/public/js/c4g-overlay-controller.js");r.C4gBaselayer=(0,o.default)((function e(r,t){if((0,n.default)(this,e),this.id=r.id,this.pid=r.pid,this.name=r.name,this.display_name=r.display_name,this.provider=r.provider,this.osm_style=r.osm_style,this.osm_style_url1=r.osm_style_url1,this.osm_style_url2=r.osm_style_url2,this.osm_style_url3=r.osm_style_url3,this.osm_style_url4=r.osm_style_url4,this.osm_keyname=r.osm_keyname,this.mapbox_type=r.mapbox_type,this.bing_style=r.bing_style,this.style=r.style,this.attribution=r.attribution,this.infopage=r.infopage,this.params=r.params,this.wms_gutter=r.wms_gutter,this.minZoom=r.minZoom,this.maxZoom=r.maxZoom,this.protect_baselayer=r.protect_baselayer,this.permitted_groups=r.permitted_groups,this.api_key=r.apiKey?r.apiKey:r.api_key,this.app_id=r.app_id,this.thunderforest_type=r.thunderforest_type,this.here_type=r.here_type,this.cesium=r.cesium,this.hide_in_be=r.hide_in_be,this.url=r.url,this.urls=r.urls,this.klokan_type=r.klokan_type,this.style_url=r.style_url,this.hasOverlays=r.hasOverlays,this.overlays=r.overlays,this.imageSrc=r.image_src,this.geoImageJson=r.geoimage_json,this.preview_image=r.preview_image,r.layerGroup){var a=[];for(var o in r.layerGroup)r.layerGroup.hasOwnProperty(o)&&(a[o]=new e(r.layerGroup[o].entry),a[o].minZoom=r.layerGroup[o].minZoom,a[o].maxZoom=r.layerGroup[o].maxZoom);this.layerGroup=a}this.consentId=!!r.consentId&&r.consentId,this.overlayController=new s.C4gOverlayController(this),this.layer=!1,this.controller=t}))},"./src/Resources/public/js/c4g-layer-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.BetterLayerController=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./node_modules/ol/source.js"),l=t("./node_modules/ol/proj.js"),c=a(t("./node_modules/ol/format/OSMXML.js")),u=a(t("./node_modules/ol/format/GML3.js")),p=a(t("./node_modules/ol/format/GML32.js")),b=a(t("./node_modules/ol/format/GML2.js")),d=t("./node_modules/ol/loadingstrategy.js"),h=t("./node_modules/ol/layer.js"),m=E(t("./node_modules/ol/format.js")),g=a(t("./node_modules/proj4/lib/index.js")),f=t("./node_modules/ol/proj/proj4.js"),y=a(t("./node_modules/ol/proj/Projection.js")),_=a(t("./node_modules/ol/Collection.js")),k=t("./src/Resources/public/js/c4g-maps-utils.js"),v=t("./node_modules/ol/style.js"),w=t("./node_modules/ol/geom.js"),S=a(t("./node_modules/ol/Feature.js")),C=E(t("./node_modules/ol/extent.js"));function R(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(R=function(e){return e?t:r})(e)}function E(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=R(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}var O=jQuery.extend({OSMXML:c.default,GML2:b.default,GML32:p.default,GML3:u.default},m);r.BetterLayerController=function(){return(0,s.default)((function e(r){(0,n.default)(this,e),this.handleZoom=this.handleZoom.bind(this);var t=this;this.proxy=r,this.loaders=[],this.controllers={},this.arrLocstyles=[],this.objIds={},this.currentZoomLevel=0,this.extent={maxX:-1/0,maxY:-1/0,minX:1/0,minY:1/0},this.mapController=r.options.mapController,this.vectorCollection=new _.default,this.loaderFunction=function(e,r,a){var o=function(){if(t.loaders.hasOwnProperty(n)){var o=t.loaders[n];if(o.preventLoading)o.arrExtents.push(e);else if(o.params||o.url){var s=t.objLayers.find((function(e){return e.id==o.layerId}))||{};t.performOvp({url:o.url,params:o.params,locstyleId:o.locstyle,chain:o.chain,layer:s},{extent:e,resolution:r,projection:a})}else t.performOwnData(o,{extent:e,resolution:r,projection:a},(function(e){for(var r=[],a=t.objLayers.find((function(e){return e.id==o.layerId}))||{},n=0;n1&&o&&Array.isArray(o)){var l=0;o[0]&&o[0].setZIndex&&e.get("zindex")&&(l+=e.get("zindex")),o[0]&&o[0].setZIndex&&(l+=100-e.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()[1],o[0].setZIndex(l));var c=[0,0],u=1;if(o[0]){if(o[0].getImage()&&o[0].getImage().getRadius&&"function"==typeof o[0].getImage().getRadius){var p=parseInt(o[0].getImage().getRadius(),10);p&&(c=[-p,p])}else o[0].getImage()&&o[0].getImage().getAnchor&&"function"==typeof o[0].getImage().getAnchor&&(c=o[0].getImage().getAnchor()||[0,0]);o[0].getImage()&&o[0].getImage().getScale()&&1!==o[0].getImage().getScale()&&(u=o[0].getImage().getScale(),c=[c[0]*u,c[1]*u]),t.proxy.mapData.cluster_fillcolor&&(u+=(a-1)/t.vectorCollection.getLength())}var b=k.utils.getRgbaFromHexAndOpacity(t.proxy.mapData.cluster_fillcolor,{unit:"%",value:70}),d=t.proxy.mapData.cluster_fontcolor;if(e.get("cluster_fillcolor")&&(b=k.utils.getRgbaFromHexAndOpacity(e.get("cluster_fillcolor"),{unit:"%",value:70})),e.get("cluster_fontcolor")&&(d=e.get("cluster_fontcolor")),d=k.utils.getRgbaFromHexAndOpacity(d),o.push(new v.Style({text:new v.Text({text:"●",font:"60px sans-serif",offsetX:-1*c[0],offsetY:-1*c[1],scale:u,fill:new v.Fill({color:b})}),zIndex:l})),o.push(new v.Style({text:new v.Text({text:a.toString(),offsetX:-1*c[0],offsetY:-1*c[1]+3,scale:u,fill:new v.Fill({color:d})}),zIndex:l})),e&&e.get("markLocstyle")){var h,m="#"+t.proxy.mapData.starboard.colorZoomMarker,g=new v.Fill({color:m});h=o[0].getImage()&&o[0].getImage().getRadius&&o[0].getImage().getRadius()?parseInt(o[0].getImage().getRadius()):o[0].getImage()&&o[0].getImage().getIcon&&o[0].getImage()&&o[0].getImage().getIcon()?(h=o[0].getImage().getIcon().getSize())[0]:25;var f=new v.Style({image:new v.Circle({fill:g,radius:h}),fill:g});o.push(f)}}else if(o&&Array.isArray(o)){var y=0;if(o[0]&&o[0].setZIndex&&e.get("zindex")&&(y+=e.get("zindex")),o[0]&&o[0].setZIndex){var _=e.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates();y+=100-(_="number"==typeof(_="number"==typeof _[0]?_:_[0])[0]?_:_[0])[1],o[0].setZIndex(y)}if(e&&e.get("markLocstyle")){var w,S="#"+t.proxy.mapData.starboard.colorZoomMarker,C=new v.Fill({color:S});w=o[0].getImage()&&o[0].getImage().getRadius&&o[0].getImage().getRadius()?parseInt(o[0].getImage().getRadius()):o[0].getImage()&&o[0].getImage().getIcon&&o[0].getImage()&&o[0].getImage().getIcon()?(w=o[0].getImage().getIcon().getSize())[0]:25;var R=new v.Style({image:new v.Circle({fill:C,radius:w}),fill:C});o.push(R)}}return o},this.mapController.data.cluster_all&&(this.vectorSource=new i.Cluster({source:this.vectorSource,geometryFunction:this.geometryFunction,distance:this.mapController.data.cluster_distance||20})),this.vectorLayer=new h.Vector({source:this.vectorSource,zIndex:10}),this.vectorLayers=[],this.layerRequests={},this.ovpKey=this.mapController.data.ovp_key,window.c4gMapsHooks.hook_map_zoom=window.c4gMapsHooks.hook_map_zoom||[],window.c4gMapsHooks.hook_map_zoom.push(this.handleZoom)}),[{key:"hide",value:function(e,r,t,a){var o,n;if(Array.isArray(r)?o=r:r instanceof h.Vector?n=r:o=this.objIds[t],o){if(this.mapController.map.getView().dispatchEvent({type:"change:resolution"}),e>=0){var s=this.loaders[e];s&&(this.loaders[e].preventLoading=!0,s.request&&s.request.abort())}if(o.length>0)for(var i in o)o.hasOwnProperty(i)&&this.vectorCollection.remove(o[i])}else n&&this.mapController.map.removeLayer(n)}},{key:"show",value:function(e,r,t,a){var o,n;if(Array.isArray(r))for(var s in o=r,this.currentZoomLevel++,o)o.hasOwnProperty(s)&&this.mapController.filter&&(o[s].set("zindex",this.currentZoomLevel),parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.hideFeatureMulti(o[s]):this.mapController.filter.hideFeature(o[s]));else r instanceof h.Vector?(n=r,this.mapController.filter&&(parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.filterLayerMulti(n):this.mapController.filter.filterLayer(n))):o=this.objIds[t];if(e>=0&&this.loaders[e]&&this.loaders[e].preventLoading){for(var i in this.loaders[e].preventLoading=!1,this.loaders[e].arrExtents)if(this.loaders[e].arrExtents.hasOwnProperty(i)&&this.vectorSource){var l=this.loaders[e].arrExtents[i];this.vectorSource.removeLoadedExtent(l)}this.loaders[e].arrExtents=[]}if(o){for(var c in o)if(o.hasOwnProperty(c)){var u=this.vectorCollection.getArray(),p=!1;for(var b in u)u[b].ol_uid==o[c].ol_uid&&(p=!0);p||this.vectorCollection.push(o[c])}}else n&&this.mapController.map.addLayer(n)}},{key:"zoomTo",value:function(e){var r,t,a=this;if(e.childs&&e.childs.length)for(var o in e.childs)e.childs.hasOwnProperty(o)&&(r=this.getChildsExtent(r,e.childs[o]));for(var n in t=e.features&&0!==e.features.length?e.features:this.objIds[e.id])t.hasOwnProperty(n)&&(r=r?C.extend(r,t[n].getGeometry().clone().getExtent()):t[n].getGeometry().clone().getExtent());if(!r)return!1;var s=jQuery(".c4g-starboard-container").css("width");s?(s=s.split("."),s=Array.isArray(s)?s[0]:s,s=parseInt(s)+50):s=50;var i=parseInt(this.proxy.mapData.starboard.maxZoom)||22;return t&&1===t.length?this.mapController.map.getView().fit(r,{padding:[50,s,50,50],duration:500,maxZoom:i,callback:function(e){e&&window.setTimeout((function(){var e=t[0].getGeometry().clone().getExtent(),r=a.mapController.map.getPixelFromCoordinate([(e[0]+e[2])/2,(e[1]+e[3])/2]),o=a.mapController.map.getFeaturesAtPixel(r,{hitTolerance:10});o&&o[0]&&o[0].get("features")&&o[0].get("features").length>1&&(o[0].getGeometry().getCoordinates(),a.mapController.map.dispatchEvent({type:"click",pixel:r}))}),100)}}):this.mapController.map.getView().fit(r,{padding:[50,s,50,50],duration:500,maxZoom:i}),!0}},{key:"getChildsExtent",value:function(e,r){if(r.childs&&r.childs.length)for(var t in r.childs)r.childs.hasOwnProperty(t)&&(e=this.getChildsExtent(e,r.childs[t]));if(r.features&&r.features.length)for(var a in r.features)r.features.hasOwnProperty(a)&&(e=e?C.extend(e,r.features[a].getGeometry().clone().getExtent()):r.features[a].getGeometry().clone().getExtent());else e=this.getExtentForLayer(e,r.key);return e}},{key:"getExtentForLayer",value:function(e,r){var t=this.objIds[layerId];if(t&&t.length)for(var a in t)t.hasOwnProperty(a)&&(e=e?C.extend(e,t[a].getGeometry().getExtent()):t[a].getGeometry().getExtent());return e}},{key:"setChildFeatureFlag",value:function(e,r,t){if(e.childs&&e.childs.length)for(var a in e.childs)e.childs.hasOwnProperty(a)&&this.setChildFeatureFlag(e.childs[a],r,t);if(e.features&&e.features.length)for(var o in e.features)e.features.hasOwnProperty(o)&&e.features[o].set(r,t)}},{key:"loadLayers",value:function(){var e=this;if(0===this.proxy.mapId)return window.setTimeout((function(){e.mapController.setLayersInitial([],[])}),50),!1;jQuery.ajax(this.proxy.api_layer_url,{dataType:this.mapController.data.jsonp?"jsonp":"json"}).done((function(r){k.utils.callHookFunctions(window.c4gMapsHooks.hook_layer,r),k.utils.callHookFunctions(window.c4gMapsHooks.loaded,e.proxy),e.objLayers=r.layer;var t=[],a=[],o=[];for(var n in r.layer)if(r.layer.hasOwnProperty(n))if("startab"===r.layer[n].type){var s=[e.getStructureFromLayer(r.layer[n],o.length)];s.awesomeIcon=r.layer[n].awesomeicon,o.push(s)}else{var i=e.getStructureFromLayer(r.layer[n],t.length);i.hide_in_starboard?(t=i.childs?t.concat(i.childs):t,a=i.features?a.concat(i.features):a):t.push(i)}var l=[];for(var c in t)t.hasOwnProperty(c)&&(l.push(e.getInitialStates(t[c])),a&&(a=a.concat(e.getFeaturesFromStruct(t[c]))));var u=[];for(var p in o)o.hasOwnProperty(p)&&u.push(e.getInitialStates(o[p][0]));if(e.arrLayers=t,e.proxy.locationStyleController.loadLocationStyles(e.arrLocstyles,{done:function(r){e.mapController.setLocStyles(r,(function(){window.setTimeout((function(){var r=e.mapController.map.getView().getZoom();e.mapController.map.getView().setZoom(r+.265)}),100),window.setTimeout((function(){var r=e.mapController.map.getView().getZoom();e.mapController.map.getView().setZoom(r-.265)}),300)}))}}),e.vectorCollection.extend(a),e.mapController.map.addLayer(e.vectorLayer),e.mapController.setLayersInitial(e.arrLayers,l),e.mapController.setTabLayers(o,u),("LOCATIONS"===e.proxy.mapData.calc_extent||"CENTERLOCS"===e.proxy.mapData.calc_extent)&&e.extent&&e.extent.maxX!==1/0&&e.extent.maxX!==-1/0){var b=e.mapController.map.getView(),d=[parseInt(e.mapController.props.mapData.min_gap,10),parseInt(e.mapController.props.mapData.min_gap,10),parseInt(e.mapController.props.mapData.min_gap,10),parseInt(e.mapController.props.mapData.min_gap,10)],h=[e.extent.minX,e.extent.minY,e.extent.maxX,e.extent.maxY];"CENTERLOCS"===e.proxy.mapData.calc_extent?b.fit(h,{maxZoom:e.mapController.data.center.zoom}):b.fit(h,{padding:d})}return k.utils.callHookFunctions(window.c4gMapsHooks.layer_loaded,e),e.proxy.layers_loaded=!0,!0})).fail((function(){return console.warn("An error occured while trying to load the layers..."),!1})).always((function(){}))}},{key:"getInitialStates",value:function(e){var r=[];if(e.childs&&e.childs.length>0)for(var t in e.childs)e.childs.hasOwnProperty(t)&&r.push(this.getInitialStates(e.childs[t]));return this.mapController.map.getView().getZoom(),{active:!e.hide,collapsed:!parseFloat(e.initial_opened),greyed:e.zoom&&!this.compareZoom(e.zoom),id:e.id,childStates:r,cssClass:e.cssClass}}},{key:"getFeaturesFromStruct",value:function(e){var r=[],t=(this.mapController.map.getView().getZoom(),e.zoom&&!this.compareZoom(e.zoom));if(e.childs&&e.childs.length>0)for(var a in e.childs)e.childs.hasOwnProperty(a)&&(r=r.concat(this.getFeaturesFromStruct(e.childs[a])));return!e.features||t||e.hide||(r=r.concat(e.features)),r}},{key:"getStructureFromLayer",value:function(e,r){var t=this,a=this,o=!1,n=[],s=[],c=!!e.hide;a.mapController.data.layers&&a.mapController.data.layers.length>0&&(c=!a.mapController.data.layers.split(",").find((function(r){return r==e.id}))),e.activeForBaselayers&&"all"!==e.activeForBaselayers&&(c=!e.activeForBaselayers.includes(a.mapController.state.activeBaselayerId||a.mapController.data.default_baselayer));var u=!1,p=-1,b=e.locstyle;e.content&&e.content.length>0&&(n=this.getFeaturesForLayer(e),b=e.locstyle||e.content[0].locationStyle);var m=this.arrLocstyles.findIndex((function(e){return e===b}));if(-1===m&&b&&this.arrLocstyles.push(b),e.async_content&&0!=e.async_content&&!e.excludeFromSingleLayer){var _,w,S="",C=0,R="",E=!1,T=!1,x=e.id;if(e.content&&e.content[0]&&e.content[0].data){var P=e.content[0].data;S=P.url,o=P.popup,_=P.hover_location,w=P.hover_style,R=P.params,C=e.locstyle}e.content&&e.content[0]&&e.content[0].settings&&(E=e.content[0].settings.forceNodes,T=!!e.content[0].settings.showAdditionalGeometries),-1===(m=this.arrLocstyles.findIndex((function(e){return e===C})))&&C&&this.arrLocstyles.push(C),p=this.loaders.length,this.loaders.push({chain:r,url:S,preventLoading:c,forceNodes:E,arrExtents:[],popup:o,showAddGeoms:T,locstyleId:C,hover_location:_,hover_style:w,params:R,layerId:x})}if(e.childs&&e.childs.length>0){for(var I in e.childs)if(e.childs.hasOwnProperty(I)){var j=r+","+s.length,L=this.getStructureFromLayer(e.childs[I],j);L.hide_in_starboard?(s=L.childs?s.concat(L.childs):s,n=L.features?n.concat(L.features):n,this.mapController.filter&&(parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.filterLayerMulti(u):this.mapController.filter.filterLayer(u))):s.push(L)}s.filter((function(e,r){return r===s.findIndex((function(r){return e.id===r.id}))}))}else if(e.split_geojson){var A=e.geojson_attributes.split(",")[0],F=!!e.geojson_zoom;for(var M in n)n.hasOwnProperty(M)&&s.push({features:[n[M]],vectorLayer:!1,zoom:e.zoom,initial_opened:e.initial_opened,locstyle:b,zoomTo:F,activeForBaselayers:e.activeForBaselayers,id:n[M].ol_uid,key:e.key,name:n[M].get(A),hide:c,childs:[],cssClass:e.cssClass});n=[]}if(e.excludeFromSingleLayer){var z=!1,N=new i.Vector;if(e.async_content&&"0"!==e.async_content){var D="table"===e.type||e.content&&e.content[0].settings.boundingBox?d.bbox:d.all;N=new i.Vector({strategy:D});var B=this,G=function(r,t,a){if(e.content&&e.content[0].settings.boundingBox&&(r[0]===1/0||r[0]===-1/0))N.removeLoadedExtent();else if("overpass"===e.type){var o=e.content[0].data;B.performOvp({url:o.url,layerId:e.id,layer:e,vectorSource:N,params:o.params,locstyleId:e.locstyle},{extent:r,resolution:t,projection:a})}else if("table"===e.type)B.performOwnData({layerId:e.id,locstyleId:e.locstyle},{extent:r,resolution:t,projection:a},(function(r){for(var t=[],a=0;a1&&n&&Array.isArray(n)){var l=[0,0];if(n[0])if(n[0].getImage()&&n[0].getImage().getRadius&&"function"==typeof n[0].getImage().getRadius){var c=parseInt(n[0].getImage().getRadius(),10);c&&(l=[-c,c])}else n[0].getImage()&&n[0].getImage().getAnchor&&"function"==typeof n[0].getImage().getAnchor&&(l=n[0].getImage().getAnchor()||[0,0]);var u=k.utils.getRgbaFromHexAndOpacity("4975A8",{unit:"%",value:70});n.push(new v.Style({text:new v.Text({text:"●",font:"60px sans-serif",offsetX:-1*l[0],offsetY:-1*l[1],fill:new v.Fill({color:u})})})),n.push(new v.Style({text:new v.Text({text:o.toString(),offsetX:-1*l[0],offsetY:-1*l[1]+3,fill:new v.Fill({color:"#FFFFFF"})})}))}return n},H){H.data&&H.data.properties&&H.data.properties.projection&&H.data.properties.projCode&&(g.default.defs(H.data.properties.projection,H.data.properties.projCode),(0,f.register)(g.default),K=new y.default({code:H.data.properties.projection}));var W=new O[H.format]({featureProjection:"EPSG:3857",dataProjection:K});if("wfs"===e.type){if(H.locstyleWfs){var V=function(){if(H.locstyleWfs.hasOwnProperty(Z)){var e=H.locstyleWfs[Z].locstyle;-1===t.arrLocstyles.findIndex((function(r){return r===e}))&&e&&t.arrLocstyles.push(e)}};for(var Z in H.locstyleWfs)V()}N=new i.Vector({format:new O.WFS({version:H.data.version,gmlFormat:W}),loader:function(e,r,t,o,n){t.getCode();var s=(0,l.transformExtent)(e,t,"EPSG:4326");s=[s[1],s[0],s[3],s[2]];var i=H.data.url+s.join(",");fetch(i,{headers:{"Content-Type":"application/json"}}).then((function(e){e.json().then((function(e){var r=W.readFeatures(e);for(var t in r)if(r.hasOwnProperty(t)){var n=r[t],s=a.getWfsStyle(n,H);n.set("locstyle",s);var i=n.getId();N.getFeatureById(i)||N.addFeature(n)}o(r)}))})).catch((function(){N.removeLoadedExtent(e),n()}))},strategy:d.bbox}),z=!1,o=!(!H.data||!H.data.popup)&&H.data.popup}else N=new i.Vector({format:W,url:H.data.url}),o=!(!H.data||!H.data.popup)&&H.data.popup}}this.vectorSources.push(N),e.cluster&&(N=new i.Cluster({source:N,geometryFunction:this.geometryFunction,distance:parseInt(e.cluster.distance,10)})),u=new h.Vector({source:N,style:z||this.clusterStyleFunction,zIndex:parseInt(e.zIndex||"0")}),this.vectorLayers.push(u),u.popup=o,a.proxy.hook_locstyles_loaded.push((function(e){u.changed()}));var q=e.zoom&&!this.compareZoom(e.zoom);c||q||this.mapController.map.addLayer(u),n=!1}return e.hideInStarboard?{childs:s,features:n,hide_in_starboard:!0}:{features:n,vectorLayer:u,loader:p,zoom:e.zoom,initial_opened:e.initial_opened,locstyle:b,activeForBaselayers:e.activeForBaselayers,popup:o||e.popup,id:e.id,key:e.key,name:e.name,tags:e.tags,hide:c,childs:s,zoomTo:e.zoomTo,cssClass:e.cssClass}}},{key:"getFeaturesForLayer",value:function(e){var r,t=this,a=[],o=function(){if(e.content.hasOwnProperty(n)){var r=e.content[n],o=r.data;if(o){var s;if(o.properties&&o.properties.projection&&o.properties.projCode&&(g.default.defs(o.properties.projection,o.properties.projCode),(0,f.register)(g.default),new y.default({code:o.properties.projection})),"urlData"===e.content[n].type){if("kml"===e.type)return{v:!1};if("gpx"===e.type)return{v:!1}}else o.properties&&(s=new O[e.content[n].type]({featureProjection:"EPSG:3857",dataProjection:o.properties.projection}));var i=r.locationStyle||e.locstyle,l=t.arrLocstyles.findIndex((function(e){return e===i}));if(-1===l&&i&&t.arrLocstyles.push(i),"GeoJSON"===e.content[n].type){if("FeatureCollection"===o.type){var c=function(){if(o.features.hasOwnProperty(u)){var e=s.readFeature(o.features[u]);e.get("locstyle")?-1===(l=t.arrLocstyles.findIndex((function(r){return r===e.get("locstyle")})))&&e.get("locstyle")&&t.arrLocstyles.push(e.get("locstyle")):e.set("locstyle",i),r.hover_location&&(e.set("hover_style",r.hover_style),e.set("hover_location",r.hover_location)),r.loc_linkurl&&e.set("loc_linkurl",r.loc_linkurl),o.properties&&(e.get("tooltip")||e.set("tooltip",o.properties.tooltip),e.get("label")||e.set("label",o.properties.label),e.get("popup")||e.set("popup",o.properties.popup)),a.push(e)}};for(var u in o.features)c()}else if(o&&o.type){var p=s.readFeature(o);p.set("locstyle",i),p.set("noFilter",e.noRealFilter),r.hover_location&&(p.set("hover_style",r.hover_style),p.set("hover_location",r.hover_location)),o.loc_linkurl&&p.set("loc_linkurl",o.loc_linkurl),a.push(p)}}else s&&fetch(o.url).then((function(e){e.text().then((function(e){var r=(new DOMParser).parseFromString(e,"text/xml"),t=s.readFeature(r.childNodes[0].outerHTML);for(var n in t)if(t.hasOwnProperty(n)){var l=t[n];l.set("locstyle",i),o.hover_location&&(l.set("hover_style",o.hover_style),l.set("hover_location",o.hover_location)),o.loc_linkurl&&l.set("loc_linkurl",o.loc_linkurl),a.push(l)}}))}))}}};for(var n in e.content)if(r=o())return r.v;if("LOCATIONS"===this.proxy.mapData.calc_extent||"CENTERLOCS"===this.proxy.mapData.calc_extent)for(var s in a)if(a.hasOwnProperty(s)){var i=a[s].getGeometry().getExtent();this.extent.maxXi[0]&&(this.extent.minX=i[0]),this.extent.minY>i[1]&&(this.extent.minY=i[1])}return this.objIds.hasOwnProperty(e.id)?[]:(e.split_geojson||(this.objIds[e.id]=a),a)}},{key:"geometryFunction",value:function(e){var r=e.getGeometry();return r instanceof w.Point?r:null}},{key:"performOvp",value:function(e,r){this.controllers[e.layerId]&&(this.controllers[e.layerId].abort(),delete this.controllers[e.layerId]);var t=this;this.controllers[e.layerId]=new AbortController;var a=this.controllers[e.layerId].signal,o=(0,l.transformExtent)(r.extent,r.projection,"EPSG:4326"),n="",s=e.url,i=decodeURIComponent(e.params);if(s){s.indexOf("{key}")>-1&&(s=s.replace("{key}",t.ovpKey));var c=i.indexOf("(bbox)")>=0?/\(bbox\)/g:/\{{bbox\}}/g;s+=s.includes("?")?"&":"?",i&&"<"===i.substr(0,1).trim()?(n=' ',s=(s+="data="+encodeURIComponent(i.replace(c,n))).replace("output=json","output=xml"),fetch(s,{signal:a}).then((function(r){r.text().then((function(r){t.parseOvpData(r,e)})).catch((function(e){console.log(e.message)}))})).catch((function(e){e.code&&20!==e.code&&console.log("Fetch Error :-S",e.message)}))):(n=o[1]+","+o[0]+","+o[3]+","+o[2],s+="data="+encodeURIComponent(i.replace(c,n).replace("out:json","out:xml")),fetch(s,{signal:a}).then((function(r){r.text().then((function(r){t.parseOvpData(r,e)})).catch((function(e){console.log(e.message)}))})).catch((function(e){e.code&&20!==e.code&&console.log("Fetch Error :-S",e.message)})))}}},{key:"parseOvpData",value:function(e,r){var t,a=r.layer,o=a.content[0],n=o.data;if("string"!=typeof e)return!1;var s=e;if(!o.settings.showAdditionalGeometries){for(var l=(new DOMParser).parseFromString(e,"text/xml"),u=l.getElementsByTagName("way"),p=0;p0;)m.removeChild(m.children[0]);s=(new XMLSerializer).serializeToString(l)}var g=new c.default;try{t=g.readFeatures(s,{featureProjection:"EPSG:3857"})}catch(e){console.warn("Can not read feature.")}if(n.popup)for(var f=0;f-1?(this.addFeatures(t,r.chain),this.mapController.setObjLayers(this.arrLayers)):r.vectorSource instanceof i.Cluster?r.vectorSource.getSource().addFeatures(t):r.vectorSource.addFeatures(t)}},{key:"performOwnData",value:function(e,r,t){if(this.controllers[e.layerId]&&(this.controllers[e.layerId].abort(),delete this.controllers[e.layerId]),r.extent[0]===1/0||r.extent[0]===-1/0||r.extent[1]===1/0||r.extent[1]===-1/0||r.extent[2]===1/0||r.extent[2]===-1/0||r.extent[3]===1/0||r.extent[3]===-1/0)return!1;var a=(0,l.transformExtent)(r.extent,r.projection,"EPSG:4326"),o=a[0]+","+a[1]+";"+a[2]+","+a[3],n=this.proxy.api_layercontentdata_url+"/"+e.layerId+"/"+o;this.controllers[e.layerId]=new AbortController;var s=this.controllers[e.layerId].signal;fetch(n,{signal:s}).then((function(e){e.json().then(t).catch((function(e){console.log(e.message)}))})).catch((function(e){e.code&&20!==e.code&&console.log("Fetch Error :-S",e.message)}))}},{key:"performOtherData",value:function(e,r){var t=e.data;e.settings,fetch(t.url).then((function(e){r(e)})).catch((function(){console.log("Tell me why")}))}},{key:"parseOwnData",value:function(e,r){var t=(0,l.transform)([parseFloat(e.geox),parseFloat(e.geoy)],"EPSG:4326","EPSG:3857"),a=new w.Point(t),o=new S.default(a);o.setId(e.id),o.set("noFilter",r.noRealFilter),o.set("hover_location",r.hover_location),o.set("hover_style",r.hover_style);var n=e.popup?e.popup:jQuery.extend({},r.popup);n&&n.content&&n.content.search&&n.content.search("itemId")&&(n.content=n.content.replace("itemId",e.id)),e.label&&o.set("label",e.label),e.tooltip&&o.set("tooltip",e.tooltip),e.loc_linkurl&&o.set("loc_linkurl",e.loc_linkurl),o.set("popup",n),o.set("zoom_onclick",r.zoom_onclick),o.set("tid",e.id);var s=e.locstyle||r.locstyle;return o.set("locstyle",s),this.mapController.filter&&(parseFloat(this.mapController.data.filterHandling)?this.mapController.filter.hideFeatureMulti(o):this.mapController.filter.hideFeature(o)),o}},{key:"addFeatures",value:function(e,r){var t,a,o=this,n=o.vectorCollection.getLength();if(o.vectorCollection.extend(e),t=o.vectorCollection.getArray().slice(n),"string"==typeof r){var s=r.split(","),i=1;for(a=o.arrLayers[s[0]];r[i];)a=a.childs[s[i]],i++}else a=o.arrLayers[r];a.features?a.features=a.features.concat(t):a.vectorLayer&&a.vectorLayer.getSource().getSource().addFeatures(e)}},{key:"handleZoom",value:function(e){var r=e.options.mapController,t=r.state.arrLayerStates,a=r.state.objLayers,o=r.map.getView().getZoom();for(var n in t)t.hasOwnProperty(n)&&a[n]&&(t[n]=this.handleZoomChilds(o,t[n],a[n]));this.mapController&&this.mapController.setLayerStates(t)}},{key:"handleZoomChilds",value:function(e,r,t){for(var a in r.childStates)r.childStates.hasOwnProperty(a)&&(r.childStates[a]=this.handleZoomChilds(e,r.childStates[a],t.childs[a]));var o=t.zoom&&!this.compareZoom(t.zoom);return r.greyed!==o&&(o||t.hide?this.hide(t.loader,t.features||t.vectorLayer):this.show(t.loader,t.features||t.vectorLayer)),r.greyed=o,r}},{key:"compareZoom",value:function(e){var r=this.mapController.map.getView().getZoom();return parseInt(e.min,10)r}},{key:"getWfsStyle",value:function(e,r){var t=r.locstyleWfs;for(var a in t)if(t.hasOwnProperty(a)){var o=t[a],n=e.get(o.key);switch(o.compare){case"==":if(n==o.value)return o.locstyle;break;case">":if(n>o.value)return o.locstyle;break;case"<":if(n{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gLocationStyleController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-locationstyle.js"),l=t("./src/Resources/public/js/c4g-maps-utils.js");r.C4gLocationStyleController=function(){return(0,s.default)((function e(r){(0,n.default)(this,e),this.proxy=r,this.mapController=r.options.mapController,this.arrLocStyles={},this.resizeOnZoom=r.options.mapController.data.resizeLocstyles}),[{key:"loadLocationStyles",value:function(e,r){var t,a,n={},s={},c=this,u=1;if(t=r&&"object"===(0,o.default)(r)?r:{},a=function(e,r){r&&(n[r]=!1,s[r]=!1),jQuery.ajax({dataType:c.proxy.options.mapController.data.jsonp?"jsonp":"json",url:c.proxy.api_locstyle_url,data:{ids:e}}).done((function(e){var a,o,n=!0;if(e.length>0){for(a=0;a100)for(;e.length>0;)a(e.splice(0,100),u),u++;else e.length>0&&a(e)}}])}()},"./src/Resources/public/js/c4g-locationstyle.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gLocationStyle=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-maps-utils.js"),l=t("./node_modules/ol/style.js"),c=t("./node_modules/ol/geom.js"),u=a(t("./node_modules/ol/style/Circle.js")),p=a(t("./node_modules/ol-ext/style/Photo.js"));r.C4gLocationStyle=function(){return(0,s.default)((function e(r,t){(0,n.default)(this,e),this.id=r.id,this.editor=this.getStyleEditorConfig(r),this.name=r.name,this.tooltip=r.tooltip,this.label=r.label,this.minzoom=r.minzoom,this.maxzoom=r.maxzoom,this.fnStyleFunction=r.style_function_js,this.fnStyleFunction&&"string"==typeof this.fnStyleFunction&&(this.fnStyleFunction=this.fnStyleFunction.replace(/ol.Style./gi,"window.olStyle."),this.fnStyleFunction=this.fnStyleFunction.replace(/ol.Geom./gi,"window.olStyle."),window.olStyle||(window.olStyle={Stroke:l.Stroke,Style:l.Style,Icon:l.Icon,Fill:l.Fill,Point:c.Point,CircleStyle:u.default,Circle:c.Circle,Text:l.Text})),this.controller=t,this.locStyleArr=r}),[{key:"getStyleFunction",value:function(){var e,r,t,a,n,s,c,u,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=this,p||(p=this.locStyleArr),a=new l.Stroke({color:i.utils.getRgbaFromHexAndOpacity(p.strokecolor[0],p.strokecolor[1]),width:parseInt(p.strokewidth.value?p.strokewidth.value:2,10)}),n=new l.Fill({color:i.utils.getRgbaFromHexAndOpacity(p.fillcolor[0],p.fillcolor[1])}),t=this.createImageStyle(p,a,n),r=function(r,b,d){var h,m,g=e.controller.mapController.map.getView().getZoom();if(parseInt(e.locStyleArr.maxzoom,10)&&parseInt(e.locStyleArr.maxzoom,10)g)return null;if(d)return p.id;r||(r=this),h=[],m=r&&"function"==typeof r.get&&r.get("label")?r.get("label"):!!p.label&&p.label;var f=e.controller.mapController.data.default_label_color,y=e.getScaleFactor(p);if(m){p.label_outl_color&&p.label_outl_width.value&&(c=new l.Stroke({color:i.utils.getRgbaFromHexAndOpacity(p.label_outl_color||f,{unit:"%",value:100}),width:parseInt(p.label_outl_width.value,10)}),"1"===p.label_outl_box&&(u=new l.Fill({color:i.utils.getRgbaFromHexAndOpacity(p.label_outl_color||f,{unit:"%",value:100})}))),p.label_offset||(p.label_offset=[0,0,"px"]);var _=p.font_size&&"object"===(0,o.default)(p.font_size)&&null!==p.font_size?p.font_size.value:p.font_size?p.font_size:"13",k={text:m,font:(p.font_weight||"normal")+" "+(p.font_style||"normal")+" "+_+"px "+(p.font_family||"sans-serif"),offsetX:parseInt(p.label_offset[0]||0,10),offsetY:parseInt(p.label_offset[1]||0,10),textAlign:p.label_align_hor,textBaseline:p.label_align_ver,scale:y,fill:new l.Fill({color:i.utils.getRgbaFromHexAndOpacity(p.font_color[0]||f,p.font_color[1])}),stroke:c};"1"===p.label_outl_box&&(k.backgroundFill=u,k.backgroundStroke=c),s=new l.Text(k)}t&&0!==y&&t.setScale&&t.setScale(y);var v,w=!1,S=parseInt(e.locStyleArr.label_minzoom,10),C=parseInt(e.locStyleArr.label_maxzoom,10);if(g>=S&&(C>=g||0===C)&&(w=!0),m&&w?(r&&r.get&&"function"==typeof r.get&&r.get("zIndex")&&(v=r.get("zIndex")),h.push(new l.Style({image:t,text:s,stroke:a,fill:n,zIndex:v}))):h.push(new l.Style({image:t,stroke:a,fill:n})),p.line_arrows&&r&&"function"==typeof r.getGeometry&&"Point"!==r.getGeometry().getType()&&"function"==typeof r.getGeometry().forEachSegment){var R=e.createLineArrowStyles(p,r,a,n);h=h.concat(R)}return h},this.fnStyleFunction&&(r=Function("feature","data","map",this.fnStyleFunction)),r}},{key:"getScaleFactor",value:function(e){var r,t,a,o,n=0,s=this.controller.mapController.map.getView().getZoom(),i="cust_icon_svgphoto".includes(e.styletype)?parseFloat(e.icon_scale):1;return e.icon_resize_zoom?(r=parseInt(e.icon_resize_src_zoom,10),t=parseFloat(e.icon_resize_scale_factor),a=parseFloat(e.icon_resize_min_scale),o=parseFloat(e.icon_resize_max_scale)):this.controller.resizeOnZoom&&(r=parseInt(this.controller.resizeOnZoom.srcZoom,10),t=parseFloat(this.controller.resizeOnZoom.scaleFactor),a=parseFloat(this.controller.resizeOnZoom.minScale),o=parseFloat(this.controller.resizeOnZoom.maxScale)),s>r?(n=i+t*(s-r))>o&&(n=o):s=0&&o.controller.mapController.map.getView().getZoom()>=p)&&(n.push(new l.Style({geometry:new c.Point(u),text:new l.Text({text:"ᐳ",font:i+" sans-serif",offsetX:0,offsetY:1,fill:a,stroke:t,textAlign:"right",rotateWithView:!0,rotation:-Math.atan2(u[1]-r[1],u[0]-r[0])})})),e.line_arrows_back&&n.push(new l.Style({geometry:new c.Point(r),text:new l.Text({text:"ᐳ",font:i+" sans-serif",offsetX:0,offsetY:-1,fill:a,stroke:t,textAlign:"right",rotateWithView:!0,rotation:-Math.atan2(r[1]-u[1],r[0]-u[0])})})))})),n}},{key:"getStyleEditorConfig",value:function(e){var r;return(r={}).collect=e.editor_collect||void 0,r.iconSrc=e.editor_icon||void 0,r.vars=e.editor_vars||void 0,r.sort=e.editor_sort||!1,r.sort&&(r.sort=parseInt(r.sort,10)||!1),r}}])}()},"./src/Resources/public/js/c4g-maps-config.js":(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.config=r.OSM_REL_ATTRIBUTION=void 0;var a=t("./node_modules/ol/format.js"),o=t("./node_modules/ol/tilegrid.js"),n=r.OSM_REL_ATTRIBUTION='© OpenStreetMap contributors.';r.config={osm:{CycleMap:{attributions:'Style by OpenCycleMap '+n,crossOrigin:"anonymous",minZoom:0,maxZoom:19,url:"https://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png"},German:{attributions:'Style by openstreetmap.de '+n,crossOrigin:"anonymous",minZoom:0,maxZoom:19,url:"https://{a-c}.tile.openstreetmap.de/{z}/{x}/{y}.png"},LandscapeMap:{attributions:'Style by OpenCycleMap '+n,crossOrigin:"anonymous",minZoom:0,maxZoom:19,url:"https://{a-c}.tile.opencyclemap.org/landscape/{z}/{x}/{y}.png"},Mapnik:{attributions:n,crossOrigin:"anonymous"},NONE:""},stadiaMaps:{alidade_smooth:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"alidade_smooth",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},alidade_smooth_dark:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"alidade_smooth_dark",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},alidade_satellite:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"alidade_satellite",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},outdoors:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"outdoors",minZoom:0,maxZoom:20,retina:!0,crossOrigin:"anonymous"},stamen_toner:{attributions:['Stadia Maps ','Stamen Design ','OpenMapTiles ','OpenStreetMap '],layer:"stamen_toner",minZoom:0,maxZoom:16,retina:!0,crossOrigin:"anonymous"},stamen_terrain:{attributions:['Stadia Maps ','Stamen Design ','OpenMapTiles ','OpenStreetMap '],layer:"stamen_terrain",minZoom:0,retina:!0,crossOrigin:"anonymous"},stamen_watercolor:{attributions:['Stadia Maps ','Stamen Design ','OpenMapTiles ','OpenStreetMap '],layer:"stamen_watercolor",minZoom:0,maxZoom:16,crossOrigin:"anonymous"},osm_bright:{attributions:['Stadia Maps ','OpenMapTiles ','OpenStreetMap '],layer:"osm_bright",minZoom:0,maxZoom:20,tilePixelRatio:2,crossOrigin:"anonymous"},NONE:""},mapquest:{MapQuestOpen:{layer:"osm"},MapQuestHyb:{layer:"hyb"},MapQuestSat:{layer:"sat"},NONE:""},mapbox:{Mapbox:{tileSize:[512,512],attributions:'© Mapbox '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"},MapboxClassic:{attributions:'© Mapbox '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"}},otm:{attributions:"Kartendaten: "+n+', SRTN | Kartendarstellung © OpenTopoMap (CC-BY-SA )'},mapz:{attributions:'© 2021 mapz.com '+n,minZoom:0,maxZoom:22,tilePixelRatio:2},klokan:{OpenMapTiles:{format:new a.MVT,tileGrid:(0,o.createXYZ)({tileSize:512,maxZoom:22}),tilePixelRatio:8,attributions:'© OpenMapTiles '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"},TileHosting:{format:new a.MVT,tileGrid:(0,o.createXYZ)({tileSize:512,maxZoom:22}),tilePixelRatio:8,attributions:'© TileHosting '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"}},here:{HERE:{tileSize:[512,512],attributions:"Map Tiles © "+(new Date).getFullYear()+' HERE '+n,minZoom:0,maxZoom:22,crossOrigin:"anonymous"}},thunderforest:{Thunderforest:{tileSize:[512,512],attributions:'Map Tiles © Thunderforest '+n,minZoom:0,maxZoom:19,crossOrigin:"anonymous"}}}},"./src/Resources/public/js/c4g-maps-constant.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.cssConstants=void 0,r.cssConstants={OPEN:"c4g-open",CLOSE:"c4g-close",CLOSEABLE:"c4g-closeable",ENABLED:"c4g-enabled",DISABLED:"c4g-disabled",HIDE:"c4g-hide",ICON:"c4g-icon",CONTROL:"c4g-control",COPY:"c4g-copy",REFRESH:"c4g-refresh",ACTIVE:"c4g-active",INACTIVE:"c4g-inactive",LOADING:"c4g-loading",ANIMATION_SPIN:"c4g-animation-spin",LARGE:"c4g-large",SMALL:"c4g-small",HORIZONTAL:"c4g-horizontal",VERTICAL:"c4g-vertical",ATTRIBUTION_LOGO:"c4g-attribution-logo",CONTROL_CONTAINER_TL:"c4g-control-container-top-left",CONTROL_CONTAINER_TR:"c4g-control-container-top-right",CONTROL_CONTAINER_BL:"c4g-control-container-bottom-left",CONTROL_CONTAINER_BL_SUB:"c4g-control-container-bottom-left-sub",CONTROL_CONTAINER_BR:"c4g-control-container-bottom-right",GEOSEARCH:"c4g-geosearch",GEOSEARCH_WRAPPER:"c4g-geosearch-wrapper",GEOSEARCH_TRIGGER:"c4g-geosearch-trigger",GEOSEARCH_START:"c4g-geosearch-start",GRATICULE:"c4g-graticule",MEASURETOOLS_VIEW_TRIGGER_SELECT:"c4g-measuretools-view-trigger-select",MEASURETOOLS_VIEW_TRIGGER_DRAW_LINESTRING:"c4g-measuretools-view-trigger-draw-line",MEASURETOOLS_VIEW_TRIGGER_DRAW_POLYGON:"c4g-measuretools-view-trigger-draw-polygon",MEASURETOOLS_VIEW_TRIGGER_DRAW_CIRCLE:"c4g-measuretools-view-trigger-draw-circle",MEASURETOOLS_VIEW_TRIGGER_DRAW_FREEHAND:"c4g-measuretools-view-trigger-draw-freehand",PRINT:"c4g-print",INFOPAGE_VIEW_TRIGGER:"c4g-infopage-view-trigger",INFOPAGE:"c4g-infopage",ADDITIONALPANEL_VIEW_TRIGGER:"c4g-additionalpanel-view-trigger",ADDITIONALPANEL:"c4g-additionalpanel",OVERVIEWMAP:"c4g-overviewmap",OVERVIEWMAP_WRAPPER:"c4g-overviewmap-wrapper",PERMALINK:"c4g-permalink",PERMALINK_POPUP:"c4g-permalink-popup",POPUP_CLOSE:"c4g-popup-close",POPUP_ROUTE_WRAPPER:"c4g-popup-route-wrapper",POPUP_ROUTE_FROM:"c4g-popup-route-from",POPUP_ROUTE_TO:"c4g-popup-route-to",PORTSIDE:"c4g-portside",PORTSIDE_CONTAINER:"c4g-portside-container",PORTSIDE_CONTROL:"c4g-portside-control",PORTSIDE_WRAPPER:"c4g-portside-wrapper",PORTSIDE_TITLEBAR:"c4g-portside-titlebar",PORTSIDE_TOP_TOOLBAR:"c4g-portside-top-toolbar",PORTSIDE_CONTENT_CONTAINER:"c4g-portside-content-container",PORTSIDE_BOTTOM_TOOLBAR:"c4g-portside-bottom-toolbar",PORTSIDE_STATUSBAR:"c4g-portside-statusbar",PORTSIDE_VIEWTRIGGERBAR:"c4g-portside-viewtriggerbar",PORTSIDE_HEADLINE:"c4g-portside-headline",PORTSIDE_BUTTONBAR:"c4g-portside-buttonbar",PORTSIDE_BUTTON:"c4g-portside-button",PORTSIDE_HIDE:"c4g-portside-hide",PORTSIDE_CLOSE:"c4g-portside-close",SPINNER:"c4g-spinner",STARBOARD:"c4g-starboard",STARBOARD_CONTAINER:"c4g-starboard-container",STARBOARD_CONTROL:"c4g-starboard-control",STARBOARD_WRAPPER:"c4g-starboard-wrapper",STARBOARD_TITLEBAR:"c4g-starboard-titlebar",STARBOARD_CONTENT_CONTAINER:"c4g-starboard-content-container",STARBOARD_BOTTOM_TOOLBAR:"c4g-starboard-bottom-toolbar",STARBOARD_STATUSBAR:"c4g-starboard-statusbar",STARBOARD_VIEWTRIGGERBAR:"c4g-starboard-viewtriggerbar",STARBOARD_HEADLINE:"c4g-starboard-headline",STARBOARD_BUTTONBAR:"c4g-starboard-buttonbar",STARBOARD_BUTTON:"c4g-starboard-button",STARBOARD_VIEW_TRIGGER_BASELAYERSWITCHER:"c4g-starboard-view-trigger-baselayerswitcher",STARBOARD_VIEW_TRIGGER_LAYERSWITCHER:"c4g-starboard-view-trigger-layerswitcher",STARBOARD_CLOSE:"c4g-starboard-close",STARBOARD_CONTENT_BASELAYERSWITCHER:"c4g-content-baselayerswitcher",STARBOARD_BASELAYERTREE:"c4g-baselayertree",STARBOARD_LAYERTREE:"c4g-layertree",STARBOARD_CONTENT_LAYERSWITCHER:"c4g-content-layerswitcher",STARBOARD_LOCSTYLE:"c4g-starboard-locstyle",STARBOARD_LOCSTYLE_POINT:"c4g-starboard-locstyle-point",STARBOARD_LOCSTYLE_SQUARE:"c4g-starboard-locstyle-square",STARBOARD_LOCSTYLE_STAR:"c4g-starboard-locstyle-star",STARBOARD_LOCSTYLE_X:"c4g-starboard-locstyle-x",STARBOARD_LOCSTYLE_CROSS:"c4g-starboard-locstyle-cross",STARBOARD_LOCSTYLE_TRIANGLE:"c4g-starboard-locstyle-triangle",TOOLTIP_POPUP:"c4g-tooltip-popup",ZOOM_LEVEL:"c4g-zoom-level",OL_CONTROL:"ol-control",OL_UNSELECTABLE:"ol-unselectable",OL_OVERLAYCONTAINER:"ol-overlaycontainer",OL_OVERLAYCONTAINER_SE:"ol-overlaycontainer-stopevent",OL_VIEWPORT:"ol-viewport",OL_ZOOM:"ol-zoom",OL_ZOOM_IN:"ol-zoom-in",OL_ZOOM_EXT:"ol-zoom-extent",OL_ZOOM_HOME:"ol-zoom-home",OL_ZOOM_POS:"ol-zoom-position",OL_ZOOM_WITH_EXT:"ol-zoom-with-extent",OL_ZOOM_WITH_HOME:"ol-zoom-with-home",OL_ZOOM_WITH_POS:"ol-zoom-with-position",OL_ZOOM_SLIDER:"ol-zoom-slider",OL_ZOOM_WITH_SLIDER:"ol-zoom-with-slider",NONE:""}},"./src/Resources/public/js/c4g-maps-control-zoomlevel.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.Zoomlevel=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/assertThisInitialized.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=t("./src/Resources/public/js/c4g-maps-constant.js"),p=t("./node_modules/ol/control.js");function b(e,r,t){return r=(0,l.default)(r),(0,i.default)(e,d()?Reflect.construct(r,t||[],(0,l.default)(e).constructor):r.apply(e,t))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}r.Zoomlevel=function(e){function r(e){var t,a,o;if((0,n.default)(this,r),t=b(this,r,[e]),(0,s.default)(t),!e||!e.mapController)return console.warn("Zoomlevel control needs to know the map."),(0,i.default)(t,!1);var l=(e=jQuery.extend({className:u.cssConstants.ZOOM_LEVEL,undefinedHTML:""},e)).mapController.map.getView();return(a=document.createElement("div")).className=e.className,a.innerHTML=parseInt(l.getZoom()),o=function(){a.innerHTML=parseInt(l.getZoom())},e.mapController.map.getView().on("change:resolution",(function(){o()})),t.view=l,b(this,r,[{element:a,target:e.target}])}return(0,c.default)(r,e),(0,o.default)(r)}(p.Control)},"./src/Resources/public/js/c4g-maps-controls.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.MapsControls=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-constant.js"),i=t("./src/Resources/public/js/c4g-maps-control-zoomlevel.js"),l=t("./src/Resources/public/js/c4g-maps-interaction-geopicker.js"),c=t("./src/Resources/public/js/c4g-maps-interaction-geopicker-geojson.js"),u=t("./node_modules/ol/proj.js"),p=t("./node_modules/ol/control.js"),b=t("./node_modules/ol/coordinate.js"),d=t("./src/Resources/public/js/c4g-maps-i18n.js"),h={};r.MapsControls=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.mapController=r,this.controls={},this.leftSlideElements=[],this.rightSlideElements=[],h=(0,d.getLanguage)(r.data)}),[{key:"init",value:function(){var e=this.mapController.map,r=(this.mapController.proxy,this.mapController.data),t=document.createElement("div");t.className=s.cssConstants.CONTROL_CONTAINER_TL+" "+s.cssConstants.OL_UNSELECTABLE,this.mapController.$overlaycontainer_stopevent.prepend(t),this.controlContainerTopLeft=t;var a=document.createElement("div");a.className=s.cssConstants.CONTROL_CONTAINER_BL+" "+s.cssConstants.OL_UNSELECTABLE,jQuery(t).after(a),this.leftSlideElements.push(a);var o=document.createElement("div");o.className=s.cssConstants.CONTROL_CONTAINER_TR+" "+s.cssConstants.OL_UNSELECTABLE,jQuery(a).after(o),this.rightSlideElements.push(o);var n=document.createElement("div");n.className=s.cssConstants.CONTROL_CONTAINER_BR+" "+s.cssConstants.OL_UNSELECTABLE,jQuery(o).after(n),this.rightSlideElements.push(n);var d,m=[{name:"layerswitcher",sort:r.layerswitcher.enable},{name:"baselayerswitcher",sort:r.baselayerswitcher.enable},{name:"geosearch",sort:r.geosearch.enable},{name:"legend",sort:r.legend.enable},{name:"measure",sort:r.measuretools.enable},{name:"permalink",sort:r.permalink.enable}];m.sort((d="sort",function(e,r){return e[d]>r[d]?1:r[d]>e[d]?-1:0}));for(var g=0;g{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.GeoPickerGeoJSON=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),l=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),c=t("./node_modules/ol/interaction.js"),u=(t("./node_modules/ol/index.js"),t("./node_modules/ol/geom.js"),t("./node_modules/ol/style.js"),t("./node_modules/ol/layer.js")),p=t("./node_modules/ol/format.js"),b=t("./node_modules/ol/source.js");function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}t("./node_modules/ol/proj.js"),r.GeoPickerGeoJSON=function(e){function r(e){var t;(0,n.default)(this,r);var a,o,l,c=e.mapContainer.data,h=new b.Vector({}),m=new u.Vector({source:h});if(e.mapContainer.map.addLayer(m),a=this,o=r,l=[{type:c.geopicker.type,freehand:!0,source:h}],o=(0,i.default)(o),(t=(0,s.default)(a,d()?Reflect.construct(o,l||[],(0,i.default)(a).constructor):o.apply(a,l))).vectorSource=h,t.$fieldGeoJSON=jQuery(c.geopicker.input_geojson),t.$fieldGeoJSON.val())try{var g=new p.GeoJSON({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}).readFeature(t.$fieldGeoJSON.val());t.vectorSource.addFeature(g)}catch(l){console.log(l)}return t.on("drawstart",(function(e){t.vectorSource.clear()})),t.on("drawend",(function(e){var r=new p.GeoJSON({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}).writeFeature(e.feature);t.$fieldGeoJSON.val(r)})),t}return(0,l.default)(r,e),(0,o.default)(r)}(c.Draw)},"./src/Resources/public/js/c4g-maps-interaction-geopicker.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.GeoPicker=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),l=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),c=t("./node_modules/ol/interaction.js"),u=t("./node_modules/ol/index.js"),p=t("./node_modules/ol/geom.js"),b=t("./node_modules/ol/style.js"),d=t("./node_modules/ol/layer.js"),h=t("./node_modules/ol/source.js"),m=t("./node_modules/ol/proj.js"),g=t("./node_modules/ol/extent.js");function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}r.GeoPicker=function(e){function r(e){var t,a,n,l,c,b,y,_,k,v,w,S;return(0,o.default)(this,r),v=this,w=r,S=[{handleEvent:e.handleEvent}],w=(0,i.default)(w),(t=(0,s.default)(v,f()?Reflect.construct(w,S||[],(0,i.default)(v).constructor):w.apply(v,S))).options=e||{},t.options.mapContainer&&t.options.mapContainer.data?(a=t.options.mapContainer.data,n=t.options.mapContainer,t.$fieldGeoX=jQuery(a.geopicker.input_geo_x),t.$fieldGeoY=jQuery(a.geopicker.input_geo_y),t.opticLayerSource=new h.Vector({}),t.opticLayerVector=new d.Vector({source:t.opticLayerSource,style:t.geoPickerStyleFunction}),t.opticLayerFeature=null,t.$fieldGeoX.val()&&t.$fieldGeoY.val()?(l=t.$fieldGeoY.val(),c=t.$fieldGeoX.val(),a.geopicker.anonymous&&(t.$fieldGeoY.remove(),t.$fieldGeoX.remove(),b=l.indexOf("."),y=c.indexOf("."),l=l.replace(/\D/g,""),c=c.replace(/\D/g,""),_=Math.round(9999999998*Math.random()+1),k=Math.round(9999999998*Math.random()+1),l=_>4999999999?parseInt(l)-_:parseInt(l)+_,c=k<5e9?parseInt(c)-k:parseInt(c)+k,c+="",l=(l+="").substr(0,b)+"."+l.substr(b,l.length-b),c=c.substr(0,y)+"."+c.substr(y,c.length-y)),t.opticLayerFeature=new u.Feature({geometry:new p.Point((0,m.fromLonLat)([parseFloat(c),parseFloat(l)])),pickerColor:[0,180,100,1],anonymous:a.geopicker.anonymous}),t.opticLayerSource.addFeature(t.opticLayerFeature),(0,g.isEmpty)(t.opticLayerSource.getExtent())||n.map.getView().fit(t.opticLayerSource.getExtent(),n.map.getSize()),n.map.getView().setZoom(15)):a.geoLocation&&"function"==typeof a.geoLocation.setTracking&&a.geoLocation.setTracking(!0),n.map.addLayer(t.opticLayerVector),t):(console.warn('The GeoPicker needs a "mapContainer" in order to work.'),(0,s.default)(t,!1))}return(0,l.default)(r,e),(0,n.default)(r,[{key:"geoPickerStyleFunction",value:function(e,r,t){var a,o,n;return t?-1:(o=[255,255,255,1],a=e&&"function"==typeof e.get&&e.get("pickerColor")?e.get("pickerColor"):[200,0,0,.7],n=[],e&&"function"==typeof e.get&&!e.get("anonymous")&&(n.push(new b.Style({image:new b.Circle({radius:2,fill:new b.Fill({color:a}),stroke:new b.Stroke({color:o,width:2})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:20,stroke:new b.Stroke({color:o,width:4})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:20,stroke:new b.Stroke({color:a,width:2})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:40,stroke:new b.Stroke({color:o,width:4})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:40,stroke:new b.Stroke({color:a,width:2})}),zIndex:1/0}))),n.push(new b.Style({image:new b.Circle({radius:60,stroke:new b.Stroke({color:o,width:4})}),zIndex:1/0})),n.push(new b.Style({image:new b.Circle({radius:60,stroke:new b.Stroke({color:a,width:2})}),zIndex:1/0})),n)}},{key:"handleEvent",value:function(e){return!("singleclick"===e.type&&!this.options.disableClickEvent&&!this.options.mapContainer.data.geopicker.disabled&&this.pick(e.coordinate))}},{key:"pick",value:function(e){var r;return r=(0,m.toLonLat)(e),this.opticLayerFeature=new u.Feature({geometry:new p.Point(e)}),this.opticLayerSource.clear(),this.opticLayerSource.addFeature(this.opticLayerFeature),this.$fieldGeoX.val(r[0]),this.$fieldGeoY.val(r[1]),this.$fieldGeoX.change(),this.$fieldGeoY.change(),!0}}])}(c.Interaction)},"./src/Resources/public/js/c4g-maps-misc-maphover.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.MapHover=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-maps-misc-tooltippopup.js"),l=t("./src/Resources/public/js/c4g-maps-utils.js"),c=t("./node_modules/ol/Observable.js");t("./src/Resources/public/js/c4g-maps-constant.js"),r.MapHover=function(){return(0,s.default)((function e(r){if((0,n.default)(this,e),this.options=r||{},this.options=jQuery.extend({activate:!0},this.options),!this.options.mapController)return console.warn("MapHover needs a mapController"),!1;this.listenerKey=!1,this.map=this.options.mapController.map,this.lastFeatureStyle=null,this.lastHoveredFeature=null,this.hoverTooltip=new i.TooltipPopUp({map:this.map,offset:[10,10],orientation:this.options.mapController.data.tooltipOrientation||"bottom-left",horizontal:!0,closeable:!1}),this.hoverTooltip.hide(),this.options.activate&&this.activate()}),[{key:"activate",value:function(){this.listenerKey||(this.listenerKey=this.map.on("pointermove",this.getHoverFunction(),this))}},{key:"deactivate",value:function(){this.listenerKey&&((0,c.unByKey)(this.listenerKey),this.listenerKey=!1)}},{key:"isActive",value:function(){return!!this.listenerKey}},{key:"getHoverFunction",value:function(){var e=this;return function(r){var t,a,n,s,i,c,u,p=e.options.mapController.data,b=e.options.mapController.proxy;if(a=!1,t=e.map.forEachFeatureAtPixel(r.pixel,(function(e,r){return{feature:e,layer:r}})),e.map.getView().getResolution(),!t)return e.hoverTooltip.hide(),u=document.querySelector(".ol-viewport"),jQuery(u).css("cursor","default"),"1"===p.hover_popups&&"1"!=p.hover_popups_stay&&e.options.mapController.proxy.popupController.removePopup(),e.lastHoveredFeature&&e.lastFeatureStyle&&(e.lastHoveredFeature.setStyle(!1),e.lastHoveredFeature=null),!1;if(u=document.querySelector(".ol-viewport"),t.feature.get("noCursor")||jQuery(u).css("cursor","pointer"),t.feature&&"function"==typeof t.feature.get&&t.feature.get("features")&&(t.feature.get("features")[1]?a=!0:t.feature=t.feature.get("features")[0]),t.feature.get("hover_location")||e.lastHoveredFeature&&e.lastHoveredFeature.get("hover_location")){if(e.lastHoveredFeature&&t.feature===e.lastHoveredFeature)return!1;if(e.lastFeatureStyle&&e.lastHoveredFeature&&t.feature!==e.lastHoveredFeature&&(e.lastFeatureStyle?e.lastHoveredFeature.setStyle(e.lastFeatureStyle):e.lastLayerStyle&&e.lastHoveredFeature.setStyle(e.lastLayerStyle)),t.feature&&(0,o.default)(t.feature.getStyleFunction)&&"function"==typeof t.feature.getStyleFunction&&"function"==typeof t.feature.getStyleFunction()){if(e.lastHoveredFeature=t.feature,(e.lastFeatureStyle=t.feature.getStyle())||(e.lastLayerStyle=t.layer.getStyle(),e.lastFeatureStyle=e.lastLayerStyle(e.lastHoveredFeature)),t.feature.get("hover_style")&&b.locationStyleController.arrLocStyles[t.feature.get("hover_style")])if(b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)t.feature.setStyle(Function("feature","data","map",b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)(t.feature));else{var d=b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style(t.feature);t.feature.setStyle(d)}}else if(t.layer&&(0,o.default)(t.layer.getStyleFunction)&&"function"==typeof t.layer.getStyleFunction&&"function"==typeof t.layer.getStyleFunction()&&(t.feature?e.lastHoveredFeature=t.feature:(e.lastHoveredFeature=t.layer.getSource().getFeatures()[0],e.lastHoveredFeature=e.lastHoveredFeature.get("features")[0]),e.lastLayerStyle=t.layer.getStyle(),e.lastFeatureStyle=e.lastLayerStyle(e.lastHoveredFeature),t.feature.get("hover_style"))){if(!b.locationStyleController.arrLocStyles[t.feature.get("hover_style")]){var h=[];return h.push(t.feature.get("hover_style")),b.locationStyleController.loadLocationStyles(h),e.lastHoveredFeature=null,null}if(b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)t.feature.setStyle(Function("feature","data","map",b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].fnStyleFunction)(t.feature));else{b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style||(b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style=b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].getStyleFunction());var m=b.locationStyleController.arrLocStyles[t.feature.get("hover_style")].style(t.feature);t.feature.setStyle(m)}}}if(t&&t.feature&&t.feature.get("styleUrl"))return!1;if(t&&t.layer&&"VECTOR_TILE"===t.layer.type)return!1;if(n=!1,!a&&t.feature&&"function"==typeof t.feature.get&&(t.feature.get("tooltip")||t.feature.get("graphicTitle"))?(n=t.feature.get("tooltip"))?"object"===(0,o.default)(n)&&n.element&&n.element.childNodes[1]&&(n=n.element.childNodes[1].innerHTML):n=t.feature.get("graphicTitle"):t.feature&&(0,o.default)(t.feature.getStyleFunction)&&t.feature.get("locstyle")&&b.locationStyleController.arrLocStyles&&b.locationStyleController.arrLocStyles[t.feature.get("locstyle")]&&b.locationStyleController.arrLocStyles[t.feature.get("locstyle")].tooltip?n=b.locationStyleController.arrLocStyles[t.feature.get("locstyle")].tooltip:t.layer&&(0,o.default)(t.layer.getStyleFunction)&&"function"==typeof t.layer.getStyleFunction&&"function"==typeof t.layer.getStyleFunction()&&b.locationStyleController.arrLocStyles&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()()]&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()()].tooltip?n=b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()()].tooltip:t.layer&&"function"==typeof t.layer.getStyleFunction&&"function"==typeof t.layer.getStyleFunction()&&b.locationStyleController.arrLocStyles&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()(null,null,1)]&&b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()(null,null,1)].tooltip?n=b.locationStyleController.arrLocStyles[t.layer.getStyleFunction()(null,null,1)].tooltip:t.layer&&t.layer.tooltip&&(n=t.layer.tooltip),a&&t.feature.get("features"))if((i=t.feature.get("features"))[0].get("tooltip")&&i[0].get("tooltip_length")){n=i[0].get("tooltip"),c=parseInt(i[0].get("tooltip_length"));for(var g=1;gc+3&&(n=n.slice(0,c))&&(n+="...")}else if(t.layer.tooltip&&t.layer.tooltip_length){for(s=n,n="",c=parseInt(t.layer.tooltip_length),g=0;gc+3&&(n=n.slice(0,c))&&(n+="...")}if(n?(n=l.utils.decodeGeoJsonProperty(n),t.feature.get("features"),(n=l.utils.replaceAllPlaceholders(n,t.feature,t.layer,p.lang)).trim()?(e.hoverTooltip.setPosition(r.coordinate),e.hoverTooltip.setContent(n),e.hoverTooltip.show()):e.hoverTooltip.hide()):e.hoverTooltip.hide(),"1"===p.hover_popups&&!a&&t.feature){if(t.feature.get("popup"))t.feature.get("popup");else{if(t.feature.get("loc_linkurl"))return;if(!t.layer||!t.layer.popup)return;t.layer.popup}var y=t.feature.getGeometry().getCoordinates();if(!y||y&&y[0]&&y[0].length){var _=t.feature.getGeometry().getExtent();y=e.map.getCoordinateFromPixel(r.pixel),y=[(_[0]+_[2])/2,(_[1]+_[3])/2]}e.options.mapController.proxy.handlePopup(t.feature,t.layer)}}}},{key:"changeFeatureStyles",value:function(){}}])}()},"./src/Resources/public/js/c4g-maps-misc-spinner.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.Spinner=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-constant.js");r.Spinner=function(){return(0,n.default)((function e(r){var t,a;(0,o.default)(this,e),t=r||{},(t=jQuery.extend({className:"",target:"."+s.cssConstants.OL_VIEWPORT},t)).className&&(t.className=" "+t.className),this.element=document.createElement("div"),this.element.className=s.cssConstants.SPINNER+t.className+" "+s.cssConstants.HIDE,jQuery(t.target).append(this.element),(a=document.createElement("span")).className=s.cssConstants.ICON+" "+s.cssConstants.ANIMATION_SPIN,this.element.appendChild(a),this.additionalActivationCounter=0}),[{key:"show",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)?jQuery(this.element).removeClass(s.cssConstants.HIDE):this.additionalActivationCounter+=1}},{key:"hide",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)||(0===this.additionalActivationCounter?jQuery(this.element).addClass(s.cssConstants.HIDE):this.additionalActivationCounter-=1)}}])}()},"./src/Resources/public/js/c4g-maps-misc-tooltippopup.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.TooltipPopUp=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-constant.js"),i=t("./node_modules/ol/index.js");r.TooltipPopUp=function(){return(0,n.default)((function e(r){var t,a,n;(0,o.default)(this,e),t=this,this.options=r||{},this.options=jQuery.extend({horizontal:!1,closeable:!1,offset:[1,-1],position:[0,0]},this.options),a="",this.options.className&&(a=" "+this.options.className),this.options.horizontal&&(a+=" "+s.cssConstants.HORIZONTAL),this.options.closeable&&(a+=" "+s.cssConstants.CLOSEABLE),this.element=document.createElement("div"),this.element.className=s.cssConstants.TOOLTIP_POPUP+a,this.options.closeable&&((n=document.createElement("button")).className=s.cssConstants.ICON+" "+s.cssConstants.POPUP_CLOSE,this.element.appendChild(n),jQuery(n).click((function(){t.close()}))),this.contentContainer=document.createElement("div"),this.element.appendChild(this.contentContainer),this.overlay=new i.Overlay({element:this.element,insertFirst:!1,offset:this.options.offset,positioning:this.options.orientation}),this.options.map&&this.options.map.addOverlay(this.overlay),this.options.position&&this.overlay.setPosition(this.options.position)}),[{key:"close",value:function(){"function"==typeof this.options.closeFunction&&this.options.closeFunction(),this.options.map&&this.options.map.removeOverlay(this.overlay)}},{key:"show",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)&&jQuery(this.element).removeClass(s.cssConstants.HIDE)}},{key:"hide",value:function(){jQuery(this.element).hasClass(s.cssConstants.HIDE)||jQuery(this.element).addClass(s.cssConstants.HIDE)}},{key:"getContent",value:function(){return this.contentContainer.innerHTML}},{key:"getPosition",value:function(){return this.overlay.getPosition()}},{key:"setContent",value:function(e){this.contentContainer.innerHTML=e}},{key:"setPosition",value:function(e){this.overlay.setPosition(e)}}])}()},"./src/Resources/public/js/c4g-maps-popup-info-de.js":(e,r)=>{"use strict";function t(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function a(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))}function o(e){var r=t(e);return"yes"===r||"Yes"===r?"Ja":"no"===r?"Nein":"No"===r?"nein":"limited"===r?"Eingeschränkt":"designated"===r?"Ja":"wood"===r?"Holz":"metal"===r?"Metall":"concrete"===r?"Beton":"plastic"===r?"Plastik":"stone"===r?"Stein":"steel"===r?"Stahl":"brick"===r?"Ziegel":"reinforced_concrete"===r?"Stahlbeton":"masonry"===r?"Mauerwerk":e}function n(e,r){var t="",a="32px";if(e.name||e["piste:name"]||e["xmas:name"]||e["xmas:location"]){if(e.name)var o=e.name;e["piste:name"]&&(o=e["piste:name"]),e["xmas:name"]&&(o=e["xmas:name"]),e["xmas:location"]&&(o=e["xmas:location"]),t+=o=r?' ":'"}else r&&(t+=' ');return t+=function(e){var r="";if("doctors"!==e.amenity&&"doctor"!==e.healthcare||(r+="Arzt "),"hospital"!==e.amenity&&"clinic"!==e.amenity&&"hospital"!==e.healthcare&&"clinic"!==e.healthcare||("yes"===e.emergency?r+="Krankenhaus mit Notaufnahme ":r+="Krankenhaus "),"dentist"===e.amenity&&(r+="Zahnarzt "),"pharmacy"!==e.amenity&&"pharmacy"!==e["health_facility:type"]||(r+="Apotheke "),"physiotherapist"!==e.healthcare&&"yes"!==e["health_speciality:physiotherapy"]||(r+="Physiotherapeut "),"occupational_therapist"!==e.healthcare&&"yes"!==e["health_speciality:occupational_therapy"]&&"yes"!==e["health_specialty:occupational_therapy"]||(r+="Ergotherapeut "),"psychotherapist"!==e.healthcare&&"yes"!==e["health_speciality:psychotherapy"]||(r+="Psychotherapeut "),"alternative"===e.healthcare&&(r+="Alternativ- und Komplementärmediziner "),"midwife"===e.healthcare&&(r+="Hebamme "),"speech_therapist"!==e.healthcare&&"yes"!==e["health_speciality:speech_therapy"]||(r+="Logopäde "),"yes"===e["health_speciality:music_therapy"]&&(r+="Musiktherapeut "),"veterinary"===e.amenity&&(r+="Tierarzt "),"fire_station"===e.amenity&&(r+="Feuerwehrhaus "),"fire_extinguisher"===e.emergency&&(r+="Feuerlöscher "),"aed"===e.emergency&&(r+="Mobiler Defibrilator "),"defibrillator"===e.emergency&&(r+="Mobiler Defibrilator "),"phone"===e.emergency&&(r+="Notrufsäule "),"police"===e.amenity&&(r+="Polizeiwache "),"ambulance_station"===e.emergency&&(r+="Rettungswache "),"technical"===e.emergency_service&&(r+="Technisches Hilfswerk "),"water"===e.emergency_service&&(r+="Wasserrettungsstation "),"baywatch"===e.waterway&&(r+="Wasserwacht "),"air"===e.emergency_service&&(r+="Rettungshubschrauber "),"emergency_access_point"===e.highway&&(r+="Notfallpunkt "),"lifeboat_station"!==e.amenity&&"lifeboat_station"!==e.emergency||(r+="Rettungsbootstation "),"life_ring"===e.emergency&&(r+="Rettungsring "),"siren"===e.emergency&&(r+="Sirene "),"life_ring"===e.amenity&&(r+="Rettungsring "),"rescue_station"===e.amenity&&(r+="Rettungsstation "),"fire_hydrant"===e.emergency&&("underground"===e["fire_hydrant:type"]?r+="Unterflurhydrant ":"pillar"===e["fire_hydrant:type"]?r+="Überflurhydrant ":"wall"===e["fire_hydrant:type"]?r+="Wandhydrant ":"pond"===e["fire_hydrant:type"]&&(r+="Saugstelle ")),"suction_point"===e.emergency&&(r+="Saugstelle "),"fire_water_pond"===e.emergency&&(r+="Löschteich "),"mountain"===e.emergency_service&&(r+="Bergrettungsstation "),"water_tank"===e.emergency&&(r+="Löschwassertank "),"container"===e.recycling_type&&(r+="Recycling Container "),"recycling"===e.amenity&&"yes"===e["recycling:excrement"]||"pump-out"===e["seamark:small_craft_facility:category"]?r+="Absaugstation ":"recycling"===e.amenity&&(r+="Wertstoffhof "),"yes"===e["diet:pescetarian"]?r+="pescetarische Gerichte vorhanden ":"only"===e["diet:pescetarian"]&&(r+="nur pescetarische Gerichte "),"yes"===e["diet:vegetarian"]?r+="vegetarische Gerichte vorhanden ":"only"===e["diet:vegetarian"]&&(r+="nur vegetarische Gerichte "),"yes"===e["diet:lacto_vegetarian"]?r+="lacto-vegetarische Gerichte vorhanden ":"only"===e["diet:lacto_vegetarian"]&&(r+="nur lacto-vegetarische Gerichte "),"yes"===e["diet:ovo_vegetarian"]?r+="ovo-vegetarische Gerichte vorhanden ":"only"===e["diet:ovo_vegetarian"]&&(r+="nur ovo-vegetarische Gerichte "),"yes"===e["diet:vegan"]?r+="vegane Gerichte vorhanden ":"only"===e["diet:vegan"]&&(r+="nur vegane Gerichte "),"yes"===e["diet:fruitarian"]?r+="frutarische Gerichte vorhanden ":"only"===e["diet:fruitarian"]&&(r+="nur frutarische Gerichte "),"yes"===e["diet:raw"]?r+="rohköstliche Gerichte vorhanden ":"only"===e["diet:raw"]&&(r+="nur rohköstliche Gerichte "),"yes"===e["diet:gluten_free"]?r+="glutenfreie Gerichte vorhanden ":"only"===e["diet:gluten_free"]&&(r+="nur glutenfreie Gerichte "),"yes"===e["diet:dairy_free"]?r+="milchfreie Gerichte vorhanden ":"only"===e["diet:dairy_free"]&&(r+="nur milchfreie Gerichte "),"yes"===e["diet:lactose_free"]?r+="laktosefreie Gerichte vorhanden ":"only"===e["diet:lactose_free"]&&(r+="nur laktosefreie Gerichte "),"yes"===e["diet:halal"]?r+="Halāl Gerichte vorhanden ":"only"===e["diet:halal"]&&(r+="nur Halāl Gerichte "),"yes"===e["diet:kosher"]?r+="koschere Gerichte vorhanden ":"only"===e["diet:kosher"]&&(r+="nur koschere Gerichte "),"pub"===e.amenity&&(r+="Gaststätte "),"bar"===e.amenity&&(r+="Bar "),"yes"===e.frozen_yogurt&&(r+="Frozen Yogurt im Angebot "),"yes"===e.slush_ice&&(r+="Slush Ice im Angebot "),"yes"===e.cake&&(r+="Kuchenteilchen, Gebäck etc. im Angebot "),"yes"===e.coffee&&(r+="Kaffeegetränke im Angebot "),"yes"===e.drinks&&(r+="Getränke im Angebot "),"biergarten"===e.amenity&&(r+="Biergarten "),"restaurant"===e.amenity&&(r+="Restaurant "),"fast_food"===e.amenity&&(r+="Fast Food Restaurant "),"cafe"!==e.amenity&&"coffee_shop"!==e.amenity||"ice_cream"===e.cuisine||(r+="Café, Bistro "),("cafe"===e.amenity&&"ice_cream"===e.cuisine||"ice_cream"===e.amenity)&&(r+="Eiscafe "),"alpine_hut"===e.tourism&&(r+="Berghütte "),"aquarium"===e.tourism&&(r+="Aquarium "),"apartment"===e.tourism&&(r+="Ferienwohnung "),"attraction"===e.tourism&&(r+="Sehenswürdigkeit "),"artwork"===e.tourism&&(r+="Skulptur "),"camp_site"===e.tourism&&(r+="Campingplatz "),"caravan_site"===e.tourism&&(r+="Wohnmobilstellplatz "),"chalet"===e.tourism&&(r+="Ferienwohnung /-haus "),"gallery"===e.tourism&&(r+="Kunstgalerie "),"guest_house"===e.tourism&&(r+="Pension, Gasthaus, Bed & Breakfast "),"hostel"===e.tourism&&(r+="Jugendherberge, Hostel "),"hotel"===e.tourism&&(r+="Hotel "),"motel"===e.tourism&&(r+="Motel "),"museum"===e.tourism&&(r+="Museum "),"picnic_site"===e.tourism&&(r+="Rast- und Picknickplatz "),"theme_park"===e.tourism&&(r+="Freizeit- oder Themenpark "),"viewpoint"===e.tourism&&(r+="Aussichtspunkt "),"wilderness_hut"===e.tourism&&(r+="Schutzhütte "),"wine_cellar"===e.tourism&&(r+="Weinkeller "),"zoo"===e.tourism&&(r+="Zoo / Tierpark ","enclosure"===e.zoo&&(r+="mit Wildgehege "),"petting_zoo"===e.zoo&&(r+="mit Streichelzoo "),"falconry"===e.zoo&&(r+="mit Falknerei ")),"trail_riding_station"===e.tourism&&(r+="Wanderreitstation "),"fishing"===e.club&&(r+="Angelverein "),"sport"===e.club&&"fishing"===e.sport&&(r+="fishing club "),"amateur_radio"===e.club&&(r+="Amateurfunker "),"art"===e.club&&(r+="Kunstverein "),"astronomy"===e.club&&(r+="Astronomieverein "),"automobile"===e.club&&(r+="Automobilverein "),"board_games"===e.club&&(r+="Brettspielverein "),"card_games"===e.club&&(r+="Kartenspielverein "),"charity"===e.club&&(r+="Charity-Verein "),"chess"===e.club&&(r+="Schachverein "),"cinema"===e.club&&(r+="Kinoverein "),"cooking"===e.club&&(r+="Kochverein "),"culture"===e.club&&(r+="Kulturverein "),"doityourself"===e.club&&(r+="doityourself-Verein "),"equestrian"===e.club&&(r+="Reitverein "),"ethnic"===e.club&&(r+="Ethnischer Verein "),"fan"===e.club&&(r+="Fanverein "),"freemasonry"===e.club&&(r+="Freimaurer-Verein "),"game"===e.club&&(r+="Spieleverein "),"history"===e.club&&(r+="Historischer-Verein / Verein für Geschichte "),"hunting"===e.club&&(r+="Jagdverein "),"linux"===e.club&&(r+="Linux-Verein "),"motorcycle"===e.club&&(r+="Motorradverein "),"music"===e.club&&(r+="Musikverein "),"nature"===e.club&&(r+="Naturverein "),"nudism"===e.club&&(r+="Nudisten-Verein / FKK-Verein "),"photography"===e.club&&(r+="Fotografieverein "),"politics"===e.club&&(r+="Verein für Politik "),"relegion"===e.club&&(r+="Politischer-Verein "),"scout"===e.club&&(r+="Pfadfinderin/Pfadfinder "),"smoke"===e.club&&(r+="Raucherverein "),"sport"===e.club&&(r+="Sportverein "),"theatre"===e.club&&(r+="Theaterverein "),"veterans"===e.club&&(r+="Veteranen "),"amusement_arcade"===e.leisure&&(r+="Spielhalle "),"beach_resort"===e.leisure&&(r+="Standbad "),"bird_hide"===e.leisure&&(r+="Vogelbeobachtungspunkt "),"common"===e.leisure&&(r+="Öffentliche Grünflächen "),"club"===e.leisure&&(r+="Club/Verein "),"dance"===e.leisure&&(r+="Tanzen "),"dog_park"===e.leisure&&(r+="Hundepark "),"firepit"===e.leisure&&(r+="Feuerstelle "),"fishing"===e.leisure&&(r+="Angelstelle "),"garden"===e.leisure&&(r+="Garten "),"golf_course"===e.leisure&&(r+="Golfplatz "),"hackerspace"===e.leisure&&(r+="Ort für Hackertreffen "),"horse_riding"===e.leisure&&(r+="Reitstall / Reiterhof "),"ice_rink"===e.leisure&&(r+="Eislaufbahn "),"nature_reserve"===e.leisure&&(r+="Naturschutzgebiet (NSG) "),"park"===e.leisure&&(r+="Grünanlage "),"miniature_golf"===e.leisure&&(r+="Minigolf "),"pitch"===e.leisure&&(r+="Spielfeld "),"pitch"===e.leisure&&"yes"===e.building&&(r+="Sporthalle "),"playground"===e.leisure&&"yes"===e.building?r+="Spielscheune ":"playground"===e.leisure&&(r+="Spielplatz "),"social_club"===e.leisure&&(r+="Treffpunkt für Freizeitgruppen "),"spa"===e.leisure&&(r+="Heilbad / Spa "),"sports_centre"===e.leisure&&(r+="Sportzentrum "),"climbing_adventure"===e.sport&&(r+="Seilgarten "),"stadium"===e.leisure&&(r+="Stadion "),"swimming_pool"===e.leisure&&(r+="Schwimmbecken "),"track"===e.leisure&&(r+="Rennbahn "),"water_park"===e.leisure&&(r+="Wasserpark "),"wildlife_hide"===e.leisure&&(r+="Wildbeobachtungspunkt "),"adult_gaming_centre"===e.leisure&&(r+="Spielothek "),"bowling_alley"===e.leisure&&"10pin"===e.sport&&(r+="Bowlingcenter "),"bowling_alley"===e.leisure&&"9pin"===e.sport&&(r+="Kegelbahn "),"karting"!==e.sport&&"motor"!==e.sport||(r+="Kart-/Motorsport "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),e["piste:type"])switch(e["piste:type"]){case"skitour":r+="Piste für Skitouren ";break;case"downhill":r+="Skiabfahrt ";break;case"sled":r+="Rodelberg / Rodelstrecke ";break;case"nordic":r+="Langlauf Piste ";break;case"hike":r+="Schneeschuh- und Winterwanderweg ";break;case"snow_park":r+="Snow-Park "}if(e.sport)switch(e.sport){case"surfing":r+="Surfen ";break;case"kitesurfing":r+="Kitesurfen ";break;case"water_ski":r+="Wasserski "}if(e.aerialway)switch(e.aerialway){case"cable_bar":case"gondola":r+="Lift mit Gondeln ";break;case"chair_lift":r+="Sessellift ";break;case"mixed_lift":r+="Lift mit Sesseln und Gondeln ";break;case"drag_lift":r+="Skilift ";break;case"t-bar":r+="T-Lift ";break;case"t-bar":r+="T-Lift (einseitig) ";break;case"platter":r+="Lift mit Sitzscheibe ";break;case"rope_tow":r+="Bügellift ";break;case"magic_carpet":r+="Beförderungsband ";break;default:r+="unbekannt"}if("mosque"===e.building&&(r+="Moschee "),"synagogue"===e.building&&(r+="Synagoge "),"apartments"===e.building&&(r+="Wohnung "),"farm"===e.building&&(r+="Farm "),"hotel"===e.building&&(r+="Hotel "),"house"===e.building&&(r+="Haus "),"detached"===e.building&&(r+="Freistehend "),"residential"===e.building&&(r+="Residenz "),"domitory"!==e.building&&"residential plus"!==e.building||(r+="Wohnheim "),"terrace"===e.building&&(r+="Terrasse "),"houseboat"===e.building&&(r+="Hausboot "),"bungalow"===e.building&&(r+="Bungalow "),"static_caravan"===e.building&&(r+="Stehender Wohnwagen "),"commercial"===e.building&&(r+="Kommerziell "),"retail"===e.building&&(r+="Verkauf "),"warehouse"===e.building&&(r+="Lagerhaus "),"bakehouse"===e.building&&(r+="Backstube "),"temple"===e.building&&(r+="Tempel "),"shrine"===e.building&&(r+="Schrein "),"civic"===e.building&&(r+="Bürgerlich "),"stadium"===e.building&&(r+="Stadium "),"train_station"===e.building&&(r+="Bahnhof "),"university"===e.building&&(r+="Universität "),"public"===e.building&&(r+="Öffentliches Gebäude "),"bridge"===e.building&&(r+="Brücke "),"bunker"===e.building&&(r+="Bunker "),"cabin"===e.building&&(r+="Hütte "),"conservatory"===e.building&&(r+="Wintergarten "),"construction"===e.building&&(r+="Im Bau "),"garage"===e.building&&(r+="Garage "),"garages"===e.building&&(r+="Garagen "),"greenhouse"===e.building&&(r+="Gewächshaus "),"hangar"===e.building&&(r+="Hangar "),"hut"===e.building&&(r+="Hütte "),"pavillion"===e.building&&(r+="Pavillion "),"roof"===e.building&&(r+="Überdacht "),"shed"===e.building&&(r+="Gartenhäuschen "),"transformer_tower"===e.building&&(r+="Transformator Turm "),"service"===e.building&&(r+="Service-Stelle "),"kiosk"===e.building&&(r+="Kiosk "),"carport"===e.building&&(r+="Carport "),"ruins"===e.building&&(r+="Ruinen "),"gambling"===e.amenity&&(r+="Spielhalle "),"library"===e.amenity&&(r+="Bücherei "),"fountain"===e.amenity&&(r+="Brunnen "),"attraction"===e.amenity&&(r+="Sehenswürdigkeit "),"social_centre"!==e.amenity&&"club"!==e.amenity||(r+="Verein / Club "),"townhall"===e.amenity&&(r+="Rathaus / Bürgerhaus "),"bench"===e.amenity&&(r+="Parkbank "),"grave_yard"!==e.amenity&&"cemetery"!==e.landuse||(r+="Friedhof "),"post_box"===e.amenity&&(r+="Briefkasten "),"post_office"===e.amenity&&(r+="Postamt "),"telephone"===e.amenity&&(r+="Telefon "),"atm"===e.amenity&&(r+="Geldautomat "),"bank"===e.amenity&&(r+="Bankfiliale "),"toilets"===e.amenity&&"yes"===e.diaper?r+="Öffentliche Toilette mit Wickeltisch ":"toilets"===e.amenity&&(r+="Öffentliche Toilette "),"school"===e.amenity&&"1"===e["isced:level"]?r+="Grundschule ":"school"===e.amenity&&"2"===e["isced:level"]?r+="Sekundarstufe I ":"school"===e.amenity&&"3"===e["isced:level"]?r+="Sekundarstufe II ":"school"===e.amenity&&(r+="Schule "),"kindergarten"===e.amenity&&(r+="Kindergarten "),"internet_cafe"===e.amenity&&(r+="Internetcafé "),"daycare"===e.amenity&&(r+="Kinder- und Jugendtagesstätte "),"childcare"===e.amenity&&(r+="Kinder- und Jugendtagesstätte "),"university"===e.amenity&&(r+="Universität/Hochschule "),"college"===e.amenity&&(r+="Universität/Hochschule "),"shelter"===e.amenity&&(r+="Unterstand "),"bbq"===e.amenity&&(r+="Grillplatz "),"nightclub"===e.amenity&&(r+="Diskothek / Nachtklub "),"bicycle_parking"===e.amenity&&(r+="Fahrradparkplatz "),"bicycle_rental"===e.amenity&&(r+="Fahrradverleih "),"boat_sharing"===e.amenity&&(r+="Bootsverleih "),"car_sharing"===e.amenity&&(r+="Car-Sharing "),"cinema"===e.amenity&&(r+="Kino "),"swimming_pool"===e.amenity&&(r+="Schwimmbad "),"embassy"!==e.amenity&&"embassy"!==e.diplomatic||(r+="Botschaft "),"embassy"===e.amenity&&"consulate"===e.diplomatic&&(r+="Konsulate "),"embassy"===e.amenity&&"consulate_general"===e.diplomatic&&(r+="Generalkonsulate "),"embassy"===e.amenity&&"honorary_consulate"===e.diplomatic&&(r+="Honorarkonsulate "),"embassy"===e.amenity&&"permanent_mission"===e.diplomatic&&(r+="Ständige Vertretung "),"embassy"===e.amenity&&"delegation"===e.diplomatic&&(r+="Delegation "),"embassy"===e.amenity&&"high_commission"===e.diplomatic&&(r+="Hochkommissariat "),"Barfusspfad"===e.amenity&&(r+="Barfußpfad "),"casino"===e.amenity&&(r+="Casino "),"spa"===e.amenity&&(r+="Heilbad / Spa "),"stables"===e.amenity&&(r+="Reitstall / Reiterhof "),"watering_place"===e.amenity&&(r+="Wasserstelle / Tränke "),"yes"===e.watering_place&&(r+="Wasserstelle / Tränke "),"water_point"===e.amenity&&(r+="große Trinkwasserstelle "),"taxi"===e.amenity&&(r+="Taxi "),"car_wash"===e.amenity&&(r+="Autowaschanlage "),"brothel"===e.amenity&&(r+="Bordell, Freudenhaus "),"stripclub"===e.amenity&&(r+="Stripclub "),"swingerclub"===e.amenity&&(r+="Swingerclub "),"planetarium"===e.amenity&&(r+="Planetarium "),"courthouse"===e.amenity&&(r+="Gericht "),"crematorium"===e.amenity&&(r+="Krematorium "),"crypt"!==e.amenity&&"crypt"!==e.building||(r+="Krypta "),"hunting_stand"===e.amenity&&(r+="Hochsitz "),"photo_booth"===e.amenity&&(r+="Fotoautomat "),"prison"===e.amenity&&(r+="Gefängnis "),"ranger_station"===e.amenity&&(r+="National Park Ranger Station "),"register_office"===e.amenity&&(r+="Standesamt "),"marketplace"===e.amenity&&(r+="Marktplatz / Wochenmarkt "),"solarium"===e.amenity&&(r+="Solarium "),"sauna"===e.amenity&&(r+="Sauna "),"shower"===e.amenity&&(r+="öffentliche Dusche "),"waste_disposal"===e.amenity&&(r+="Müllentsorgung auf öffentlichen Plätzen ",e.waste))switch(r+="Art: ",e.waste){case"trash":default:r+="Allgemeiner Müll ";break;case"oil":r+="Oil ";break;case"drugs":r+="Pharmazeutisch ";break;case"organic":r+="Kompost ";break;case"plastic":r+="Plastik ";break;case"rubble":r+="Schutt ";break;case"cigarettes":r+="Zigaretten "}if("waste_basket"!==e.amenity&&"dog_excrement"!==e.waste||(r+="Hunde-Code Müllcontainer "),"scout_camp"!==e.amenity&&"scout_hut"!==e.amenity&&"scout_hall"!==e.amenity||(r+="Pfadfinderheim "),"ferry_terminal"===e.amenity&&(r+="Fährhafen "),"bureau_de_change"===e.amenity&&(r+="Geldwechselstube "),"youth_club"===e.amenity&&(r+="Jugendzentrum "),"festival_grounds"===e.amenity&&(r+="Festivalgelände "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="Offene Feuerstelle "),"vending_machine"===e.amenity)if(e.vending)switch(e.vending){case"admission_tickets":r+="Eintrittskartenautomat ";break;case"animal_feed":r+="Tierfutterautomat ";break;case"bicycle_tube":r+="Fahrradschlauchautomat ";break;case"books":r+="Bücherautomat ";break;case"candles":r+="Kerzenautomat ";break;case"cigarettes":r+="Zigarettenautomat ";break;case"chemist":r+="Apotheken/Drogerie Automat ";break;case"condoms":r+="Kondomautomat ";break;case"drinks":r+="Getränkeautomat ";break;case"electronics":r+="Automat für Elektro-Zubehör ";break;case"elongated_coin":r+="Münzprägungsautomat ";break;case"excrement_bags":r+="Hundetütenspender ";break;case"feminine_hygiene":r+="Automat für Damenhygieneprodukte ";break;case"first_aid":r+="Erste-Hilfe-Automat ";break;case"fishing_tackle":r+="Automat für Angelzubehör ";break;case"fishing_bait":r+="Angelköderautomat ";break;case"flowers":r+="Blumenautomat ";break;case"food":r+="Lebensmittel-Automat ";break;case"ice_cubes":r+="Eiswürfelautomat ";break;case"ice_cream":r+="Automat für Speiseeis ";break;case"ink_cartridges":r+="Druckerpatronen Automat ";break;case"laundry_detergent":r+="Waschmittelautomat ";break;case"public_transport_tickets":r+="Fahrkartenautomat ";break;case"newspaper":r+="Zeitungsautomat ";break;case"parcel_pickup":r+="Packstation ";break;case"parcel_mail_in":r+="Paketstation ";break;case"parking_tickets":r+="Parkscheinautomat ";break;case"photos":r+="Fotoautomat ";break;case"sex_toys":r+="Automat für Sexspielzeug ";break;case"SIM_cards":r+="Automat für SIM Karten ";break;case"stamps":r+="Briefmarkenautomat ";break;case"sweets":r+="Süßigkeitenautomat ";break;case"syringes":r+="Spritzenautomat ";break;case"toll":r+="Maut-Automat ";break;case"toys":r+="Spielzeugautomat ";break;case"umbrellas":r+="Regenschirmautomat ";break;default:r+="Verkaufsautomat "}else r+="Verkaufsautomat ";if("arts_centre"===e.amenity&&(r+="Kulturzentrum "),"artwork"===e.amenity&&(r+="Kunstwerk / Kunstobjekt "),"museum"===e.amenity&&(r+="Museum "),"theatre"===e.amenity&&(r+="Theater "),"cathedral"===e.building&&(r+="Kathedrale "),"church"===e.building&&(r+="Kirche "),"chapel"===e.building&&(r+="Kapelle "),"place_of_worship"===e.amenity&&(r+="Kirche / Kultstätte "),"village"===e.abandoned&&(r+="Verlassene Stadt "),"theme_park"===e["abandoned:tourism"]&&(r+="Verlassener Vergnügungspark "),e["abandoned:amenity"],"yes"===e.abandoned&&"bunker"===e.military&&(r+="Verlassene Bunkeranlage "),"yes"===e.abandoned&&"barracks"===e.military&&(r+="Verlassene Militärbaracken "),"yes"===e.abandoned&&"airfield"===e.military&&(r+="Verlassene Militärflugplatz "),"monastery"===e.historic&&(r+="Historisches Kloster "),"monastery"===e.amenity&&(r+="Kloster "),"monastery"===e.building&&(r+="Kloster "),"manor"===e.historic&&(r+="Gutshaus / Herrenhaus "),"boundary_stone"===e.historic&&(r+="Historischer Grenzstein "),"milestone"===e.historic&&(r+="Historischer Meilenstein "),"monument"===e.historic&&(r+="Monument "),"palace"===e.historic&&(r+="Palast "),"mine"===e.historic&&(r+="Verlassene Mine "),"ruins"===e.historic&&(r+="Ruine "),"harbour"===e.historic_usage&&(r+="historischer Hafen "),"rune_stone"===e.historic&&(r+="Runenstein "),"battlefield"===e.historic&&(r+="Schlachtfeld "),"blacksmith"===e.historic&&(r+="Historische Schmiede "),"tree_shrine"!==e.historic&&"wayside_shrine"!==e.historic||(r+="Schrein / Bildstock "),"city_gate"===e.historic&&(r+="Stadttor "),"wayside_cross"===e.historic&&(r+="Wegkreuz "),"monument"===e.amenity&&(r+="Denkmal "),"memorial"===e.historic&&(r+="Denkmal "),"optical_telegraph"===e.historic&&(r+="Optischer Telegraph "),"castle"===e.historic)if(e.castle_type)switch(e.castle_type){case"defensive":r+="Burg ";break;case"palace":r+="Palast ";break;case"stately":r+="Schloss ";break;case"manor":r+="Herrenhaus ";break;case"fortress":r+="Festung ";break;case"castrum":r+="Römisches Militärlager ";break;case"shiro":r+="Shiro ";break;case"kremlin":r+="Kreml ";break;default:r+="Schloss / Burg "}else r+="Schloss / Burg ";if("archaeological_site"===e.historic&&(r+="Archäologische Fundstätte "),"tomb"===e.historic)if(e.tomb)switch(e.tomb){case"tumulus":r+="Hügelgrab ";break;case"rock-cut":r+="Felsgrab ";break;case"hypogeum":r+="Hypogäum ";break;case"war_grave":r+="Soldatenfriedhof ";break;case"mausoleum":r+="Mausoleum ";break;case"columbarium":r+="Kolumbarium ";break;case"crypt":r+="Krypta ";break;case"pyramid":r+="Pyramide ";break;case"sarcophagus":r+="Sarkophag ";break;case"vault":r+="Gruft ";break;case"tombstone":r+="Grabstein ";break;default:r+="Historische Grabstätte "}else r+="Historische Grabstätte ";if("accountant"===e.office&&(r+="Buchhalter / Wirtschaftprüfer "),"administrative"===e.office&&(r+="Kreis- bzw. Gemeindebehörde "),"architect"===e.office&&(r+="Architekturbüro "),"association"===e.office&&(r+="Verein, Vereinigung bzw. Interessengemeinschaft "),"physician"===e.office&&(r+="Arzt "),"camping"===e.office&&(r+="Rezeption Campingplatz oder Büro Freizeitpark "),"company"===e.office&&(r+="Sitz einer privaten Firma "),"educational_institution"===e.office&&(r+="Bildungseinrichtung "),"employment_agency"===e.office&&(r+="Job-Center / Arbeitsvermittlung "),"estate_agent"===e.office&&(r+="Immobilienmakler / Wohnungsbaugenossenschaft "),"forestry"===e.office&&(r+="Forstamt "),"foundation"===e.office&&(r+="Geschäftsstelle einer Stiftung "),"government"===e.office&&(r+="Behörde / Regierungseinrichtung "),"guide"===e.office&&(r+="Büro für Touristenführungen "),"insurance"===e.office&&(r+="Versicherungsbüro "),"it"===e.office&&(r+="IT-Unternehmen "),"lawyer"===e.office&&(r+="Rechtsanwaltskanzlei "),"newspaper"===e.office&&(r+="Zeitungsredaktion "),"ngo"===e.office&&(r+="Büro einer Nichtregierungsorganisation "),"notary"===e.office&&(r+="Notar "),"political_party"===e.office&&(r+="Büro einer politischen Partei "),"quango"===e.office&&(r+="Büro einer halbstaatlichen Organisation "),"realtor"===e.office&&(r+="Immobilienmakler / Wohnungsbaugenossenschaft "),"real_estate_agent"===e.office&&(r+="Immobilienmakler / Wohnungsbaugenossenschaft "),"register"===e.office&&(r+="Standesamt "),"religion"===e.office&&(r+="Büro einer religiösen Instanz "),"research"===e.office&&(r+="Forschungsunternehmen oder -institut "),"tax"===e.office&&(r+="Finanzamt "),"telecommunication"===e.office&&(r+="Telekommunikationsfirma "),"travel_agent"===e.office&&(r+="Sitz eines Reiseunternehmens "),"water_utility"===e.office&&(r+="Wasserwirtschaftsamt "),"therapist"===e.office&&(r+="Therapeut "),"city"===e.place&&(r+="Großstadt "),"town"===e.place&&(r+="Stadt/Kleinstadt "),"village"===e.place&&(r+="Dorf "),"continent"===e.place&&(r+="Kontinent "),"ocean"===e.place&&(r+="Ozean"),"track"===e.highway&&(r+="Forst-, Wald und Feldweg "),"raceway"===e.highway&&(r+="Motorsportbahn "),"designated"===e.bicycle&&(r+="Radweg "),"path"===e.highway&&(r+="Fußweg "),"parking"===e.amenity&&(r+="Parkplatz "),"services"===e.highway&&(r+="Raststätte "),"rest_area"===e.highway&&(r+="Rastplatz "),"turning_circle"===e.highway&&(r+="Wendeplatz/Wendehammer "),"service"===e.highway&&(r+="Zufahrtsstraße / Erschließungsweg "),"motorway"===e.highway&&(r+="Autobahn "),"motorway_junction"===e.highway&&(r+="Autobahnauffahrt "),"bridleway"===e.highway&&(r+="Reitweg "),"yes"===e.oneway&&(r+="Einbahnstraße "),"yes"===e.park_ride&&(r+="Park and Ride "),"unknown"===e.park_ride&&(r+="Park and Ride "),"bus"===e.park_ride&&(r+="Park and Ride "),"tram"===e.park_ride&&(r+="Park and Ride "),"bus_stop"===e.highway&&(r+="Bushaltestelle "),"pedestrian"===e.highway&&(r+="Fußgängerzone "),"street_lamp"===e.highway&&(r+="Strassenlaterne "),"traffic_signals"===e.highway&&(r+="Ampel "),"traffic_signals"===e.crossing&&(r+="Fußgängerampel "),"speed_camera"===e.highway&&(r+="Blitzer "),"yes"===e.traffic_calming&&(ret+="Verkehrsberuhigter Bereich"),"bump"===e.traffic_calming&&(r+="Kurze Bodenwelle"),"chicane"===e.traffic_calming&&(r+="Zu umfahrendenes Hinderniss"),"choker"===e.traffic_calming&&(r+="Fahrbahnverengung, zu umfahrende Hindernisse möglich"),"cushion"===e.traffic_calming&&(r+="Bodenwelle mit Lücken aus mehreren rechteckigen Huckeln"),"hump"===e.traffic_calming&&(r+="vergleichbare Bodenwelle mit etwar einer Länge von 2-4M"),"island"===e.traffic_calming&&(r+="Eine Verkehrsinsel"),"rumble_strip"===e.traffic_calming&&(r+="Holperstreifen"),"table"===e.traffic_calming&&(r+="lange Bodenwellen mit flachen Mittelstück"),"buoy_cardinal"===e["seamark:type"]&&(r+="Kardinalstonne "),"buoy_lateral"===e["seamark:type"]&&(r+="Lateraltonne "),"buoy_isolated_danger"===e["seamark:type"]&&(r+="Gefahrentonne "),"perch"===e["seamark:beacon_lateral:shape"]&&(r+="Pricke "),"fuel"===e.amenity&&"fuel_station"===e["seamark:small_craft_facility:category"]?r+="Schiffstankstelle ":"fuel"===e.amenity&&(r+="Tankstelle "),"charging_station"===e.amenity){r+="Ladestation / Stromtankstelle ";var t=e.voltage,a=" ";if(e.car){switch(e.car){case"yes":r+="Für Autos: Ja";break;case"no":r+="Für Autos: Nein";break;default:r+="Für Autos: Unbekannt"}r+=a}else r+="Für Autos: Unbekannt"+a;if(e.bicycle){switch(e.bicycle){case"yes":r+="Für E-Bike: Ja";break;case"no":r+="Für E-Bike: Nein";break;default:r+="Für E-Bike: Unbekannt"}r+=a}else r+="Für E-Bike: Unbekannt"+a;"no"===e["socket:schuko"]&&(r+="Stecker Schuko: Nein"+a),"yes"===e["socket:schuko"]&&(r+="Stecker Schuko: Ja"+a),"no"===e["socket:cee_blue"]&&(r+="Stecker CEE Blau: Nein"+a),"yes"===e["socket:cee_blue"]&&(r+="Stecker CEE Blau: Ja"+a),"no"===e["socket:cee_red_16a"]&&(r+="Stecker CEE Rot 16a: Nein"+a),"yes"===e["socket:cee_red_16a"]&&(r+="Stecker CEE Rot 16a: Ja"+a),"no"===e["socket:cee_red_32a"]&&(r+="Stecker CEE Rot 32a: Nein"+a),"yes"===e["socket:cee_red_32a"]&&(r+="Stecker CEE Rot 32a: Ja"+a),"no"===e["socket:cee_red_64a"]&&(r+="Stecker CEE Rot 64a: Nein"+a),"yes"===e["socket:cee_red_64a"]&&(r+="Stecker CEE Rot 64a: Ja"+a),"no"===e["socket:cee_red_125a"]&&(r+="Stecker CEE Rot 125a: Nein"+a),"yes"===e["socket:cee_red_125a"]&&(r+="Stecker CEE Rot 125a: Ja"+a),"no"===e["socket:nema_5_15"]&&(r+="Stecker Nema 5 15: Nein"+a),"yes"===e["socket:nema_5_15"]&&(r+="Stecker Nema 5 15: Ja"+a),"no"===e["socket:nema_5_20"]&&(r+="Stecker Nema 5 20: Nein"+a),"yes"===e["socket:nema_5_20"]&&(r+="Stecker Nema 5 20: Ja"+a),"no"===e["socket:nema_14_30"]&&(r+="Stecker Nema 14 30: Nein"+a),"yes"===e["socket:nema_14_30"]&&(r+="Stecker Nema 14 30: Ja"+a),"Nein"===e["socket:nema_14_50"]&&(r+="Stecker Nema 14 50: Nein"+a),"yes"===e["socket:nema_14_50"]&&(r+="Stecker Nema 14 50: Ja"+a),"nein"===e["socket:bs1363"]&&(r+="Stecker BS 1363: Nein"+a),"yes"===e["socket:bs1363"]&&(r+="Stecker BS 1363: Ja"+a),"no"===e["socket:type1"]&&(r+="Stecker Typ 1:Nein"+a),"yes"===e["socket:type1"]&&(r+="Stecker Typ 1: Ja"+a),"no"===e["socket:type1_combo"]&&(r+="Stecker Typ 1 Kombo: Nein"+a),"yes"===e["socket:type1_combo"]&&(r+="Stecker Typ 1 Kombo: Ja"+a),"Nein"===e["socket:type2"]&&(r+="Stecker Typ 2: Nein"+a),"yes"===e["socket:type2"]&&(r+="Stecker Typ 2: Ja"+a),"no"===e["socket:type2_combo"]&&(r+="Stecker Typ 2 Kombo: Nein"+a),"yes"===e["socket:type2_combo"]&&(r+="Stecker Typ 2 Kombo: Ja"+a),"no"===e["socket:type3"]&&(r+="Stecker Typ: Nein"+a),"yes"===e["socket:type3"]&&(r+="Stecker Typ 3: Ja"+a),"no"===e["socket:chademo"]&&(r+="Stecker CHAdeMO: Nein"+a),"yes"===e["socket:chademo"]&&(r+="Stecker CHAdeMO: Ja"+a),"no"===e["socket:magne_charge"]&&(r+="Stecker Magne : Nein"+a),"yes"===e["socket:magne_charge"]&&(r+="Stecker Magne : Ja"+a),"no"===e["socket:tesla_standard"]&&(r+="Stecker Tesla Standard: Nein"+a),"yes"===e["socket:tesla_standard"]&&(r+="Stecker Tesla Standard: Nein"+a),"no"===e["socket:tesla_supercharge"]&&(r+="Stecker Tesla Schnellladestation: Nein"+a),"yes"===e["socket:tesla_supercharge"]&&(r+="Stecker Tesla Schnellladestation: Ja"+a),"no"===e["socket:tesla_roadster"]&&(r+="Stecker Tesla Roadster: Nein"+a),"yes"===e["socket:tesla_roadster"]&&(r+="Stecker Tesla Roadster: Ja"+a),e["socket:schuko"]&&(r+="Stecker Schuko: "+e["socket:schuko"]+a),e["socket:cee_blue"]&&(r+="Stecker CEE Blau: "+e["socket:cee_blue"]+a),e["socket:cee_red_16a"]&&(r+="Stecker CEE Rot 16a: "+e["socket:cee_red_16a"]+a),e["socket:cee_red_32a"]&&(r+="Stecker CEE Rot 32a: "+e["socket:cee_red_32a"]+a),e["socket:cee_red_64a"]&&(r+="Stecker CEE Rot 64a: "+e["socket:cee_red_64a"]+a),e["socket:cee_red_125a"]&&(r+="Stecker CEE Rot 125a: "+e["socket:cee_red_125a"]+a),e["socket:nema_5_15"]&&(r+="Stecker Nema 5 15: "+e["socket:nema_5_15"]+a),e["socket:nema_5_20"]&&(r+="Stecker Nema 5 20: "+e["socket:nema_5_20"]+a),e["socket:nema_14_30"]&&(r+="Stecker Nema 14 30: "+e["socket:nema_14_30"]+a),e["socket:nema_14_50"]&&(r+="Stecker Nema 14 50: "+e["socket:nema_14_50"]+a),e["socket:bs1363"]&&(r+="Stecker BS 1363: "+e["socket:bs1363"]+a),e["socket:type1"]&&(r+="Stecker Typ 1: "+e["socket:type1"]+a),e["socket:type1_combo"]&&(r+="Stecker Typ 1 Kombo: "+e["socket:schuko"]+a),e["socket:type2"]&&(r+="Stecker Typ 2: "+e["socket:type2"]+a),e["socket:type2_combo"]&&(r+="Stecker Typ 2 Kombo: "+e["socket:type2_combo"]+a),e["socket:type3"]&&(r+="Stecker Typ 3: "+e["socket:type3"]+a),e["socket:chademo"]&&(r+="Stecker CHAdeMO: "+e["socket:chademo"]+a),e["socket:magne_charge"]&&(r+="Stecker Magne : "+e["socket:magne_charge"]+a),e["socket:tesla_standard"]&&(r+="Stecker Tesla Standard: "+e["socket:tesla_standard"]+a),e["socket:tesla_supercharge"]&&(r+="Stecker Tesla Schnellladestation: "+e["socket:tesla_supercharge"]+a),e["socket:tesla_roadster"]&&(r+="Stecker Tesla Roadster: "+e["socket:tesla_roadster"]+a),r+=a,e.voltage&&(r+="Volt: "+t+a)}if("yes"===e.tunnel&&(r+="Tunnel "),e.bridge)switch(r+="Brücken-Typ: ",e.bridge){case"swing":case"humpback":r+="Drehbrücke";break;case"aqueduct":r+="Historische Wasserpipeline";break;case"bascule":r+="Klapp bzw. Wippbrücke";break;case"boardwalk":r+="Bohlenweg";break;case"cantilever":r+="Auslegerbrücke";break;case"covered":r+="gedeckte Brücke";break;case"drawbridge":r+="Klappbrücke";break;case"lift":r+="Hubbrücke";break;case"low_water_crossing":r+="Irische Brücke";break;case"moveable":r+="Bewegliche Brücken";break;case"pontoon":r+="Schwimmbrücke";break;case"suspension":r+="Hängebrücke";break;case"trestle":r+="Trestle-Brücke";break;case"viaduct":r+="Viadukt"}if(e["bridge:movable"])switch(e["bridge:movable"]){case"swing":r+="Drehbrücke";break;case"bascule":r+="Klapp bzw. Wippbrücke";break;case"drawbridge":r+="Klappbrücke";break;case"lift":r+="Hubbrücke";break;case"submersible":r+="Senkbrücke";break;case"transporter":r+="Schwebefähre";break;case"retractable":r+="Schubbrücke"}if("nursing_home"!==e.amenity&&"retirement_home"!==e.amenity||(r+="Seniorenheim / Pflegeheim "),"social_facility"===e.amenity&&(r+="Allg. soziale Einrichtung "),e.social_facility&&("group_home"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="Seniorenheim "),"assisted_living"===e.social_facility&&(r+="Betreutes Wohnen "),"outreach"===e.social_facility&&(r+="Beratungsstelle "),"workshop"===e.social_facility&&(r+="soziale Werkstatt "),"ambulatory_care"!==e.social_facility&&"healthcare"!==e.social_facility||(r+="Ambulanter Pflegedienst "),"shelter"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="Tages- u. Kurzzeitpflege "),"shelter"===e.social_facility&&"abused"===e["social_facility:for"]&&(r+="Notunterkunft "),"food_bank"===e.social_facility&&(r+="Lebensmittelhilfe "),"hospice"===e.social_facility&&(r+="Hospiz ")),e.brewery&&(r+="Ausgeschenkte Biersorten: "+e.brewery+" "),"alcohol"===e.shop&&(r+="Spirituosenladen "),"bakery"===e.shop&&(r+="Bäckerei "),"beverages"===e.shop&&(r+="Getränkehandel "),"butcher"===e.shop&&(r+="Fleischerei "),"cheese"===e.shop&&(r+="Käsefachgeschäft "),"chocolate"===e.shop&&(r+="Schokoladenfachgeschäft "),"coffee"===e.shop&&(r+="Kaffeefachgeschäft "),"confectionery"===e.shop&&(r+="Süßwarenladen "),"convenience"===e.shop&&(r+="Lebensmittelgeschäft "),"deli"===e.shop&&(r+="Feinkostladen "),"dairy"===e.shop&&(r+="Milchladen "),"farm"===e.shop&&(r+="Hofladen "),"greengrocer"===e.shop&&(r+="Gemüsehändler "),"grocery"===e.shop&&(r+="Lebensmittelgeschäft "),"organic"===e.shop&&(r+="Bio-Laden, Reformhaus "),"pasta"===e.shop&&(r+="Pastageschäft "),"seafood"===e.shop&&(r+="Fischfachgeschäft "),"tea"===e.shop&&(r+="Teefachgeschäft "),"wine"===e.shop&&(r+="Weinhandlung "),"department_store"===e.shop&&(r+="Kaufhaus "),"general"===e.shop&&(r+="Gemischtwarenhandlung "),"kiosk"===e.shop&&(r+="Kiosk "),"mall"===e.shop&&(r+="Einkaufszentrum "),"supermarket"===e.shop&&(r+="Supermarkt "),"baby_goods"===e.shop&&(r+="Babyfachmarkt "),"bag"===e.shop&&(r+="Taschen und Koffer "),"boutique"===e.shop&&(r+="Boutique "),"clothes"===e.shop&&(r+="Bekleidung "),"fabric"===e.shop&&(r+="Textilgeschäft "),"fashion"===e.shop&&(r+="Fashion "),"jewelry"===e.shop&&(r+="Juwelier "),"leather"===e.shop&&(r+="Lederwaren "),"shoes"===e.shop&&(r+="Schuhfachgeschäft "),"variety_store"===e.shop&&(r+="Ein-Euro-Laden "),"chemist"===e.shop&&(r+="Drogerie "),"cosmetics"===e.shop&&(r+="Kosmetikfachgeschäft "),"drugstore"===e.shop&&(r+="Drogerie oder Apotheke (veraltet) "),"perfumery"===e.shop&&(r+="Parfümerie "),"erotic"===e.shop&&(r+="Erotikhandel "),"hairdresser"===e.shop&&(r+="Friseur "),"hearing_aids"===e.shop&&(r+="Hörgeräte "),"herbalist"===e.shop&&(r+="Kräuterhandel "),"massage"===e.shop&&(r+="Massagesalon "),"medical_supply"===e.shop&&(r+="Sanitätshaus "),"optician"===e.shop&&(r+="Optiker "),"tattoo"===e.shop&&(r+="Tätowierer "),"bathroom_furnishing"===e.shop&&(r+="Badmöbel und -accessoires "),"doityourself"===e.shop&&(r+="Baumarkt/Baustoffhandel "),"energy"===e.shop&&(r+="Energiehandel "),"florist"===e.shop&&(r+="Blumengeschäft "),"furnace"===e.shop&&(r+="Ofenfachgeschäft "),"garden_centre"===e.shop&&(r+="Gartencenter "),"gas"===e.shop&&(r+="Fachgeschäft für technische Gase "),"glaziery"===e.shop&&(r+="Glaserei "),"hardware"===e.shop&&(r+="Eisenwaren "),"houseware"===e.shop&&(r+="Haushaltswaren und Inneneinrichtung "),"locksmith"===e.shop&&(r+="Schlüsseldienst "),"paint"===e.shop&&(r+="Farbenfachgeschäft "),"trade"===e.shop&&(r+="Baustoffhandel "),"antiques"===e.shop&&(r+="Antiquitäten "),"bed"===e.shop&&(r+="Betten- und Matratzengeschäft "),"candles"===e.shop&&(r+="Kerzengeschäft "),"carpet"===e.shop&&(r+="Teppichfachhandel "),"curtain"===e.shop&&(r+="Gardinenfachgeschäft "),"furniture"===e.shop&&(r+="Möbel- und Einrichtungshaus "),"interior_decoration"===e.shop&&(r+="Innendekoration / Raumausstattung "),"kitchen"===e.shop&&(r+="Küchen "),"window_blind"===e.shop&&(r+="Jalousien und Rolläden "),"computer"===e.shop&&(r+="Computer-Fachhändler "),"electronics"===e.shop&&(r+="Elektronikmarkt "),"hifi"===e.shop&&(r+="Hifi-Fachhändler "),"mobile_phone"===e.shop&&(r+="Handy-Shop "),"radiotechnics"===e.shop&&(r+="Radio- und Fernsehtechnik "),"vacuum_cleaner"===e.shop&&(r+="Staubsaugerfachgeschäft "),"bicycle"===e.shop&&(r+="Fahrradfachgeschäft "),"car"===e.shop&&(r+="Autohaus "),"car_repair"===e.shop&&(r+="Autowerkstatt "),"car_parts"===e.shop&&(r+="Autoteilefachgeschäft "),"dive"!==e.shop&&"scuba_diving"!==e.shop||(r+="Tauchausrüstung "),"fishing"===e.shop&&(r+="Angelfachgeschäft "),"free_flying"===e.shop&&(r+="Fallschirmausrüstung "),"hunting"===e.shop&&(r+="Jagdausrüstung "),"motorcycle"===e.shop&&(r+="Motorradgeschäft "),"outdoor"===e.shop&&(r+="Trekking-/Outdoorladen "),"sports"===e.shop&&(r+="Sportgeschäft "),"tyres"===e.shop&&(r+="Reifenfachhandel "),"water_sports"===e.shop&&(r+="Wassersportbedarf "),"art"===e.shop&&(r+="Kunstladen "),"craft"===e.shop&&(r+="Kunsthandwerk "),"frame"===e.shop&&(r+="Bilderrahmengeschäft "),"music"===e.shop&&(r+="Musikgeschäft "),"music_instrument"===e.shop&&(r+="Musikhaus "),"photo"===e.shop&&(r+="Fotofachgeschäft "),"video"===e.shop&&(r+="Videothek "),"video_games"===e.shop&&(r+="Videospiele "),"anime"===e.shop&&(r+="Anime "),"books"===e.shop&&(r+="Buchhandlung "),"gift"===e.shop&&(r+="Andenken, Reisemitbringsel, Souveniershop "),"newsagent"===e.shop&&(r+="Zeitungshändler "),"stationery"===e.shop&&(r+="Schreibwaren "),"ticket"===e.shop&&(r+="Ticketshop "),"copyshop"===e.shop&&(r+="Kopierladen "),"funeral_directors"===e.shop&&(r+="Bestattungsunternehmen "),"laundry"===e.shop&&(r+="Waschsalon / Wäscherei "),"dry_cleaning"===e.shop&&(r+="chemische Reinigung "),"money_lender"===e.shop&&(r+="Geldverleiher "),"pawnbroker"===e.shop&&(r+="Pfandhaus / Pfandleiher "),"pet"===e.shop&&(r+="Zoo- und Tierhandlung "),"pyrotechnics"===e.shop&&(r+="Feuerwerk "),"religion"===e.shop&&(r+="Religiöse Artikel "),"beauty"===e.shop&&(r+="Schönheitssalon "),"solarium"===e.shop&&(r+="Solarium "),"tobacco"===e.shop&&(r+="Tabakwaren "),"toys"===e.shop&&(r+="Spielwaren "),"travel_agency"===e.shop&&(r+="Reisebüro "),"market_hall"===e.shop&&(r+="Markthalle "),"vacant"===e.shop&&(r+="leerstehendes Ladenlokal "),"weapons"===e.shop&&(r+="Waffenladen "),"lottery"===e.gambling&&(r+="Lottoannahmestelle "),"fish"===e.pet&&(r+="Aquaristik "),"agriucultural_engines"===e.craft&&(r+="Landmaschinenbau "),"basket_maker"===e.craft&&(r+="Korbmacher "),"beekeeper"===e.craft&&(r+="Imker "),"blacksmith"===e.craft&&(r+="Schmied "),"brewery"===e.craft&&(r+="Brauerei "),"yes"===e.microbrewery&&(r+="Hausbrauerei "),"boatbuilder"===e.craft&&(r+="Bootsbauer "),"bookbinder"===e.craft&&(r+="Buchbinder "),"builder"===e.craft&&(r+="Hausbau "),"carpenter"===e.craft&&(r+="Tischler/Schreiner, Zimmermann "),"carpet_layer"===e.craft&&(r+="Teppichleger "),"caterer"===e.craft&&(r+="Catering "),"clockmaker"===e.craft&&(r+="Uhrmacher "),"confectionery"===e.craft&&(r+="Konditorei "),"dressmaker"===e.craft&&(r+="Schneider "),"electrician"===e.craft&&(r+="Elektriker "),"gardener"===e.craft&&(r+="Garten- und Landschaftsbauer "),"glaziery"===e.craft&&(r+="Glaserei "),"handicraft"===e.craft&&(r+="Handwerkskunst "),"hvac"===e.craft&&(r+="Kälteanlagenbauer für Lüftungs-, Heizungs- und Klimatechnik "),"insulation"===e.craft&&(r+="Wärmedämmung von Gebäuden "),"jeweller"===e.craft&&(r+="Juwelier, Gold-/Silber-Schmied "),"key_cutter"===e.craft&&(r+="Schlüsselmacher "),"locksmith"===e.craft&&(r+="Schlüsseldienst "),"metal_construction"===e.craft&&(r+="Metallbauer "),"optician"===e.craft&&(r+="Optiker "),"painter"===e.craft&&(r+="Maler "),"parquet_layer"===e.craft&&(r+="Parkettverleger "),"photographer"===e.craft&&(r+="Fotograf "),"photographic_laboratory"===e.craft&&(r+="Fotolabor "),"plasterer"===e.craft&&(r+="Gipser, Verputzer, Stuckateur "),"plumber"===e.craft&&(r+="Anlagenmechaniker Sanitär-, Heizungs- und Klimatechnik. "),"pottery"===e.craft&&(r+="Töpferei "),"rigger"===e.craft&&(r+="Riggemacher (Takelage für Segelschiffe) "),"roofer"===e.craft&&(r+="Dachdecker "),"saddler"===e.craft&&(r+="Sattler "),"sailmaker"===e.craft&&(r+="Segelmacher "),"sawmill"===e.craft&&(r+="Holzverarbeitungsbetrieb "),"scaffolder"===e.craft&&(r+="Gerüstbauer "),"sculptor"===e.craft&&(r+="Bildhauer "),"shoemaker"===e.craft&&(r+="Schuhmacher "),"stand_builder"===e.craft&&(r+="Messe- / Standbauer "),"stonemason"===e.craft&&(r+="Steinmetz "),"sun_protection"===e.craft&&(r+="Rolladen- und Jalousiebauer "),"sweep"===e.craft&&(r+="Schornsteinfeger "),"tailor"===e.craft&&(r+="Schneider "),"tiler"===e.craft&&(r+="Fliesen-, Platten- und Mosaikleger "),"tinsmith"===e.craft&&(r+="Spengler, Klempner "),"upholsterer"===e.craft&&(r+="Polsterer "),"watchmaker"===e.craft&&(r+="Uhrmacher "),"window_construction"===e.craft&&(r+="Fensterbauer "),"machines"===e.rental&&(r+="Maschinenverleih "),"car_rental"===e.amenity&&(r+="Autoverleih "),"allotments"===e.landuse&&(r+="Schrebergarten "),"basin"===e.landuse&&(r+="Regenwasserrückhaltebecken "),"brownfield"===e.landuse&&(r+="Vorher bebautes Land "),"commercial"===e.landuse&&(r+="Industriegebiet "),"construction"===e.landuse&&(r+="Baugebiet "),"farmland"===e.landuse&&(r+="Ackerfläche "),"farmyard"===e.landuse&&(r+="landwirtschaftlicher Betrieb "),"forest"===e.landuse&&(r+="Forst "),"garages"===e.landuse&&(r+="Garagenkomplex "),"grass"===e.landuse&&(r+="Rasenflächen "),"greenfield"===e.landuse&&(r+="Bauerwartungsland "),"greenhouse_horticulture"===e.landuse&&(r+="Gewächshaus-Fläche "),"industrial"===e.landuse&&(r+="Gewerbe-/Industriegebiet "),"landfill"===e.landuse&&(r+="Mülldeponie "),"meadow"===e.landuse&&(r+="Grünfläche "),"orchard"===e.landuse&&(r+="Obstplantage "),"plant_nursery"===e.landuse&&(r+="Baumschule "),"quarry"===e.landuse&&(r+="Sand- und Kiesgrube "),"railway"===e.landuse&&(r+="Gebiet für Eisenbahnnutzung "),"recreation_ground"===e.landuse&&(r+="Erholungsgebiet "),"reservoir"===e.landuse&&(r+="Wasserreservoir "),"residential"===e.landuse&&(r+="Wohngebiet "),"retail"===e.landuse&&(r+="Einkaufszentrum "),"salt_pond"===e.landuse&&(r+="Saline "),"village_green"===e.landuse&&(r+="Grünfläche "),"vineyard"===e.landuse&&(r+="Weinberg "),"pond"===e.landuse&&(r+="kleiner Teich "),"salt_pond"===e.landuse&&(r+="Saline "),"animal_keeping"===e.landuse&&(r+="Weide, Paddock für Tierhaltung "),"yes"===e.entrance&&(r+="Eingang zum Gebäude "),"main"===e.entrance&&(r+="Haupteingang "),"service"===e.entrance&&(r+="Hinterausgang für Angestellte oder Zulieferer "),"exit"===e.entrance&&(r+="Ausgang des Gebäudes "),"emergency"===e.entrance&&(r+="Notausgang "),"bay"===e.natural&&(r+="Bucht "),"beach"===e.natural&&(r+="Strand "),"wood"===e.natural&&(r+="natürlicher Wald "),"glacier"===e.natural&&(r+="Gletscher "),"cave_entrance"===e.natural&&(r+="Höhle "),"spring"===e.natural&&(r+="natürliche Quelle "),"waterfall"===e.natural&&(r+="Wasserfall "),"scrub"===e.natural&&(r+="unkultiviertes Buschland "),"grassland"===e.natural&&(r+="unkultiviertes Grasland "),"wetland"===e.natural&&(r+="Feuchtgebiet "),"tree"===e.natural&&(r+="Baum"),"peak"===e.natural&&"yes"===e["summit:cross"]&&(r+="Gipfelkreuz "),"tree_row"===e.natural&&(r+="Baumreihe / Allee "),"heath"===e.natural&&(r+="Heide "),"moor"===e.natural&&(r+="Hochmoor "),"grassland"===e.natural&&(r+="unkultiviertes Grasland "),"fell"===e.natural&&(r+="Grasland oberhalb der Baumgrenze "),"bare_rock"===e.natural&&(r+="Nackter Fels "),"scree"===e.natural&&(r+="Schutt (Hangschutt) "),"volcano"===e.natural&&(r+="Vulkan "),"valley"===e.natural&&(r+="Tal "),"stone"===e.natural&&(r+="Findling "),"sea"===e.natural&&(r+="Meer "),"national_park"===e.boundary&&(r+="Nationalpark "),"protected_area"===e.boundary&&(r+="Schutzgebiet "),"yes"===e.mountain_pass&&(r+="Gebirgspass "),"waterfall"===e.waterway&&(r+="Wasserfall "),"canal"===e.waterway&&(r+="Kanal "),"canal"===e.water&&(r+="Kanal "),"river"===e.waterway&&(r+="Fluss "),"river"===e.water&&(r+="Fluss "),"riverbank"===e.waterway&&(r+="Fluss "),"ditch"===e.waterway&&(r+="Entwässerungsgraben "),"stream"===e.waterway&&(r+="Bach "),"ferry"===e.route&&(r+="Fährverbindung "),"turning_point"===e.waterway&&(r+="Wendestelle "),"lake"!==e.water&&"water"!==e.natural||(r+="See "),"cove"===e.water&&(r+="kleine Bucht "),"lagoon"===e.water&&(r+="Lagune "),"pond"===e.water&&(r+="Teich "),"reservoir"===e.water&&(r+="Wasserreservoir "),"oxbow"===e.water&&(r+="Altwassersee "),"lock"===e.water&&(r+="Schleusenkammer "),"moat"===e.water&&(r+="Burggraben "),"wastewater"===e.water&&(r+="Kläranlage "),"guest"===e.mooring&&"pier"===e.man_made||"visitor_berth"===e["seamark:small_craft_facility:category"]?r+="Gastliegeplatz ":"pier"===e.man_made&&(r+="Anlegestelle "),"boatyard"===e.waterway&&(r+="Schiffswerft "),"mooring"===e["seamark:type"]&&"dolphin"===e["seamark:mooring:category"]&&(r+="Dalben "),"foot"===e.route&&(r+="Wanderweg "),"hiking"===e.route&&(r+="Wanderweg "),"yes"===e.hiking&&"information"===e.tourism)r+="Wegweiser ";else if("information"===e.tourism&&"information"===e.tourism)if(e.information)switch(e.information){case"board":default:r+="Informationstafel ";break;case"map":r+="Informationstafel mit Karte ";break;case"office":r+="Touristeninformation ";break;case"terminal":r+="Informationsterminal ";break;case"audioguide":r+="Audioguide ";break;case"guidepost":r+="Wegweiser ";break;case"tactile_map":r+="Blindenkarte 2D ";break;case"tactile_model":r+="Blindenkarte 3D ";break;case"route_marker":r+="Wegerkennungsmarker "}else r+="Informationstafel ";if("bicycle"===e.route&&(r+="Radwanderweg "),"mtb"===e.route&&(r+="Mountainbikeroute "),"horse"===e.route&&(r+="Reitwanderweg "),"coastline"===e.natural&&(r+="Küstenlinie "),"cliff"===e.natural&&(r+="Klippe "),"dam"===e.waterway&&(r+="Staudamm "),"weir"===e.waterway&&(r+="Wehr "),"lock_gate"===e.waterway&&(r+="Schleusentor "),"yes"===e.lock&&(r+="Schleuse "),"sluice_gate"===e.waterway&&(r+="Siel "),"pumping_station"===e.man_made&&(r+="Schöpfwerk "),"groyne"===e.man_made&&(r+="Buhne "),"dyke"===e.man_made&&(r+="Deich "),"levee"===e.man_made&&(r+="Deich "),"watermill"===e.man_made&&(r+="Wassermühle "),"airfield"===e.military&&(r+="Militärflugplatz "),"naval_base"===e.military&&(r+="Marinestützpunkt "),"range"===e.military&&(r+="Waffenübungsplatz "),"military"===e.landuse&&(r+="militärisch genutztes Gebiet "),"training_area"===e.military&&(r+="Truppenübungsplatz "),"exclusion_zone"===e.military&&(r+="militärisch genutztes Gebiet "),"danger_area"===e.military&&(r+="militärische Gefahrenzone "),"barracks"===e.military&&(r+="Kaserne "),"nuclear_explosion_site"===e.military&&(r+="Atomwaffentestgelände "),("yes"===e.construction||"construction"===e.highway)&&(r+="Baustelle "),"petroleum_well"===e.man_made&&(r+="Erdölpumpe "),"storage_tank"===e.man_made&&(r+="Speichertank "),"wastewater_plant"===e.man_made&&(r+="Kläranlage "),"silo"===e.man_made&&(r+="Silo "),"water_tower"===e.man_made&&(r+="Wasserturm "),"windmill"===e.man_made&&(r+="Windmühle "),"monitoring_station"===e.man_made&&(r+="Messstation"),"crane"===e.man_made&&(r+="Kran"),"lighthouse"===e.man_made&&(r+="Leuchtturm"),"beacon"===e.man_made&&(r+="Leuchtfeuer"),"breakwater"===e.man_made&&(r+="Wellenbrecher"),"lamp"===e.man_made&&"street_lamp"===e["lamp:type"]&&(r+="Strassenlaterne "),"lantern"===e.light_source&&(r+="Strassenlaterne "),"floodlight"===e.light_source&&(r+="Flutlicht "),"signal_lamp"===e.light_source&&(r+="Signallicht "),"aviation"===e.light_source&&(r+="Befeuerung "),"warning"===e.light_source&&(r+="Warnlicht "),e.light_source&&e["light:method"])switch(r+="Licht Art: ",e["light:method"]){case"gas":r+="Gas";break;case"electric":r+="Elektrisch";break;case"incandescent":r+="strahlend";break;case"halogen":r+="Halogen";break;case"discharge":r+="Entladungslicht";break;case"metal-halide":r+="Halogen-Metalldampflampe";break;case"neon":r+="Neon";break;case"sodium":r+="Natriumdampflampe";break;case"high_pressure_sodium":r+="Hochdruck Natriumdampflampe";break;case"low_pressure_sodium":r+="Niedrigdruck Natriumdampflampe";break;case"fluorescent":r+="Fluoreszenzlampe";break;case"mercury":r+="Quecksilberlampe";break;case"LED":r+="LED";break;case"laser":r+="Laser";break;case"arc":r+="Lichtbogen";break;default:r+="Unbekannt"}if("drinking_water"===e.amenity&&(r+="Trinkwasser "),"yes"===e.drinking_water&&(r+="Trinkwasser "),"works"===e.man_made||"industrial"===e.building?r+="Industriegebäude ":"industrial"===e.landuse||"industrial"===e.abutters?r+="Industriegebiet ":"commercial"===e.abutters&&(r+="Gewerbegebiet "),e["generator:source"])switch(r+="Anlagen-Typ: ",e["generator:source"]){case"biomass":case"biofuel":case"biogas":r+="Biogasanlage";break;case"coal":r+="Kohlekraftwerk";break;case"oil":r+="Ölraffinerie";break;case"waste":r+="Müllverbrennungsanlage";break;case"wind":r+="Windkraftwerk";break;case"solar":r+="Solarkraftwerk";break;case"hydro":r+="Wasserkraftwerk";break;case"tidal":r+="Gezeitenkraftwerk";break;case"wave":r+="Wellenkraftwerk";break;case"geothermal":r+="Geothermie";break;case"osmotic":r+="Osmosekraftwerk";break;case"nuclear":r+="Atomkraftwerk";break;default:r+="unbekannt "}if("photovoltaic"===e.power_source&&(r+="Solarkraftwerk"),"line"===e.power&&(r+="Hochspannungs-Übertragungsleitung "),"cable"===e.power&&(r+="Untergrundkabel "),"cable_distribution_cabinet"===e.power&&(r+="Kabelverteilerschrank "),"plant"===e.power&&(r+="Elektrizitätskraftwerk "),"station"===e.power&&(r+="Elektrizitätskraftwerk "),"sub_station"===e.power&&(r+="Elektrizitätskraftwerk "),"compensator"===e.power&&(r+="Kompensator "),"converter"===e.power&&(r+="Konverter "),"generator"===e.power&&(r+="Generator "),"heliostat"===e.power&&(r+="Heliostat "),"insulator"===e.power&&(r+="Isulator "),"busbar"===e.line&&(r+="Sammelschiene "),"bay"===e.line&&(r+="Verbindung Schaltung und Sammelschiene "),"minor_line"===e.power&&(r+="Nebenlinie "),"pole"===e.power&&(r+="Pfahl "),"portal"===e.power&&(r+="H-förmiger Mast "),"catenary_mast"===e.power&&(r+="Fahrleitungsmast "),"substation"===e.power&&(r+="Umspannwerk "),"switch"===e.power&&(r+="Lastschalter "),"terminal"===e.power&&(r+="Terminal / Anschluss "),"tower"===e.power&&(r+="Hochspannungsleitungs "),"transformer"===e.power&&(r+="Nebenlinie "),e.barrier)switch(e.barrier){case"bollard":r+="Poller, Pfosten ";break;case"cycle_barrier":r+="Umlaufsperre, Drängelgitter ";break;case"gate":r+="Tor, Schranke ";break;case"chain":r+="Kette ";break;case"lift_gate":r+="Schlagbaum ";break;case"wall":r+="Lärmschutzwand ";break;case"toll_booth":r+="Mautstelle ";break;case"fence":switch(e.fence_type){case"barbed_wire":r+="Stacheldrahtzaun ";break;case"wood":r+="Holzzaun ";break;case"chain_link":r+="Maschendrahtzaun ";break;case"electric":r+="Weidezaun ";break;case"railing":r+="Geländer ";break;case"wire":r+="einfacher Drahtzaun ";break;case"metal":r+="Metallzaun ";break;case"pole":r+="Holzpfähle ";break;default:r+="Zaun "}break;case"block":r+="Block ";break;case"ditch":r+="Graben ";break;case"border_control":r+="Grenzkontrolle ";break;case"hedge":r+="Hecke ";break;case"retaining_wall":r+="Stützmauer ";break;case"cattle_grid":r+="Weiderost ";break;case"horse_stile":r+="Zaunübertritt ";break;default:r+="unbekannt "}if("noise_barrier"===e.wall&&(r+="Lärmschutzwand "),"retaining_wall"===e.designation&&(r+="Lärmschutzwand "),"noise_barrier"===e.designation&&(r+="Lärmschutzwand "),"surveillance"===e.man_made&&(r+="Überwachter Bereich "),e.aeroway)switch(r+="Flughafen: ",e.aeroway){case"aerodrome":r+="Flugplatz";break;case"apron":r+="Vorfeld";break;case"gate":r+="gate";break;case"helipad":r+="Hubschrauberlandeplatz";break;case"hangar":r+="Hangar";break;case"runway":r+="Start-/Landebahn";break;case"taxiway":r+="Rollweg";break;case"terminal":r+="Flughafengebäude";break;default:r+="unbekannt "}if("halt"===e.railway&&(r+="Bahn-Haltepunkt "),"crossing"===e.railway&&(r+="Bahnübergang "),"level_crossing"===e.railway&&(r+="Bahnübergang "),"station"===e.railway&&(r+="Bahnhof "),"bus_station"===e.amenity&&(r+="Busbahnhof "),"bus_station"===!e.amenity&&"station"===e.public_transport&&"yes"===e.bus&&(r+="Busbahnhof "),"rail"===e.railway&&(r+="Bahnlinie ","contact_line"===e.electrified&&(r+="elektrifizierte Bahntrasse mit Oberleitung ")),"tram"===e.railway&&(r+="Straßenbahnlinie "),"slipway"!==e["seamark:small_craft_facility:category"]&&"slipway"!==e.harbour&&"slipway"!==e.leisure||(r+="Slipanlage "),"harbour"===e["seamark:type"])if(e["seamark:harbour:category"])switch(e["seamark:harbour:category"]){case"ferry":r+="Fährhafen ";break;case"container":r+="Containerhafen ";break;case"marina":"marina"!==e.leisure&&(r+="Jachthafen ");break;case"navel_base":r+="Marine-Hafen ";break;case"tanker":r+="Hafen für Öltanker ";break;case"passenger":r+="Personenschifffahrt ";break;case"bulk":r+="Schüttgut-Hafen ";break;default:r+="Hafen "}else r+="Hafen ";return"marina"===e.leisure&&(r+="Jachthafen "),"wreck"===e.historic&&(r+="Wrack "),"animal_shelter"===e.amenity&&(r+="Tierheim "),"shelter"===e.animal&&(r+="Tierheim "),"horse_walker"===e.animal&&(r+="Pferdelauftrainer "),"yes"===e.animal_shelter&&(r+="Tierheim "),"dog"===e.animal_shelter&&(r+="Tierheim "),"cat"===e.animal_shelter&&(r+="Tierheim "),"animal_boarding"===e.amenity&&(r+="Tierpension "),"yes"===e.animal_boarding&&(r+="Tierpension "),"dog"===e.animal_boarding&&(r+="Tierpension "),"horse"===e.animal_boarding&&(r+="Tierpension "),"cat"===e.animal_boarding&&(r+="Tierpension "),"dog;cat"===e.animal_boarding&&(r+="Tierpension "),"cat;dog"===e.animal_boarding&&(r+="Tierpension "),"school"!==e.animal&&"sport"!==e.animal&&"animal_training"!==e.amenity||(r+="Tiertraining "),"swimming"===e.animal&&(r+="Badestelle für Hunde "),"feeding_place"!==e.amenity&&"animal_feeding"!==e.man_made&&"animal_feeding"!==e.amenity||(r+="Fütterungsstelle "),"wildlife_feeding"!==e.amenity&&"deer_feeding"!==e.amenity&&"game_feeding"!==e.amenity||(r+="Wildfütterung "),"cratch"!==e.amenity&&"cratch"!==e.man_made&&"feeding_rack"!==e.amenity||(r+="Futterraufe "),"manger"===e.amenity&&(r+="Krippe "),"birdhouse"===e.man_made&&(r+="Vogelhaus "),"stork"===e.birds_nest&&(r+="Storchennest "),"nest_box"===e.amenity&&(r+="Nistkasten "),"wellness"===e.animal&&(r+="Hundesalon "),"cemetery"===e.animal&&(r+="Kleintierfriedhof "),"stable"!==e.building&&"stable"!==e["building:use"]||(r+="Pferdestall "),"cowshed"===e.building&&(r+="Kuhstall "),"sty"===e.building&&(r+="Schweinestall "),"barn"===e.building&&(r+="Scheune / landwirtsch. Lagerhalle "),"farm_auxiliary"===e.building&&(r+="landwirtschaftl. Nebengebäude "),(e["river:waterway_distance"]||"milestone"===e.waterway)&&(r+="Flusskilometer "),"milestone"===e.highway&&(r+="Strassenkilometer "),"market"===e["xmas:feature"]&&(r+="Weihnachtsmarkt "),"tree"===e["xmas:feature"]&&(r+="Weihnachtsbaumverkauf "),"event"===e["xmas:feature"]&&(r+="Weihnachtsevent "),"pyramid"===e["xmas:feature"]&&(r+="Weihnachtspyramide "),'"}(e),'"}function s(e,r){var n="",s=!1;if(e["addr:housename"]&&(n+="Gebäudename: "+e["addr:housename"]+" ",s=!0),e["addr:floor"]?(n+="Etage: "+e["addr:floor"]+" ",s=!0):e["addr:level"]&&(n+="Etage: "+e["addr:level"]+" ",s=!0),e["addr:street"]&&(n+=e["addr:street"],e["addr:housenumber"]?n+=" "+e["addr:housenumber"]+" ":n+=" ",s=!0),e["addr:postcode"]&&(n+=e["addr:postcode"]+" "),e["addr:city"]&&(n+=e["addr:city"]+" ",s=!0),e.sqkm)if(e.sqkm=""+e.sqkm,e.sqkm.length>3){var l=e.sqkm.length%3,c=l>0?e.sqkm.substring(0,l):"";for(i=0;i "}else n+="Fläche "+e.sqkm+" ";if(e["contact:phone"]&&(a()?(n+='Telefon: '+e["contact:phone"]+" ",s=!0):(n+='Telefon: '+e["contact:phone"]+" ",s=!0)),e.phone&&(a()?(n+='Telefon: '+e.phone+" ",s=!0):(n+='Telefon: '+e.phone+" ",s=!0)),e["contact:fax"]?(n+="Telefax: "+e["contact:fax"]+" ",s=!0):e.fax&&(n+="Telefax: "+e.fax+" ",s=!0),e["contact:email"]?(n+='E-Mail-Adresse: '+e["contact:email"]+" ",s=!0):e.email&&(n+='E-Mail-Adresse: '+e.email+" ",s=!0),s&&(n+=" "),e.opening_hours){for(var u=e.opening_hours,p=0;0===p||u.indexOf(";")>0;)u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=u.replace("PH","FT")).replace("Tu","Di")).replace("We","Mi")).replace("Th","Do")).replace("Su","So")).replace("Mar","Mär")).replace("May","Mai")).replace("Oct","Okt")).replace("Dec","Dez")).replace('"Please make a reservation"','"Bitte vereinbaren Sie einen Termin"')).replace("off","ausgenommen"),p>0&&(u=u.replace(";"," ")),p++;n+='Öffnungszeiten: '+u+"
",u.indexOf("FT")>0?n+="(FT = Feiertag) ":n+=" "}if(e["xmas:opening_hours"]){for(u=e["xmas:opening_hours"],p=0;0===p||u.indexOf(";")>0;)u=(u=(u=(u=(u=(u=(u=(u=(u=u.replace("PH","FT")).replace("Tu","Di")).replace("We","Mi")).replace("Th","Do")).replace("Su","So")).replace("Mar","Mär")).replace("May","Mai")).replace("Oct","Okt")).replace("Dec","Dez"),p>0&&(u=u.replace(";"," ")),p++;n+='Öffnungszeiten: '+u+"
",u.indexOf("FT")>0?n+="(FT = Feiertag) ":n+=" "}if(e["xmas:url"]){var b="";t(b=e["xmas:url"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Website: Link zur Website '}e["contact:website"]?(b="",t(b=e["contact:website"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Website: Link zur Website '):e.website&&(b="",t(b=e.website),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Website: Link zur Website '),e.wikipedia&&(b="",t(b=e.wikipedia),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://wikipedia.org/wiki/"+b),n+='Wikipedia: Link zu Wikipedia '),e.wikimedia_commons&&(b="",t(b=e.wikimedia_commons),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://commons.wikimedia.org/wiki/"+b),n+='Wikimedia: Link zu Wikimedia '),e["contact:webcam"]&&(b="",t(b=e["contact:webcam"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='Webcam: Link zur Webcam '),e.image&&(n+=' ');var d="";if(e.internet_access&&(d+="Internetzugriff: "+o(e.internet_access)+" "),e["internet_access:fee"]&&(d+="Internet Gebühr: "+o(e["internet_access:fee"])+" "),e["wifi_access:operator"]&&(d+="wifi Betreiber: "+e["wifi_access:operator"]+" "),e["wifi_access:technology"]&&(d+="wifi Technologie: "+e["wifi_access:technology"]+" "),e["wifi_access:ssid"]&&(d+="wifi ssid: "+e["wifi_access:ssid"]+" "),""!==d&&(n+='Internetzugang vorhanden'+d+"
"),e.wheelchair&&(n+="rollstuhlgeeignet: "+o(e.wheelchair)+" "),e["wheelchair:description"]&&(n+="Beschreibung: "+e["wheelchair:description"]+" "),e["wheelchair:entrance_width"]&&(n+="Breite des Eingangs in CM: "+e["wheelchair:entrance_width"]+" "),e["wheelchair:step_height"]&&(n+="Höhe der Stufe am Eingang in CM: "+e["wheelchair:step_height"]+" "),e["wheelchair:rooms"]&&(n+="Anzahl rollstuhlgerechter Räume: "+e["wheelchair:rooms"]+" "),e["wheelchair:places"]&&(n+="Anzahl der Rollstuhlplätze: "+e["wheelchair:places"]+" "),e["cent:places"]&&(n+="Anzahl der Rollstuhlplätze: "+e["wheelchair:places"]+" "),e["ramp:wheelchair"]&&(n+="Rampe für Rollstuhlfahrer: "+e["ramp:wheelchair"]+" "),e["capacity:disabled"]&&(n+="Behindertenparkplätze: "+o(e["capacity:disabled"])+" "),e["toilets:wheelchair"]&&(n+="Behinderdengerechte Toilette: "+o(e["toilets:wheelchair"])+" "),e.centralkey&&(n+="Zentralschlüssel: "+e.centralkey+" "),e.note&&(n+=e.note+" "),e.description&&(n+=e.description+" "),e.operator&&(n+="Betreiber: "+e.operator+" "),e.ref&&(n+="Referenz: "+e.ref+" "),"yes"===e.lit&&(n+="Dieses Objekt ist beleuchtet. "),e.shop){var h="";e.brand&&(h+="Markenzeichen: "+e.brand+" "),e.sells&&(h+="Verkaufs: "+e.sells+" "),e.origin&&(h+="Herkunftsländer: "+e.origin+" "),"yes"===e.wholesale&&(h+="Großhändler: Ja "),""!==h&&(n+='Weitere Angaben zum Shop: '+h+"
")}return r&&(t(b=r),n+=" ",n+='OSM: Link zur OpenStreetMap '),'"}Object.defineProperty(r,"__esModule",{value:!0}),r.fnTestInfoPopup=r.fnStandardInfoPopup=r.fnReducedInfoPopup=r.fnMessstation=r.fnContentTourism=r.fnContentStreetsTraffic=r.fnContentStorage=r.fnContentSports=r.fnContentShipping=r.fnContentRoute=r.fnContentProtectedArea=r.fnContentPetrol=r.fnContentNatural=r.fnContentLanduse=r.fnContentInformationCity=r.fnContentHydrants=r.fnContentHistoric=r.fnContentHealthcare=r.fnContentGeneralInformations=r.fnContentEmergency=r.fnContentCuisine=r.fnContentBarriers=r.fnContentAmenity=r.fnContentAerodrome=r.fnContent=void 0,r.fnStandardInfoPopup=function(e,r){var t=e.getProperties(),a="";return a+=n(t,r),a+=l(t),'"},r.fnReducedInfoPopup=function(e,r){var t,a=e.getProperties(),o="",i=!1;switch(t="function"==typeof r?r.call(e)[0].getImage().getSrc():r.getImage().getSrc(),("restaurant"===a.amenity||"pub"===a.amenity||"biergarten"===a.amenity)&&(i=!0),"hotel"===a.tourism&&(i=!0),"guest_house"===a.tourism&&(i=!0),"chalet"===a.tourism&&(i=!0),"hostel"===a.tourism&&(i=!0),"alpine_hut"===a.tourism&&(i=!0),"artwork"!==a.tourism&&"artwork"!==a.amenity||(i=!0),"museum"!==a.tourism&&"museum"!==a.amenity||(i=!0),"cinema"===a.amenity&&(i=!0),"theatre"===a.amenity&&(i=!0),"attraction"!==a.amenity&&"fountain"!==a.amenity&&"monument"!==a.historic&&"city_gate"!==a.historic&&"ruins"!==a.historic&&"castle"!==a.historic&&"attraction"!==a.tourism||(i=!0),"playground"===a.leisure&&(i=!0),a.aerialway&&(i=!0),"swimming_pool"!==a.amenity&&"swimming_pool"!==a.leisure&&"swimming"!==a.sport||(i=!0),"station"===a.railway&&(i=!0),"swimming"===a.sport&&(i=!0),"swimming_pool"===a.leisure&&(i=!0),"swimming_pool"===a.amenity&&(i=!0),"waterpark"===a.leisure&&(i=!0),a.water_park&&(i=!0),"sports_centre"===a.leisure&&(i=!0),i){case!1:o+=n(a,t),o+=l(a),o+=s(a,e.get("osm_type")?e.get("osm_type")+"/"+e.getId():e.getId());break;case!0:o+=n(a,t)}return'"};var l=r.fnContent=function(e){var r="";return r+=O(e),r+=T(e),r+=c(e),r+=w(e),r+=S(e),r+=C(e),r+=E(e),r+=R(e),r+=k(e),r+=v(e),r+=_(e),r+=y(e),r+=f(e),r+=h(e),r+=m(e),r+=g(e),r+=b(e),r+=u(e),r+=function(e){var r="";if(e["monastery:type"])switch(e["monastery:type"]){case"monastery":r+="Typ: Klösterliche Gemeinschaft (monastery) ";break;case"convent":r+="Typ: Bettelmönch Gemeinschaft (convent) ";break;case"canonry":r+="Typ: Kanonikat (canonry) ";break;case"commandry":r+="Typ: Militär geführt (commandry) ";break;case"hermitage":r+="Typ: Einsiedelei (hermitage) ";break;default:r+="Typ: unbekannt "}if(e["community:gender"]&&("male"===e["community:gender"]&&(r+="Geschlecht: Männergemeinschaft "),"female"===e["community:gender"]&&(r+="Geschlecht: Frauengemeinschaft ")),e.religious_rank&&("abbey"===e.religious_rank?r+="Religiöser Rang: Abtei ":"abbey"===e.religious_rank&&(r+="Religiöser Rang: Erzabtei ")),"yes"===e.shrine&&(r+="Besonderheit: Heiligengrab / Reliquienschrein "),"yes"===e.sanctuary&&(r+="Besonderheit: Heiligtum / Altarraum (Sanktuar) "),e.religion)switch(e.religion){case"animist":r+="Religion: animistisch ";break;case"bahai":r+="Religion: bahai ";break;case"buddhist":r+="Religion: buddhistisch ";break;case"christian":r+="Religion: christlich ";break;case"hindu":r+="Religion: hinduistisch ";break;case"IglesiaNiCristo":r+="Religion: IglesiaNiCristo ";break;case"jain":r+="Religion: jain ";break;case"jewish":r+="Religion: jüdisch ";break;case"multifaith":r+="Religion: pluralistisch ";break;case"muslim":r+="Religion: muslimisch ",type+="Moschee ";break;case"pagan":r+="Religion: heidnisch ";break;case"pastafarian":r+="Religion: pastafarisch ";break;case"scientologist":r+="Religion: scientologisch ";break;case"shinto":r+="Religion: schintoistisch ";break;case"sikh":r+="Religion: sikh ";break;case"spiritualist":r+="Religion: spiritistisch ";break;case"taoist":r+="Religion: taoistisch ";break;case"unitarian":r+="Religion: unitarian ";break;case"yazidi":r+="Religion: yazidi ";break;case"zoroastrian":r+="Religion: zoroastrisch ";break;default:r+="Religion: unbekannt "}if(e.denomination)switch(e.denomination){case"anglican":r+="Konfession: Anglikanische Gemeinschaft ";break;case"baptist":r+="Konfession: Baptisten ";break;case"catholic":r+="Konfession: Katholische Kirche, ohne genauere Spezifizierung ";break;case"roman_catholic":r+="Konfession: Römisch-Katholische Kirche ";break;case"old_catholic":r+="Konfession: Altkatholische Kirche (Schweiz: Christ-Katholisch) ";break;case"greek_catholic":r+="Konfession: Griechisch-Katholische Kirche, Sammelbezeichnung für die mit Rom unierten Ostkirchen des byzantinischen Ritus ";break;case"evangelical":r+="Konfession: Evangelikalismus ist eine theologische Richtung innerhalb des Protestantismus. Achtung! Nicht verwechseln mit der evangelischen (= protestantischen) Kirche ";break;case"jehovahs_witness":r+="Konfession: Zeugen Jehovas ";break;case"lutheran":r+="Konfession: Lutheraner, evangelisch-lutherisch ";break;case"mennonite":r+="Konfession: Mennoniten ";break;case"messianic_jewish":r+="Konfession: Messianische Juden, stehen theologisch den evangelikalen Christen nahe. ";break;case"methodist":r+="Konfession: Methodist Church (engl. Methodism) ";break;case"mormon":r+="Konfession: Mormonen ";break;case"new_apostolic":r+="Konfession: Neuapostolische Kirche ";break;case"orthodox":r+="Konfession: Orthodox, ohne genauere Spezifizierung ";break;case"greek_orthodox":r+="Konfession: Griechisch-Orthodox ";break;case"coptic_orthodox":r+="Konfession: Koptische Kirche, ist die christliche altorientalische Kirche Ägyptens. ";break;case"pentecostal":r+="Konfession: Pfingstbewegung ";break;case"presbyterian":r+="Konfession: Presbyterianische Kirchen ";break;case"protestant":r+="Konfession: Evangelische Kirchen ";break;case"quaker":r+="Konfession: Quäker ";break;case"reformed":r+="Konfession: Evangelisch-reformierte ";break;case"russian_orthodox":r+="Konfession: Russisch-Orthodox ";break;case"seventh_day_adventist":r+="Konfession: Siebenten-Tags-Adventisten ";break;case"christian_community":r+="Konfession: Die Christengemeinschaft ist eine christliche Kirche, die sich als selbständige Kultusgemeinschaft versteht. ";break;case"adventist":r+="Konfession: Adventisten, nicht alle Adventisten sind Siebenten-Tags-Adventisten. ";break;case"alliance":r+="Konfession: Christian and Missionary Alliance (C&MA) is an evangelical Protestant denomination within Christianity. ";break;case"assemblies_of_god":r+="Konfession: Assemblies of God, ist eine pfingstlerische Denomination. ";break;case"apostolic":r+="Konfession: Apostolische Kirche ";break;case"armenian_apostolic":r+="Konfession: Armenische Apostolische Kirche, ist eine altorientalische Kirche. ";break;case"assyrian":r+="Konfession: Assyrische Kirche des Ostens, auch Apostolische Kirche des Ostens, ist eine autokephale und völlig eigenständige Ostkirche syrischer Tradition in Nachfolge des altchristlichen Katholikats von Seleukia-Ktesiphon. ";break;case"christ_scientist":r+="Konfession: Christian Science (deutsch: Christliche Wissenschaft) ging aus der Neugeist-Bewegung hervor. ";break;case"church_of_scotland":r+="Konfession: Church of Scotland (dt. Kirche Schottlands) ist die Nationalkirche in Schottland. Im Sprachgebrauch auch „the Kirk“ genannt. ";break;case"czechoslovak_hussite":r+="Konfession: Tschechoslowakische Hussitische Kirche, ist eine christliche Kirche, die durch Abspaltung von der Römisch-Katholischen Kirche entstanden ist. Oft auch Neuhussitische Kirche genannt, vornehmlich in Tschechien verbreitet, aber auch in der Slowakei ";break;case"dutch_reformed":r+="Konfession: Niederländisch-reformierte Kirche, (einschließlich NGK und ähnliche Kirchen in Südafrika) ";break;case"exclusive_brethren":r+="Konfession: Exclusive Brethren ";break;case"foursquare":r+="Konfession: International Church of the Foursquare Gospel ";break;case"kimbanguist":r+="Konfession: Kimbanguistenkirche, ist eine afrikanische, unabhängige, christliche Kirche. ";break;case"living_waters_church":r+="Konfession: Living Waters Christian Church ";break;case"mariavite":r+="Konfession: Mariavitismus ";break;case"maronite":r+="Konfession: Syrisch-maronitische Kirche, ist eine mit Rom unierte, christliche Kirche, die den römischen Papst als Oberhaupt anerkennt. ";break;case"moravian":r+="Konfession: Herrnhuter Brüdergemeine, (auch: Unitas Fratrum, Evangelische oder Erneuerte Brüder-Unität, engl. Moravian Church) ist eine aus der böhmischen Reformation herkommende überkonfessionell-christliche Glaubensbewegung. ";break;case"nazarene":r+="Konfession: Kirche des Nazareners, ist eine Freikirche und Heiligungsgemeinde in methodistischer Tradition. ";break;case"nondenominational":r+="Konfession: Nondenominational Christianity ";break;case"old_believers":r+="Konfession: Altorthodoxe, (häufiger Altgläubige) ist eine Sammelbezeichnung für religiöse Strömungen und Gruppen innerhalb der russisch-orthodoxen Tradition. ";break;case"polish_catholic":r+="Konfession: Polnisch-Katholische Kirche ";break;case"salvation_army":r+="Konfession: Heilsarmee, ist eine christliche Freikirche mit ausgeprägter sozialer Tätigkeit. ";break;case"santo_daime":r+="Konfession: Santo Daime, ist einer synkretistischen religiöse Bewegung aus Brasilien. ";break;case"serbian_orthodox":r+="Konfession: Serbisch-Orthodoxe Kirche, bezeichnet die orthodoxe Kirche von Serbien und die ihr nachgeordneten Kirchen. ";break;case"spiritism":r+="Konfession: Spiritismus, oder Spiritualismus die Lehre des Spiritisten Allan Kardec ";break;case"united":r+="Konfession: United Church of Canada, ist die zweitgrößte Kirche in Kanada. ";break;case"united_church_of_christ":r+="Konfession: United Church of Christ, ist eine Kirche in den USA. ";break;case"united_free_church_of_scotland":r+="Konfession: United Free Church of Scotland, ist eine presbyterianische Freikirche in Schottland. ";break;case"united_methodist":r+="Konfession: Evangelisch-methodistische Kirche, (engl. United Methodist Church (UMC)) ist eine christliche Kirche in der wesleyanischen Tradition. ";break;case"united_reformed":r+="Konfession: United Reformed Church, (Vereinigte Reformierte Kirche, URC) ist eine reformierte Kirche in Großbritannien. ";break;case"uniting":r+="Konfession: Uniting Church in Australia (UCA) ist die drittgrößte christliche Denomination in Australien. ";break;case"church_of_sweden":r+="Konfession: Schwedische Kirche, ist die evangelisch-lutherische Kirche und ehemalige Staatskirche Schwedens. ";break;case"mission_covenant_church_of_sweden":r+="Konfession: Schwedische Missionskirche ist eine reformierte Kirche in Schweden. ";break;case"alternative":r+="Konfession: alternative ";break;case"ashkenazi":r+="Konfession: ashkenazi ";break;case"buchari":r+="Konfession: buchari ";break;case"conservative":r+="Konfession: conservative ";break;case"egalitarian":r+="Konfession: egalitarian ";break;case"hasidic":r+="Konfession: hasidic ";break;case"humanistic":r+="Konfession: humanistic ";break;case"kabbalah":r+="Konfession: kabbalah ";break;case"kabbalistic":r+="Konfession: kabbalistic ";break;case"karaite":r+="Konfession: karaite ";break;case"liberal":r+="Konfession: liberal ";break;case"lubavitch":r+="Konfession: lubavitch ";break;case"lubavitch_messianic":r+="Konfession: lubavitch_messianic ";break;case"mizrachi_baghdadi":r+="Konfession: mizrachi_baghdadi ";break;case"mizrachi_chida":r+="Konfession: mizrachi_chida ";break;case"mizrachi_jerusalemite":r+="Konfession: mizrachi_jerusalemite ";break;case"mizrachi_livorno":r+="Konfession: mizrachi_livorno ";break;case"mizrachi_moroccan":r+="Konfession: mizrachi_moroccan ";break;case"modern_orthodox":r+="Konfession: modern_orthodox ";break;case"neo_orthodox":r+="Konfession: neo_orthodox ";break;case"nondenominational":r+="Konfession: nondenominational ";break;case"orthodox":r+="Konfession: orthodox ";break;case"orthodox_ashkenaz":r+="Konfession: orthodox_ashkenaz ";break;case"orthodox_sefard":r+="Konfession: orthodox_sefard ";break;case"progressive":r+="Konfession: progressive ";break;case"reconstructionist":r+="Konfession: reconstructionist ";break;case"reform":r+="Konfession: reform ";break;case"renewal":r+="Konfession: renewal ";break;case"samaritan":r+="Konfession: samaritan ";break;case"sefardi":r+="Konfession: sefardi ";break;case"sefardi_amsterdam":r+="Konfession: sefardi_amsterdam ";break;case"sefardi_london":r+="Konfession: sefardi_london ";break;case"traditional":r+="Konfession: traditional ";break;case"ultra_orthodox":r+="Konfession: ultra_orthodox ";break;case"unaffiliated":r+="Konfession: unaffiliated ";break;case"yemenite":r+="Konfession: yemenite ";break;case"yemenite_baladi":r+="Konfession: yemenite_baladi ";break;case"yemenite_shami":r+="Konfession: yemenite_shami ";break;case"ahmadiya":r+="Konfession: ahmadiya ";break;case"alaouite":r+="Konfession: alaouite ";break;case"druze":r+="Konfession: druze ";break;case"ibadi":r+="Konfession: ibadi ";break;case"ismaili":r+="Konfession: ismaili ";break;case"shia":r+="Konfession: shia ";break;case"sunni":r+="Konfession: sunni ";break;case"nichiren":r+="Konfession: nichiren ";break;case"jodo_shinshu":r+="Konfession: jodo_shinshu ";break;case"jodo_shu":r+="Konfession: jodo_shu ";break;case"vajrayana":r+="Konfession: vajrayana ";break;case"shingon_shu":r+="Konfession: shingon_shu ";break;case"zen":r+="Konfession: zen ";break;case"thai_mahanikaya":r+="Konfession: thai_mahanikaya ";break;case"thai_thammayut":r+="Konfession: thai_thammayut ";break;case"asatru":r+="Konfession: asatru ";break;case"celtic":r+="Konfession: celtic ";break;case"greco-roman":r+="Konfession: greco-roman ";break;case"wicca":r+="Konfession: wicca ";break;case"irani":r+="Konfession: irani ";break;case"parsi":r+="Konfession: parsi ";break;default:r+="unbekannt "}if(e.community)switch(e.community){case"AA":r+="Ordensgemeinschaft (AA): Augustinians of the Assumption ";break;case"BSCM":r+="Ordensgemeinschaft (BSCM): Adorers of the Sacred Heart of Jesus of Montmartre ";break;case"CBMV":r+="Ordensgemeinschaft (CBMV): Augustiner-Chorfrauen B.M.V. ";break;case"CO":r+="Ordensgemeinschaft (CO): Oratorians ";break;case"CMC":r+="Ordensgemeinschaft (CMC): Congregation of the Mother Co-Redemptrix ";break;case"CRSP":r+="Ordensgemeinschaft (CRSP): Kongregation der Regularkleriker vom hl. Paulus (Barnabiten) ";break;case"CSJ":r+="Ordensgemeinschaft (CSJ): Carmel Saint-Joseph ";break;case"CSSP":r+="Ordensgemeinschaft (CSSP): Congrégation du Saint-Esprit ";break;case"CSSR":r+="Ordensgemeinschaft (CSSR): Congrégation du Très Saint Rédempteur ";break;case"FCJM":r+="Ordensgemeinschaft (FCJM): Franciscan Sisters, Daughters of the Sacred Heart of Jesus and Mary ";break;case"FMGB":r+="Ordensgemeinschaft (FMGB): Suore Francescane Missionarie di Gesù Bambino ";break;case"FMH":r+="Ordensgemeinschaft (FMH): Congregatio Filiarum Mariae Sanctissimae ab Horto ";break;case"FMM":r+="Ordensgemeinschaft (FMM): Franciscaines missionnaires de Marie ";break;case"FSC":r+="Ordensgemeinschaft (FSC): Frères des Écoles chrétiennes ";break;case"MCCI":r+="Ordensgemeinschaft (MCCI): Missionnaires comboniens du Sacré-Cœur ";break;case"MSFS":r+="Ordensgemeinschaft (MSFS): Missionnaires de Saint François de Sales ";break;case"OCart":r+="Ordensgemeinschaft (OCart): Order of the Carthusians ";break;case"OCC":r+="Ordensgemeinschaft (OCC): Ordre de Notre Dame du Mont-Carmel ";break;case"OCD":r+="Ordensgemeinschaft (OCD): Ordre des Carmes déchaux ";break;case"OCSO":r+="Ordensgemeinschaft (OCSO): Zisterzienserorden der strengeren Observanz (Trappisten) ";break;case"OFM":r+="Ordensgemeinschaft (OFM): Ordre des Frères Mineurs (Franziskaner) ";break;case"OFMCap":r+="Ordensgemeinschaft (OFMCap): Ordre des Frères Mineurs Capucins ";break;case"OFMConv":r+="Ordensgemeinschaft (OFMConv): Ordre des Frères Mineurs Conventuels ";break;case"OFS":r+="Ordensgemeinschaft (OFS): Franciscans secular Third Order ";break;case"OMI":r+="Ordensgemeinschaft (OMI): Oblats de Marie ";break;case"OP":r+="Ordensgemeinschaft (OP): Ordre des Frères Prêcheurs ";break;case"OPraem":r+="Ordensgemeinschaft (OPraem): Ordre des chanoines réguliers de Prémontré ";break;case"OSB":r+="Ordensgemeinschaft (OSB): Order of Saint Benedict ";break;case"OSC":r+="Ordensgemeinschaft (OSC): Ordre de Sainte-Claire ou Ordre des Pauvres Dames ";break;case"OSSS":r+="Ordensgemeinschaft (OSSS): Ordre de Sainte-Brigitte ";break;case"OVM":r+="Ordensgemeinschaft (OVM): Order of the Visitation of Holy Mary (Salesianerinnen) ";break;case"PSDP":r+="Ordensgemeinschaft (PSDP): Petites sœurs des pauvres (Kleinen Schwestern der Armen) ";break;case"PFJ":r+="Ordensgemeinschaft (PFJ): Petits Frères de Jésus ";break;case"SDB":r+="Ordensgemeinschaft (SDB): Société de Saint François de Sales ";break;case"SJ":r+="Ordensgemeinschaft (SJ): Compagnie de Jésus ";break;case"SOC":r+="Ordensgemeinschaft (SOC): Order of Cistercians ";break;case"SSCC":r+="Ordensgemeinschaft (SSCC): Congregation of the Sacred Hearts of Jesus and Mary ";break;case"SSF":r+="Ordensgemeinschaft (SSF): Society of St Francis ";break;case"SSJE":r+="Ordensgemeinschaft (SSJE): Society of St John the Evangelist ";break;case"SSpS":r+="Ordensgemeinschaft (SSpS): Steyler Missionsschwestern ";break;case"TOR":r+="Ordensgemeinschaft (TOR): Terzo Ordine Regolare di San Francesco ";break;default:r+="unbekannt "}return r}(e),r+=function(e){var r="";return"surveillance"===e.man_made&&("indoor"===e.surveillance&&(r+="Innenbereich wird überwacht"),"outdoor"===e.surveillance&&(r+="Außenbereich wird überwacht"),"public"===e.surveillance&&(r+="Öffentliche Überwachung"),"camera"===e["surveillance:type"]&&(r+="Überwachungstyp: Kamera"),"guard"===e["surveillance:type"]&&(r+="Überwachungstyp: Wächter"),"ALPR"===e["surveillance:type"]&&(r+="Überwachungstyp: ALPR"),"town"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Ort"),"parking"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Parkplatz"),"traffic"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Verkehr"),"shop"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Shops"),"bank"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Bank"),"building"===e["surveillance:zone"]&&(r+="Überwachungsbereich: Gebäude")),r}(e),r+=function(e){var r="";if(e["building:color"]&&(r+="Gebäudenfarbe: "+e["building:color"]+""),e["building:height"]&&(r+="Gebäudenhöhe: "+e["building:height"]+" m"),e["building:level"]&&(r+="Etage: "+e["building:level"]+""),e["building:part"]){switch(e["building:part"]){case"roof":t="Dach";break;case"retail":t="Einzelhandel";break;case"tower":t="Turm";break;default:t=e["building:part"]}r+="Gebäudeteile: "+e["building:part"]+""}if(e["roof:color"]&&(r+="Dachfarbe: "+e["roof:colour"]+""),e["roof:shape"]){switch(e["roof:shape"]){case"gabled":t="Satteldach";break;case"flat":t="Flachdach";break;case"skillion":t="Schrägdach";break;case"half-hipped":t="Schopf- oder Krüppelwalmdach";break;case"hipped":t="Walmdach";break;case"pyramidal":t="Zeltdach";break;case"gambrel":t="Mansard-Giebeldach";break;case"mansard":t="Mansard-Walmdach";break;case"dome":t="Kuppeldach";break;case"onion":t="Zwiebelhelm";break;case"round":t="Tonnendach";break;case"saltbox":t="Berliner Dach";break;default:t=e["roof:shape"]}r+="Dachform: "+e["roof:shape"]+""}if(e["roof:height"]&&(r+="Dachhöhe: "+e["roof:height"]+" m"),e["roof:material"]){switch(e["roof:material"]){case"concrete":t="Beton";break;case"copper":t="Kupfer";break;case"eternit":t="gewellt";break;case"plastic":t="Kunststoff";break;case"asphalt":t="Asphalt";break;case"glass":t="Glas";break;case"grass":t="Gras";break;case"gravel":t="Kies";break;case"metal":t="Metall";break;case"plants":t="Pflanzen";break;case"roof_tiles":t="Dachziegel";break;case"shadecloth":t="Schattenstoff";break;case"slate":t="Schiefer";break;case"tar_paper":t="Teerpapier";break;case"stone":t="Stein";break;case"thatch":t="Strohdach";break;case"wood":t="Holz";break;case"palm_leaves":t="Palmblätter";break;case"bamboo":t="Bambus";break;case"solar":t="Solaranlage";break;default:t=e["roof:material"]}r+="Dachmaterial: "+e["roof:material"]+" "}if(e["roof:orientation"]){switch(e["roof:orientation"]){case"north":t="Norden";break;case"north_east":t="Nordosten";break;case"east":t="Osten";break;case"south_east":t="Südosten";break;case"south":t="Süden";break;case"south_west":t="Südwesten";break;case"west":t="Westen";break;case"north_west":t="Nordwesten";break;default:t=e["roof:orientation"]}r+="Dachausrichtung: "+e["roof:orientation"]+" "}if(e["roof:direction"]&&(r+="Dachausrichtung: "+e["roof:direction"]+" "),e["building:type"]){var t;switch(e["building:type"]){case"apartments":t="Apartments";break;case"bungalow":t="Bungalow";break;case"cabin":case"hut":t="Hütte";break;case"detached":t="Einfamilienhaus";break;case"dormitory":t="Studentenwohnheim";break;case"hotel":t="Hotel";break;case"house":t="Haus";break;case"houseboat":t="Hausboot";break;case"static_caravan":t="Wohnwagen";break;case"terrace":t="Terrasse";break;case"commercial":t="kommerziell";break;case"kiosk":t="Kiosk";break;case"office":t="Büro";break;case"retail":t="Einzelhandel";break;case"supermarket":t="Supermarkt";break;case"warehouse":t="Lager";break;case"cathedral":t="Kathedrale";break;case"chapel":t="Kapelle";break;case"church":t="Kirche";break;case"mosque":t="Moschee";break;case"religious":t="religiös";break;case"shrine":t="Schrein";break;case"synagogue":t="Synagoge";break;case"temple":t="Tempel";break;case"bakehouse":t="Bäckerei";break;case"civic":t="zivil";break;case"hospital":t="Krankenhaus";break;case"kindergarten":t="Kindergarten";break;case"public":t="Öffentlichkeit";break;case"school":t="Schule";break;case"toilets":t="Toiletten";break;case"train_station":t="Bahnhof";break;case"transportation":t="Lieferung";break;case"university":t="Universität";break;case"barn":t="Scheune";break;case"conservatory":t="Konservatorium";break;case"cowshed":t="Kuhstall";break;case"farm_auxiliary":t="landwirtschaftliche Hilfskräfte";break;case"greenhouse":t="Treibhaus";break;case"stable":t="Stall";break;case"sty":t="Schweinestall";break;case"grandstand":t="Tribüne";break;case"pavilion":t="Pavillon";break;case"riding_hall":t="Reithalle";break;case"sports_hall":t="Sporthalle";break;case"stadium":t="Stadion";break;case"hangar":t="Hangar";break;case"shed":t="Schuppen";break;case"carport":t="Carport";break;case"garage":t="Garage";break;case"garages":t="Werkstätten";break;case"parking":t="Parken";break;case"digester":t="Faulbehälter";break;case"service":t="Service";break;case"transformer_tower":t="Transformatorturm";break;case"water_tower":t="Wasserturm";break;case"bunker":t="Bunker";break;case"bridge":t="Brücke";break;case"construction":t="Konstruktion";break;case"roof":t="Dach";break;case"ruins":t="Ruinen";break;default:t=e["building:type"]}r+="Gebäudentyp: "+t+""}return r}(e),r+=function(e){var r="";if(e["generator:method"]){switch(r+="Erzeugungsart: ",e["generator:method"]){case"combustion":r+="Verbrennung";break;case"thermal":r+="thermische Nutzung (z.B. Solarthermie)";break;case"pumping":r+="durch Pumpen (z.B. die Nutzung von Geothermie)";break;case"photovoltaic":r+="Photovoltaik";break;case"gasification":r+="Vergasung, danach Verbrennung";break;case"anaerobic_digestion":r+="Erzeugung von Biogas durch Vergärung";break;case"pyrolysis":r+="Pyrolyse, Aufspaltung durch hohe Temperaturen";break;case"fission":r+="Kernspaltung";break;case"fusion":r+="Kernfusion";break;default:r+="unbekannt "}r+=" "}return e.power_source&&(r+="Erzeugungsart: ","photovoltaic"===e.power_source?r+="Photovoltaik":r+="unbekannt ",r+=" "),e["generator:output:electricity"]&&(r+="elekt. Energieerzeugung: "+e["generator:output:electricity"]+" "),e["generator:output:heat"]&&(r+="therm. Energieerzeugung: "+e["generator:output:heat"]+" "),e["generator:output:cold"]&&(r+="therm. Energieerzeugung: "+e["generator:output:cold"]+" "),e["generator:output"]&&(r+="Nennleistung: "+e["generator:output"]+" "),e["generator:output:hot_air"]&&(r+="Art des Transportmediums: "+e["generator:output:hot_air"]+" "),e["generator:output:cold_water"]&&(r+="Art des Transportmediums: "+e["generator:output:cold_water"]+" "),e["generator:output:cold_air"]&&(r+="Art des Transportmediums: "+e["generator:output:cold_air"]+" "),e["generator:output:compressed_air"]&&(r+="Art des Transportmediums: "+e["generator:output:compressed_air"]+" "),e["generator:output:steam"]&&(r+="Art des Transportmediums: "+e["generator:output:steam"]+" "),e["generator:output:vacuum"]&&(r+="Art des Transportmediums: "+e["generator:output:vacuum"]+" "),e["generator:output:battery_charging"]&&(r+="Art des Transportmediums: "+e["generator:output:battery_charging"]+" "),"PWR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-1"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-2"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-3"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-4"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-5"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"BWR-6"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"PHWR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"GCR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"FBR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"RBMK-1000"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"RBMK-1500"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"VVER"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"CANDU"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"CPR-1000"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"EPR"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"tokamak"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"stellarator"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"ICF"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"cold-fusion"===e["generator:type"]&&(r+="Generatortyp: "+e["generator:type"]+" "),"wind_turbine"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="Generatortyp: Horizontal-Achsen Windenergieanlage "),"wind_turbine"===e["generator:method"]&&"vertical_turbine"===e["generator:type"]&&(r+="Generatortyp: Vertikalrotor "),"francis_turbine"===e["generator:type"]&&(r+="Generatortyp: Francis-Turbine "),"kaplan_turbine"===e["generator:type"]&&(r+="Generatortyp: Kaplan-Turbine "),"pelton_turbine"===e["generator:type"]&&(r+="Generatortyp: Pelton-Turbine "),"stream"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="Generatortyp: Gezeitenstromgenerator mit horizontaler Achse "),"stream"===e["generator:method"]&&"vertical_axis"===e["generator:type"]&&(r+="Generatortyp: Gezeitenstromgenerator mit vertikaler Achse "),"steam_turbine"===e["generator:type"]&&(r+="Generatortyp: Dampfturbine "),"heat_pump"===e["generator:type"]&&(r+="Generatortyp: Wärmepumpe "),"solar_thermal_collector"===e["generator:type"]&&(r+="Generatortyp: Sonnenkollektor "),"solar_photovoltaic_panel"===e["generator:type"]&&(r+="Generatortyp: Photovoltaic-System "),"steam_generator"===e["generator:type"]&&(r+="Generatortyp: Dampfgenerator "),"gas_turbine"===e["generator:type"]&&(r+="Generatortyp: Gasturbine "),"combined_cycle"===e["generator:type"]&&(r+="Generatortyp: Dampfgenerator "),"reciprocating_engine"===e["generator:type"]&&(r+="Generatortyp: Verbrennungsmotor/Blockheizkraftwerk "),r}(e),r+=d(e),r+=function(e){var r="";return"container"!==e.recycling_type&&"centre"!==e.recycling_type&&"recycling"!==e.amenity||("yes"===e["recycling:glass"]&&(r+="Altglascontainer"),"yes"===e["recycling:shoes"]&&(r+="Schuhentsorgung"),"yes"===e["recycling:cooking_oil"]&&(r+="Speise-Öl-Entsorgung"),"yes"===e["recycling:paper"]&&(r+="Papierentsorgung"),"yes"===e["recycling:engine_oil"]&&(r+="Öl-Entsorgung (Maschinen-, Alt-und Motoröl)"),"yes"===e["recycling:clothes"]&&(r+="Altkleidercontainer"),"yes"===e["recycling:car_batteries"]&&(r+="Auto-Batterien-Entsorgung"),"yes"===e["recycling:cans"]&&(r+="Blechdosenentsorgung"),"yes"===e["recycling:scrap_metal"]&&(r+="Altmetallentsorgung"),"yes"===e["recycling:plastic"]&&(r+="Plastikentsorgung"),"yes"===e["recycling:batterries"]&&(r+="Batterieentsorgung"),"yes"===e["recycling:plastic_bottles"]&&(r+="Plastikflaschenentsorgung"),"yes"===e["recycling:green_waste"]&&(r+="Grünabfälle"),"yes"===e["recycling:hardcore"]&&(r+="Bauschutt und Straßenmaterial Entsorgung")),r}(e),(r+=p(e))&&(r=" "+r),'"},c=r.fnContentAerodrome=function(e){var r="";return e.aerodrome&&("international"===e.aerodrome&&(r+="Flughafentype: internationaler Flugplatz "),"regional"===e.aerodrome&&(r+="Flughafentype: regionaler Flugplatz "),"gliding"===e.aerodrome&&(r+="Flughafentype: Segelflugplatz "),"private"===e.aerodrome&&(r+="Flughafentype: Privatflugplatz ")),e.iata&&(r+="IATA-Code: "+e.iata+" "),e.icao&&(r+="ICAO-Code: "+e.icao+" "),r},u=r.fnContentNatural=function(e){var r="";if((e.forest||e.wood)&&("broadleaved"!==e.leaf_type&&"deciduous"!==e.wood||(r+="Laubwald "),"needleleaved"!==e.leaf_type&&"coniferous"!==e.wood||(r+="Nadelwald "),"mixed"!==e.leaf_type&&"mixed"!==e.wood||(r+="Mischwald "),"leafless"===e.leaf_type&&(r+="Blattlose Vegetation "),"evergreen"===e.wood&&(r+="immergrün "),"palm"===e.wood&&(r+="Palmen "),"nipa_palm"===e.wood&&(r+="Nipapalmen "),"eucalypt"===e.wood&&(r+="Eukalypten "),"filao"!==e.wood&&"casuarina"!==e.wood||(r+="Kasuarinengewächse ")),"tree"===e.natural&&(e["genus:de"]||e["species:de"]||e.leaf_type&&("broadleaved"===e.leaf_type||"deciduous"===e.leaf_type||"broadleafed"===e.leaf_type?r+="Laubbaum ":r+="Nadelbaum "),e.genus&&(r+=e.genus+" "),e["genus:de"]&&(r+=e["genus:de"]+" "),e.species&&(r+=e.species+" "),e["species:de"]&&(r+=e["species:de"]+" "),"landmark"===e.denotation&&(r+="durch Größe und herausragender Position sich deutlich aus seinem Umfeld hervorhebender Baum. "),"natural_monument"!==e.denotation&&"yes"!==e.monument||(r+="alter, unter besonderem Schutz stehender Baum. ")),"manger"===e["feeding:type"]&&(r+="Futterbehälter: Futterraufe "),"automated"===e["feeding:type"]&&(r+="Automat "),e["feeding:for"])switch(e["feeding:for"]){case"sheep":r+="Tier: Schaaf ";break;case"horse":r+="Tier: Pferd ";break;case"cow":r+="Tier: Kuh ";break;case"rabbit":r+="Tier: Kaninchen ";break;case"bunny":r+="Tier: Hase ";break;case"cat":r+="Tier: Katze ";break;case"swan":r+="Tier: Schwan ";break;case"guinea pig":case"guinea pig":r+="Tier: Meerschweinchen ";break;case"donkey":r+="Tier: Esel ";break;case"squirrel":r+="Tier: Eichhörnchen ";break;case"pig":r+="Tier: Schwein ";break;case"deer":r+="Tier: Reh ";break;case"monkey":r+="Tier: Affe ";break;case"camel":r+="Tier: Kamel ";break;case"goat":r+="Tier: Ziege ";break;case"hamster":r+="Tier: Hamster ";break;case"alpaca":r+="Tier: Alpaka ";break;default:r+="Tiere: nicht bekannt "}if(e["feeding:fodder"])switch(e["feeding:fodder"]){case"hay":r+="Füttern mit: Heu";break;case"grain":r+="Füttern mit: Getreide";break;case"corn":r+="Füttern mit: Korn*br>";break;default:r+="Füttern mit: nicht bekannt"}return"volcano"===e.natural&&"active"===e.status&&(r+="Aktiver Vulkan "),"volcano"===e.natural&&"dormant"===e.status&&(r+="Ruhender Vulkan "),"volcano"===e.natural&&"extinct"===e.status&&(r+="Erloschener Vulkan "),"volcano"===e.natural&&"stratovolcano"===e.type&&(r+="Vulkantyp:Schichtvulkan "),"volcano"===e.natural&&"shield"===e.type&&(r+="Vulkantyp:Schildvulkan "),"volcano"===e.natural&&"scoria"===e.type&&(r+="Vulkantyp:Schlacken- und Aschenkegel "),r},p=r.fnContentProtectedArea=function(e){var r="",t="";return"protected_area"===e.boundary&&(e.protect_class&&(t=e.protect_class),e.protect_id&&(t=e.protect_id),"1"===t&&(r="Beschreibung: Strenges Naturreservat, Wildnisgebiet "),"2"===t&&(r="Beschreibung: Nationalpark "),"3"===t&&(r="Beschreibung: Naturmonument "),"4"===t&&(r="Beschreibung: Biotop/Artenschutzgebiet mit Management "),"5"===t&&(r="Beschreibung: Geschützte Landschaft/Geschütztes marines Gebiet "),"6"===t&&(r="Beschreibung: Ressourcenschutzgebiet mit Management "),"7"===t&&(r="Beschreibung: Lokal geschützte Bereiche "),"97"===t&&(r="Beschreibung: Geschützt oder ausgezeichnet durch Vereinbarungen auf kontinentaler Ebene "),"98"===t&&(r="Beschreibung: Geschützt oder ausgezeichnet durch zwischenstaatliche- oder internationale Vereinbarungen "),"99"===t&&(r="andere "),"21"===t&&(r="Beschreibung: Gemeindebefinden (heilige Orte, assoziatice Orte) "),"22"===t&&(r="Beschreibung: Kulturelle Werte (Kulturgüter, historisches Erbe, Denkmalschutz) "),"23"===t&&(r="Beschreibung: Schutz zu Gundsten der Wirtschaft "),"24"===t&&(r="Beschreibung: Politische Schutzgebiete "),"25"===t&&(r="Beschreibung: Militärische Schutzgebiete "),"26"===t&&(r="Beschreibung: Historische Schutzgebiete "),"29"===t&&(r="Beschreibung: Weitere gesellschaftliche Schutzgebiete "),"11"===t&&(r="Beschreibung: Bodenschutz (Vorgabe zum Fruchtbarkeitserhalt und Erosionsschutz) "),"12"===t&&(r="Beschreibung: Wasserschutzgebiet (Trinkwasserschutzgebiet, Heilquellenschutzgebiet,..) "),"13"===t&&(r="Beschreibung: Klima und Luft (Kaltluftenstehung/Frischluftversorgung, Immissionsschutz,..) "),"14"===t&&(r="Beschreibung: Artenschutzgebiet (Angelverbot, Fischereischutzzone, Jagdschutzgebiet, Vogelschutzgebiet,..) "),"15"===t&&(r='Beschreibung: "Standortausstattung": Retentionsraum (gesetzlich geschütztes Überschwemmungsgebiet) '),"16"===t&&(r="Beschreibung: Dauerhafte Gefahrenbereiche (Lebensschutz, Bodenbewegungsgebiet,..) "),"19"===t&&(r="Beschreibung: Weitere nationale Gebiete ")),r},b=r.fnContentLanduse=function(e){var r="";return"quarry"===e.landuse&&e.resource&&(r+="Resource: "+e.resource+" "),"open_stable"===e["animal_keeping:type"]&&(r+="Offenstall "),"field_shelter"===e["animal_keeping:type"]&&(r+="Weide mit Unterstand "),"paddock"===e["animal_keeping:type"]&&(r+="Paddock "),e.animal_keeping&&(r+="Tiere: Perde "),r},d=r.fnMessstation=function(e){var r="";return"yes"===e["monitoring:water_level"]&&(r+="Pegelstand "),"yes"===e["monitoring:seismic_activity"]&&(r+="seismische Aktivitäten "),"yes"===e["monitoring:tide_gauge"]&&(r+="Tidestand "),"yes"===e["monitoring:weather"]&&(r+="Wetterdaten "),"yes"===e["monitoring:air_quality"]&&(r+="Luftqualität "),r},h=r.fnContentRoute=function(e){var r="";return e.route&&("yes"===e.roundtrip&&(r+="Rundweg "),e.length&&(r+="Länge/Distanz: "+e.length+" "),e.distance&&(r+="Länge/Distanz: "+e.distance+" "),e.symbol&&(r+="Symbol: "+e.symbol+" ")),r},m=r.fnContentPetrol=function(e){var r="";return"fuel"===e.amenity&&("yes"===e["fuel:biodiesel"]&&(r+="Biodiesel "),"yes"===e["fuel:e85"]&&(r+="Ethanol "),"yes"===e["fuel:e10"]&&(r+="E10 "),"yes"===e["fuel:lpg"]&&(r+="Autogas "),"yes"===e["fuel:cng"]&&(r+="Erdgas "),"diesel"===e.fuel&&(r+="Diesel "),"lpg"===e.fuel&&(r+="Autogas "),"yes"===e["fuel:octane_95"]&&(r+="Super Bleifrei "),"yes"===e["fuel:octane_98"]&&(r+="Super Plus "),"yes"===e["fuel:octane_100"]&&(r+="V-Power Racing "),"yes"===e["fuel:octane_102"]&&(r+="Ultimate "),"yes"===e["fuel:diesel"]&&(r+="Diesel "),"yes"===e["fuel:electricity"]&&(r+="Ladestation / Stromtankstelle ")),r},g=(r.fnContentHistoric=function(e){var r="";if("archaeological_site"===e.historic&&e.site_type)switch(e.site_type){case"megalith":r+="Megalith ";break;case"bigstone":r+="Findling ";break;case"tumulus":r+="Hügelgrab ";break;case"fortification":r+="historischer Graben / Wall ";break;default:r+="unbekannt "}return r},r.fnContentBarriers=function(e,r){var t="";return"wall"!==e.barrier&&"bollard"!==e.barrier||e.material&&(t+="Material: "+o(e.material)+" "),t}),f=r.fnContentTourism=function(e){var r="";return"camp_site"===e.tourism&&("yes"===e.dog&&(r+="Hunde erlaubt "),"no"===e.dog&&(r+="Hunde nicht erlaubt "),e.stars&&(r+=e.stars+"Sterne "),e.caravans&&(r+="Wohnmobilstellplätze "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="Feuerstellen vorhanden "),"yes"===e.washing_machine&&(r+="Waschmaschinen "),"yes"===e.dryer&&(r+="Trockner "),"yes"===e.group_only&&(r+="Nutzung nur durch Gruppen "),"reception"===e.camp_site&&(r+="Reception vorhanden ")),"information"===e.tourism&&"map"===e.information&&("topo"===e.map_type&&(r+="Topografische Karte"),"street"===e.map_type&&(r+="Straßenkarte"),"scheme"===e.map_type&&(r+="Schematische Karte"),"toposcope"===e.map_type&&(r+="Schematische Karte")),"information"===e.tourism&&"map"===e.information&&("site"===e.map_size&&(r+="Karte einer Anlage"),"city"===e.map_size&&(r+="Stadtplan"),"region"===e.map_size&&(r+="Karte der Region")),"geology"===e.board_type&&(r+="Geologische Informationen "),"history"===e.board_type&&(r+="Historische Informationen "),"nature"===e.board_type&&(r+="Informationen über Natur "),"notice"===e.board_type&&(r+="Allgemeine Information "),"plants"===e.board_type&&(r+="Informationen über Pflanzen "),"wildlife"===e.board_type&&(r+="Informationen über Wild "),r},y=r.fnContentAmenity=function(e){var r="";if("boat_sharing"===e.amenity&&(r+=e.boattype+" "),"embassy"===e.amenity&&(r+=e.country+" "),e.vending)switch(e.vending){case"admission_tickets":r+="Tickets ";break;case"animal_feed":r+="Tierfutter ";break;case"books":r+="Bücher ";break;case"candles":r+="Kerzen ";break;case"cigarettes":r+="Zigaretten ";break;case"condoms":r+="Kondome ";break;case"drinks":r+="Getränke ";break;case"first_aid":r+="Erste Hilfe Artikel ";break;case"fishing_tackle":r+="Angelequipment ";break;case"flowers":r+="Blumen ";break;case"ice_cream":r+="Eis ";break;case"laundry_detergent":r+="Waschmittel ";break;case"newspapers":r+="Zeitung ";break;case"SIM_cards":r+="SIM-Karten ";break;case"sweets":r+="Süßigkeiten ";break;case"parcel_pickup":r+="Paketstation ";break;case"ice_cubes":r+="Eiswürfel ";break;case"public_transport_tickets":r+="Tickets für öffentliche Verkehrsmittel ";break;case"parking_ticket":r+="Parkticket ";break;case"sex_toys":r+="Sexspielzeug ";break;case"stamps":r+="Briefmarken ";break;case"toll":r+="Mauttickets ";break;case"umbrellas":r+="Regenschirme ";break;default:r+="Inhalt unbekannt "}return"post_box"===e.amenity&&(e.collection_times&&(r+="Leerungszeiten: "+e.collection_times+" "),"yes"===e.drive_through&&(r+="Vom Auto aus erreichbar. ")),r},_=r.fnContentStorage=function(e){var r="";if("storage_tank"===e.man_made){if(e.content){switch(t=e.content){case"fuel":t="Diesel";break;case"oil":t="Öl";break;case"gas":t="Gas";break;case"slurry":t="Gülle";break;case"cement":t="Zement";break;case"water":t="Wasser";break;case"manure":t="Dünger";break;case"silage":t="Silage"}r+="Inhalt: "+t+" "}if(e.contents){var t;switch(t=e.contents){case"fuel":t="Diesel";break;case"oil":t="Öl";break;case"gas":t="Gas";break;case"slurry":t="Gülle";break;case"cement":t="Zement";break;case"water":t="Wasser";break;case"manure":t="Dünger";break;case"silage":t="Silage"}r+="Inhalt: "+t+" "}}return e.storage&&("gas"===e.storage&&(r+="Inhalt: Gas "),"oil"===e.storage&&(r+="Inhalt: Öl ")),r},k=r.fnContentInformationCity=function(e){var r="";if(e["name:de"]&&(r+="deutscher Name: "+e["name:de"]+" "),e.population>=1e4)if(e.population=""+e.population,e.population.length>3){var t=e.population.length%3,a=t>0?e.population.substring(0,t):"";for(i=0;i "}else r+="Einwohnerzahl "+e.population+" ";return e.population<=1e4&&(r+="Einwohnerzahl: "+e.population+" "),r},v=r.fnContentEmergency=function(e){var r="";if(e.lifeboat&&("inshore"===e.lifeboat?r+="Einsatzgebiet: Inshore (Binnen) ":"offshore"===e.lifeboat&&(r+="Einsatzgebiet: Offshore (Buten) ")),e["lifeboat:class"]&&(r+="Bootstyp: "+e["lifeboat:class"]+" "),e["siren:type"]){switch(t=e["siren:type"]){case"mechanical":t="mechanisch";break;case"electronic":t="elektronisch";break;case"pneumatic":t="pneumatisch";break;case"electromechanic":t="elektromechanisch"}r+="Typ: "+t+" "}if(e["siren:purpose"]){var t;switch(t=e["siren:purpose"]){case"air_raid":t="Luftschutz";break;case"tornado":t="Tornado";break;case"storm":t="Sturm";break;case"civil_defense":t="Bevölkerungsschutz";break;case"fire":t="Feuer"}r+="Nutzung: "+t+" "}return e["siren:model"]&&(r+="Model: "+e["siren:model"]+" "),e["siren:range"]&&(r+="Hörweite: "+e["siren:range"]+" "),r},w=r.fnContentCuisine=function(e){var r="";if(e.cuisine){var t="";"supermarket"!==e.shop&&"convenience"!==e.shop&&"deli"!==e.shop&&"organic"!==e.shop||"restaurant"===e.amenity?r+="Küche: ":r+="Spezialitäten: ","arabic"===e.cuisine&&(t+="arabisch "),"italian"===e.cuisine&&(t+=" italienisch "),"international"===e.cuisine&&(t+=" international "),"regional"===e.cuisine&&(t+=" regional "),"chinese"===e.cuisine&&(t+=" chinesisch "),"greek"===e.cuisine&&(t+=" griechisch "),"african"===e.cuisine&&(t+=" afrikanisch "),"german"===e.cuisine&&(t+=" deutsch "),"mexican"===e.cuisine&&(t+=" mexikanisch "),"french"===e.cuisine&&(t+=" französisch "),"indian"===e.cuisine&&(t+=" indisch "),"iranian"===e.cuisine&&(t+=" iranisch "),"lebanese"===e.cuisine&&(t+=" libanesisch "),"thai"===e.cuisine&&(t+=" thailändisch "),"balkan"===e.cuisine&&(t+=" balkan "),"turkish"===e.cuisine&&(t+=" türkisch "),"bavarian"===e.cuisine&&(t+=" bayrisch "),"czech"===e.cuisine&&(t+=" tschechisch "),"portuguese"===e.cuisine&&(t+=" portugiesisch "),"spanish"===e.cuisine&&(t+=" spanisch "),"japanese"===e.cuisine&&(t+=" japanisch "),"fish"===e.cuisine&&(t+=" Fisch "),"brazilian"===e.cuisine&&(t+=" brasilianisch "),"asian"===e.cuisine&&(t+=" asiatisch "),"mediterranean"===e.cuisine&&(t+=" mediterran "),"seafood"===e.cuisine&&(t+=" Meeresfrüchte "),"ice_cream"===e.cuisine&&(t+=" Eiscrem "),"burger"===e.cuisine&&(t+=" Fast Food "),"frozen_yogurt"===e.cuisine&&(t+=" Frozen Yogurt "),""===t&&(t=e.cuisine+" "),r+=t}return r},S=r.fnContentShipping=function(e){var r="";if((e.harbour="yes")&&("yes"===e["access:tide"]&&(r+="Zufahrtsbeschränkung durch Tide"),"yes"===e["access:swell"]&&(r+="Zufahrtsbeschränkung durch Schwell"),"yes"===e["access:ice"]&&(r+="Zufahrtsbeschränkung durch Eis"),e.vhf_channel&&(r+="UKW-Kanal: "+e.vhf_channel+""),e.mmsi&&(r+="MMSI-Nummer: "+e.mmsi+""),e["harbour:information"]&&(r+="Information :"+e["harbour:information"]+"")),"yes"===e.motorboat&&(r+="Fahren mit Motor erlaubt"),"no"===e.motorboat&&(r+="Fahren mit Motor nicht erlaubt"),e.CEMT&&(r+="CEMT: "+e.CEMT+""),"yes"===e.intermittent&&(r+="Fluss zeitweise ausgetrocknet"),"yes"===e.tidal&&(r+="Gezeiten beeinflussen die Strömung"),e.draft&&(r+="Fahrwassertiefe: "+e.draft+" m"),"slipway"!==e.leisure&&"slipway"!==e.harbour||("hand"===e.operating&&(r+="Funktionsweise: Handbetrieb, Slipwagen "),"car"===e.operating&&(r+="Funktionsweise: mit Auto, Bootsanhänger "),"cable_winch"===e.operating&&(r+="Funktionsweise: Seilwinde "),"travellift"===e.operating&&(r+="Funktionsweise: Travellift "),"crane"===e.man_made&&(r+="mit Kran ",e["crane:maxload"]&&(r+="Maximale Last: "+e["crane:maxload"]+" "),e["ship:maxdraft"]&&(r+="Maximaler Tiefgang: "+e["ship:maxdraft"]+" "),e["ship:maxlength"]&&(r+="Maximale Bootslänge: "+e["ship:maxlength"]+" ")),"yes"===e.vehicle&&(r+="Mit Fahrzeug erreichbar ")),r+=function(e){var r="";return"wreck"===e.historic&&(e["wreck:date_sunk"]&&(r+="Gesunken am: "+e["wreck:date_sunk"]+" "),e["wreck:depth"]&&(r+="Tiefe: "+e["wreck:depth"]+" "),e["wreck:clearance"]&&(r+="Freiraum: "+e["wreck:clearance"]+" "),e["wreck:date_commissioned"]&&(r+="Anerkannt seit: "+e["wreck:date_commissioned"]+" "),e["wreck:gross_tonnage"]&&(r+="Gewicht: "+e["wreck:gross_tonnage"]+" "),e["wreck:length"]&&(r+="Länge: "+e["wreck:length"]+" "),e["wreck:width"]&&(r+="Breite: "+e["wreck:width"]+" "),e["wreck:cargo"]&&("timber"===e["wreck:cargo"]?r+="Ladung: Holz ":"coal"===e["wreck:cargo"]?r+="Ladung: Kohle ":r+="Ladung: "+e["wreck:cargo"]+" "),"yes"===e["wreck:visible_at_low_tide"]&&(r+="Sichtbar bei Niedrigwasser: Ja "),"no"===e["wreck:visible_at_low_tide"]&&(r+="Sichtbar bei Niedrigwasser: Nein "),"yes"===e["wreck:visible_at_high_tide"]&&(r+="Sichtbar bei Hochwasser: Ja "),"no"===e["wreck:visible_at_high_tide"]&&(r+="Sichtbar bei Hochwasser: Nein "),"yes"===e.access&&(r+="Zutritt möglich "),"no"===e.access&&(r+="Zutritt nicht möglich "),"permit_required"===e.access&&(r+="Zutritt nur mit Genehmigung ")),r}(e),"ferry"===e.route||"ferry_terminal"===e.amenity||"yes"===e.ferry){var t=e.duration;""!==t&&"undefined"!==t&&null!=t&&(r+="Fahrtzeit in Std. : "+t+" "),"yes"===e.motorcar&&(r+="Autos erlaubt "),"no"===e.motorcar&&(r+="Autos nicht erlaubt "),"no"===e.motor_vehicle&&(r+="Fahrzeuge nicht erlaubt "),"yes"===e.motor_vehicle&&(r+="Fahrzeuge erlaubt "),"yes"===e.vehicle&&(r+="Fahrzeuge erlaubt "),"no"===e.vehicle&&(r+="Keine Fahrzeuge "),"no"===e.bicycle&&(r+="Keine Fahrräder "),"no"===e.bicycle&&(r+="Fahrräder erlaubt "),"yes"===e.hgv&&(r+="LKW erlaubt "),"no"===e.hgv&&(r+="LKW nicht erlaubt "),"yes"===e.foot&&(r+="Fussgänger erlaubt "),"no"===e.foot&&(r+="Fussgänger nicht erlaubt "),"yes"===e.bicycle&&(r+="Fahrradfahrer erlaubt "),"no"===e.bicycle&&(r+="Fahrradfahrer nicht erlaubt "),"yes"===e["ferry:cable"]&&(r+="Seilfähre ")}if(e["seamark:light:1:colour"]){switch(a=e["seamark:light:1:colour"]){case"white":a="Weiß";break;case"red":a="Rot";break;case"green":a="Grün";break;case"blue":a="Blau";break;case"yellow":a="Gelb";break;case"amber":a="Bernsteinfarben"}r+="Farbe des Lichts: "+a+" "}if("lighthouse"===e.man_made&&(e["seamark:light:1:character"]&&(r+="Rhytmus des Lichtes: "+e["seamark:light:1:character"]+" "),e["seamark:light:1:period"]&&(r+="Periode: "+e["seamark:light:1:period"]+" "),e["seamark:light:1:height"]&&(r+="Höhe: "+e["seamark:light:1:height"]+" m "),e["seamark:light:1:range"]&&(r+="Reichweite: "+e["seamark:light:1:range"]+" sm ")),e["seamark:light:colour"]){var a;switch(a=e["seamark:light:colour"]){case"white":a="Weiß";break;case"red":a="Rot";break;case"green":a="Grün";break;case"blue":a="Blau";break;case"yellow":a="Gelb";break;case"amber":a="Bernsteinfarben"}r+="Farbe des Lichts: "+a+" "}return"lighthouse"===e.man_made&&(e["seamark:light:character"]&&(r+="Rhytmus des Lichtes: "+e["seamark:light:character"]+" "),e["seamark:light:height"]&&(r+="Höhe: "+e["seamark:light:height"]+" m "),e["seamark:light:range"]&&(r+="Reichweite: "+e["seamark:light:range"]+" sm "),e["seamark:light:period"]&&(r+="Periode: "+e["seamark:light:period"]+" ")),r},C=r.fnContentHydrants=function(e){var r="";if("fire_hydrant"===e.emergency){var t=e["fire_hydrant:count"];"undefined"!==t&&null!=t&&""!==t&&(r+="Anzahl: "+t+" ");var a=e["fire_hydrant:diameter"];"undefined"!==a&&null!=a&&""!==a&&(r+="Rohrdurchmesser: "+a+" mm ");var o=e["fire_hydrant:pressure"];"undefined"!==o&&null!=o&&""!==o&&(r+="suction"===o?"Druck in bar / Saugleitung: Saugleitung ":"Druck in bar / Saugleitung: "+o+" ");var n=e["fire_hydrant:position"];"undefined"!==n&&null!=n&&""!==n&&("lane"===n?r+="Position: Fahrbahn ":"parking_lot"===n?r+="Position: Parkbucht ":"sidewalk"===n?r+="Position: Bürgersteig ":"green"===n&&(r+="Position: Wiese "));var s=e.water_volume;"undefined"!==s&&null!=s&&""!==s&&(r+="Volumen: "+s+" ");var i=e["fire_hydrant:awwa_class"];if("undefined"!==i&&null!=i&&""!==i)r+="AWWA Klasse: "+i+" ";else{var l=e.flow_rate;"undefined"!==l&&null!=l&&""!==l&&(r+="Durchfluss: "+l+" ")}var c=e.water_source;"undefined"!==c&&null!=c&&""!==c&&"main"!==c&&(r+="Wasserquelle: "+c+" ");var u=e["couplings:type"];"undefined"!==u&&null!=u&&""!==u&&(r+="Kopplungstyp: "+u+" ");var p=e["couplings:diameter"];"undefined"!==p&&null!=p&&""!==p&&(r+="Kopplungsdurchmesser: "+p+" ");var b=e["pillar:type"];"dry_barrel"===b&&(r+="Typ Überflurhydrant: "+b+" "),"fire_hydrant"===e["disused:emergency"]&&(r+="Aktuell unbrauchbar."),""===r&&(r="Keine Details vorhanden.")}return r},R=r.fnContentStreetsTraffic=function(e){var r="";if("yes"===e["red_turn:right"]&&(r+="Ampel mit Grünpfeil "),"no"===e["red_turn:right"]&&(r+="Ampel ohne Grünpfeil "),e.bridge&&(e.height&&(r+="Höhe über dem Grund: "+e.height+" m "),e.length&&(r+="Länge der Brücke: "+e.length+" m "),e.bridge_ref&&(r+="Bauwerksnummer: "+e.bridge_ref+" "),e.start_date&&(r+="Baujahr: "+e.start_date+";"),e.maxweight&&(r+="Tragfähigkeit: "+e.maxweight+" t")),e.highway&&"yes"===e.toll&&(r+="Mautpflichtige Straße "),"yes"===e["toll:hgv"]&&(r+="Mautpflichtige Straße für LKWs "),e.surface)switch(r+="Oberfläche: ",e.surface){case"grass":r+="Gras ";break;case"paved":r+="versiegelt ";break;case"asphalt":r+="Asphalt ";break;case"cobblestone":r+="Naturstein unbehauen ";break;case"sett":r+="behauenes Steinpflaster ";break;case"concrete":r+="Beton ";break;case"unpaved":r+="ohne Straßenbelag ";break;case"paving_stones":r+="Pflastersteine ";break;case"compacted":r+="verdichtete Deckschicht aus Natursteinmaterial ";break;case"dirt":r+="unbefestigt ";break;case"fine_gravel":r+="Splitt/Kies ";break;case"grass_paver":r+="Rasengittersteine ";break;case"gravel":r+="Schotter ";break;case"earth":case"ground":r+="naturbelassene Oberfläche ";break;case"metal":r+="Metall ";break;case"mud":r+="Matsch, Morast ";break;case"sand":r+="Sand ";break;case"wood":r+="Holz ";break;case"tartan":r+="Tartan- oder Kunststoffbelag ";break;case"artificial_turf":r+="Kunstrasen ";break;case"clay":r+="Ascheplatz ";break;default:r+="unbekannt "}if("grade1"===e.tracktype&&(r+="Wegbeschaffenheit: Befestigter Weg (Asphalt, Beton oder Pflastersteine) "),"grade2"===e.tracktype&&(r+="Wegbeschaffenheit: Befestigter Weg (Schotter oder andere verdichtete Materialien) "),"grade3"===e.tracktype&&(r+="Wegbeschaffenheit: Befestigter oder ausgebesserter Weg, der harten und weichen Untergrund enthält (z. B. Feinschotter-, Sand- oder Erdweg) "),"grade4"===e.tracktype&&(r+="Wegbeschaffenheit: Unbefestigter Weg, hauptsächlich weiche Materialien, Pflanzenwuchs entlang der Spurmitte (z. B. Gras-, Sand- oder Erdweg) "),"grade5"===e.tracktype&&(r+="Wegbeschaffenheit: Unbefestigter Weg, Oberfläche besteht aus Sand, Erde etc., oft nur Abdruck in Gras, teilweise schwer von umgebendem Gelände unterscheidbar "),"yes"===e.motorcycle&&(r+=" mit dem Auto befahrbar. "),"no"===e.motorcycle&&(r+=" keine motorisierten Fahrzeuge zugelassen. "),"excellent"===e.trail_visibility&&(r+="Wegerkennbarkeit: Gut ausgewiesener Weg "),"good"===e.trail_visibility&&(r+="Wegerkennbarkeit: Wegmarkierung sichbar, aber manchmal etwas schwer zu finden "),"intermediate"===e.trail_visibility&&(r+="Wegerkennbarkeit: Weg nicht durchgegend sichbar "),"bad"===e.trail_visibility&&(r+="Wegerkennbarkeit: Wegspur ist kaum zu erkennen "),"horrible"===e.trail_visibility&&(r+="Wegerkennbarkeit: Oft kein Weg vorhanden "),"no"===e.trail_visibility&&(r+="Wegerkennbarkeit: Meistens keine Wegspur zu erkennen "),"hiking"===e.sac_scale&&(r+="Weg: Weg gut gebahnt. (Schwierigskeitstyp: 1)"),"mountain_hiking"===e.sac_scale&&(r+="Weg: Durchgehend gut ersichtlicher und gut begehbarer Weg (Schwierigskeitstyp: 2)"),"demanding_mountain_hiking"===e.sac_scale&&(r+="Weg: Heikle Stellen können mit Seilen oder Ketten gesichert sein. Leitern sind möglich. Eventuell sind die Hände fürs Gleichgewicht nötig. (Schwierigskeitstyp: 3)"),"alphine_hiking"===e.sac_scale&&(r+="Weg: Wegspur kaum vorhanden. An gewissen Stellen benötigt man die Hände zum weiterkommen (Schwierigskeitstyp: 4)"),"demanding_alphine_hiking"===e.sac_scale&&(r+="Weg: Oft weglos, einzelne einfache Kletterstellen bis II. (Schwierigskeitstyp: 5)"),"difficult_alpine_hiking"===e.sac_scale&&(r+="Weg: Schwieriges Alpinenwandern,Kletterstellen bis II. Schwierigskeitstyp: 6"),e["mtb:name"]&&(r+="Fahrradstrecke :"+e["mtb:name"]+""),"0"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Keine besondere Schwierigkeiten.Wegbeschaffenheit: fester und griffiger Untergrund.Hindernisse: Keine HindernisseGefälle: Leicht bis mäßigKurven: weitFahrtechnik: keine besonderes fahrtechnisches Können nötig"),"1"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der Weg enthält flache Wurzeln und kleinere Steine. Häufig auch vereizelte Wasserrinnen und ErosionsschädenWegbeschaffenheit: loserer Untergrund möglich, kleine Wurzeln und SteineHindernisse: kleine Hindernisse, Wasserrinnen, ErosionsschädenGefälle: bis zu 40%Kurven: engFahrtechnik: Fahrtechnische Grundkentnisse nötig. Hindernisse können überrollt werden"),"2"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der Weg enthält größere Wurzeln und Steine. Häufig auch vereizelte Wasserrinnen und ErosionsschädenWegbeschaffenheit: Untergrund meist nicht verfestigt, größere Wurzeln und SteineHindernisse: flache Absätze und TreppenGefälle: bis zu 70%Kurven: leichte SpitzkehrenFahrtechnik: Fortgeschrittene Fahrtechnik nötig."),"3"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Auf dem Weg findet man verblockte Singletrails mit vielen größeren Felsbrocken und/oder WurzelpassagenWegbeschaffenheit: verblockt, viele große Wurzeln/Felsen - rutschiger Untergrund, loses GeröllHindernisse: hohe AbsätzeGefälle: 70% oder mehrKurven: enge SpitzkehrenFahrtechnik: Sehr gute Bike-Beherrschung nötig."),"4"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Auf dem Weg sind sehr steile und stark verblockte Singletrails mit großen Felsbrocken und/oder anspruchsvollen Wurzelpassagen, dazwischen häufig loses Geröll und extreme SteilrampenWegbeschaffenheit: verblockt, viele große Wurzeln/Felsen - rutschiger Untergrund, loses GeröllHindernisse: Steilrampen, kaum fahrbare AbsätzeGefälle: 70% oder mehrKurven: Ösenartige SpitzkehrenFahrtechnik: Perfekte Bike-Beherrschung mit Trial-Techniken nötig."),"5"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der weg wird charakterisiert durch blockartiges Gelände mit Gegenanstiegen, Geröllfeldern und Erdrutschen, ösenartigen Spitzkehren, mehreren hohen, direkt aufeinanderfolgenden Absätzen und Hindernissen wie umgefallenen BäumenWegbeschaffenheit: verblockt mit Gegenanstiegen / rutschiger Untergrund, loses Geröll / der Weg ist eher ein WandersteigHindernisse: Steilrampen, kaum fahrbare AbsätzeGefälle: 70% oder mehrKurven: Ösenartige Spitzkehren mit HindernissenFahrtechnik: excellente Bike-Beherrschung spezieller Trial-Techniken nötig."),"6"===e["mtb:scale"]&&(r+="Mountainbikestrecke: Der weg ist hochanspruchsvoll, und selbst für Profis und Trial-Fahrer nicht passierbarWegbeschaffenheit: Großteils nur noch kletterbarHindernisse: Absätze > 2 m, Leitern, Trittstufen, Kletterstellen bei denen man beide Hände braucht.Gefälle: 100% oder mehrKurven: - Fahrtechnik: hier reicht auch die beste Fahrtechnik nicht mehr"),"10"===e.maxspeed&&(r+="Vekehrsberühigter Bereich. Hier gilt eine maximale Fahrgeschwindigkeit von 10 Km/h sowie die Regel rechts vor links."),"30"===e.maxspeed&&(r+="Vekehrsberühigter Bereich. Hier gilt rechts vor links sowie eine maximale Geschwindigkeit von 30 Km/h"),"50"===e.maxspeed&&(r+="Maximal erlaubte Geschwindigkeit von 50 Km/h darf nicht überschritten werden "),"70"===e.maxspeed&&(r+="Maximal erlaubte Geschwindigkeit von 50 Km/h darf nicht überschritten werden "),"80"===e.maxspeed&&(r+="Maximale Geschwindigkeit von 80 Km/h darf nicht überschritten werden."),"100"===e.maxspeed&&(r+="Maximale Geschwindigkeit von 100 Km/h darf nicht überschritten werden."),"no"===e.overtaking&&(r+="Überholverbot, Fahrzeuge dürfen nicht überholen !"),"yes"===e.noexit&&(r+="Die Straße endet hier, es handelt sich um eine Sackgasse"),"yes"===e.oneway&&(r+="Es handelt sich hier um eine Einbahnstraße, sie dürfen diese Straße nur in eine Richtung befahren"),"designated"===e.priority_road&&(r+="Es handelt sich hierbei um eine Vorfahrtsstraße, derjenige, der sich auf dieser befindet, hat gegenüber anderen Fahrzeugen die Vorfahrt!"),"end"===e.priority_road&&(r+="Die Vorfahrtsstraße endet hier und die Regelung wird aufgehoben"),"emergency_bay"===e.highway&&(r+="Hier befindet sich eine Bucht die nur in Notfällen zur Benuzung zur Verfügung steht"),"yes"===e.traffic_calming&&(r+="Verkehrsberuhigter Bereich"),"bump"===e.traffic_calming&&(r+="Kurze Bodenwelle"),"chicane"===e.traffic_calming&&(r+="Zu umfahrendenes Hinderniss"),"choker"===e.traffic_calming&&(r+="Fahrbahnverengung, zu umfahrende Hindernisse möglich"),"cushion"===e.traffic_calming&&(r+="Bodenwelle mit Lücken aus mehreren rechteckigen Huckeln"),"hump"===e.traffic_calming&&(r+="vergleichbare Bodenwelle mit etwar einer Länge von 2-4M"),"island"===e.traffic_calming&&(r+="Eine Verkehrsinsel"),"rumble_strip"===e.traffic_calming&&(r+="Holperstreifen"),"table"===e.traffic_calming&&(r+="lange Bodenwellen mit flachen Mittelstück"),"parking"===e.amenity){"yes"===e.fee&&(r+="kostenpflichtig ");var t=e["capacity:women"];if(""!==t&&"no"!==t&&null!=t){var a="unbekannt";"yes"!==t&&(a=t),r+="Frauenparkplätze (Anzahl: "+a+") "}}return e.park_ride&&("bus"===e.park_ride&&(r+="Busanbindung "),"tram"===e.park_ride&&(r+="Bahnanbindung "),"unknown"===e.park_ride&&(r+="Verkehrsmittel unbekannt ")),e["railway:position"]&&(r+="Streckenkilometer Position: "+e["railway:position"]+" "),e.uic_ref&&(r+="UIC: "+e.uic_ref+" "),r},E=r.fnContentSports=function(e){var r="";return"9pin"===e.sport&&(r+="Mögliche Sportart: Kegeln "),"10pin"===e.sport&&(r+="Mögliche Sportart: Bowling "),"american_football"===e.sport&&(r+="Mögliche Sportart: American Football "),"aikido"===e.sport&&(r+="Mögliche Sportart: Aikido "),"archery"===e.sport&&(r+="Mögliche Sportart: Bogenschießen "),"athletics"===e.sport&&(r+="Mögliche Sportart: Leichtathletik "),"australian_football"===e.sport&&(r+="Mögliche Sportart: Australian Football "),"base"===e.sport&&(r+="Mögliche Sportart: Objektspringen "),"badminton"===e.sport&&(r+="Mögliche Sportart: Badminton "),"baseball"===e.sport&&(r+="Mögliche Sportart: Baseball "),"basketball"===e.sport&&(r+="Mögliche Sportart: Basketball "),"beachvolleyball"===e.sport&&(r+="Mögliche Sportart: Beachvolleyball "),"bmx"===e.sport&&(r+="Mögliche Sportart: BMX "),"boules"===e.sport&&(r+="Mögliche Sportart: Boccia "),"boule"===e.sport&&(r+="Mögliche Sportart: Boccia "),"bowls"===e.sport&&(r+="Mögliche Sportart: Bowls "),"boxing"===e.sport&&(r+="Mögliche Sportart: Boxen "),"canadian_football"===e.sport&&(r+="Mögliche Sportart: Canadian Football "),"canoe"===e.sport&&(r+="Mögliche Sportart: Paddeln "),"chess"===e.sport&&(r+="Mögliche Sportart: Schach "),"cliff_diving"===e.sport&&(r+="Mögliche Sportart: Klippenspringen "),"climbing"===e.sport&&(r+="Mögliche Sportart: Klettern "),"climbing_adventure"===e.sport&&(r+="Mögliche Sportart: Klettern "),"cricket"===e.sport&&(r+="Mögliche Sportart: Cricket "),"cricket_nets"===e.sport&&(r+="Mögliche Sportart: Cricket Netz "),"croquet"===e.sport&&(r+="Mögliche Sportart: Croquet "),"curling"===e.sport&&(r+="Mögliche Sportart: Curling "),"cycling"===e.sport&&(r+="Mögliche Sportart: Radrennen, Radsport "),"dog_racing"===e.sport&&(r+="Mögliche Sportart: Hunderennen "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),"fencing"===e.sport&&(r+="Mögliche Sportart: Fechten "),"equestrian"===e.sport&&(r+="Mögliche Sportart: Reiten "),"football"===e.sport&&(r+="Mögliche Sportart: American Football "),"free_flying"===e.sport&&(r+="Mögliche Sportart: Freeflying "),"gaelic_games"===e.sport&&(r+="Mögliche Sportart: Gaelic games "),"golf"===e.sport&&(r+="Mögliche Sportart: Golf "),"gymnastics"===e.sport&&(r+="Mögliche Sportart: Gymnastik "),"hockey"===e.sport&&(r+="Mögliche Sportart: Hockey "),"horseshoes"===e.sport&&(r+="Mögliche Sportart: Hufeisenwerfen "),"horse_racing"===e.sport&&(r+="Mögliche Sportart: Pferderennen "),"ice_stock"===e.sport&&(r+="Mögliche Sportart: Eisstockschießen "),"judo"===e.sport&&(r+="Mögliche Sportart: Judo "),"karting"===e.sport&&(r+="Mögliche Sportart: Kartfahren "),"kitesurfing"===e.sport&&(r+="Mögliche Sportart: Kitesurfing "),"korfball"===e.sport&&(r+="Mögliche Sportart: Korfball "),"motor"===e.sport&&(r+="Mögliche Sportart: Motorsport "),"multi"===e.sport&&(r+="Mögliche Sportart: Mehrfachsport "),"obstacle_course"===e.sport&&(r+="Mögliche Sportart: Hindernislauf "),"orienteering"===e.sport&&(r+="Mögliche Sportart: Orientierungslauf "),"paddle_tennis"===e.sport&&(r+="Mögliche Sportart: Paddle-Tennis "),"paragliding"===e.sport&&(r+="Mögliche Sportart: Gleitschirmfliegen "),"Pelota"===e.sport&&(r+="Mögliche Sportart: Pelota "),"rasquet"===e.sport&&(r+="Mögliche Sportart: Racquetball "),"rowing"===e.sport&&(r+="Mögliche Sportart: Rudern "),"rugby_league"===e.sport&&(r+="Mögliche Sportart: Rugby League "),"rugby_union"===e.sport&&(r+="Mögliche Sportart: Rugby Union "),"running"===e.sport&&(r+="Mögliche Sportart: Laufsport "),"scuba_diving"===e.sport&&(r+="Mögliche Sportart: Sporttauchen "),"shooting"===e.sport&&(r+="Mögliche Sportart: Sportschießen "),"skating"===e.sport&&(r+="Mögliche Sportart: Eislaufsport "),"skateboard"===e.sport&&(r+="Mögliche Sportart: Skateboard "),"skiing"===e.sport&&(r+="Mögliche Sportart: Skifahren "),"soccer"===e.sport&&(r+="Mögliche Sportart: Fußball "),"surfing"===e.sport&&(r+="Mögliche Sportart: Surfen "),"swimming"===e.sport&&(r+="Mögliche Sportart: Schwimmen "),"table_tennis"===e.sport&&(r+="Mögliche Sportart: Tischtennis "),"taekwondo"===e.sport&&(r+="Mögliche Sportart: Taekwondo "),"team_handball"===e.sport&&(r+="Mögliche Sportart: Handball "),"tennis"===e.sport&&(r+="Mögliche Sportart: Tennis "),"toboggan"===e.sport&&(r+="Mögliche Sportart: Rodeln "),"volleyball"===e.sport&&(r+="Mögliche Sportart: Volleyball "),"water_ski"===e.sport&&(r+="Mögliche Sportart: Wasserski "),"weightlifting"===e.sport&&(r+="Mögliche Sportart: Gewichtheben "),"wrestling"===e.sport&&(r+="Mögliche Sportart: Ringen "),r},O=r.fnContentGeneralInformations=function(e){var r="";return e.width&&(r+="Breite: "+e.width+" m "),e.height&&(r+="Höhe: "+e.height+" m "),e.maxwidth&&(r+="Maximalbreite: "+e.maxwidth+" m "),e.maxheight&&(r+="Maximalhöhe: "+e.maxheight+" m "),e.maxweight&&(r+="Maximalgewicht: "+e.maxweight+" t "),e.maxspeed&&(r+="Höchstgeschwindigkeit: "+e.maxspeed+" km/h "),e.min_age&&(r+="Mindestalter: "+e.min_age+" "),e.max_age&&(r+="Maximalalter: "+e.max_age+" "),"yes"===e.nudism&&(r+="Freikörperkultur "),"yes"===e.ruins&&(r+="Ruine "),e.ele&&(r+="Höhe über NN: "+e.ele+" m "),e["xmas:day_date"]&&(r+="Dauer von - bis: "+e["xmas:day_date"]+" "),e["rotor:diameter"]&&(r+="Rotordurchmesser: "+e["rotor:diameter"]+" m "),e["xmas:note"]&&(r+="Hinweis: "+e["xmas:note"]+" "),"port"===e["seamark:beacon_lateral:category"]&&(r+="Backbord "),"starboard"===e["seamark:beacon_lateral:category"]&&(r+="Steuerbord "),"yes"===e["service:bicycle:retail"]&&(r+="Fahrradverkauf "),"yes"===e["service:bicycle:repair"]&&(r+="Fahrradreparatur "),"yes"===e["service:bicycle:rental"]&&(r+="Fahrradverleih "),"yes"===e["service:bicycle:pump"]&&(r+="Benutzung einer Luftpumpe möglich "),"yes"===e["service:bicycle:diy"]&&(r+="Benutzung von Werkzeug möglich "),"yes"===e["service:bicycle:cleaning"]&&(r+="Fahrräder werden gewaschen "),"yes"===e["service:bicycle:second_hand"]&&(r+="Verkauf von gebrauchten Fahrrädern "),"yes"===e["service:bicycle:charging"]&&(r+="Elektro-Fahrräder können geladen werden "),"yes"===e.cafe&&(r+="Kleine Café-Ecke "),"yes"===e.breakfast&&(r+="Besonderes Frühstücksangebot "),"yes"===e.snack&&(r+="Back-Snacks warm oder kalt "),"yes"===e.indoor_seating&&(r+="Sitzmöglichkeiten im Innenbereich "),"yes"===e.outdoor_seating&&(r+="Sitzmöglichkeiten im Außenbereich "),"yes"===e.self_service&&(r+="Selbstbedienungsbäckerei "),"yes"===e.bakehouse&&(r+="Backstube "),"yes"===e.pastry_shop&&(r+="Gebäck aus der Konditorei "),"yes"===e.fair_trade&&(r+="einige Fair-Trade-Produkte im Sortiment "),"only"===e.fair_trade&&(r+="fast ausschließlich Fair-Trade-Produkte im Sortiment "),"no"===e.fair_trade&&(r+="keine Fair-Trade-Produkte im Sortiment "),r},T=r.fnContentHealthcare=function(e){var r="";return"doctors"!==e.amenity&&"physician"!==e.office&&"doctor"!==e.healthcare||(r+=function(e){var r="",t="",a=e["healthcare:speciality"];return""!==a&&("general"===a&&(t+="Allgemeinmedizin "),"allergology"===a&&(t+="Allergologie "),"anaesthetics"===a&&(t+="Anästhesiologie "),"biochemistry"===a&&(t+="Medizinische und chemische Labordiagnostik "),"biological_haematology"===a&&(t+="Biologische Hämatologie "),"biology"===a&&(t+="Medizinische Biologie "),"cardiology"===a&&(t+="Kardiologie "),"cardiac_surgery"===a&&(t+="Kardiovaskularchirurgie "),"child_psychiatry"===a&&(t+="Kinder- u. Jugendpsychatrie "),"dental_oral_maxillo_facial_surgery"===a&&(t+="Zahn-, Mund-, Kiefer- und Gesichtschirurgie "),"dermatology"===a&&(t+="Hautkrankheiten "),"dermatovenereology"===a&&(t+="Haut- und Geschlechtskrankheiten "),"diagnostic_radiology"===a&&(t+="Diagnostische Radiologie "),"emergency"===a&&(t+="Unfall- und Notfallmedizin "),"endocrinology"===a&&(t+="Endokrinologie "),"gastroenterological_surgery"===a&&(t+="Gastroenterologische Chirurgie "),"gastroenterology"===a&&(t+="Gastroenterologie "),"geriatrics"===a&&(t+="Geriatrie "),"gynaecology"===a&&(t+="Geburtshilfe und Frauenheilkunde "),"haematology"===a&&(t+="Allgemeine Hämatologie "),"hepatology"===a&&(t+="Hepatologie "),"immunology"===a&&(t+="Immunologie "),"infectious_diseases"===a&&(t+="Ansteckende Krankheiten "),"intensive"===a&&(t+="Intensivmedizin "),"internal"===a&&(t+="Allgemeine (innere) Medizin "),"maxillofacial_surgery"===a&&(t+="Mund-Kiefer-Gesichtschirurgie "),"nephrology"===a&&(t+="Nierenkrankheiten "),"neurology"===a&&(t+="Neurologie "),"neurophysiology"===a&&(t+="Klinische Neurophysiologie "),"neuropsychiatry"===a&&(t+="Neuropsychiatrie(Neurologie und Psychiatrie) "),"neurosurgery"===a&&(t+="Neurochirurgie "),"nuclear"===a&&(t+="Nuklearmedizin "),"occupational"===a&&(t+="Arbeitsmedizin "),"oncology"===a&&(t+="Onkologie "),"ophthalmology"===a&&(t+="Augenheilkunde "),"orthopaedics"===a&&(t+="Orthopädie "),"otolaryngology"===a&&(t+="Hals-Nasen-Ohren-Heilkunde "),"paediatric_surgery"===a&&(t+="Kinderchirurgie "),"paediatrics"===a&&(t+="Kinderheilkunde "),"palliative"===a&&(t+="Palliativmedizin "),"physiatry"===a&&(t+="Physikalischeund Rehabilitative Medizin "),"plastic_surgery"===a&&(t+="Plastische Chirurgie "),"proctology"===a&&(t+="Proktologie "),"psychiatry"===a&&(t+="Psychiatrie "),"pulmonology"===a&&(t+="Lungen- und Bronchialheilkunde "),"radiology"===a&&(t+="Radiologie "),"radiotherapy"===a&&(t+="Strahlentherapie "),"rheumatology"===a&&(t+="Rheumatologie "),"stomatology"===a&&(t+="Stomatologie "),"surgery"===a&&(t+="Chirurgie "),"surgical_oncology"===a&&(t+="Krebschirurgie "),"thoracic_surgery"===a&&(t+="Thoraxchirurgie "),"transplant"===a&&(t+="Transplantationsmedizin "),"trauma"===a&&(t+="Unfallchirurgie "),"tropical"===a&&(t+="Tropenmedizin "),"urology"===a&&(t+="Urologie "),"vascular_surgery"===a&&(t+="Gefäßchirurgie "),"venereology"===a&&(t+="Geschlechtskrankheiten "),"acupuncture"===a&&(t+="Akupunktur "),"naturopathy"===a&&(t+="Naturheilkunde "),"chiropractic"===a&&(t+="Chiropraktik "),"homeopathy"===a&&(t+="Homöopathie "),"osteopathy"===a&&(t+="Osteopathie ")),""!==e.health_specialty&&("yes"===e["health_specialty:family_medicine"]&&(t+="Allgemeinmedizin "),"yes"===e["health_specialty:emergency_medicine"]&&(t+="Notfallmedizin "),"yes"===e["health_specialty:anaesthesiology"]&&(t+="Anästhesie "),"yes"===e["health_specialty:dermatology"]&&(t+="Dermatologie "),"yes"===e["health_specialty:ear_nose_throat"]&&(t+="Hals, Nasen, Ohren (HNO) "),"yes"===e["health_specialty:occupational_medicine"]&&(t+="Arbeitsnmedizin "),"yes"===e["health_specialty:internal_medicine"]&&(t+="innere Medizin "),"yes"===e["health_specialty:neurology"]&&(t+="Neurologie "),"yes"===e["health_specialty:ophthalmology"]&&(t+="Augenheilkunde "),"yes"===e["health_specialty:palliative_medicine"]&&(t+="Palliativmedizin "),"yes"===e["health_specialty:psychiatry"]&&(t+="Psychatrie "),"yes"===e["health_specialty:gynaecology"]&&(t+="Gynäkologie "),"yes"===e["health_specialty:urology"]&&(t+="Urologie "),"yes"===e["health_specialty:pain_medicine"]&&(t+="Schmerzmedizin "),"yes"===e["health_specialty:environmental_medicine"]&&(t+="Umweltmedizin "),"yes"===e["health_specialty:intensive_care_medicin"]&&(t+="Intensivmedizin "),"yes"===e["health_specialty:paediatrics"]&&(t+="Kinder- u. Jugendmedizin "),"yes"===e["health_specialty:physiatry"]&&(t+="Physikalische und Rehabilitative Medizin "),"yes"===e["health_specialty:radiology"]&&(t+="Radiologie "),"yes"===e["health_specialty:general"]&&(t+="Allgemeinmedizin "),"yes"===e["health_specialty:occupational_therapy"]&&(t+="Ergotherapie "),"yes"===e["health_specialty:pulmonology"]&&(t+="Pneumologie "),"yes"===e["health_specialty:acupuncture"]&&(t+="Akupunktur "),"yes"===e["health_specialty:orthopaedics"]&&(t+="Orthopädie "),"yes"===e["health_specialty:chiropractic"]&&(t+="Chiropraktik "),"yes"===e["health_specialty:sports_medicine"]&&(t+="Sportmedizin ")),""!==t&&(r+="Fachgebiete: ",r+=''+t+"
"),r}(e),e.medical_area&&(r+=e.medical_area+" "),e.type&&(r+=e.type+" "),e["doctors:de"]&&(r+=e["doctors:de"]+" "),e["note:de"]&&(r+=e["note:de"]+" ")),"yes"===e.dispensing&&(r+="Apotheke mit Rezepteinlösung "),"abused"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen die Misshandlung erlitten haben "),"child"===e["social_facility:for"]&&(r+="Einrichtung für: Kinder "),"disabled"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen mit körperlicher oder geistiger Behinderung "),"diseased"===e["social_facility:for"]&&(r+="Einrichtung für: Erkrankte Menschen "),"drug_addicted"===e["social_facility:for"]&&(r+="Einrichtung für: Drogensüchtige "),"homeless"===e["social_facility:for"]&&(r+="Einrichtung für: Obdachlose "),"juvenile"===e["social_facility:for"]&&(r+="Einrichtung für: Jugendliche und Teenager "),"mental_health"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen mit psychischen Problemen "),"migrant"===e["social_facility:for"]&&(r+="Einrichtung für: Menschen mit Migrationshintergrund "),"orphan"===e["social_facility:for"]&&(r+="Einrichtung für: Waisen "),"senior"===e["social_facility:for"]&&(r+="Einrichtung für: Senioren "),"underprivileged"===e["social_facility:for"]&&(r+="Einrichtung für: Arme oder benachteiligte Menschen "),"unemployed"===e["social_facility:for"]&&(r+="Einrichtung für: Arbeitslose "),"victim"===e["social_facility:for"]&&(r+="Einrichtung für: Opfer eines Verbrechens "),r};r.fnTestInfoPopup=function(e){var r=e.getProperties(),t="";for(var a in r)t=t+a+"="+r[a]+" ";return'"}},"./src/Resources/public/js/c4g-maps-popup-info-en.js":(e,r)=>{"use strict";function t(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function a(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))}function o(e){var r=t(e);return"yes"===r||"Yes"===r?"yes":"no"===r||"No"===r?"no":"limited"===r?"limited":"designated"===r?"designated":"wood"===r?"wood":"metal"===r?"metal":"concrete"===r?"concrete":"plastic"===r?"plastic":"stone"===r?"stone":"steel"===r?"steel":"brick"===r?"brick":"reinforced_concrete"===r?"reinforced_concrete":"masonry"===r?"masonry":e}function n(e,r){var t="",a="32px";if(e.name||e["piste:name"]||e["xmas:name"]||e["xmas:location"]){if(e.name)var o=e.name;e["piste:name"]&&(o=e["piste:name"]),e["xmas:name"]&&(o=e["xmas:name"]),e["xmas:location"]&&(o=e["xmas:location"]),t+=o=r?' ":'"}else r&&(t+=' ');return t+=function(e){var r="";if("doctors"!==e.amenity&&"doctor"!==e.healthcare||(r+="doctor "),"hospital"!==e.amenity&&"clinic"!==e.amenity&&"hospital"!==e.healthcare&&"clinic"!==e.healthcare||("yes"===e.emergency?r+="hospital with emergency facilities ":r+="hospital "),"dentist"===e.amenity&&(r+="dentist "),"pharmacy"!==e.amenity&&"pharmacy"!==e["health_facility:type"]||(r+="pharmacy "),"physiotherapist"!==e.healthcare&&"yes"!==e["health_speciality:physiotherapy"]||(r+="physiotherapist "),"occupational_therapist"!==e.healthcare&&"yes"!==e["health_speciality:occupational_therapy"]&&"yes"!==e["health_specialty:occupational_therapy"]||(r+="occupational_therapist "),"psychotherapist"!==e.healthcare&&"yes"!==e["health_speciality:psychotherapy"]||(r+="psychotherapist "),"alternative"===e.healthcare&&(r+="alternative "),"midwife"===e.healthcare&&(r+="midwife "),"speech_therapist"!==e.healthcare&&"yes"!==e["health_speciality:speech_therapy"]||(r+="speech_therapist "),"yes"===e["health_speciality:music_therapy"]&&(r+="music_therapy "),"veterinary"===e.amenity&&(r+="veterinary "),"fire_station"===e.amenity&&(r+="fire station "),"fire_extinguisher"===e.emergency&&(r+="fire extinguisher "),"aed"===e.emergency&&(r+="aed "),"defibrillator"===e.emergency&&(r+="defibrillator "),"phone"===e.emergency&&(r+="call box "),"police"===e.amenity&&(r+="police "),"ambulance_station"===e.emergency&&(r+="ambulance station "),"technical"===e.emergency_service&&(r+="technical "),"water"===e.emergency_service&&(r+="water "),"baywatch"===e.waterway&&(r+="baywatch "),"air"===e.emergency_service&&(r+="rescue helicopter "),"emergency_access_point"===e.highway&&(r+="emergency access point "),"lifeboat_station"!==e.amenity&&"lifeboat_station"!==e.emergency||(r+="lifeboat station "),"life_ring"===e.emergency&&(r+="life ring "),"siren"===e.emergency&&(r+="siren "),"life_ring"===e.amenity&&(r+="life ring "),"rescue_station"===e.amenity&&(r+="rescue station "),"fire_hydrant"===e.emergency&&("underground"===e["fire_hydrant:type"]?r+="underground hydrant ":"pillar"===e["fire_hydrant:type"]?r+="pillar hydrant ":"wall"===e["fire_hydrant:type"]?r+="wall hydrant ":"pond"===e["fire_hydrant:type"]&&(r+="suction point ")),"suction_point"===e.emergency&&(r+="suction point "),"fire_water_pond"===e.emergency&&(r+="fire protection pond "),"mountain"===e.emergency_service&&(r+="mountain rescue service "),"water_tank"===e.emergency&&(r+="fire water tank "),"container"===e.recycling_type&&(r+="Recycling container "),"recycling"===e.amenity&&"yes"===e["recycling:excrement"]||"pump-out"===e["seamark:small_craft_facility:category"]?r+="suction station ":"recycling"===e.amenity&&(r+=" buyback centre "),"yes"===e["diet:pescetarian"]?r+="pescetarian available ":"only"===e["diet:pescetarian"]&&(r+="just pescetarian "),"yes"===e["diet:vegetarian"]?r+="vegetarian vorhanden ":"only"===e["diet:vegetarian"]&&(r+="just vegetarian "),"yes"===e["diet:lacto_vegetarian"]?r+="lacto_vegetarian available ":"only"===e["diet:lacto_vegetarian"]&&(r+="just lacto vegetarian "),"yes"===e["diet:ovo_vegetarian"]?r+="ovo vegetarian available ":"only"===e["diet:ovo_vegetarian"]&&(r+="just ovo_vegetarian "),"yes"===e["diet:vegan"]?r+="vegan available ":"only"===e["diet:vegan"]&&(r+="just vegan "),"yes"===e["diet:fruitarian"]?r+="fruitarian available ":"only"===e["diet:fruitarian"]&&(r+="hust fruitarian "),"yes"===e["diet:raw"]?r+="raw availaibe ":"only"===e["diet:raw"]&&(r+="just raw "),"yes"===e["diet:gluten_free"]?r+="gluten free available ":"only"===e["diet:gluten_free"]&&(r+="just gluten free "),"yes"===e["diet:dairy_free"]?r+="dairy free available ":"only"===e["diet:dairy_free"]&&(r+="just dairy free "),"yes"===e["diet:lactose_free"]?r+="lactose free available ":"only"===e["diet:lactose_free"]&&(r+="just lactose free "),"yes"===e["diet:halal"]?r+="halal available ":"only"===e["diet:halal"]&&(r+="just halal "),"yes"===e["diet:kosher"]?r+="kosher available ":"only"===e["diet:kosher"]&&(r+="just kosher "),"pub"===e.amenity&&(r+="pub "),"bar"===e.amenity&&(r+="bar "),"yes"===e.frozen_yogurt&&(r+="frozen yogurt "),"yes"===e.slush_ice&&(r+="slush ice "),"yes"===e.cake&&(r+="cake "),"yes"===e.coffee&&(r+="coffee "),"yes"===e.drinks&&(r+="drinks "),"biergarten"===e.amenity&&(r+="biergarten "),"restaurant"===e.amenity&&(r+="restaurant "),"fast_food"===e.amenity&&(r+="fast food "),"cafe"!==e.amenity&&"coffee_shop"!==e.amenity||"ice_cream"===e.cuisine||(r+="cafe "),("cafe"===e.amenity&&"ice_cream"===e.cuisine||"ice_cream"===e.amenity)&&(r+="ice cream "),"alpine_hut"===e.tourism&&(r+="alpine hut "),"aquarium"===e.tourism&&(r+="aquarium "),"apartment"===e.tourism&&(r+="apartment "),"attraction"===e.tourism&&(r+="attraction "),"artwork"===e.tourism&&(r+="artwork "),"camp_site"===e.tourism&&(r+="camp site "),"caravan_site"===e.tourism&&(r+="caravan site "),"chalet"===e.tourism&&(r+="chalet "),"gallery"===e.tourism&&(r+="gallery "),"guest_house"===e.tourism&&(r+="guest house "),"hostel"===e.tourism&&(r+="hostel "),"hotel"===e.tourism&&(r+="hotel "),"motel"===e.tourism&&(r+="motel "),"museum"===e.tourism&&(r+="museum "),"picnic_site"===e.tourism&&(r+="picnic site "),"theme_park"===e.tourism&&(r+="theme park "),"viewpoint"===e.tourism&&(r+="viewpoint "),"wilderness_hut"===e.tourism&&(r+="wilderness_hut "),"wine_cellar"===e.tourism&&(r+="wine cellar "),"zoo"===e.tourism&&(r+="zoo ","enclosure"===e.zoo&&(r+="enclosure "),"petting_zoo"===e.zoo&&(r+="petting zoo "),"falconry"===e.zoo&&(r+="falconry ")),"trail_riding_station"===e.tourism&&(r+="trail riding station "),"fishing"===e.club&&(r+="fishing club "),"sport"===e.club&&"fishing"===e.sport&&(r+="fishing club "),"amateur_radio"===e.club&&(r+="amateur radio club "),"art"===e.club&&(r+="art club "),"astronomy"===e.club&&(r+="astronomy club "),"automobile"===e.club&&(r+="automobile club "),"board_games"===e.club&&(r+="board games club "),"card_games"===e.club&&(r+="card games club "),"charity"===e.club&&(r+="charity club "),"chess"===e.club&&(r+="chess club "),"cinema"===e.club&&(r+="cinema club "),"cooking"===e.club&&(r+="cooking club "),"culture"===e.club&&(r+="culture club "),"doityourself"===e.club&&(r+="doityourself club "),"equestrian"===e.club&&(r+="equestrian club "),"ethnic"===e.club&&(r+="ethnic club "),"fan"===e.club&&(r+="fan club "),"freemasonry"===e.club&&(r+="freemasonry club "),"game"===e.club&&(r+="game club "),"history"===e.club&&(r+="history club "),"hunting"===e.club&&(r+="hunting club "),"linux"===e.club&&(r+="linux club "),"motorcycle"===e.club&&(r+="motorcycle club "),"music"===e.club&&(r+="music club "),"nature"===e.club&&(r+="nature club "),"nudism"===e.club&&(r+="nudism club "),"photography"===e.club&&(r+="photography club "),"politics"===e.club&&(r+="politics club "),"religion"===e.club&&(r+="religion club "),"scout"===e.club&&(r+="scout club "),"smoke"===e.club&&(r+="smoke club "),"sport"===e.club&&(r+="sport club "),"theatre"===e.club&&(r+="theatre club "),"veterans"===e.club&&(r+="veterans club "),"amusement_arcade"===e.leisure&&(r+="penny arcade / gambling hall "),"beach_resort"===e.leisure&&(r+="beach resort "),"bird_hide"===e.leisure&&(r+="bird hide "),"common"===e.leisure&&(r+="common "),"club"===e.leisure&&(r+="club "),"dance"===e.leisure&&(r+="dance "),"dog_park"===e.leisure&&(r+="dog_park "),"firepit"===e.leisure&&(r+="firepit "),"fishing"===e.leisure&&(r+="fishing "),"garden"===e.leisure&&(r+="garden "),"golf_course"===e.leisure&&(r+="golf course "),"hackerspace"===e.leisure&&(r+="hackerspace "),"horse_riding"===e.leisure&&(r+="horse riding "),"ice_rink"===e.leisure&&(r+="ice rink "),"nature_reserve"===e.leisure&&(r+="nature reserve "),"park"===e.leisure&&(r+="park "),"miniature_golf"===e.leisure&&(r+="miniature golf "),"pitch"===e.leisure&&(r+="pitch "),"pitch"===e.leisure&&"yes"===e.building&&(r+="gym "),("playground"===e.leisure&&"yes"===e.building||"playground"===e.leisure)&&(r+="playground "),"social_club"===e.leisure&&(r+="social club "),"spa"===e.leisure&&(r+="spa "),"sports_centre"===e.leisure&&(r+="sports centre "),"climbing_adventure"===e.sport&&(r+="climbing adventure "),"stadium"===e.leisure&&(r+="stadium "),"swimming_pool"===e.leisure&&(r+="swimming pool "),"track"===e.leisure&&(r+="track "),"water_park"===e.leisure&&(r+="water park "),"wildlife_hide"===e.leisure&&(r+="wildlife hide "),"adult_gaming_centre"===e.leisure&&(r+="adult gaming_centre "),"bowling_alley"===e.leisure&&"10pin"===e.sport&&(r+="10pin bowling_alley "),"bowling_alley"===e.leisure&&"9pin"===e.sport&&(r+="9pin bowling_alley "),"karting"!==e.sport&&"motor"!==e.sport||(r+="karting "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),e["piste:type"])switch(e["piste:type"]){case"skitour":r+="skitour ";break;case"downhill":r+="downhill ";break;case"sled":r+="sled ";break;case"nordic":r+="nordic ";break;case"hike":r+="hike ";break;case"snow_park":r+="snow park "}if(e.sport)switch(e.sport){case"surfing":r+="surfing ";break;case"kitesurfing":r+="kitesurfing ";break;case"water_ski":r+="water ski "}if(e.aerialway)switch(e.aerialway){case"cable_bar":r+="cable bar ";break;case"gondola":r+="gondola ";break;case"chair_lift":r+="chair lift ";break;case"mixed_lift":r+="mixed lift ";break;case"drag_lift":r+="drag lift ";break;case"t-bar":case"t-bar":r+="t-bar ";break;case"platter":r+="platter ";break;case"rope_tow":r+="rope tow ";break;case"magic_carpet":r+="magic carpet ";break;default:r+="unknown"}if("mosque"===e.building&&(r+="mosque "),"synagogue"===e.building&&(r+="synagogue "),"temple"===e.building&&(r+="temple "),"apartments"===e.building&&(r+="apartments "),"farm"===e.building&&(r+="farm "),"hotel"===e.building&&(r+="hotel "),"house"===e.building&&(r+="house "),"detached"===e.building&&(r+="detached "),"residential"===e.building&&(r+="residential "),"domitory"!==e.building&&"residential plus"!==e.building||(r+="domitory "),"terrace"===e.building&&(r+="terrace "),"houseboat"===e.building&&(r+="houseboat "),"bungalow"===e.building&&(r+="bungalow "),"static_caravan"===e.building&&(r+="static caravan "),"commercial"===e.building&&(r+="commercial "),"retail"===e.building&&(r+="retail "),"warehouse"===e.building&&(r+="warehouse "),"bakehouse"===e.building&&(r+="bakehouse "),"shrine"===e.building&&(r+="shrine "),"civic"===e.building&&(r+="civic "),"stadium"===e.building&&(r+="stadium "),"train_station"===e.building&&(r+="train station "),"university"===e.building&&(r+="university "),"public"===e.building&&(r+="public "),"bridge"===e.building&&(r+="bridge "),"bunker"===e.building&&(r+="bunker "),"cabin"===e.building&&(r+="cabin "),"conservatory"===e.building&&(r+="conservatory "),"construction"===e.building&&(r+="construction "),"garage"===e.building&&(r+="garage "),"garages"===e.building&&(r+="garages "),"greenhouse"===e.building&&(r+="greenhouse "),"hangar"===e.building&&(r+="hangar "),"hut"===e.building&&(r+="hut "),"pavillion"===e.building&&(r+="pavillion "),"roof"===e.building&&(r+="roof "),"shed"===e.building&&(r+="shed "),"transformer_tower"===e.building&&(r+="transformer tower "),"service"===e.building&&(r+="service "),"kiosk"===e.building&&(r+="kiosk "),"carport"===e.building&&(r+="carport "),"ruins"===e.building&&(r+="ruins "),"gambling"===e.amenity&&(r+="penny arcade "),"library"===e.amenity&&(r+="library "),"fountain"===e.amenity&&(r+="fountain "),"attraction"===e.amenity&&(r+="attraction "),"social_centre"!==e.amenity&&"club"!==e.amenity||(r+="social centre "),"townhall"===e.amenity&&(r+="townhall "),"bench"===e.amenity&&(r+="bench "),"grave_yard"!==e.amenity&&"cemetery"!==e.landuse||(r+="grave yard "),"post_box"===e.amenity&&(r+="post box "),"post_office"===e.amenity&&(r+="post office "),"telephone"===e.amenity&&(r+="telephone "),"atm"===e.amenity&&(r+="atm "),"bank"===e.amenity&&(r+="bank "),"toilets"===e.amenity&&"yes"===e.diaper?r+="toilets with diaper changing table ":"toilets"===e.amenity&&(r+="toilets "),"school"===e.amenity&&"1"===e["isced:level"]?r+="primary school ":"school"===e.amenity&&"2"===e["isced:level"]?r+="secondary school ":"school"===e.amenity&&"3"===e["isced:level"]?r+="secondary schools ":"school"===e.amenity&&(r+="school "),"kindergarten"===e.amenity&&(r+="kindergarten "),"internet_cafe"===e.amenity&&(r+="internet cafe "),"daycare"===e.amenity&&(r+="daycare "),"childcare"===e.amenity&&(r+="childcare "),"university"===e.amenity&&(r+="university "),"college"===e.amenity&&(r+="college "),"shelter"===e.amenity&&(r+="shelter "),"bbq"===e.amenity&&(r+="bbq "),"nightclub"===e.amenity&&(r+="nightclub "),"bicycle_parking"===e.amenity&&(r+="bicycle parking "),"bicycle_rental"===e.amenity&&(r+="bicycle rental "),"boat_sharing"===e.amenity&&(r+="boat sharing "),"car_sharing"===e.amenity&&(r+="car sharing "),"cinema"===e.amenity&&(r+="cinema "),"swimming_pool"===e.amenity&&(r+="swimming pool "),"embassy"!==e.amenity&&"embassy"!==e.diplomatic||(r+="embassy "),"embassy"===e.amenity&&"consulate"===e.diplomatic&&(r+="consulate "),"embassy"===e.amenity&&"consulate_general"===e.diplomatic&&(r+="consulate general "),"embassy"===e.amenity&&"honorary_consulate"===e.diplomatic&&(r+="honorary consulate "),"embassy"===e.amenity&&"permanent_mission"===e.diplomatic&&(r+="permanent mission "),"embassy"===e.amenity&&"delegation"===e.diplomatic&&(r+="delegation "),"embassy"===e.amenity&&"high_commission"===e.diplomatic&&(r+="high commission "),"Barfusspfad"===e.amenity&&(r+="barefoodpath "),"casino"===e.amenity&&(r+="casino "),"spa"===e.amenity&&(r+="spa "),"stables"===e.amenity&&(r+="stables "),"watering_place"===e.amenity&&(r+="watering place "),"yes"===e.watering_place&&(r+="watering place "),"water_point"===e.amenity&&(r+="water point "),"taxi"===e.amenity&&(r+="taxi "),"car_wash"===e.amenity&&(r+="car wash "),"brothel"===e.amenity&&(r+="brothel "),"stripclub"===e.amenity&&(r+="stripclub "),"swingerclub"===e.amenity&&(r+="swingerclub "),"planetarium"===e.amenity&&(r+="planetarium "),"courthouse"===e.amenity&&(r+="court house "),"crematorium"===e.amenity&&(r+="crematorium "),"crypt"!==e.amenity&&"crypt"!==e.building||(r+="crypt "),"hunting_stand"===e.amenity&&(r+="hunting stand "),"photo_booth"===e.amenity&&(r+="photo booth "),"prison"===e.amenity&&(r+="prison "),"ranger_station"===e.amenity&&(r+="ranger station "),"register_office"===e.amenity&&(r+="register office "),"marketplace"===e.amenity&&(r+="marketplace "),"solarium"===e.amenity&&(r+="solarium "),"sauna"===e.amenity&&(r+="sauna "),"shower"===e.amenity&&(r+="shower "),"waste_disposal"===e.amenity&&(r+="waste disposal ",e.waste))switch(r+="Typ: ",e.waste){case"trash":default:r+="General ";break;case"oil":r+="Oil ";break;case"drugs":r+="Pharmaceutical ";break;case"organic":r+="Organic ";break;case"plastic":r+="Plastic ";break;case"rubble":r+="Rubble ";break;case"cigarettes":r+="Cigarettes "}if("waste_basket"!==e.amenity&&"dog_excrement"!==e.waste||(r+="dog waste station "),"scout_camp"!==e.amenity&&"scout_hut"!==e.amenity&&"scout_hall"!==e.amenity||(r+="scout camp "),"ferry_terminal"===e.amenity&&(r+="ferry terminal "),"bureau_de_change"===e.amenity&&(r+="bureau de change "),"youth_club"===e.amenity&&(r+="youth club "),"festival_grounds"===e.amenity&&(r+="festival grounds "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="fireplace "),"vending_machine"===e.amenity)if(e.vending)switch(e.vending){case"admission_tickets":r+="vending machine admission tickets ";break;case"animal_feed":r+="vending machine animal feed ";break;case"bicycle_tube":r+="vending machine bicycle tube ";break;case"books":r+="vending machine books ";break;case"candles":r+="vending machine candles ";break;case"cigarettes":r+="vending machine cigarettes ";break;case"chemist":r+="vending machine chemist ";break;case"condoms":r+="vending machine condoms ";break;case"drinks":r+="vending machine drinks ";break;case"electronics":r+="vending machine electronics ";break;case"elongated_coin":r+="vending machine elongated_coin ";break;case"excrement_bags":r+="vending machine excrement_bags ";break;case"feminine_hygiene":r+="vending machine feminine_hygiene ";break;case"first_aid":r+="vending machine first_aid ";break;case"fishing_tackle":r+="vending machine fishing tackle ";break;case"fishing_bait":r+="vending machine fishing bait ";break;case"flowers":r+="vending machine flowers ";break;case"food":r+="vending machine food ";break;case"ice_cubes":r+="vending machine ice cubes ";break;case"ice_cream":r+="vending machine ice cream ";break;case"ink_cartridges":r+="vending machine ink cartridges ";break;case"laundry_detergent":r+="vending machine laundry detergent ";break;case"public_transport_tickets":r+="vending machine public transport tickets ";break;case"newspaper":r+="vending machine newspaper ";break;case"parcel_pickup":r+="vending machine parcel pickup ";break;case"parcel_mail_in":r+="Packege station ";break;case"parking_tickets":r+="vending machine parking tickets ";break;case"photos":r+="vending machine photos ";break;case"sex_toys":r+="vending machine sex_toys ";break;case"SIM_cards":r+="vending machine SIM_cards ";break;case"stamps":r+="vending machine stamps ";break;case"sweets":r+="vending machine sweets ";break;case"syringes":r+="vending machine syringes ";break;case"toll":r+="vending machine toll ";break;case"toys":r+="vending machine toys ";break;case"umbrellas":r+="vending machine umbrellas ";break;default:r+="vending machine "}else r+="vending machine ";if("arts_centre"===e.amenity&&(r+="arts centre "),"artwork"===e.amenity&&(r+="artwork "),"museum"===e.amenity&&(r+="museum "),"theatre"===e.amenity&&(r+="theatre "),"cathedral"===e.building&&(r+="cathedral "),"church"===e.building&&(r+="church "),"chapel"===e.building&&(r+="chapel "),"place_of_worship"===e.amenity&&(r+="place of worship "),"village"===e.abandoned&&(r+="abandoned village "),"theme_park"===e["abandoned:tourism"]&&(r+="abandoned theme park "),e["abandoned:amenity"],"yes"===e.abandoned&&"bunker"===e.military&&(r+="abandoned bunker "),"yes"===e.abandoned&&"barracks"===e.military&&(r+="abandoned barracks "),"yes"===e.abandoned&&"airfield"===e.military&&(r+="abandoned airfield "),"monastery"===e.historic&&(r+="historic monastery "),"monastery"===e.amenity&&(r+="monastery "),"monastery"===e.building&&(r+="monastery "),"manor"===e.historic&&(r+="historic manor "),"boundary_stone"===e.historic&&(r+="historic boundary stone "),"milestone"===e.historic&&(r+="historic milestone "),"monument"===e.historic&&(r+="monument "),"palace"===e.historic&&(r+="historic palace "),"mine"===e.historic&&(r+="historic mine "),"ruins"===e.historic&&(r+="ruins "),"harbour"===e.historic_usage&&(r+="historic harbour "),"rune stone"===e.historic&&(r+="rune stone "),"battlefield"===e.historic&&(r+="historic battlefield "),"blacksmith"===e.historic&&(r+="historic blacksmith "),"tree_shrine"!==e.historic&&"wayside_shrine"!==e.historic||(r+="shrine "),"city_gate"===e.historic&&(r+="historic city gate "),"wayside_cross"===e.historic&&(r+="historic wayside cross "),"monument"===e.amenity&&(r+="monument "),"memorial"===e.historic&&(r+="memorial "),"optical_telegraph"===e.historic&&(r+="historic optical telegraph "),"castle"===e.historic)if(e.castle_type)switch(e.castle_type){case"defensive":r+="defensive castle ";break;case"palace":r+="palace ";break;case"stately":r+="stately castle ";break;case"manor":r+="manor ";break;case"fortress":r+="fortress ";break;case"castrum":r+="castrum ";break;case"shiro":r+="shiro ";break;case"kremlin":r+="kremlin ";break;default:r+="castle "}else r+="castle ";if("archaeological_site"===e.historic&&(r+="archaeological site "),"tomb"===e.historic)if(e.tomb)switch(e.tomb){case"tumulus":r+="tumulus ";break;case"rock-cut":r+="rock ";break;case"hypogeum":r+="hypogeum ";break;case"war_grave":r+="war grave ";break;case"mausoleum":r+="mausoleum ";break;case"columbarium":r+="columbarium ";break;case"crypt":r+="crypt ";break;case"pyramid":r+="pyramid ";break;case"sarcophagus":r+="sarcophagus ";break;case"vault":r+="vault ";break;case"tombstone":r+="tombstone ";break;default:r+="historic tomb "}else r+="historic tomb ";if("accountant"===e.office&&(r+="accountant "),"administrative"===e.office&&(r+="administrative "),"architect"===e.office&&(r+="architect "),"association"===e.office&&(r+="association "),"physician"===e.office&&(r+="physician "),"camping"===e.office&&(r+="camping office "),"company"===e.office&&(r+="company "),"educational_institution"===e.office&&(r+="educational institution "),"employment_agency"===e.office&&(r+="employment agency "),"estate_agent"===e.office&&(r+="estate agent "),"forestry"===e.office&&(r+="forestry "),"foundation"===e.office&&(r+="foundation "),"government"===e.office&&(r+="government "),"guide"===e.office&&(r+="guide office "),"insurance"===e.office&&(r+="insurance "),"it"===e.office&&(r+="it office "),"lawyer"===e.office&&(r+="lawyer "),"newspaper"===e.office&&(r+="newspaper "),"ngo"===e.office&&(r+="ngo office "),"notary"===e.office&&(r+="notary "),"political_party"===e.office&&(r+="political party "),"quango"===e.office&&(r+="quango office "),"realtor"===e.office&&(r+="realtor "),"real_estate_agent"===e.office&&(r+="real estate agent "),"register"===e.office&&(r+="register "),"religion"===e.office&&(r+="religious office "),"research"===e.office&&(r+="research office "),"tax"===e.office&&(r+="tax office "),"telecommunication"===e.office&&(r+="telecommunication office "),"travel_agent"===e.office&&(r+="travel agent "),"water_utility"===e.office&&(r+="water utility office "),"therapist"===e.office&&(r+="therapist "),"city"===e.place&&(r+="city "),"town"===e.place&&(r+="town "),"village"===e.place&&(r+="village "),"continent"===e.place&&(r+="continent "),"ocean"===e.place&&(r+="ocean"),"track"===e.highway&&(r+="track "),"raceway"===e.highway&&(r+="raceway "),"designated"===e.bicycle&&(r+="cycle path "),"path"===e.highway&&(r+="food path "),"parking"===e.amenity&&(r+="parking "),"services"===e.highway&&(r+="services "),"rest_area"===e.highway&&(r+="rest area "),"turning_circle"===e.highway&&(r+="turning circle "),"service"===e.highway&&(r+="service road "),"motorway"===e.highway&&(r+="motorway "),"motorway_junction"===e.highway&&(r+="motorway junction "),"bridleway"===e.highway&&(r+="bridleway "),"yes"===e.oneway&&(r+="oneway "),"yes"===e.park_ride&&(r+="park and ride "),"unknown"===e.park_ride&&(r+="park and ride "),"bus"===e.park_ride&&(r+="park and ride "),"tram"===e.park_ride&&(r+="park and ride "),"bus_stop"===e.highway&&(r+="bus stop "),"pedestrian"===e.highway&&(r+="pedestrian "),"street_lamp"===e.highway&&(r+="street lamp "),"traffic_signals"===e.highway&&(r+="traffic signals "),"traffic_signals"===e.crossing&&(r+="traffic signals "),"speed_camera"===e.highway&&(r+="speed camera "),"yes"===e.traffic_calming&&(ret+="traffic calming"),"bump"===e.traffic_calming&&(r+="bump"),"chicane"===e.traffic_calming&&(r+="chicane"),"choker"===e.traffic_calming&&(r+="choker"),"cushion"===e.traffic_calming&&(r+="cushion"),"hump"===e.traffic_calming&&(r+="hump"),"island"===e.traffic_calming&&(r+="island"),"rumble_strip"===e.traffic_calming&&(r+="rumble_strip"),"table"===e.traffic_calming&&(r+="table"),"buoy_cardinal"===e["seamark:type"]&&(r+="buoy cardinal "),"buoy_lateral"===e["seamark:type"]&&(r+="buoy lateral "),"buoy_isolated_danger"===e["seamark:type"]&&(r+="buoy isolated_danger "),"perch"===e["seamark:beacon_lateral:shape"]&&(r+="perch "),"fuel"===e.amenity&&"fuel_station"===e["seamark:small_craft_facility:category"]?r+="fuel station ":"fuel"===e.amenity&&(r+="fuel "),"charging_station"===e.amenity){r+="charging station ";var t=e.voltage,a=" ";if(e.car){switch(e.car){case"yes":r+="Car: yes";break;case"no":r+="Car: No";break;default:r+="Cars: unkown"}r+=a}else r+="Cars: unkown"+a;if(e.bicycle){switch(e.bicycle){case"yes":r+="E-Bike: yes";break;case"no":r+="E-Bike: no";break;default:r+="E-Bike: unkown"}r+=a}else r+="E-Bike: unkown"+a;e["socket:schuko"]&&(r+="Schuko socket: "+e["socket:schuko"]+a),e["socket:cee_blue"]&&(r+="Cee blue socket "+e["socket:cee_blue"]+a),e["socket:cee_red_16a"]&&(r+="Cee red 16a socket "+e["socket:cee_red_16a"]+a),e["socket:cee_red_32a"]&&(r+="Cee red 32a socket "+e["socket:cee_red_32a"]+a),e["socket:cee_red_64a"]&&(r+="Cee red 64a socket "+e["socket:cee_red_64a"]+a),e["socket:cee_red_125a"]&&(r+="Cee red 125a socket "+e["socket:cee_red_125a"]+a),e["socket:nema_5_15"]&&(r+="Nema 5 15 socket "+e["socket:nema_5_15"]+a),e["socket:nema_5_20"]&&(r+="Nema 5 20 socket "+e["socket:nema_5_20"]+a),e["socket:nema_14_30"]&&(r+="Nema 14 30 socket "+e["socket:nema_14_30"]+a),e["socket:nema_14_50"]&&(r+="Nema 14 50 socket "+e["socket:nema_14_50"]+a),e["socket:bs1363"]&&(r+="Bs1363 socket "+e["socket:bs1363"]+a),e["socket:type1"]&&(r+="Type 1 socket "+e["socket:type1"]+a),e["socket:type1_combo"]&&(r+="Type 1 combo socket "+e["socket:schuko"]+a),e["socket:type2"]&&(r+="Type 2 socket "+e["socket:type2"]+a),e["socket:type2_combo"]&&(r+="Type 2 combo socket "+e["socket:type2_combo"]+a),e["socket:type3"]&&(r+="Type 3 socket "+e["socket:type3"]+a),e["socket:chademo"]&&(r+="Chademo socket "+e["socket:chademo"]+a),e["socket:magne_charge"]&&(r+="Magne charge socket "+e["socket:magne_charge"]+a),e["socket:tesla_standard"]&&(r+="Tesla standard socket "+e["socket:tesla_standard"]+a),e["socket:tesla_supercharge"]&&(r+="Tesla supercharge: "+e["socket:tesla_supercharge"]+a),e["socket:tesla_roadster"]&&(r+="Tesla_roadster socket "+e["socket:tesla_roadster"]+a),r+=a,e.voltage&&(r+="Volt: "+t+a)}if("yes"===e.tunnel&&(r+="tunnel "),e.bridge)switch(r+="bridge: ",e.bridge){case"swing":r+="swing";break;case"aqueduct":r+="aqueduct";break;case"bascule":r+="flap bridge";break;case"boardwalk":r+="boardwalk";break;case"cantilever":r+="cantilever";break;case"covered":r+="covered";break;case"drawbridge":r+="drawbridge";break;case"humpback":r+="humpback";break;case"lift":r+="lift";break;case"low_water_crossing":r+="low water crossing";break;case"moveable":r+="moveable";break;case"pontoon":r+="pontoon";break;case"suspension":r+="suspension";break;case"trestle":r+="trestle";break;case"viaduct":r+="viaduct"}if(e["bridge:movable"])switch(e["bridge:movable"]){case"swing":r+="swing";break;case"bascule":r+="bascule";break;case"drawbridge":r+="drawbridge";break;case"lift":r+="lift";break;case"submersible":r+="submersible";break;case"transporter":r+="transporter";break;case"retractable":r+="retractable"}if("nursing_home"!==e.amenity&&"retirement_home"!==e.amenity||(r+="nursing home / retirement home "),"social_facility"===e.amenity&&(r+="social facility "),e.social_facility&&("group_home"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="senior group home "),"assisted_living"===e.social_facility&&(r+="assisted living "),"outreach"===e.social_facility&&(r+="outreach "),"workshop"===e.social_facility&&(r+="workshop "),"ambulatory_care"!==e.social_facility&&"healthcare"!==e.social_facility||(r+="ambulatory care "),"shelter"===e.social_facility&&"senior"===e["social_facility:for"]&&(r+="senior shelter "),"shelter"===e.social_facility&&"abused"===e["social_facility:for"]&&(r+="abused shelter "),"food_bank"===e.social_facility&&(r+="food bank "),"hospice"===e.social_facility&&(r+="hospice ")),e.brewery&&(r+="brand of beer: "+e.brewery+" "),"alcohol"===e.shop&&(r+="alcohol shop "),"bakery"===e.shop&&(r+="bakery shop "),"beverages"===e.shop&&(r+="beverages shop "),"butcher"===e.shop&&(r+="butcher shop "),"cheese"===e.shop&&(r+="cheese shop "),"chocolate"===e.shop&&(r+="chocolate shop "),"coffee"===e.shop&&(r+="coffee shop "),"confectionery"===e.shop&&(r+="confectionery shop "),"convenience"===e.shop&&(r+="convenience shop "),"deli"===e.shop&&(r+="deli shop "),"dairy"===e.shop&&(r+="dairy shop "),"farm"===e.shop&&(r+="farm shop "),"greengrocer"===e.shop&&(r+="greengrocer shop "),"grocery"===e.shop&&(r+="grocery shop "),"organic"===e.shop&&(r+="organic shop "),"pasta"===e.shop&&(r+="pasta shop "),"seafood"===e.shop&&(r+="seafood shop "),"tea"===e.shop&&(r+="tea shop "),"wine"===e.shop&&(r+="wine shop "),"department_store"===e.shop&&(r+="department store "),"general"===e.shop&&(r+="general shop "),"kiosk"===e.shop&&(r+="kiosk "),"mall"===e.shop&&(r+="mall "),"supermarket"===e.shop&&(r+="supermarket "),"baby_goods"===e.shop&&(r+="baby goods shop "),"bag"===e.shop&&(r+="bag shop "),"boutique"===e.shop&&(r+="boutique "),"clothes"===e.shop&&(r+="clothes shop "),"fabric"===e.shop&&(r+="fabric shop "),"fashion"===e.shop&&(r+="fashion shop "),"jewelry"===e.shop&&(r+="jewelry shop "),"leather"===e.shop&&(r+="leather shop "),"shoes"===e.shop&&(r+="shoes shop "),"variety_store"===e.shop&&(r+="variety store "),"chemist"===e.shop&&(r+="chemist "),"cosmetics"===e.shop&&(r+="cosmetics shop "),"drugstore"===e.shop&&(r+="drugstore "),"perfumery"===e.shop&&(r+="perfumery "),"erotic"===e.shop&&(r+="erotic shop "),"hairdresser"===e.shop&&(r+="hairdresser "),"hearing_aids"===e.shop&&(r+="hearing aids "),"herbalist"===e.shop&&(r+="herbalist "),"massage"===e.shop&&(r+="massage "),"medical_supply"===e.shop&&(r+="medical supply shop "),"optician"===e.shop&&(r+="optician "),"tattoo"===e.shop&&(r+="tattoo "),"bathroom_furnishing"===e.shop&&(r+="bathroom furnishing "),"doityourself"===e.shop&&(r+="doityourself "),"energy"===e.shop&&(r+="energy "),"florist"===e.shop&&(r+="florist "),"furnace"===e.shop&&(r+="furnace shop "),"garden_centre"===e.shop&&(r+="garden centre "),"gas"===e.shop&&(r+="gas "),"glaziery"===e.shop&&(r+="glaziery "),"hardware"===e.shop&&(r+="hardware shop "),"houseware"===e.shop&&(r+="houseware shop "),"locksmith"===e.shop&&(r+="locksmith "),"paint"===e.shop&&(r+="paint shop "),"trade"===e.shop&&(r+="trade "),"antiques"===e.shop&&(r+="antiques shop "),"bed"===e.shop&&(r+="bed shop "),"candles"===e.shop&&(r+="candles shop "),"carpet"===e.shop&&(r+="carpet shop "),"curtain"===e.shop&&(r+="curtain shop "),"furniture"===e.shop&&(r+="furniture store "),"interior_decoration"===e.shop&&(r+="interior decoration company "),"kitchen"===e.shop&&(r+="kitchen shop "),"window_blind"===e.shop&&(r+="window blind shop "),"computer"===e.shop&&(r+="computer shop "),"electronics"===e.shop&&(r+="electronics shop "),"hifi"===e.shop&&(r+="hifi shop "),"mobile_phone"===e.shop&&(r+="mobile phone shop "),"radiotechnics"===e.shop&&(r+="radiotechnics shop "),"vacuum_cleaner"===e.shop&&(r+="vacuum cleaner shop "),"bicycle"===e.shop&&(r+="bicycle shop "),"car"===e.shop&&(r+="car shop "),"car repair"===e.shop&&(r+="car repair "),"car_parts"===e.shop&&(r+="car parts shop "),"dive"!==e.shop&&"scuba_diving"!==e.shop||(r+="scuba diving shop "),"fishing"===e.shop&&(r+="fishing shop "),"free_flying"===e.shop&&(r+="free flying shop "),"hunting"===e.shop&&(r+="hunting shop "),"motorcycle"===e.shop&&(r+="motorcycle shop "),"outdoor"===e.shop&&(r+="outdoor shop "),"sports"===e.shop&&(r+="sports shop "),"tyres"===e.shop&&(r+="tyres "),"water_sports"===e.shop&&(r+="water sports shop "),"art"===e.shop&&(r+="art "),"craft"===e.shop&&(r+="craft "),"frame"===e.shop&&(r+="frame shop "),"music"===e.shop&&(r+="music shop "),"music_instrument"===e.shop&&(r+="music instruments shop "),"photo"===e.shop&&(r+="photo shop "),"video"===e.shop&&(r+="video "),"video_games"===e.shop&&(r+="video games "),"anime"===e.shop&&(r+="anime "),"books"===e.shop&&(r+="books shop "),"gift"===e.shop&&(r+="gift shop "),"newsagent"===e.shop&&(r+="newsagent "),"stationery"===e.shop&&(r+="stationery "),"ticket"===e.shop&&(r+="ticket shop "),"copyshop"===e.shop&&(r+="copyshop "),"funeral_directors"===e.shop&&(r+="funeral directors "),"laundry"===e.shop&&(r+="laundry "),"dry_cleaning"===e.shop&&(r+="dry cleaning "),"money_lender"===e.shop&&(r+="money lender "),"pawnbroker"===e.shop&&(r+="pawnbroker "),"pet"===e.shop&&(r+="pet shop "),"pyrotechnics"===e.shop&&(r+="pyrotechnics shop "),"religion"===e.shop&&(r+="religion "),"beauty"===e.shop&&(r+="beauty "),"solarium"===e.shop&&(r+="solarium "),"tobacco"===e.shop&&(r+="tobacco shop "),"toys"===e.shop&&(r+="toys shop "),"travel_agency"===e.shop&&(r+="travel agency "),"market_hall"===e.shop&&(r+="market hall "),"vacant"===e.shop&&(r+="vacant "),"weapons"===e.shop&&(r+="weapons shop "),"lottery"===e.gambling&&(r+="lottery "),"fish"===e.pet&&(r+="fishkeeping "),"agriucultural_engines"===e.craft&&(r+="agriucultural engines "),"basket_maker"===e.craft&&(r+="basket maker "),"beekeeper"===e.craft&&(r+="beekeeper "),"blacksmith"===e.craft&&(r+="blacksmith "),"brewery"===e.craft&&(r+="brewery "),"yes"===e.microbrewery&&(r+="micro-brewery "),"boatbuilder"===e.craft&&(r+="boatbuilder "),"bookbinder"===e.craft&&(r+="bookbinder "),"builder"===e.craft&&(r+="housebuilding "),"carpenter"===e.craft&&(r+="carpenter, woodworker, joiner "),"carpet_layer"===e.craft&&(r+="carpet layer "),"caterer"===e.craft&&(r+="caterer "),"clockmaker"===e.craft&&(r+="clockmaker "),"confectionery"===e.craft&&(r+="confectionery "),"dressmaker"===e.craft&&(r+="dressmaker "),"electrician"===e.craft&&(r+="electrician "),"gardener"===e.craft&&(r+="gardener, landscaper "),"glaziery"===e.craft&&(r+="glaziery "),"handicraft"===e.craft&&(r+="handicraft "),"hvac"===e.craft&&(r+="heating, ventilation and air-conditioning technology (HVAC) "),"insulation"===e.craft&&(r+="thermal insulation "),"jeweller"===e.craft&&(r+="jeweller, gold-/silversmiths "),"key_cutter"===e.craft&&(r+="key cutter "),"locksmith"===e.craft&&(r+="locksmith "),"metal_construction"===e.craft&&(r+="metalworker "),"optician"===e.craft&&(r+="optician "),"painter"===e.craft&&(r+="painter "),"parquet_layer"===e.craft&&(r+="parquet layer "),"photographer"===e.craft&&(r+="photographer "),"photographic_laboratory"===e.craft&&(r+="photographic laboratory "),"plasterer"===e.craft&&(r+="plasterer "),"plumber"===e.craft&&(r+="plumber "),"pottery"===e.craft&&(r+="pottery "),"rigger"===e.craft&&(r+="ship rigger "),"roofer"===e.craft&&(r+="roofer "),"saddler"===e.craft&&(r+="saddler "),"sailmaker"===e.craft&&(r+="sailmaker "),"sawmill"===e.craft&&(r+="sawmill "),"scaffolder"===e.craft&&(r+="scaffolder "),"sculptor"===e.craft&&(r+="sculptor "),"shoemaker"===e.craft&&(r+="shoemaker "),"stand_builder"===e.craft&&(r+="exhibition stand builder "),"stonemason"===e.craft&&(r+="stonemason "),"sun_protection"===e.craft&&(r+="constructor for sun protection, venetian blind, shutter "),"sweep"===e.craft&&(r+="chimney sweep "),"tailor"===e.craft&&(r+="tailor "),"tiler"===e.craft&&(r+="tiler "),"tinsmith"===e.craft&&(r+="tinsmith, metalworker "),"upholsterer"===e.craft&&(r+="upholsterer "),"watchmaker"===e.craft&&(r+="watchmaker "),"window_construction"===e.craft&&(r+="window constructor "),"machines"===e.rental&&(r+="rental park for machines "),"car_rental"===e.amenity&&(r+="car rental company "),"allotments"===e.landuse&&(r+="allotment garden "),"basin"===e.landuse&&(r+="holding reservoir "),"brownfield"===e.landuse&&(r+="brownfield "),"commercial"===e.landuse&&(r+="commercial area "),"construction"===e.landuse&&(r+="construction area "),"farmland"===e.landuse&&(r+="farmland "),"farmyard"===e.landuse&&(r+="farmyard "),"forest"===e.landuse&&(r+="forest "),"garages"===e.landuse&&(r+="garages "),"grass"===e.landuse&&(r+="grass "),"greenfield"===e.landuse&&(r+="greenfield "),"greenhouse_horticulture"===e.landuse&&(r+="greenhouse horticulture "),"industrial"===e.landuse&&(r+="industry area "),"landfill"===e.landuse&&(r+="landfill "),"meadow"===e.landuse&&(r+="meadow "),"orchard"===e.landuse&&(r+="orchard "),"plant_nursery"===e.landuse&&(r+="plant nursery "),"quarry"===e.landuse&&(r+="quarry "),"railway"===e.landuse&&(r+="railway "),"recreation_ground"===e.landuse&&(r+="recreation ground "),"reservoir"===e.landuse&&(r+="reservoir "),"residential"===e.landuse&&(r+="residential "),"retail"===e.landuse&&(r+="retrail "),"salt_pond"===e.landuse&&(r+="salt pond "),"village_green"===e.landuse&&(r+="village green "),"vineyard"===e.landuse&&(r+="vineyard "),"pond"===e.landuse&&(r+="pond "),"salt_pond"===e.landuse&&(r+="salt pond "),"animal_keeping"===e.landuse&&(r+="animal keeping "),"yes"===e.entrance&&(r+="entrance "),"main"===e.entrance&&(r+="main-entrance "),"service"===e.entrance&&(r+="rear exit for staffing and suppliers "),"exit"===e.entrance&&(r+="exit "),"emergency"===e.entrance&&(r+="emergency "),"bay"===e.natural&&(r+="bay "),"beach"===e.natural&&(r+="beach "),"wood"===e.natural&&(r+="wood "),"glacier"===e.natural&&(r+="glacier "),"cave_entrance"===e.natural&&(r+="cave entrance "),"spring"===e.natural&&(r+="spring "),"waterfall"===e.natural&&(r+="waterfall "),"scrub"===e.natural&&(r+="scrub "),"grassland"===e.natural&&(r+="grassland "),"wetland"===e.natural&&(r+="wetland "),"tree"===e.natural&&(r+="tree"),"peak"===e.natural&&"yes"===e["summit:cross"]&&(r+="cross on the summit of a mountain "),"tree_row"===e.natural&&(r+="tree row, alley of trees "),"heath"===e.natural&&(r+="heath "),"moor"===e.natural&&(r+="moor "),"grassland"===e.natural&&(r+="grassland "),"fell"===e.natural&&(r+="grasland above the tree land "),"bare_rock"===e.natural&&(r+="bare rock "),"scree"===e.natural&&(r+="scree "),"volcano"===e.natural&&(r+="volcano "),"valley"===e.natural&&(r+="valley "),"stone"===e.natural&&(r+="stone "),"sea"===e.natural&&(r+="sea "),"national_park"===e.boundary&&(r+="national park "),"protected_area"===e.boundary&&(r+="protected area "),"yes"===e.mountain_pass&&(r+="mountain pass "),"waterfall"===e.waterway&&(r+="waterfall "),"canal"===e.waterway&&(r+="canal "),"canal"===e.water&&(r+="canal "),"river"===e.waterway&&(r+="river "),"river"===e.water&&(r+="river "),"riverbank"===e.waterway&&(r+="river "),"ditch"===e.waterway&&(r+="ditch "),"stream"===e.waterway&&(r+="stream "),"ferry"===e.route&&(r+="ferry "),"turning_point"===e.waterway&&(r+="turning point "),"lake"!==e.water&&"water"!==e.natural||(r+="lake "),"cove"===e.water&&(r+="cove "),"lagoon"===e.water&&(r+="lagoon "),"pond"===e.water&&(r+="pond "),"reservoir"===e.water&&(r+="waterreservoir "),"oxbow"===e.water&&(r+="oxbow lake "),"lock"===e.water&&(r+="lock chamber "),"moat"===e.water&&(r+="castle moat "),"wastewater"===e.water&&(r+="wastewater treatment plant "),"guest"===e.mooring&&"pier"===e.man_made||"visitor_berth"===e["seamark:small_craft_facility:category"]?r+="gastrointestinal ":"pier"===e.man_made&&(r+="pier "),"boatyard"===e.waterway&&(r+="boatyard "),"mooring"===e["seamark:type"]&&"dolphin"===e["seamark:mooring:category"]&&(r+="dolphin "),"foot"===e.route&&(r+="footpath "),"hiking"===e.route&&(r+="hiking trail "),"yes"===e.hiking&&"information"===e.tourism)r+="direction board ";else if("information"===e.tourism&&"information"===e.tourism)if(e.information)switch(e.information){case"board":default:r+="direction board ";break;case"map":r+="direction board with a map ";break;case"office":r+="tourist information office ";break;case"terminal":r+="tourist information terminal ";break;case"audioguide":r+="audioguide ";break;case"guidepost":r+="guidepost ";break;case"tactile_map":r+="tactile map ";break;case"tactile_model":r+="tactile model ";break;case"route_marker":r+="route marker "}else r+="direction board ";if("bicycle"===e.route&&(r+="cycle track "),"mtb"===e.route&&(r+="mountain bike route "),"horse"===e.route&&(r+="bridleway "),"coastline"===e.natural&&(r+="coastline "),"cliff"===e.natural&&(r+="cliff "),"dam"===e.waterway&&(r+="dam "),"weir"===e.waterway&&(r+="weir "),"lock_gate"===e.waterway&&(r+="lock gate "),"yes"===e.lock&&(r+="lock "),"sluice_gate"===e.waterway&&(r+="sluice gate "),"pumping_station"===e.man_made&&(r+="pumping station "),"groyne"===e.man_made&&(r+="groyne "),"dyke"===e.man_made&&(r+="dyke "),"levee"===e.man_made&&(r+="levee "),"watermill"===e.man_made&&(r+="watermill "),"airfield"===e.military&&(r+="military airfield "),"naval_base"===e.military&&(r+="naval base "),"range"===e.military&&(r+="military range "),"military"===e.landuse&&(r+="military land use "),"training_area"===e.military&&(r+="military training area "),"exclusion_zone"===e.military&&(r+="military exclusion zone "),"danger_area"===e.military&&(r+="military danger area "),"barracks"===e.military&&(r+="barracks "),"nuclear_explosion_site"===e.military&&(r+="military nuclear explosion site "),("yes"===e.construction||"construction"===e.highway)&&(r+="construction "),"petroleum_well"===e.man_made&&(r+="petroleum well "),"storage_tank"===e.man_made&&(r+="storage tank "),"wastewater_plant"===e.man_made&&(r+="wastewater plant "),"silo"===e.man_made&&(r+="silo "),"water_tower"===e.man_made&&(r+="water tower "),"windmill"===e.man_made&&(r+="windmill "),"monitoring_station"===e.man_made&&(r+="monitoring station"),"crane"===e.man_made&&(r+="crane"),"lighthouse"===e.man_made&&(r+="lighthouse"),"beacon"===e.man_made&&(r+="beacon"),"breakwater"===e.man_made&&(r+="breakwater"),"lamp"===e.man_made&&"street_lamp"===e["lamp:type"]&&(r+="street lamp "),"lantern"===e.light_source&&(r+="street lamp"),"floodlight"===e.light_source&&(r+="floodlight "),"signal_lamp"===e.light_source&&(r+="signal lamp "),"aviation"===e.light_source&&(r+="aviation "),"warning"===e.light_source&&(r+="warning "),e.light_source&&e["light:method"])switch(r+="Light Typ: ",e["light:method"]){case"gas":r+="Gas";break;case"electric":r+="electric";break;case"incandescent":r+="incandescent";break;case"halogen":r+="halogen";break;case"discharge":r+="discharge";break;case"metal-halide":r+="metal-halide";break;case"neon":r+="neon";break;case"sodium":r+="Natriumdampflampe";break;case"high_pressure_sodium":r+="high pressure sodium";break;case"low_pressure_sodium":r+="low pressure sodium";break;case"fluorescent":r+="Fluorescent";break;case"mercury":r+="Mercury";break;case"LED":r+="LED";break;case"laser":r+="Laser";break;case"arc":r+="Arc";break;default:r+="Unkown"}if("drinking_water"===e.amenity&&(r+="drinking water "),"yes"===e.drinking_water&&(r+="drinking water "),"works"===e.man_made||"industrial"===e.building?r+="industrial building ":"industrial"===e.landuse||"industrial"===e.abutters?r+="industrial area ":"commercial"===e.abutters&&(r+="commercial "),e["generator:source"])switch(r+="installation: ",e["generator:source"]){case"biomass":r+="biomass";break;case"biofuel":r+="biofuel";break;case"biogas":r+="biogas";break;case"coal":r+="coal";break;case"oil":r+="oil";break;case"waste":r+="waste";break;case"wind":r+="wind";break;case"solar":r+="solar";break;case"hydro":r+="hydro";break;case"tidal":r+="tidal";break;case"wave":r+="wave";break;case"geothermal":r+="geothermal";break;case"osmotic":r+="osmotic";break;case"nuclear":r+="nuclear";break;default:r+="unknown "}if("photovoltaic"===e.power_source&&(r+="photovoltaic"),"line"===e.power&&(r+="power line "),"cable"===e.power&&(r+="cable "),"cable_distribution_cabinet"===e.power&&(r+="cable distribution cabinet "),"plant"===e.power&&(r+="plant "),"station"===e.power&&(r+="station "),"sub_station"===e.power&&(r+="substation "),"compensator"===e.power&&(r+="compensator "),"converter"===e.power&&(r+="converter "),"generator"===e.power&&(r+="generator "),"heliostat"===e.power&&(r+="heliostat "),"insulator"===e.power&&(r+="insulator "),"busbar"===e.line&&(r+="busbar "),"bay"===e.line&&(r+="bay "),"minor_line"===e.power&&(r+="minor line "),"pole"===e.power&&(r+="pole "),"portal"===e.power&&(r+="portal "),"catenary_mast"===e.power&&(r+="catenary mast "),"substation"===e.power&&(r+="substation "),"switch"===e.power&&(r+="switch "),"terminal"===e.power&&(r+="terminal "),"tower"===e.power&&(r+="tower "),"transformer"===e.power&&(r+="transformer "),e.barrier)switch(e.barrier){case"bollard":r+="bollard ";break;case"cycle_barrier":r+="cycle barrier ";break;case"gate":r+="gate ";break;case"chain":r+="chain ";break;case"lift_gate":r+="lift gate ";break;case"wall":r+="wall ";break;case"toll_booth":r+="toll booth ";break;case"fence":switch(e.fence_type){case"barbed_wire":r+="barbed wire ";break;case"wood":r+="wood ";break;case"chain_link":r+="chain link ";break;case"electric":r+="electric ";break;case"railing":r+="railing ";break;case"wire":r+="wire ";break;case"metal":r+="metal ";break;case"pole":r+="pole ";break;default:r+="fence "}break;case"block":r+="block ";break;case"ditch":r+="ditch ";break;case"border_control":r+="border control ";break;case"hedge":r+="hedge ";break;case"retaining_wall":r+="retaining wall ";break;case"cattle_grid":r+="cattle grid ";break;case"horse_stile":r+="horse stile ";break;default:r+="unknown "}if("noise_barrier"===e.wall&&(r+="noise barrier "),"retaining_wall"===e.designation&&(r+="noise barrier "),"noise_barrier"===e.designation&&(r+="noise barrier "),"surveillance"===e.man_made&&(r+="surveillance "),e.aeroway)switch(r+="airport: ",e.aeroway){case"aerodrome":r+="airport";break;case"apron":r+="apron";break;case"gate":r+="gate";break;case"helipad":r+="helipad";break;case"hangar":r+="hangar";break;case"runway":r+="runway";break;case"taxiway":r+="taxiway";break;case"terminal":r+="terminal";break;default:r+="unknown "}if("stop"===e.railway&&(r+="railway stop "),"crossing"===e.railway&&(r+="crossing "),"level_crossing"===e.railway&&(r+="lvel crossing "),"station"===e.railway&&(r+="station "),"bus_station"===e.amenity&&(r+="bus station "),"bus_station"===!e.amenity&&"station"===e.public_transport&&"yes"===e.bus&&(r+="bus station "),"rail"===e.railway&&(r+="railway ","contact_line"===e.electrified&&(r+="overhead contact line ")),"tram"===e.railway&&(r+="tram "),"slipway"!==e["seamark:small_craft_facility:category"]&&"slipway"!==e.harbour&&"slipway"!==e.leisure||(r+="slipway "),"harbour"===e["seamark:type"])if(e["seamark:harbour:category"])switch(e["seamark:harbour:category"]){case"ferry":r+="ferry ";break;case"container":r+="container ";break;case"marina":"marina"!==e.leisure&&(r+="marina ");break;case"navel_base":r+="navel base ";break;case"tanker":r+="tanker ";break;case"passenger":r+="passenger ";break;case"bulk":r+="bulk ";break;default:r+="habour "}else r+="habour ";return"marina"===e.leisure&&(r+="marina "),"wreck"===e.historic&&(r+="wreck "),"animal_shelter"===e.amenity&&(r+="animal shelter "),"shelter"===e.animal&&(r+="shelter "),"horse_walker"===e.animal&&(r+="horse walker "),"yes"===e.animal_shelter&&(r+="animal shelter "),"dog"===e.animal_shelter&&(r+="animal shelter "),"cat"===e.animal_shelter&&(r+="animal shelter "),"animal_boarding"===e.amenity&&(r+="animal boarding "),"yes"===e.animal_boarding&&(r+="animal boarding "),"dog"===e.animal_boarding&&(r+="animal boarding "),"horse"===e.animal_boarding&&(r+="animal boarding "),"cat"===e.animal_boarding&&(r+="animal boarding "),"dog;cat"===e.animal_boarding&&(r+="animal boarding "),"cat;dog"===e.animal_boarding&&(r+="animal boarding "),"school"!==e.animal&&"sport"!==e.animal&&"animal_training"!==e.amenity||(r+="animal training "),"swimming"===e.animal&&(r+="swimming for dogs "),"feeding_place"!==e.amenity&&"animal_feeding"!==e.man_made&&"animal_feeding"!==e.amenity||(r+="animal feeding "),"wildlife_feeding"!==e.amenity&&"deer_feeding"!==e.amenity&&"game_feeding"!==e.amenity||(r+="wildlife feeding "),"cratch"!==e.amenity&&"cratch"!==e.man_made&&"feeding_rack"!==e.amenity||(r+="feeding rack "),"manger"===e.amenity&&(r+="manger "),"birdhouse"===e.man_made&&(r+="birdhouse "),"stork"===e.birds_nest&&(r+="storck "),"nest_box"===e.amenity&&(r+="nest box "),"wellness"===e.animal&&(r+="dog parlour "),"cemetery"===e.animal&&(r+="small animal cemetery "),"stable"!==e.building&&"stable"!==e["building:use"]||(r+="stable "),"cowshed"===e.building&&(r+="cowshed "),"sty"===e.building&&(r+="sty "),"barn"===e.building&&(r+="barn "),"farm_auxiliary"===e.building&&(r+="farm auxiliary "),(e["river:waterway_distance"]||"milestone"===e.waterway)&&(r+="milestone of waterway distance "),"milestone"===e.highway&&(r+="milestone "),"market"===e["xmas:feature"]&&(r+="Christmas fair "),"tree"===e["xmas:feature"]&&(r+="sale of Chrismas trees "),"event"===e["xmas:feature"]&&(r+="Chrismas event "),"pyramid"===e["xmas:feature"]&&(r+="Chrismas pyramid "),'"}(e),'"}function s(e,r){var n="",s=!1;if(e["addr:housename"]&&(n+="housename: "+e["addr:housename"]+" ",s=!0),e["addr:floor"]?(n+="floor: "+e["addr:floor"]+" ",s=!0):e["addr:level"]&&(n+="level: "+e["addr:level"]+" ",s=!0),e["addr:street"]&&(n+=e["addr:street"],e["addr:housenumber"]?n+=" "+e["addr:housenumber"]+" ":n+=" ",s=!0),e["addr:postcode"]&&(n+=e["addr:postcode"]+" "),e["addr:city"]&&(n+=e["addr:city"]+" ",s=!0),e.sqkm)if(e.sqkm=""+e.sqkm,e.sqkm.length>3){var l=e.sqkm.length%3,c=l>0?e.sqkm.substring(0,l):"";for(i=0;i "}else n+="area "+e.sqkm+" ";if(e["contact:phone"]&&(a()?(n+='phone: '+e["contact:phone"]+" ",s=!0):(n+='phone: '+e["contact:phone"]+" ",s=!0)),e.phone&&(a()?(n+='phone: '+e.phone+" ",s=!0):(n+='phone: '+e.phone+" ",s=!0)),e["contact:fax"]?(n+="fax: "+e["contact:fax"]+" ",s=!0):e.fax&&(n+="fax: "+e.fax+" ",s=!0),e["contact:email"]?(n+='email: '+e["contact:email"]+" ",s=!0):e.email&&(n+='email: '+e.email+" ",s=!0),s&&(n+=" "),e.opening_hours){for(var u=e.opening_hours,p=0;0===p||u.indexOf(";")>0;)p>0&&(u=u.replace(";"," ")),p++;n+='opening hours: '+u+"
",u.indexOf("PH")>0?n+="(PH = public holiday) ":n+=" "}if(e["xmas:opening_hours"]){for(u=e["xmas:opening_hours"],p=0;0===p||u.indexOf(";")>0;)p>0&&(u=u.replace(";"," ")),p++;n+='opening hours: '+u+"
",u.indexOf("PH")>0?n+="(PH = public holiday) ":n+=" "}if(e["xmas:url"]){var b="";t(b=e["xmas:url"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='website: website link '}e["contact:website"]?(b="",t(b=e["contact:website"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='website: website link '):e.website&&(b="",t(b=e.website),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='website: website link '),e.wikipedia&&(b="",t(b=e.wikipedia),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://wikipedia.org/wiki/"+b),n+='Wikipedia: Wikipedia link '),e.wikimedia_commons&&(b="",t(b=e.wikimedia_commons),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="https://commons.wikimedia.org/wiki/"+b),n+='Wikimedia: Wikimedia link '),e["contact:webcam"]&&(b="",t(b=e["contact:webcam"]),-1===b.indexOf("https://",0)&&-1===b.indexOf("http://",0)&&(b="http://"+b),n+='webcam: webcam link '),e.image&&(n+=' ');var d="";if(e.internet_access&&(d+="internet access: "+o(e.internet_access)+" "),e["internet_access:fee"]&&(d+="fee: "+o(e["internet_access:fee"])+" "),e["wifi_access:operator"]&&(d+="wifi operator: "+e["wifi_access:operator"]+" "),e["wifi_access:technology"]&&(d+="wifi technology: "+e["wifi_access:technology"]+" "),e["wifi_access:ssid"]&&(d+="wifi ssid: "+e["wifi_access:ssid"]+" "),""!==d&&(n+='internet access available'+d+"
"),e.wheelchair&&(n+="wheelchair: "+o(e.wheelchair)+" "),e["wheelchair:description"]&&(n+="description: "+e["wheelchair:description"]+" "),e["wheelchair:entrance_width"]&&(n+="entrance width (cm): "+e["wheelchair:entrance_width"]+" "),e["wheelchair:step_height"]&&(n+="step height (cm): "+e["wheelchair:step_height"]+" "),e["wheelchair:rooms"]&&(n+="rooms: "+e["wheelchair:rooms"]+" "),e["wheelchair:places"]&&(n+="places: "+e["wheelchair:places"]+" "),e["cent:places"]&&(n+="places: "+e["wheelchair:places"]+" "),e["ramp:wheelchair"]&&(n+="ramp: "+e["ramp:wheelchair"]+" "),e["capacity:disabled"]&&(n+="capacity parking: "+o(e["capacity:disabled"])+" "),e["toilets:wheelchair"]&&(n+="toilets: "+o(e["toilets:wheelchair"])+" "),e.centralkey&&(n+="centralkey: "+e.centralkey+" "),e.note&&(n+=e.note+" "),e.description&&(n+=e.description+" "),e.operator&&(n+="operator: "+e.operator+" "),e.ref&&(n+="reference: "+e.ref+" "),"yes"===e.lit&&(n+="This object is illuimanted. "),e.shop){var h="";e.brand&&(h+="brand: "+e.brand+" "),e.sells&&(h+="sells: "+e.sells+" "),e.origin&&(h+="source market: "+e.origin+" "),"yes"===e.wholesale&&(h+="distributor: yes "),""!==h&&(n+='further particulars: '+h+"
")}return r&&(t(b=r),n+=" ",n+='OSM: OpenStreetMap link '),'"}Object.defineProperty(r,"__esModule",{value:!0}),r.fnTestInfoPopup=r.fnStandardInfoPopup=r.fnReducedInfoPopup=r.fnMessstation=r.fnContentTourism=r.fnContentStreetsTraffic=r.fnContentStorage=r.fnContentSports=r.fnContentShipping=r.fnContentRoute=r.fnContentProtectedArea=r.fnContentPetrol=r.fnContentNatural=r.fnContentLanduse=r.fnContentInformationCity=r.fnContentHydrants=r.fnContentHistoric=r.fnContentHealthcare=r.fnContentGeneralInformations=r.fnContentEmergency=r.fnContentCuisine=r.fnContentBarriers=r.fnContentAmenity=r.fnContentAerodrome=r.fnContent=void 0,r.fnStandardInfoPopup=function(e,r){var t=e.getProperties(),a="";return a+=n(t,r),a+=l(t),'"},r.fnReducedInfoPopup=function(e,r){var t,a=e.getProperties(),o="",i=!1;switch(t="function"==typeof r?r.call(e)[0].getImage().getSrc():r.getImage().getSrc(),("restaurant"===a.amenity||"pub"===a.amenity||"biergarten"===a.amenity)&&(i=!0),"hotel"===a.tourism&&(i=!0),"guest_house"===a.tourism&&(i=!0),"chalet"===a.tourism&&(i=!0),"hostel"===a.tourism&&(i=!0),"alpine_hut"===a.tourism&&(i=!0),"artwork"!==a.tourism&&"artwork"!==a.amenity||(i=!0),"museum"!==a.tourism&&"museum"!==a.amenity||(i=!0),"cinema"===a.amenity&&(i=!0),"theatre"===a.amenity&&(i=!0),"attraction"!==a.amenity&&"fountain"!==a.amenity&&"monument"!==a.historic&&"city_gate"!==a.historic&&"ruins"!==a.historic&&"castle"!==a.historic&&"attraction"!==a.tourism||(i=!0),"playground"===a.leisure&&(i=!0),a.aerialway&&(i=!0),"swimming_pool"!==a.amenity&&"swimming_pool"!==a.leisure&&"swimming"!==a.sport||(i=!0),"station"===a.railway&&(i=!0),"swimming"===a.sport&&(i=!0),"swimming_pool"===a.leisure&&(i=!0),"swimming_pool"===a.amenity&&(i=!0),"waterpark"===a.leisure&&(i=!0),a.water_park&&(i=!0),"sports_centre"===a.leisure&&(i=!0),i){case!1:o+=n(a,t),o+=l(a),o+=s(a,e.get("osm_type")?e.get("osm_type")+"/"+e.getId():e.getId());break;case!0:o+=n(a,t)}return'"};var l=r.fnContent=function(e){var r="";return r+=O(e),r+=T(e),r+=c(e),r+=w(e),r+=S(e),r+=C(e),r+=E(e),r+=R(e),r+=k(e),r+=v(e),r+=_(e),r+=y(e),r+=f(e),r+=h(e),r+=m(e),r+=g(e),r+=b(e),r+=u(e),r+=function(e){var r="";if(e["monastery:type"])switch(e["monastery:type"]){case"monastery":r+="type: monastery ";break;case"convent":r+="type: convent ";break;case"canonry":r+="type: canonry ";break;case"commandry":r+="type: commandry ";break;case"hermitage":r+="type: hermitage ";break;default:r+="type: unknown "}if(e["community:gender"]&&("male"===e["community:gender"]&&(r+="gender: male "),"female"===e["community:gender"]&&(r+="gender: female ")),e.religious_rank&&("abbey"===e.religious_rank||"abbey"===e.religious_rank)&&(r+="religious rank: abbey "),"yes"===e.shrine&&(r+="feature: shrine "),"yes"===e.sanctuary&&(r+="feature: sanctuary "),e.religion)switch(e.religion){case"animist":r+="religion: animist ";break;case"bahai":r+="religion: bahai ";break;case"buddhist":r+="religion: buddhist ";break;case"christian":r+="religion: christian ";break;case"hindu":r+="religion: hindu ";break;case"IglesiaNiCristo":r+="religion: IglesiaNiCristo ";break;case"jain":r+="religion: jain ";break;case"jewish":r+="religion: jewish ";break;case"multifaith":r+="religion: multifaith ";break;case"muslim":r+="religion: muslim ",type+="Mosque ";break;case"pagan":r+="religion: pagan ";break;case"pastafarian":r+="religion: pastafarian ";break;case"scientologist":r+="religion: scientologist ";break;case"shinto":r+="religion: shinto ";break;case"sikh":r+="religion: sikh ";break;case"spiritualist":r+="religion: spiritualist ";break;case"taoist":r+="religion: taoist ";break;case"unitarian":r+="religion: unitarian ";break;case"yazidi":r+="religion: yazidi ";break;case"zoroastrian":r+="eligion: zoroastrian ";break;default:r+="religion: unknown "}if(e.denomination)switch(e.denomination){case"anglican":r+="denomination: Anglican ";break;case"baptist":r+="denomination: Baptist ";break;case"catholic":r+="denomination: Catholic ";break;case"roman_catholic":r+="denomination: Roman Catholic ";break;case"old_catholic":r+="denomination: Old Catholic ";break;case"greek_catholic":r+="denomination: Greek Catholic ";break;case"evangelical":r+="denomination: Evangelical";case"jehovahs_witness":r+="denomination: Jehovahs Witness ";break;case"lutheran":r+="denomination: Lutheran ";break;case"mennonite":r+="denomination: Mennonite ";break;case"messianic_jewish":r+="denomination: Messianic Jewish ";break;case"methodist":r+="denomination: Methodist ";break;case"mormon":r+="denomination: Mormon ";break;case"new_apostolic":r+="denomination: New Apostolic ";break;case"orthodox":r+="denomination: Orthodox ";break;case"greek_orthodox":r+="denomination: Greek Orthodox ";break;case"coptic_orthodox":r+="denomination: coptic orthodox ";break;case"pentecostal":r+="denomination: pentecostal ";break;case"presbyterian":r+="denomination: Presbyterian ";break;case"protestant":r+="denomination: Protestant ";break;case"quaker":r+="denomination: Quaker ";break;case"reformed":r+="denomination: Reformed ";break;case"russian_orthodox":r+="denomination: Russian-Orthodox ";break;case"seventh_day_adventist":r+="denomination: Seventh Day Adventist ";break;case"christian_community":r+="denomination: Christian Community ";break;case"adventist":r+="denomination: Adventist ";break;case"alliance":r+="denomination: Alliance ";break;case"assemblies_of_god":r+="denomination: Assemblies of God ";break;case"apostolic":r+="denomination: Apostolic ";break;case"armenian_apostolic":r+="denomination: Armenian Apostolic ";break;case"assyrian":r+="denomination: Assyrian ";break;case"christ_scientist":r+="denomination: Christ Scientist ";break;case"church_of_scotland":r+="denomination: Church of Scotland ";break;case"czechoslovak_hussite":r+="denomination: Czechoslovak Hussite ";break;case"dutch_reformed":r+="denomination: Dutch Reformed ";break;case"exclusive_brethren":r+="denomination: Exclusive Brethren ";break;case"foursquare":r+="denomination: Foursquare ";break;case"kimbanguist":r+="denomination: Kimbanguist ";break;case"living_waters_church":r+="denomination: Living Waters Church ";break;case"mariavite":r+="denomination: Mariavite ";break;case"maronite":r+="denomination: Maronite ";break;case"moravian":r+="denomination: Moravian ";break;case"nazarene":r+="denomination: Nazarene ";break;case"nondenominational":r+="denomination: Nondenominational ";break;case"old_believers":r+="denomination: Old Believers ";break;case"polish_catholic":r+="denomination: Polish-Catholic ";break;case"salvation_army":r+="denomination: Salvation Army ";break;case"santo_daime":r+="denomination: Santo Daime ";break;case"serbian_orthodox":r+="denomination: Serbisch-Orthodox ";break;case"spiritism":r+="denomination: Spiritism ";break;case"united":r+="denomination: United ";break;case"united_church_of_christ":r+="denomination: United Church of Christ ";break;case"united_free_church_of_scotland":r+="denomination: United Free Church of Scotland ";break;case"united_methodist":r+="denomination: United Methodist ";break;case"united_reformed":r+="denomination: United Reformed ";break;case"uniting":r+="denomination: Uniting ";break;case"church_of_sweden":r+="denomination: Church of Sweden ";break;case"mission_covenant_church_of_sweden":r+="denomination: Mission Covenant Church Of Sweden ";break;case"alternative":r+="denomination: alternative ";break;case"ashkenazi":r+="denomination: ashkenazi ";break;case"buchari":r+="denomination: buchari ";break;case"conservative":r+="denomination: conservative ";break;case"egalitarian":r+="denomination: egalitarian ";break;case"hasidic":r+="denomination: hasidic ";break;case"humanistic":r+="denomination: humanistic ";break;case"kabbalah":r+="denomination: kabbalah ";break;case"kabbalistic":r+="denomination: kabbalistic ";break;case"karaite":r+="denomination: karaite ";break;case"liberal":r+="denomination: liberal ";break;case"lubavitch":r+="denomination: lubavitch ";break;case"lubavitch_messianic":r+="denomination: lubavitch messianic ";break;case"mizrachi_baghdadi":r+="denomination: mizrachi baghdadi ";break;case"mizrachi_chida":r+="denomination: mizrachi chida ";break;case"mizrachi_jerusalemite":r+="denomination: mizrachi jerusalemite ";break;case"mizrachi_livorno":r+="denomination: mizrachi livorno ";break;case"mizrachi_moroccan":r+="denomination: mizrachi moroccan ";break;case"modern_orthodox":r+="denomination: modern orthodox ";break;case"neo_orthodox":r+="denomination: neo orthodox ";break;case"nondenominational":r+="denomination: nondenominational ";break;case"orthodox":r+="denomination: orthodox ";break;case"orthodox_ashkenaz":r+="denomination: orthodox ashkenaz ";break;case"orthodox_sefard":r+="denomination: orthodox sefard ";break;case"progressive":r+="denomination: progressive ";break;case"reconstructionist":r+="denomination: reconstructionist ";break;case"reform":r+="denomination: reform ";break;case"renewal":r+="denomination: renewal ";break;case"samaritan":r+="denomination: samaritan ";break;case"sefardi":r+="denomination: sefardi ";break;case"sefardi_amsterdam":r+="denomination: sefardi amsterdam ";break;case"sefardi_london":r+="denomination: sefardi london ";break;case"traditional":r+="denomination: traditional ";break;case"ultra_orthodox":r+="denomination: ultra orthodox ";break;case"unaffiliated":r+="denomination: unaffiliated ";break;case"yemenite":r+="denomination: yemenite ";break;case"yemenite_baladi":r+="denomination: yemenite baladi ";break;case"yemenite_shami":r+="denomination: yemenite shami ";break;case"ahmadiya":r+="denomination: ahmadiya ";break;case"alaouite":r+="denomination: alaouite ";break;case"druze":r+="denomination: druze ";break;case"ibadi":r+="denomination: ibadi ";break;case"ismaili":r+="denomination: ismaili ";break;case"shia":r+="denomination: shia ";break;case"sunni":r+="denomination: sunni ";break;case"nichiren":r+="denomination: nichiren ";break;case"jodo_shinshu":r+="denomination: jodo shinshu ";break;case"jodo_shu":r+="denomination: jodo shu ";break;case"vajrayana":r+="denomination: vajrayana ";break;case"shingon_shu":r+="denomination: shingon shu ";break;case"zen":r+="denomination: zen ";break;case"thai_mahanikaya":r+="denomination: thai mahanikaya ";break;case"thai_thammayut":r+="denomination: thai thammayut ";break;case"asatru":r+="denomination: asatru ";break;case"celtic":r+="denomination: celtic ";break;case"greco_roman":r+="denomination: greco roman ";break;case"wicca":r+="denomination: wicca ";break;case"irani":r+="denomination: irani ";break;case"parsi":r+="denomination: parsi ";break;default:r+="unknown "}if(e.community)switch(e.community){case"AA":r+="community (AA): Augustinians of the Assumption ";break;case"BSCM":r+="community (BSCM): Adorers of the Sacred Heart of Jesus of Montmartre ";break;case"CBMV":r+="community (CBMV): Augustiner-Chorfrauen B.M.V. ";break;case"CO":r+="community (CO): Oratorians ";break;case"CMC":r+="community (CMC): Congregation of the Mother Co-Redemptrix ";break;case"CRSP":r+="community (CRSP): Kongregation der Regularkleriker vom hl. Paulus (Barnabiten) ";break;case"CSJ":r+="community (CSJ): Carmel Saint-Joseph ";break;case"CSSP":r+="community (CSSP): Congrégation du Saint-Esprit ";break;case"CSSR":r+="community (CSSR): Congrégation du Très Saint Rédempteur ";break;case"FCJM":r+="community (FCJM): Franciscan Sisters, Daughters of the Sacred Heart of Jesus and Mary ";break;case"FMGB":r+="community (FMGB): Suore Francescane Missionarie di Gesù Bambino ";break;case"FMH":r+="community(FMH): Congregatio Filiarum Mariae Sanctissimae ab Horto ";break;case"FMM":r+="community (FMM): Franciscaines missionnaires de Marie ";break;case"FSC":r+="community (FSC): Frères des Écoles chrétiennes ";break;case"MCCI":r+="community (MCCI): Missionnaires comboniens du Sacré-Cœur ";break;case"MSFS":r+="community (MSFS): Missionnaires de Saint François de Sales ";break;case"OCart":r+="community (OCart): Order of the Carthusians ";break;case"OCC":r+="community (OCC): Ordre de Notre Dame du Mont-Carmel ";break;case"OCD":r+="community (OCD): Ordre des Carmes déchaux ";break;case"OCSO":r+="community (OCSO): Trappists (lat. Ordo Cisterciensis Strictioris Observantiae) ";break;case"OFM":r+="community (OFM): Ordre des Frères Mineurs (Franziskaner) ";break;case"OFMCap":r+="community (OFMCap): Ordre des Frères Mineurs Capucins ";break;case"OFMConv":r+="community (OFMConv): Ordre des Frères Mineurs Conventuels ";break;case"OFS":r+="community (OFS): Franciscans secular Third Order ";break;case"OMI":r+="community (OMI): Oblats de Marie ";break;case"OP":r+="community (OP): Ordre des Frères Prêcheurs ";break;case"OPraem":r+="community (OPraem): Ordre des chanoines réguliers de Prémontré ";break;case"OSB":r+="community (OSB): Order of Saint Benedict ";break;case"OSC":r+="community (OSC): Ordre de Sainte-Claire ou Ordre des Pauvres Dames ";break;case"OSSS":r+="community (OSSS): Ordre de Sainte-Brigitte ";break;case"OVM":r+="community (OVM): Order of the Visitation of Holy Mary (Salesianerinnen) ";break;case"PSDP":r+="community (PSDP): Petites sœurs des pauvres (Kleinen Schwestern der Armen) ";break;case"PFJ":r+="community (PFJ): Petits Frères de Jésus ";break;case"SDB":r+="community (SDB): Société de Saint François de Sales ";break;case"SJ":r+="community (SJ): Compagnie de Jésus ";break;case"SOC":r+="community (SOC): Order of Cistercians ";break;case"SSCC":r+="community (SSCC): Congregation of the Sacred Hearts of Jesus and Mary ";break;case"SSF":r+="community (SSF): Society of St Francis ";break;case"SSJE":r+="community (SSJE): Society of St John the Evangelist ";break;case"SSpS":r+="community (SSpS): Steyler Missionsschwestern ";break;case"TOR":r+="community (TOR): Terzo Ordine Regolare di San Francesco ";break;default:r+="unknown "}return r}(e),r+=function(e){var r="";return"surveillance"===e.man_made&&("indoor"===e.surveillance&&(r+="indoor surveillance"),"outdoor"===e.surveillance&&(r+="outdoor surveillance"),"public"===e.surveillance&&(r+="public surveillance"),"camera"===e["surveillance:type"]&&(r+="type of surveillance: camera"),"guard"===e["surveillance:type"]&&(r+="type of surveillance: guard"),"ALPR"===e["surveillance:type"]&&(r+="type of surveillance: ALPR"),"town"===e["surveillance:zone"]&&(r+="zone of surveillance: town"),"parking"===e["surveillance:zone"]&&(r+="zone of surveillance: parking"),"traffic"===e["surveillance:zone"]&&(r+="zone of surveillance: traffic"),"shop"===e["surveillance:zone"]&&(r+="zone of surveillance: shop"),"bank"===e["surveillance:zone"]&&(r+="zone of surveillance: bank"),"building"===e["surveillance:zone"]&&(r+="zone of surveillance: building")),r}(e),r+=function(e){var r="";return e["building:color"]&&(r+="building color: "+e["building:color"]+""),e["building:height"]&&(r+="building height: "+e["building:height"]+" m"),e["building:level"]&&(r+="level: "+e["building:level"]+""),e["building:part"]&&(r+="building part: "+e["building:part"]+""),e["roof:color"]&&(r+="roof color: "+e["roof:colour"]+""),e["roof:shape"]&&(r+="roof shape: "+e["roof:shape"]+""),e["roof:height"]&&(r+="roof height: "+e["roof:height"]+" m"),e["roof:material"]&&(r+="roof material: "+e["roof:material"]+" "),e["roof:orientation"]&&(r+="roof orientation: "+e["roof:orientation"]+" "),e["roof:direction"]&&(r+="roof direction: "+e["roof:direction"]+" "),e["building:type"]&&(r+="building type: "+e["building:type"]+""),r}(e),r+=function(e){var r="";if(e["generator:method"]){switch(r+="method of generation: ",e["generator:method"]){case"combustion":r+="combustion";break;case"thermal":r+="thermal";break;case"pumping":r+="pumping";break;case"photovoltaic":r+="photovoltaic";break;case"gasification":r+="gasification";break;case"anaerobic_digestion":r+="anaerobic digestion";break;case"pyrolysis":r+="pyrolysis";break;case"fission":r+="fission";break;case"fusion":r+="fusion";break;default:r+="unknown "}r+=" "}return e.power_source&&(r+="power source: ","photovoltaic"===e.power_source?r+="photovoltaic":r+="unknown ",r+=" "),e["generator:output:electricity"]&&(r+="electricity generation: "+e["generator:output:electricity"]+" "),e["generator:output:heat"]&&(r+="heat generation: "+e["generator:output:heat"]+" "),e["generator:output:cold"]&&(r+="cold generation: "+e["generator:output:cold"]+" "),e["generator:output"]&&(r+="output: "+e["generator:output"]+" "),e["generator:output:hot_air"]&&(r+="hot-air generation: "+e["generator:output:hot_air"]+" "),e["generator:output:cold_water"]&&(r+="cold water generation: "+e["generator:output:cold_water"]+" "),e["generator:output:cold_air"]&&(r+="cold air generation: "+e["generator:output:cold_air"]+" "),e["generator:output:compressed_air"]&&(r+="compressed air generation: "+e["generator:output:compressed_air"]+" "),e["generator:output:steam"]&&(r+="steam generation: "+e["generator:output:steam"]+" "),e["generator:output:vacuum"]&&(r+="vacuum generation: "+e["generator:output:vacuum"]+" "),e["generator:output:battery_charging"]&&(r+="battery charging: "+e["generator:output:battery_charging"]+" "),"PWR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-1"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-2"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-3"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-4"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-5"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"BWR-6"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"PHWR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"GCR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"FBR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"RBMK-1000"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"RBMK-1500"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"VVER"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"CANDU"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"CPR-1000"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"EPR"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"tokamak"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"stellarator"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"ICF"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"cold-fusion"===e["generator:type"]&&(r+="generator type: "+e["generator:type"]+" "),"wind_turbine"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="generator method: horizontal axis wind turbine "),"wind_turbine"===e["generator:method"]&&"vertical_axis"===e["generator:type"]&&(r+="generator method: vertical axis wind turbine "),"francis_turbine"===e["generator:type"]&&(r+="generator type: francis-turbine "),"kaplan_turbine"===e["generator:type"]&&(r+="generator type: kaplan-turbine "),"pelton_turbine"===e["generator:type"]&&(r+="generator type: pelton-turbine "),"stream"===e["generator:method"]&&"horizontal_axis"===e["generator:type"]&&(r+="generator method: horizontal axis sea current power station "),"stream"===e["generator:method"]&&"vertical_axis"===e["generator:type"]&&(r+="generator type: vertical axis sea current power station "),"steam_turbine"===e["generator:type"]&&(r+="generator type: steam turbine "),"heat_pump"===e["generator:type"]&&(r+="generator type: heat pump "),"solar_thermal_collector"===e["generator:type"]&&(r+="generator type: solar thermal collector "),"solar_photovoltaic_panel"===e["generator:type"]&&(r+="generator type: solar photovoltaic panel "),"steam_generator"===e["generator:type"]&&(r+="generator type: steam generator "),"gas_turbine"===e["generator:type"]&&(r+="generator type: gas turbine "),"combined_cycle"===e["generator:type"]&&(r+="generator type: combined cycle "),"reciprocating_engine"===e["generator:type"]&&(r+="generator type: reciprocating engine "),r}(e),r+=d(e),r+=function(e){var r="";return"container"!==e.recycling_type&&"centre"!==e.recycling_type&&"recycling"!==e.amenity||("yes"===e["recycling:glass"]&&(r+="glass container"),"yes"===e["recycling:shoes"]&&(r+="shoe container"),"yes"===e["recycling:cooking_oil"]&&(r+="recycling of cooking oil"),"yes"===e["recycling:paper"]&&(r+="recycling of paper"),"yes"===e["recycling:engine_oil"]&&(r+="recycling of engine oil"),"yes"===e["recycling:clothes"]&&(r+="recycling of clothes"),"yes"===e["recycling:car_batteries"]&&(r+="recycling of car batteries"),"yes"===e["recycling:cans"]&&(r+="recycling of cans"),"yes"===e["recycling:scrap_metal"]&&(r+="recycling of scrap metal"),"yes"===e["recycling:plastic"]&&(r+="recycling of plastic"),"yes"===e["recycling:batterries"]&&(r+="recycling of batterries"),"yes"===e["recycling:plastic_bottles"]&&(r+="recycling of plastic bottles"),"yes"===e["recycling:green_waste"]&&(r+="recycling of green waste"),"yes"===e["recycling:hardcore"]&&(r+="recycling of hardcore")),r}(e),(r+=p(e))&&(r=" "+r),'"},c=r.fnContentAerodrome=function(e){var r="";return e.aerodrome&&("international"===e.aerodrome&&(r+="type of airport: international "),"regional"===e.aerodrome&&(r+="type of airport: regional "),"gliding"===e.aerodrome&&(r+="type of airport: gliding "),"private"===e.aerodrome&&(r+="type of airport: private ")),e.iata&&(r+="IATA-Code: "+e.iata+" "),e.icao&&(r+="ICAO-Code: "+e.icao+" "),r},u=r.fnContentNatural=function(e){var r="";if((e.forest||e.wood)&&("broadleaved"!==e.leaf_type&&"deciduous"!==e.wood||(r+="broadleaved "),"needleleaved"!==e.leaf_type&&"coniferous"!==e.wood||(r+="needleleaved "),"mixed"!==e.leaf_type&&"mixed"!==e.wood||(r+="mixed "),"leafless"===e.leaf_type&&(r+="leafless "),"evergreen"===e.wood&&(r+="evergreen "),"palm"===e.wood&&(r+="palm "),"nipa_palm"===e.wood&&(r+="nipa palm "),"eucalypt"===e.wood&&(r+="eucalypt "),"filao"!==e.wood&&"casuarina"!==e.wood||(r+="casuarina ")),"tree"===e.natural&&(e["genus:de"]||e["species:de"]||e.leaf_type&&("broadleaved"===e.leaf_type||"deciduous"===e.leaf_type||"broadleafed"===e.leaf_type?r+="broad-leaved ":r+="conifer "),e.genus&&(r+=e.genus+" "),e["genus:de"]&&(r+=e["genus:de"]+" "),e.species&&(r+=e.species+" "),e["species:de"]&&(r+=e["species:de"]+" "),"landmark"===e.denotation&&(r+="landmark "),"natural_monument"!==e.denotation&&"yes"!==e.monument||(r+="natural monument ")),"manger"===e["feeding:type"]&&(r+="manger:rack for fodder "),"automated"===e["feeding:type"]&&(r+="automated "),e["feeding:for"])switch(e["feeding:for"]){case"sheep":r+="animal: sheep ";break;case"horse":r+="animal: horse ";break;case"cow":r+="animal: cow ";break;case"rabbit":r+="animal: rabbit ";break;case"bunny":r+="animal: bunny ";break;case"cat":r+="animal: cat ";break;case"swan":r+="animal: swan ";break;case"guinea pig":case"guinea pig":r+="animal: guinea pig ";break;case"donkey":r+="animal: donkey ";break;case"squirrel":r+="animal: squirrel ";break;case"pig":r+="animal: pig ";break;case"deer":r+="animal: deer ";break;case"monkey":r+="animal: monkey ";break;case"camel":r+="animal: camel ";break;case"goat":r+="animal: goat ";break;case"hamster":r+="animal: hamster ";break;case"alpaca":r+="animal: alpaca ";break;default:r+="animal: unknown "}if(e["feeding:fodder"])switch(e["feeding:fodder"]){case"hay":r+="feed with: hay";break;case"grain":r+="feed with: grain";break;case"corn":r+="feed with: corn*br>";break;default:r+="feed with: unknown"}return"volcano"===e.natural&&"active"===e.status&&(r+="active volcano "),"volcano"===e.natural&&"dormant"===e.status&&(r+="dormant volcano "),"volcano"===e.natural&&"extinct"===e.status&&(r+="extinct volcano "),"volcano"===e.natural&&"stratovolcano"===e.type&&(r+="type of volcanism:stratovolcano "),"volcano"===e.natural&&"shield"===e.type&&(r+="type of volcanism:shield "),"volcano"===e.natural&&"scoria"===e.type&&(r+="type of volcanism:scoria "),r},p=r.fnContentProtectedArea=function(e){var r="",t="";return"protected_area"===e.boundary&&(e.protect_class&&(t=e.protect_class),e.protect_id&&(t=e.protect_id),"1"===t&&(r="description: Strict Nature Reserve, Wilderness Area "),"2"===t&&(r="description: National Park "),"3"===t&&(r="description: Natural Monument or Feature "),"4"===t&&(r="description: Habitat/Species Management Area "),"5"===t&&(r="description: Protected Landscape/ Seascape "),"6"===t&&(r="description: Protected area with sustainable use of natural resources "),"7"===t&&(r="description: nature-feature area "),"97"===t&&(r="description: protected by continental agreements "),"98"===t&&(r="description: protected by interstate- or international conventions "),"99"===t&&(r="other continental or international national protected areas "),"21"===t&&(r="description: Community life: religious, sacred areas, associative locations, recreation "),"22"===t&&(r="description: Cultural assets (cultural assets and - efforts, districts historical heritage, monument conservation) "),"23"===t&&(r="description: Protection in favor of economics "),"24"===t&&(r="description: Political protection "),"25"===t&&(r="description: Military areas (military refuges, test area) "),"26"===t&&(r="description: Historic: for colonial-stuff and protectorates. "),"29"===t&&(r="description: other social protected areas "),"11"===t&&(r="description: soil: crop yield, erosion protection, ... "),"12"===t&&(r="description: water: water protection area, fresh water, drinking water, springs, ... "),"13"===t&&(r='description: climate and -air: gasper supply/cold air, ...for emission-, immission control in OSM existent, see "Low Emission Zone" (LEZ) '),"14"===t&&(r="description: species: no fishing, protected for fishery, protected for hunting, plants, ... "),"15"===t&&(r="description: location condition: floodwater retention area, protection forest, grazing land, ... "),"16"===t&&(r='description: longtime hazard area: contamination, earth-moving area, "problem sites" ... '),"19"===t&&(r="description: other national resources protected areas ")),r},b=r.fnContentLanduse=function(e){var r="";return"quarry"===e.landuse&&e.resource&&(r+="Resource: "+e.resource+" "),"open_stable"===e["animal_keeping:type"]&&(r+="open stable "),"field_shelter"===e["animal_keeping:type"]&&(r+="field shelter "),"paddock"===e["animal_keeping:type"]&&(r+="paddock "),e.animal_keeping&&(r+="animals: horses "),r},d=r.fnMessstation=function(e){var r="";return"yes"===e["monitoring:water_level"]&&(r+="water level "),"yes"===e["monitoring:seismic_activity"]&&(r+="seismic activity "),"yes"===e["monitoring:tide_gauge"]&&(r+="tide gauge "),"yes"===e["monitoring:weather"]&&(r+="weather "),"yes"===e["monitoring:air_quality"]&&(r+="air quality "),r},h=r.fnContentRoute=function(e){var r="";return e.route&&("yes"===e.roundtrip&&(r+="roundtrip "),e.length&&(r+="length: "+e.length+" "),e.distance&&(r+="distance: "+e.distance+" "),e.symbol&&(r+="symbol: "+e.symbol+" ")),r},m=r.fnContentPetrol=function(e){var r="";return"fuel"===e.amenity&&("yes"===e["fuel:biodiesel"]&&(r+="biodiesel "),"yes"===e["fuel:e85"]&&(r+="e85 "),"yes"===e["fuel:e10"]&&(r+="e10 "),"yes"===e["fuel:lpg"]&&(r+="lpg "),"yes"===e["fuel:cng"]&&(r+="cng "),"diesel"===e.fuel&&(r+="diesel "),"lpg"===e.fuel&&(r+="lpg "),"yes"===e["fuel:octane_95"]&&(r+="octane 95 "),"yes"===e["fuel:octane_98"]&&(r+="octane 98 "),"yes"===e["fuel:octane_100"]&&(r+="octane 100 "),"yes"===e["fuel:octane_102"]&&(r+="octane 102 "),"yes"===e["fuel:diesel"]&&(r+="diesel "),"yes"===e["fuel:electricity"]&&(r+="charging station / loading station ")),r},g=(r.fnContentHistoric=function(e){var r="";if("archaeological_site"===e.historic&&e.site_type)switch(e.site_type){case"megalith":r+="megalith ";break;case"bigstone":r+="bigstone ";break;case"tumulus":r+="tumulus ";break;case"fortification":r+="fortification ";break;default:r+="unknown "}return r},r.fnContentBarriers=function(e,r){var t="";return"wall"!==e.barrier&&"bollard"!==e.barrier||e.material&&(t+="material: "+o(e.material)+" "),t}),f=r.fnContentTourism=function(e){var r="";return"camp_site"===e.tourism&&("yes"===e.dog&&(r+="dogs allowed "),"no"===e.dog&&(r+="dogs forbidden "),e.stars&&(r+=e.stars+"stars "),e.caravans&&(r+="caravan sites "),"yes"!==e.openfire&&"yes"!==e.fireplace||(r+="Thers is an openfire. "),"yes"===e.washing_machine&&(r+="washing machine "),"yes"===e.dryer&&(r+="dryer "),"yes"===e.group_only&&(r+="use for groups only "),"reception"===e.camp_site&&(r+="reception available ")),"information"===e.tourism&&"map"===e.information&&("topo"===e.map_type&&(r+="topo"),"street"===e.map_type&&(r+="street"),"scheme"===e.map_type&&(r+="scheme"),"toposcope"===e.map_type&&(r+="toposcope")),"information"===e.tourism&&"map"===e.information&&("site"===e.map_size&&(r+="map of site"),"city"===e.map_size&&(r+="city map"),"region"===e.map_size&&(r+="map of region")),"geology"===e.board_type&&(r+="geologic information "),"history"===e.board_type&&(r+="historic information "),"nature"===e.board_type&&(r+="information about nature "),"notice"===e.board_type&&(r+="general information "),"plants"===e.board_type&&(r+="information about plants "),"wildlife"===e.board_type&&(r+="information about wildlife "),r},y=r.fnContentAmenity=function(e){var r="";if("boat_sharing"===e.amenity&&(r+=e.boattype+" "),"embassy"===e.amenity&&(r+=e.country+" "),e.vending)switch(e.vending){case"admission_tickets":r+="tickets ";break;case"animal_feed":r+="animal feed ";break;case"books":r+="books ";break;case"candles":r+="candles ";break;case"cigarettes":r+="cigarettes ";break;case"condoms":r+="condoms ";break;case"drinks":r+="drinks ";break;case"first_aid":r+="first aid articles ";break;case"fishing_tackle":r+="fishing tackle ";break;case"flowers":r+="flowers ";break;case"ice_cream":r+="ice cream ";break;case"laundry_detergent":r+="laundry detergent ";break;case"newspapers":r+="newspapers ";break;case"SIM_cards":r+="sIM-cards ";break;case"sweets":r+="sweets ";break;case"parcel_pickup":r+="parcel pickup ";break;case"ice_cubes":r+="ice cubes ";break;case"public_transport_tickets":r+="public transport tickets ";break;case"parking_ticket":r+="parking tickets ";break;case"sex_toys":r+="sex toys ";break;case"stamps":r+="stamps ";break;case"toll":r+="toll ";break;case"umbrellas":r+="umbrellas ";break;default:r+="content unknown "}return"post_box"===e.amenity&&(e.collection_times&&(r+="collection times: "+e.collection_times+" "),"yes"===e.drive_through&&(r+="accessible by car. ")),r},_=r.fnContentStorage=function(e){var r="";if("storage_tank"===e.man_made){if(e.content){switch(t=e.content){case"fuel":t="fuel";break;case"oil":t="oil";break;case"gas":t="gas";break;case"slurry":t="slurry";break;case"cement":t="cement";break;case"water":t="water";break;case"manure":t="manure";break;case"silage":t="silage"}r+="content: "+t+" "}if(e.contents){var t;switch(t=e.contents){case"fuel":t="fuel";break;case"oil":t="oil";break;case"gas":t="gas";break;case"slurry":t="slurry";break;case"cement":t="cement";break;case"water":t="water";break;case"manure":t="manure";break;case"silage":t="silage"}r+="content: "+t+" "}}return e.storage&&("gas"===e.storage&&(r+="content: gas "),"oil"===e.storage&&(r+="content: oil ")),r},k=r.fnContentInformationCity=function(e){var r="";if(e["name:de"]&&(r+="german name: "+e["name:de"]+" "),e.population>=1e4)if(e.population=""+e.population,e.population.length>3){var t=e.population.length%3,a=t>0?e.population.substring(0,t):"";for(i=0;i "}else r+="population "+e.population+" ";return e.population<=1e4&&(r+="population: "+e.population+" "),r},v=r.fnContentEmergency=function(e){var r="";if(e.lifeboat&&("inshore"===e.lifeboat?r+="application: inshore ":"offshore"===e.lifeboat&&(r+="application: offshore ")),e["lifeboat:class"]&&(r+="type of boat: "+e["lifeboat:class"]+" "),e["siren:type"]){switch(t=e["siren:type"]){case"mechanical":t="mechanical";break;case"electronic":t="electronic";break;case"pneumatic":t="pneumatic";break;case"electromechanic":t="electromechanic"}r+="Typ: "+t+" "}if(e["siren:purpose"]){var t;switch(t=e["siren:purpose"]){case"air_raid":t="air raid";break;case"tornado":t="tornado";break;case"storm":t="storm";break;case"civil_defense":t="civil defence";break;case"fire":t="fire"}r+="use: "+t+" "}return e["siren:model"]&&(r+="model: "+e["siren:model"]+" "),e["siren:range"]&&(r+="range of siren: "+e["siren:range"]+" "),r},w=r.fnContentCuisine=function(e){var r="";if(e.cuisine){var t="";"supermarket"!==e.shop&&"convenience"!==e.shop&&"deli"!==e.shop&&"organic"!==e.shop||"restaurant"===e.amenity?r+="cuisine: ":r+="specialties: ","arabic"===e.cuisine&&(t+="arabic "),"italian"===e.cuisine&&(t+=" italian "),"international"===e.cuisine&&(t+=" international "),"regional"===e.cuisine&&(t+=" regional "),"chinese"===e.cuisine&&(t+=" chinese "),"greek"===e.cuisine&&(t+=" greek "),"african"===e.cuisine&&(t+=" african "),"german"===e.cuisine&&(t+=" german "),"mexican"===e.cuisine&&(t+=" mexican "),"french"===e.cuisine&&(t+=" french "),"indian"===e.cuisine&&(t+=" indian "),"iranian"===e.cuisine&&(t+=" iranian "),"lebanese"===e.cuisine&&(t+=" lebanese "),"thai"===e.cuisine&&(t+=" thai "),"balkan"===e.cuisine&&(t+=" balkan "),"turkish"===e.cuisine&&(t+=" turkish "),"bavarian"===e.cuisine&&(t+=" bavarian "),"czech"===e.cuisine&&(t+=" czech "),"portuguese"===e.cuisine&&(t+=" portuguese "),"spanish"===e.cuisine&&(t+=" spanish "),"japanese"===e.cuisine&&(t+=" japanese "),"fish"===e.cuisine&&(t+=" fish "),"brazilian"===e.cuisine&&(t+=" brazilian "),"asian"===e.cuisine&&(t+=" asian "),"mediterranean"===e.cuisine&&(t+="mediterranean "),"seafood"===e.cuisine&&(t+=" seafood "),"ice_cream"===e.cuisine&&(t+=" ice cream "),"burger"===e.cuisine&&(t+=" burger "),"frozen_yogurt"===e.cuisine&&(t+=" frozen yogurt "),""===t&&(t=e.cuisine+" "),r+=t}return r},S=r.fnContentShipping=function(e){var r="";if((e.harbour="yes")&&("yes"===e["access:tide"]&&(r+="Access restricted by tide"),"yes"===e["access:swell"]&&(r+="access restricted by swell"),"yes"===e["access:ice"]&&(r+="access restricted by ice"),e.vhf_channel&&(r+="UKW-Channel: "+e.vhf_channel+""),e.mmsi&&(r+="MMSI-Number: "+e.mmsi+""),e["harbour:information"]&&(r+="information :"+e["harbour:information"]+"")),"yes"===e.motorboat&&(r+="motorboat allowed"),"no"===e.motorboat&&(r+="motorboat prohibited "),e.CEMT&&(r+="CEMT: "+e.CEMT+""),"yes"===e.intermittent&&(r+="river intermittent dried out"),"yes"===e.tidal&&(r+="tidal influence the flow"),e.draft&&(r+=" driving depth of water: "+e.draft+" m"),"slipway"!==e.leisure&&"slipway"!==e.harbour||("hand"===e.operating&&(r+="operating: by hand "),"car"===e.operating&&(r+="operating: by car, boat trailer "),"cable_winch"===e.operating&&(r+="operating: with cable winch "),"travellift"===e.operating&&(r+="operating: by travellift "),"crane"===e.man_made&&(r+="by crane ",e["crane:maxload"]&&(r+="maxload: "+e["crane:maxload"]+" "),e["ship:maxdraft"]&&(r+="maximum permissible draught: "+e["ship:maxdraft"]+" "),e["ship:maxlength"]&&(r+="maximum permissible length of a ship: "+e["ship:maxlength"]+" ")),"yes"===e.vehicle&&(r+="accessible by vehicle ")),r+=function(e){var r="";return"wreck"===e.historic&&(e["wreck:date_sunk"]&&(r+="sunk: "+e["wreck:date_sunk"]+" "),e["wreck:depth"]&&(r+="depth: "+e["wreck:depth"]+" "),e["wreck:clearance"]&&(r+="clearance: "+e["wreck:clearance"]+" "),e["wreck:date_commissioned"]&&(r+="commissioned: "+e["wreck:date_commissioned"]+" "),e["wreck:gross_tonnage"]&&(r+="gross tonnage: "+e["wreck:gross_tonnage"]+" "),e["wreck:length"]&&(r+="length: "+e["wreck:length"]+" "),e["wreck:width"]&&(r+="width: "+e["wreck:width"]+" "),e["wreck:cargo"]&&("timber"===e["wreck:cargo"]?r+="cargo: timber ":"coal"===e["wreck:cargo"]?r+="cargo: coal ":r+="cargo: "+e["wreck:cargo"]+" "),"yes"===e["wreck:visible_at_low_tide"]&&(r+="visible at low tide: yes "),"no"===e["wreck:visible_at_low_tide"]&&(r+="visible at low tide: no "),"yes"===e["wreck:visible_at_high_tide"]&&(r+="visible at high tide: yes "),"no"===e["wreck:visible_at_high_tide"]&&(r+="visible at high tide: no "),"yes"===e.access&&(r+="accessible "),"no"===e.access&&(r+="no access possible "),"permit_required"===e.access&&(r+="permit required for acces ")),r}(e),("ferry"===e.route||"ferry_terminal"===e.amenity||"yes"===e.ferry)&&(fahrzeit=e.duration,""!==fahrzeit&&"undefined"!==fahrzeit&&null!=fahrzeit&&(r+="duration in hours : "+fahrzeit+" "),"yes"===e.motorcar&&(r+="motorcars allowed "),"no"===e.motorcar&&(r+="motorcars prohibited "),"no"===e.motor_vehicle&&(r+="motor vehicles prohibited "),"yes"===e.motor_vehicle&&(r+="motor vehicles allowed "),"yes"===e.vehicle&&(r+="vehicles allowed "),"no"===e.vehicle&&(r+="no vehicles "),"no"===e.bicycle&&(r+="no bicycles "),"no"===e.bicycle&&(r+="bicycles allowed "),"yes"===e.hgv&&(r+="hgv allowed "),"no"===e.hgv&&(r+="hgv prohibited "),"yes"===e.foot&&(r+="pedestrian allowed "),"no"===e.foot&&(r+="pedestrian prohibited "),"yes"===e.bicycle&&(r+="cyclist allowed "),"no"===e.bicycle&&(r+="cyclist prohibited "),"yes"===e["ferry:cable"]&&(r+="cable ferry ")),e["seamark:light:1:colour"]){switch(t=e["seamark:light:1:colour"]){case"white":t="white";break;case"red":t="red";break;case"green":t="green";break;case"blue":t="blue";break;case"yellow":t="yellow";break;case"amber":t="amber"}r+="colour of light: "+t+" "}if("lighthouse"===e.man_made&&(e["seamark:light:1:character"]&&(r+="light character: "+e["seamark:light:1:character"]+" "),e["seamark:light:1:period"]&&(r+="period: "+e["seamark:light:1:period"]+" "),e["seamark:light:1:height"]&&(r+="height: "+e["seamark:light:1:height"]+" m "),e["seamark:light:1:range"]&&(r+="range: "+e["seamark:light:1:range"]+" sm ")),e["seamark:light:colour"]){var t;switch(t=e["seamark:light:colour"]){case"white":t="white";break;case"red":t="red";break;case"green":t="green";break;case"blue":t="blue";break;case"yellow":t="yellow";break;case"amber":t="amber"}r+="colour of light: "+t+" "}return"lighthouse"===e.man_made&&(e["seamark:light:character"]&&(r+="light character: "+e["seamark:light:character"]+" "),e["seamark:light:height"]&&(r+="height: "+e["seamark:light:height"]+" m "),e["seamark:light:range"]&&(r+="range: "+e["seamark:light:range"]+" sm "),e["seamark:light:period"]&&(r+="period: "+e["seamark:light:period"]+" ")),r},C=r.fnContentHydrants=function(e){var r="";if("fire_hydrant"===e.emergency){var t=e["fire_hydrant:count"];"undefined"!==t&&null!=t&&""!==t&&(r+="Number: "+t+" ");var a=e["fire_hydrant:diameter"];"undefined"!==a&&null!=a&&""!==a&&(r+="Pipe diameter: "+a+" mm ");var o=e["fire_hydrant:pressure"];"undefined"!==o&&null!=o&&""!==o&&(r+="suction"===o?"Pressure in bar / Suction: Suction ":"Pressure in bar / Suction: "+o+" ");var n=e["fire_hydrant:position"];"undefined"!==n&&null!=n&&""!==n&&("lane"===n?r+="Position: Lane ":"parking_lot"===n?r+="Position: Parking Lot ":"sidewalk"===n?r+="Position: Sidewalk ":"green"===n&&(r+="Position: Green "));var s=e.water_volume;"undefined"!==s&&null!=s&&""!==s&&(r+="Volume: "+s+" ");var i=e["fire_hydrant:awwa_class"];if("undefined"!==i&&null!=i&&""!==i)r+="AWWA Class: "+i+" ";else{var l=e.flow_rate;"undefined"!==l&&null!=l&&""!==l&&(r+="Flow rate: "+l+" ")}var c=e.water_source;"undefined"!==c&&null!=c&&""!==c&&"main"!==c&&(r+="Water source: "+c+" ");var u=e["couplings:type"];"undefined"!==u&&null!=u&&""!==u&&(r+="Couplings type: "+u+" ");var p=e["couplings:diameter"];"undefined"!==p&&null!=p&&""!==p&&(r+="Couplings diameter: "+p+" ");var b=e["pillar:type"];"dry_barrel"===b&&(r+="Pillar type: "+b+" "),"fire_hydrant"===e["disused:emergency"]&&(r+="Currently disused"),""===r&&(r="No details available.")}return r},R=r.fnContentStreetsTraffic=function(e){var r="";if("yes"===e["red_turn:right"]&&(r+="red turn: allowed to turn to the right "),"no"===e["red_turn:right"]&&(r+="red turn: prohibited to turn to the right "),e.bridge&&(e.height&&(r+="height: "+e.height+" m "),e.length&&(r+="length: "+e.length+" m "),e.bridge_ref&&(r+="bridge ref: "+e.bridge_ref+" "),e.start_date&&(r+="start date: "+e.start_date+";"),e.maxweight&&(r+="maxweight: "+e.maxweight+" t")),e.highway&&"yes"===e.toll&&(r+="toll highway "),"yes"===e["toll:hgv"]&&(r+="HGV toll "),e.surface)switch(r+="surface: ",e.surface){case"grass":r+="grass ";break;case"paved":r+="paved ";break;case"asphalt":r+="asphalt ";break;case"cobblestone":r+="cobblestone ";break;case"sett":r+="sett ";break;case"concrete":r+="concrete ";break;case"unpaved":r+="unpaved ";break;case"paving_stones":r+="paving stones ";break;case"compacted":r+="compacted ";break;case"dirt":r+="dirt ";break;case"fine_gravel":r+="fine gravel ";break;case"grass_paver":r+="grass paver ";break;case"gravel":r+="gravel ";break;case"earth":r+="earth ";break;case"ground":r+="ground ";break;case"metal":r+="metal ";break;case"mud":r+="mud ";break;case"sand":r+="sand ";break;case"wood":r+="wood ";break;case"tartan":r+="tartan ";break;case"artificial_turf":r+="artificial turf ";break;case"clay":r+="clay ";break;default:r+="unknown "}if("grade1"===e.tracktype&&(r+="path surface: Solid. Usually a paved or heavily compacted hardcore surface. "),"grade2"===e.tracktype&&(r+="path surface: Mostly solid. Usually an unpaved track with surface of gravel mixed with a varying amount of sand, silt, and clay. "),"grade3"===e.tracktype&&(r+="path surface: Even mixture of hard and soft materials. Almost always an unpaved track. "),"grade4"===e.tracktype&&(r+="path surface: Mostly soft. Almost always an unpaved track prominently with soil/sand/grass, but with some hard materials, or compressed materials mixed in. "),"grade5"===e.tracktype&&(r+="path surface: Soft. Almost always an unpaved track lacking hard materials, uncompacted, with surface of soil/sand/grass. "),"yes"===e.motorcycle&&(r+=" motorcyle allowed. "),"no"===e.motorcycle&&(r+=" motorcycles prohibited. "),"excellent"===e.trail_visibility&&(r+="trail visibility: Unambiguous path or markers everywhere "),"good"===e.trail_visibility&&(r+="trail visibility: Next marker always visible, but sometimes has to be searched for. "),"intermediate"===e.trail_visibility&&(r+="trail visibility: Track mostly visible "),"bad"===e.trail_visibility&&(r+="trail visibility: Path sometimes invisible, route partly pathless "),"horrible"===e.trail_visibility&&(r+="trail visibility: Often pathless "),"no"===e.trail_visibility&&(r+="trail visibility: Mostly pathless "),"hiking"===e.sac_scale&&(r+="trail: Trail well cleared. (SAC Scale: T1 (yellow))"),"mountain_hiking"===e.sac_scale&&(r+="trail: Trail with continuous line and balanced ascent (SAC Scale: T2 (red))"),"demanding_mountain_hiking"===e.sac_scale&&(r+="trail: exposed sites may be secured with ropes or chains, possible need to use hands for balance (SAC Scale: T3 (red))"),"alphine_hiking"===e.sac_scale&&(r+="trail: sometimes need for hand use to get ahead (SAC Scale: T4 (blue))"),"demanding_alphine_hiking"===e.sac_scale&&(r+="trail: single plainly climbing up to second grade (SAC Scale: T5 (blue))"),"difficult_alpine_hiking"===e.sac_scale&&(r+="trail: climbing up to second grade (SAC Scale: T6 (blue))"),e["mtb:name"]&&(r+="cycleway :"+e["mtb:name"]+""),"0"===e["mtb:scale"]&&(r+="Mountainbikeroute: Very easy way - Gravel or packed earth. No particular difficulties. Mostly forest and meadow paths (highway=path). Sections with steps, rocks, or roots are not expected. Wide curves, easy to moderate slope. No special skills are needed to ride this. Easy to ride uphill.Surface: solid and handyObstacles: no obstaclesGradient: mild to moderateBends: wideDriving skills: no special driving skills required"),"1"===e["mtb:scale"]&&(r+="Mountainbikeroute: Smaller obstacles like roots and small stones. Erosion damage may increase difficulty. Soil may be loose in places. Tight turns, but no hairpin turns. Riding requires care and attention, but no special skill. Obstacles can be ridden over. Difficult to ride uphill.Surface: loose surface possible, small roots and stonesObstacles: small obstacles, water gutter, erosion damageGradient: < 40%Bends: wideDriving skills: basic driving skills required, obstacles can be passed over"),"2"===e["mtb:scale"]&&(r+="Mountainbikeroute: Obstacles such as large rocks and stones. Soil is often loose. Steps are expected. Wider hairpin turns, steepness of up to 70%. Requires some advanced riding skills. Only very skilled riders can go uphill on this.Surface: surface usually not compacted, larger roots and stones.Obstacles: plain steps and stairsGradient: < 70%Bends: easy hairpinsDriving skills: advanced driving skills required"),"3"===e["mtb:scale"]&&(r+="Mountainbikeroute: Many sections with large obstacles such as boulders and large roots. Many hairpin and off-balance turns. Slippery surface and talus sections may be found. The surface may be very slippery. Constant concentration and very good skills needed. Nearly impossible to ride uphill.Surface: many large roots / rocks or slippery ground, loose screeObstacles: drags, hardly driveable stepsGradient: >70%Bends: bail like hairpinsDriving skills: perfect bike control with trial skills required, like moving the rear wheel only in hairpins"),"4"===e["mtb:scale"]&&(r+="Mountainbikeroute: Very steep and difficult, with sections having large boulders and roots. Frequent loose debris. Very steep sections with very tight hairpin turns and high steps that will cause the chainring to hit the ground. Some trials techniques will be necessary. Nearly impossible to ride uphill.Surface: many large roots / rocks or slippery ground, loose screeObstacles: drags, hardly driveable stepsGradient: >70%Bends: bail like hairpinsDriving skills: perfect bike control with trial skills required, like moving the rear wheel only in hairpins"),"5"===e["mtb:scale"]&&(r+="Mountainbikeroute: Very steep and difficult with big boulder fields and debris, and landslides. Speed must be carried for counter-ascents. If at all only short passages are available for accelerating and braking. Fallen trees may make very steep passages even more difficult. Very few Mountainbikers can actually ride at this level. Most will have to push.Surface: counter-ascents / rocks or slippery ground, loose scree / path is rather a Alpine hiking (>T4) pathObstacles: drags, combinations of hardly driveable stepsGradient: >70%Bends: bail like hairpins with obstaclesDriving skills: excellent bike control with special trial skills required, moving the front and rear wheel is limited"),"6"===e["mtb:scale"]&&(r+="Mountainbikeroute: Classify ways with 6 that are not rideable at all for a mtbiker. E.g. Chains or stemples (metal rungs) on a via ferrata or simply unsecured alpine pathes that are not even partly rideable for the very best mtbikers (using trial techniques). Steepness is often >45°. If used for single points, then this highlights exceptionally difficult spots. Often spotting is impossible and falling may be lethal.Surface: Path is rather a Alpine hiking (T5 or T6) path or bare rock without visible path.Obstacles: Steps over 2m, rock faces,...Gradient: >100%Bends: no bends can be distinguished as such.Driving skills: only the very best trial specialists or vertriders will try to ride these spots. Walking the place first to find a way to clear is needed."),"10"===e.maxspeed&&(r+='traffic-calmed sector: maxspeed 10 Km/h and "right over left"'),"30"===e.maxspeed&&(r+='traffic-calmed sector: "right over left" and maxspeed 30 Km/h'),"50"===e.maxspeed&&(r+="maxspeed 50 Km/h"),"70"===e.maxspeed&&(r+="maxspeed 50 Km/h"),"80"===e.maxspeed&&(r+="maxspeed 80 Km/h"),"100"===e.maxspeed&&(r+="maxspeed 100 Km/h"),"no"===e.overtaking&&(r+="No overtaking!"),"yes"===e.noexit&&(r+="noexit"),"yes"===e.oneway&&(r+="oneway"),"designated"===e.priority_road&&(r+="priority road designated"),"end"===e.priority_road&&(r+="priority road ends"),"emergency_bay"===e.highway&&(r+="emergency bay"),"yes"===e.traffic_calming&&(r+="traffic calming"),"bump"===e.traffic_calming&&(r+="bump"),"chicane"===e.traffic_calming&&(r+="chicane"),"choker"===e.traffic_calming&&(r+="choker"),"cushion"===e.traffic_calming&&(r+="cushion"),"hump"===e.traffic_calming&&(r+="hump"),"island"===e.traffic_calming&&(r+="island"),"rumble_strip"===e.traffic_calming&&(r+="rumble strip"),"table"===e.traffic_calming&&(r+="table"),"parking"===e.amenity){"yes"===e.fee&&(r+="fee required ");var t=e["capacity:women"];if(""!==t&&"no"!==t&&null!=t){var a="unkown";"yes"!==t&&(a=t),r+="ladies parking spaces (numbers: "+a+") "}}return e.park_ride&&("bus"===e.park_ride&&(r+="bus connection "),"tram"===e.park_ride&&(r+="tram connection "),"unknown"===e.park_ride&&(r+="park ride unkown ")),e["railway:position"]&&(r+="railway position: "+e["railway:position"]+" "),e.uic_ref&&(r+="UIC: "+e.uic_ref+" "),r},E=r.fnContentSports=function(e){var r="";return"9pin"===e.sport&&(r+="possible sport : 9pin "),"10pin"===e.sport&&(r+="possible sport : 10pin "),"american_football"===e.sport&&(r+="possible sport : american football "),"aikido"===e.sport&&(r+="possible sport : aikido "),"archery"===e.sport&&(r+="possible sport : archery "),"athletics"===e.sport&&(r+="possible sport : athletics "),"australian_football"===e.sport&&(r+="possible sport : australian football "),"base"===e.sport&&(r+="possible sport : base "),"badminton"===e.sport&&(r+="possible sport : badminton "),"baseball"===e.sport&&(r+="possible sport : baseball "),"basketball"===e.sport&&(r+="possible sport : basketball "),"beachvolleyball"===e.sport&&(r+="possible sport : beachvolleyball "),"bmx"===e.sport&&(r+="possible sport : bmx "),"boules"===e.sport&&(r+="possible sport : boules "),"boule"===e.sport&&(r+="possible sport : boule "),"bowls"===e.sport&&(r+="possible sport : bowls "),"boxing"===e.sport&&(r+="possible sport : boxing "),"canadian_football"===e.sport&&(r+="possible sport : canadian football "),"canoe"===e.sport&&(r+="possible sport : canoe "),"chess"===e.sport&&(r+="possible sport : chess "),"cliff_diving"===e.sport&&(r+="possible sport : cliff diving "),"climbing"===e.sport&&(r+="possible sport : climbing "),"climbing_adventure"===e.sport&&(r+="possible sport : adventure climbing "),"cricket"===e.sport&&(r+="possible sport : cricket "),"cricket_nets"===e.sport&&(r+="possible sport : cricket nets "),"croquet"===e.sport&&(r+="possible sport : croquet "),"curling"===e.sport&&(r+="possible sport : curling "),"cycling"===e.sport&&(r+="possible sport : cycling "),"darts"!==e.sport&&"dart"!==e.sport||(r+="Darts "),"dog_racing"===e.sport&&(r+="possible sport : dog racing "),"fencing"===e.sport&&(r+="possible sport : fencing "),"equestrian"===e.sport&&(r+="possible sport : equestrian "),"football"===e.sport&&(r+="possible sport: american football "),"free_flying"===e.sport&&(r+="possible sport: free flying "),"gaelic_games"===e.sport&&(r+="possible sport: gaelic games "),"golf"===e.sport&&(r+="possible sport: golf "),"gymnastics"===e.sport&&(r+="possible sport: gymnastik "),"hockey"===e.sport&&(r+="possible sport: hockey "),"horseshoes"===e.sport&&(r+="possible sport: horseshoes "),"horse_racing"===e.sport&&(r+="possible sport: horse racing "),"ice_stock"===e.sport&&(r+="possible sport: ice stock "),"judo"===e.sport&&(r+="possible sport: judo "),"karting"===e.sport&&(r+="possible sport: karting "),"kitesurfing"===e.sport&&(r+="possible sport: kitesurfing "),"korfball"===e.sport&&(r+="possible sport: korfball "),"motor"===e.sport&&(r+="possible sport: motor "),"multi"===e.sport&&(r+="possible sport: multi "),"obstacle_course"===e.sport&&(r+="possible sport: obstacle course "),"orienteering"===e.sport&&(r+="possible sport: orienteering "),"paddle_tennis"===e.sport&&(r+="possible sport: paddle-tennis "),"paragliding"===e.sport&&(r+="possible sport: paragliding "),"Pelota"===e.sport&&(r+="possible sport: Pelota "),"rasquet"===e.sport&&(r+="possible sport: racquet "),"rowing"===e.sport&&(r+="possible sport: rowing "),"rugby_league"===e.sport&&(r+="possible sport: rugby league "),"rugby_union"===e.sport&&(r+="possible sport: rugby union "),"running"===e.sport&&(r+="possible sport: running "),"scuba_diving"===e.sport&&(r+="possible sport: scuba diving "),"shooting"===e.sport&&(r+="possible sport: shooting "),"skating"===e.sport&&(r+="possible sport: skating "),"skateboard"===e.sport&&(r+="possible sport: skateboard "),"skiing"===e.sport&&(r+="possible sport: skiing "),"soccer"===e.sport&&(r+="possible sport: soccer "),"surfing"===e.sport&&(r+="possible sport: surfing "),"swimming"===e.sport&&(r+="possible sport: swimming "),"table_tennis"===e.sport&&(r+="possible sport: table tennis "),"taekwondo"===e.sport&&(r+="possible sport: taekwondo "),"team_handball"===e.sport&&(r+="possible sport: team handball "),"tennis"===e.sport&&(r+="possible sport: tennis "),"toboggan"===e.sport&&(r+="possible sport: toboggan "),"volleyball"===e.sport&&(r+="possible sport: volleyball "),"water_ski"===e.sport&&(r+="possible sport: water ski "),"weightlifting"===e.sport&&(r+="possible sport: weightlifting "),"wrestling"===e.sport&&(r+="possible sport: wrestling "),r},O=r.fnContentGeneralInformations=function(e){var r="";return e.width&&(r+="width: "+e.width+" m "),e.height&&(r+="height: "+e.height+" m "),e.maxwidth&&(r+="maxwidth: "+e.maxwidth+" m "),e.maxheight&&(r+="maxheight: "+e.maxheight+" m "),e.maxweight&&(r+="maxweight: "+e.maxweight+" t "),e.maxspeed&&(r+="maxspeed: "+e.maxspeed+" km/h "),e.min_age&&(r+="minimum age: "+e.min_age+" "),e.max_age&&(r+="maximum age: "+e.max_age+" "),"yes"===e.nudism&&(r+="nudism "),"yes"===e.ruins&&(r+="ruins "),e.ele&&(r+="height above sea level: "+e.ele+" m "),e["xmas:day_date"]&&(r+="period from - till: "+e["xmas:day_date"]+" "),e["rotor:diameter"]&&(r+="diameter of rotor: "+e["rotor:diameter"]+" m "),e["xmas:note"]&&(r+="information: "+e["xmas:note"]+" "),"port"===e["seamark:beacon_lateral:category"]&&(r+="port "),"starboard"===e["seamark:beacon_lateral:category"]&&(r+="starboard "),"yes"===e["service:bicycle:retail"]&&(r+="retail bicycles "),"yes"===e["service:bicycle:repair"]&&(r+="repair bicycles "),"yes"===e["service:bicycle:rental"]&&(r+="rental bicycles "),"yes"===e["service:bicycle:pump"]&&(r+="use of a pump is possible "),"yes"===e["service:bicycle:diy"]&&(r+="diy is possible "),"yes"===e["service:bicycle:cleaning"]&&(r+="cleaning bicycles "),"yes"===e["service:bicycle:second_hand"]&&(r+="sale of second hand bicycles "),"yes"===e["service:bicycle:charging"]&&(r+="charging electric bikes is possible "),"yes"===e.cafe&&(r+="cafe "),"yes"===e.breakfast&&(r+="breakfast "),"yes"===e.snack&&(r+="snack "),"yes"===e.indoor_seating&&(r+="indoor seating "),"yes"===e.outdoor_seating&&(r+="outdoor seating "),"yes"===e.self_service&&(r+="self service "),"yes"===e.bakehouse&&(r+="bakehouse "),"yes"===e.pastry_shop&&(r+="pastry shop "),"yes"===e.fair_trade&&(r+="fair trade "),"only"===e.fair_trade&&(r+="only fair trade "),"no"===e.fair_trade&&(r+="no fair trade "),r},T=r.fnContentHealthcare=function(e){var r="";return"doctors"!==e.amenity&&"physician"!==e.office&&"doctor"!==e.healthcare||(r+=function(e){var r="",t="",a=e["healthcare:speciality"];return""!==a&&("general"===a&&(t+="general "),"allergology"===a&&(t+="allergology "),"anaesthetics"===a&&(t+="anaesthetics "),"biochemistry"===a&&(t+="biochemistry "),"biological_haematology"===a&&(t+="biological haematology "),"biology"===a&&(t+="biology "),"cardiology"===a&&(t+="cardiology "),"cardiac_surgery"===a&&(t+="cardiac surgery "),"child_psychiatry"===a&&(t+="child psychiatry "),"dental_oral_maxillo_facial_surgery"===a&&(t+="dental-, oral-, maxillo- and facial-surgery "),"dermatology"===a&&(t+="dermatology "),"dermatovenereology"===a&&(t+="dermatovenereology "),"diagnostic_radiology"===a&&(t+="diagnostic radiology "),"emergency"===a&&(t+="emergency "),"endocrinology"===a&&(t+="endocrinology "),"gastroenterological_surgery"===a&&(t+="gastroenterological surgery "),"gastroenterology"===a&&(t+="gastroenterology "),"geriatrics"===a&&(t+="geriatrics "),"gynaecology"===a&&(t+="gynaecology "),"haematology"===a&&(t+="haematology "),"hepatology"===a&&(t+="hepatology "),"immunology"===a&&(t+="immunology "),"infectious_diseases"===a&&(t+="infectious diseases "),"intensive"===a&&(t+="intensive "),"internal"===a&&(t+="internal "),"maxillofacial_surgery"===a&&(t+="maxillofacial surgery "),"nephrology"===a&&(t+="nephrology "),"neurology"===a&&(t+="neurology "),"neurophysiology"===a&&(t+="neurophysiology "),"neuropsychiatry"===a&&(t+="neuropsychiatry "),"neurosurgery"===a&&(t+="neurosurgery "),"nuclear"===a&&(t+="nuclear "),"occupational"===a&&(t+="occupational "),"oncology"===a&&(t+="oncology "),"ophthalmology"===a&&(t+="ophthalmology "),"orthopaedics"===a&&(t+="orthopaedics "),"otolaryngology"===a&&(t+="otolaryngology "),"paediatric_surgery"===a&&(t+="paediatric surgery "),"paediatrics"===a&&(t+="paediatrics "),"palliative"===a&&(t+="palliative "),"physiatry"===a&&(t+="physiatry "),"plastic_surgery"===a&&(t+="plastic surgery "),"proctology"===a&&(t+="proctology "),"psychiatry"===a&&(t+="psychiatry "),"pulmonology"===a&&(t+="pulmonology "),"radiology"===a&&(t+="radiology "),"radiotherapy"===a&&(t+="radiotherapy "),"rheumatology"===a&&(t+="rheumatology "),"stomatology"===a&&(t+="stomatology "),"surgery"===a&&(t+="surgery "),"surgical_oncology"===a&&(t+="surgical oncology "),"thoracic_surgery"===a&&(t+="thoracic surgery "),"transplant"===a&&(t+="transplant "),"trauma"===a&&(t+="trauma "),"tropical"===a&&(t+="tropical "),"urology"===a&&(t+="urology "),"vascular_surgery"===a&&(t+="vascular surgery "),"venereology"===a&&(t+="venereology "),"acupuncture"===a&&(t+="acupuncture "),"naturopathy"===a&&(t+="naturopathy "),"chiropractic"===a&&(t+="chiropractic "),"homeopathy"===a&&(t+="homeopathy "),"osteopathy"===a&&(t+="osteopathy ")),""!==e.health_specialty&&("yes"===e["health_specialty:family_medicine"]&&(t+="family medicine "),"yes"===e["health_specialty:emergency_medicine"]&&(t+="emergency medicine "),"yes"===e["health_specialty:anaesthesiology"]&&(t+="anaesthesiology "),"yes"===e["health_specialty:dermatology"]&&(t+="dermatology "),"yes"===e["health_specialty:ear_nose_throat"]&&(t+="ear, nose, throat (ENT specialist) "),"yes"===e["health_specialty:occupational_medicine"]&&(t+="occupational medicine "),"yes"===e["health_specialty:internal_medicine"]&&(t+="internal medicine "),"yes"===e["health_specialty:neurology"]&&(t+="neurology "),"yes"===e["health_specialty:ophthalmology"]&&(t+="ophthalmology "),"yes"===e["health_specialty:palliative_medicine"]&&(t+="palliative medicine "),"yes"===e["health_specialty:psychiatry"]&&(t+="psychiatry "),"yes"===e["health_specialty:gynaecology"]&&(t+="gynaecology "),"yes"===e["health_specialty:urology"]&&(t+="urology "),"yes"===e["health_specialty:pain_medicine"]&&(t+="pain medicine "),"yes"===e["health_specialty:environmental_medicine"]&&(t+="environmental medicine "),"yes"===e["health_specialty:intensive_care_medicin"]&&(t+="intensive care medicin "),"yes"===e["health_specialty:paediatrics"]&&(t+="paediatrics "),"yes"===e["health_specialty:physiatry"]&&(t+="physiatry "),"yes"===e["health_specialty:radiology"]&&(t+="radiology "),"yes"===e["health_specialty:general"]&&(t+="general "),"yes"===e["health_specialty:occupational_therapy"]&&(t+="occupational therapy "),"yes"===e["health_specialty:pulmonology"]&&(t+="pulmonology "),"yes"===e["health_specialty:acupuncture"]&&(t+="acupuncture "),"yes"===e["health_specialty:orthopaedics"]&&(t+="orthopaedics "),"yes"===e["health_specialty:chiropractic"]&&(t+="chiropractic "),"yes"===e["health_specialty:sports_medicine"]&&(t+="sports medicine ")),""!==t&&(r+="subjects: ",r+=''+t+"
"),r}(e),e.medical_area&&(r+=e.medical_area+" "),e.type&&(r+=e.type+" "),e["doctors:de"]&&(r+=e["doctors:de"]+" "),e["note:de"]&&(r+=e["note:de"]+" ")),"yes"===e.dispensing&&(r+="pharmacy with dispensing "),"abused"===e["social_facility:for"]&&(r+="social facility for: abused people "),"child"===e["social_facility:for"]&&(r+="social facility for: children "),"disabled"===e["social_facility:for"]&&(r+="social facility for: disabled people "),"diseased"===e["social_facility:for"]&&(r+="social facility for: diseased people "),"drug_addicted"===e["social_facility:for"]&&(r+="social facility for: drug addicted people "),"homeless"===e["social_facility:for"]&&(r+="social facility for: homeless "),"juvenile"===e["social_facility:for"]&&(r+="social facility for: juvenile and teenager "),"mental_health"===e["social_facility:for"]&&(r+="social facility for: people with mental health problems "),"migrant"===e["social_facility:for"]&&(r+="social facility for: migrants "),"orphan"===e["social_facility:for"]&&(r+="social facility for: orphans "),"senior"===e["social_facility:for"]&&(r+="social facility for: seniors "),"underprivileged"===e["social_facility:for"]&&(r+="social facility for: underprivileged people "),"unemployed"===e["social_facility:for"]&&(r+="social facility for: unemployed "),"victim"===e["social_facility:for"]&&(r+="social facility for: victims "),r};r.fnTestInfoPopup=function(e){var r=e.getProperties(),t="";for(var a in r)t=t+a+"="+r[a]+" ";return'"}},"./src/Resources/public/js/c4g-maps-proxy.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.MapProxy=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=t("./src/Resources/public/js/c4g-baselayer-controller.js"),l=t("./src/Resources/public/js/c4g-layer-controller.js"),c=t("./src/Resources/public/js/c4g-locationstyle-controller.js"),u=t("./src/Resources/public/js/c4g-popup-controller.js"),p=t("./src/Resources/public/js/c4g-maps-utils.js"),b=(t("./src/Resources/public/js/c4g-maps-constant.js"),t("./src/Resources/public/js/c4g-maps-i18n.js")),d=t("./node_modules/ol/layer.js"),h=t("./node_modules/ol/geom.js"),m=t("./node_modules/ol/proj.js"),g=t("./node_modules/ol/style.js"),f=t("./node_modules/ol/index.js"),y=t("./node_modules/ol/source.js");r.MapProxy=function(){return(0,s.default)((function e(r){var t;if((0,n.default)(this,e),this.options=jQuery.extend({mapController:!1},r),!this.options.mapController)return!1;this.hook_baselayer_loaded=[],this.hook_baselayer_visibility=[],this.hook_layer_loaded=[],this.hook_layer_visibility=[],this.hook_map_click=[],this.hook_map_zoom=[],this.hook_locstyles_loaded=[],window.c4gMapsHooks=window.c4gMapsHooks||{},window.c4gMapsHooks.proxy_layer_loaded=window.c4gMapsHooks.proxy_layer_loaded||[],window.c4gMapsHooks.proxy_layer_drawn=window.c4gMapsHooks.proxy_layer_drawn||[],window.c4gMapsHooks.proxy_baselayer_loaded=window.c4gMapsHooks.proxy_baselayer_loaded||[],this.baselayerIds=[],this.layerIds=[],this.activeLayerIds={},this.requestFunctions={},this.request={},this.baselayers_loaded=!1,this.layers_loaded=!1,t=this.options.mapController.data,(0,b.getLanguage)(t),this.mapData=t,this.mapId=t.id,this.api_baselayer_url=this.options.mapController.data.api.baselayer+"/"+t.profile+"/"+this.mapData.lang,this.api_layer_url=this.options.mapController.data.api.layer+"/"+this.mapId+"/"+this.mapData.lang,this.api_layercontent_url=this.options.mapController.data.api.layercontent,this.api_layercontentdata_url="con4gis/layerContentDataService",this.api_locstyle_url=this.options.mapController.data.api.locstyle,this.api_infowindow_url=this.options.mapController.data.api.infowindow,this.options=r,this.clickObserverActive=!0}),[{key:"initialize",value:function(){var e,r;e=this,r=this.options.mapController.map,this.baselayerController=new i.C4gBaselayerController(this),this.baselayerController.loadBaseLayers(),this.layerController=new l.BetterLayerController(this),this.layerController.loadLayers(),this.locationStyleController=new c.C4gLocationStyleController(this),this.popupController=new u.C4gPopupController(this),r.on("change:view",(function(){r.getView().on("change:resolution",(function(){var t;for(t in e.activeLayerIds)e.activeLayerIds.hasOwnProperty(t)&&e.layerController.arrLayers[t];p.utils.callHookFunctions(e.hook_map_zoom,e),e.options.mapController.data.caching&&r.getView().getZoom()&&p.utils.storeValue("zoom",r.getView().getZoom())}))})),r.getView().on("change:resolution",(function(){var t;for(t in e.activeLayerIds)e.activeLayerIds.hasOwnProperty(t)&&e.layerController.arrLayers[t];p.utils.callHookFunctions(window.c4gMapsHooks.hook_map_zoom,e),e.options.mapController.data.caching&&r.getView().getZoom()&&p.utils.storeValue("zoom",r.getView().getZoom())})),r.getView().on("change:center",(function(t){if(e.options.mapController.data.caching){var a=(0,m.toLonLat)(r.getView().getCenter());a&&(p.utils.storeValue("lon",a[0]),p.utils.storeValue("lat",a[1]))}window.c4gMapsHooks.map_center_changed=window.c4gMapsHooks.map_center_changed||[],p.utils.callHookFunctions(window.c4gMapsHooks.map_center_changed,r.getView().getCenter())})),r.on("click",(function(t){var a,o,n,s,i,l,c,u;if(!e.clickObserverActive)return!1;if(a=r.forEachFeatureAtPixel(t.pixel,(function(e,r){return e}),{hitTolerance:5}),n=r.forEachFeatureAtPixel(t.pixel,(function(e,r){return r}),{hitTolerance:5}),a&&a.get("closeCluster"))r.getView().dispatchEvent({type:"change:resolution"});else{if(n&&n.getStyle()&&"function"==typeof(c=n.getStyle())&&c(a,s)&&c(a,s)[0]&&(u=!(!c(a,s)||!c(a,s)[0])&&c(a,s)[0])&&u.getImage()&&u.getImage().setScale(.7*u.getImage().getScale()),(o=!!a&&a.get("features"))&&1===o.length)o&&1===o.length&&(a=o[0]);else if(o)if(1==o[0].get("cluster_popup"))if(r.getView().setCenter(t.coordinate),(s=r.getView().getZoom())>=(e.options.mapController.data.cluster_all?e.options.mapController.data.cluster_zoom:o[0].get("cluster_zoom"))){(l=[]).content="",l.async=!1;for(var b=0;b=(o[0].get("cluster_zoom")||e.options.mapController.data.cluster_zoom)){var _=r.getView().getResolution(),k=o.length,v=_*(e.options.mapController.data.cluster_dist_spider?e.options.mapController.data.cluster_dist_spider:20)*(.5+k/4),w=new y.Vector;for(b=0;b-1&&this.options.mapController.map.getView().getZoom(),void 0===t.zoom&&t.content&&t.content.length>0)for(var s=0;sa||t.zoom.max>0&&t.zoom.max{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.utils=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),s=g(t("./src/Resources/public/js/c4g-maps-popup-info-de.js")),i=g(t("./src/Resources/public/js/c4g-maps-popup-info-en.js")),l=t("./node_modules/ol/layer.js"),c=(a(t("./node_modules/ol/geom/Circle.js")),t("./node_modules/ol/proj.js")),u=t("./node_modules/ol/sphere.js"),p=t("./node_modules/ol/interaction.js"),b=t("./node_modules/ol/source.js"),d=t("./node_modules/ol/extent.js"),h=a(t("./node_modules/jsbi/dist/jsbi.mjs"));function m(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(m=function(e){return e?t:r})(e)}function g(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=m(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}var f=s;f="undefined"!=typeof mapData?"de"===mapData.lang?s:(mapData.lang,i):i,r.utils={capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},getUniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)},encodeGeoJsonProperty:function(e){return e?e.replace(/\\/g,"\\\\").replace(/\"/g,"''").replace(/Ä/g,"Ä").replace(/ä/g,"ä").replace(/Ö/g,"Ö").replace(/ö/g,"ö").replace(/Ü/g,"Ü").replace(/ü/g,"ü"):""},removeUmlauts:function(e){return e?e.toLowerCase().replace(/\s/g,"").replace(/\\/g,"\\\\").replace(/\"/g,"''").replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/ß/g,"ss"):""},decodeGeoJsonProperty:function(e){return e?("string"!=typeof e&&(e+=""),e.replace(/\\\\/g,"\\").replace(/\'\'/g,'"').replace(/Ä/g,"Ä").replace(/ä/g,"ä").replace(/Ö/g,"Ö").replace(/ö/g,"ö").replace(/Ü/g,"Ü;").replace(/ü/g,"ü")):""},setUrlParam:function(e,r,t){var a,o,s;if(void 0===(0,n.default)(e))return!1;if(a=location.origin+location.pathname,r){if(location.search?(s=!1,r=r.toLowerCase(),o=location.search.replace(/([^=\?\&]+)=([^&]+)/gi,(function(t,a,o,n,i){return a===r?(s=!0,a+"="+e):t})),s||(o+="&"+r+"="+e)):o="?"+r+"="+e,t)return location.search=o,!0;a+=o+location.hash}else{if(t)return location.hash=e,!0;a+=location.search+"#"+e}return a},getUrlParam:function(e){var r;return e?location.search&&(r=new RegExp("[?&]"+e+"=([^&]+)","i").exec(location.search))?r[1]:"":location.hash.substring(1)},deltaEncode:function(e){var r,t;if(!e)return[];if(1===e.length)return e;for(e.sort((function(e,r){return h.default.toNumber(h.default.subtract(h.default.BigInt(e),h.default.BigInt(r)))})),(r=[])[0]=e[0].toString(),t=1;t0)for(t=0;t>16&255,s=a>>8&255,i=255&a,l=r?r/100:1,t?[o,s,i,l]:"rgba("+o+","+s+","+i+","+l+")"},getSingleCoordinateForGeom:function(e){var r,t,a;switch(e.getType()){case"Point":r=e.getCoordinates();break;case"LineString":case"LinearRing":r=[t=(e.getFirstCoordinate()[0]+e.getLastCoordinate()[0])/2,a=(e.getFirstCoordinate()[1]+e.getLastCoordinate()[1])/2];break;case"Polygon":case"MultiPoint":var o,n=e.getCoordinates();for(o=0;o1e3?(Math.round(d/1e3*100)/100).toFixed(2)+" km":s.rawValue+" m"}else if("Polygon"===e.getType())d=Math.abs((0,u.getArea)(e)),s.rawValue=(Math.round(100*d)/100).toFixed(2),s.htmlValue=d>1e4?(Math.round(d/1e6*100)/100).toFixed(2)+" km2 ":s.rawValue+" m2 ";else if("Circle"===e.getType()&&t){var l=e.getCenter(),p=e.getRadius(),b=[l[0]+p,l[1]],d=(0,u.getDistance)((0,c.transform)(l,"EPSG:3857","EPSG:4326"),(0,c.transform)(b,"EPSG:3857","EPSG:4326"),6378137);d=Math.PI*Math.pow(d,2),s.rawValue=(Math.round(100*d)/100).toFixed(2),s.htmlValue=d>1e4?(Math.round(d/1e6*100)/100).toFixed(2)+" km2 ":s.rawValue+" m2 "}else"Circle"===e.getType()?(l=e.getCenter(),p=e.getRadius(),b=[l[0]+p,l[1]],d=(0,u.getDistance)((0,c.transform)(l,"EPSG:3857","EPSG:4326"),(0,c.transform)(b,"EPSG:3857","EPSG:4326"),6378137),s.rawValue=(Math.round(100*d)/100).toFixed(2),s.rawValue>1e4?s.htmlValue=(Math.round(100*d/100)/1e3).toFixed(2)+" km":s.htmlValue=s.rawValue+" m"):s=0;return s},getExtentForGeometries:function(e){var r;return e?((r=new b.Vector).addFeatures(e),r.getExtent()||(0,p.Extent)([0,0,0,0])):(console.warn("Geometries missing for extent calculation"),!1)},fitToExtents:function(e,r,t,a){var o,n;if(!e||!r)return console.warn("Missing extent or map for fitExtent"),!1;for(n in e)e.hasOwnProperty(n)&&(void 0===o?o=e[n]:(0,d.extend)(o,e[n]));this.fitToExtent(o,r,t,5,0,0,2)},fitToExtent:function(e,r,t,a,o,n,s){var i,l;if(!e||!r)return console.warn("Missing extent or map for fitExtent"),!1;i=r.getView(),l={padding:t||[25,25,25,25]},s&&s>0&&(l.minResolution=s),o&&o>=0&&(l.minZoom=o),n&&n>=0&&(l.maxZoom=n),a&&a>0&&i.animate({start:+new Date,duration:a,resolution:i.getResolution(),center:[0,0]});try{return i.fit(e,r.getSize(),{padding:[25,25,25,25]}),!0}catch(e){return!1}},replaceAllPlaceholders:function(e,r,t,a){var o;return e&&r?(o=this.replaceFunctionPlaceholders(e,r,t,a),o=this.replaceEditorVarsPlaceholders(o,r),o=this.replaceAttributePlaceholders(o,r)):e},replaceFunctionPlaceholders:function(e,r,t,a){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e&&r&&t?(f="de"===a||"de-DE"===a?s:i,e.replace(/\$\{FN([^\}]*)\}/g,(function(e,t,a,n){if("function"==typeof f[t]){var s="";if(o&&r.get("locstyle")){var i=o.locationStyleController.arrLocStyles[r.get("locstyle")].locStyleArr;s=i.icon_src?i.icon_src:i.svgSrc?i.svgSrc:""}return f[t](r,s)}return""}))):e},replaceEditorVarsPlaceholders:function(e,r){return e&&r&&"function"==typeof r.get?e.replace(/\$\{(EV?[LV])([^\}]*)\}/g,(function(e,t,a,o,n){var s,i;if(r.get("editorVars"))for(s=r.get("editorVars"),i=0;i2?e[e.length-2]:e[0]},getValue:function(e){return localStorage[e]||""},storeValue:function(e,r){localStorage[e]=r},decodeHTML:function(e){var r=document.createElement("textarea");return r.innerHTML=e,r.value}}},"./src/Resources/public/js/c4g-overlay-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.OSM_REL_ATTRIBUTION=r.C4gOverlayController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-maps-config.js"),i=t("./node_modules/ol/source.js"),l=t("./node_modules/ol/layer.js"),c=a(t("./node_modules/ol-ext/source/GeoImage.js")),u=a(t("./node_modules/ol/source/GeoTIFF.js")),p=a(t("./node_modules/ol/layer/WebGLTile.js")),b=(a(t("./node_modules/ol/proj/Projection.js")),r.OSM_REL_ATTRIBUTION='© OpenStreetMap contributors.');r.C4gOverlayController=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.baselayer=r,this.arrOverlays=[]}),[{key:"showOverlayLayer",value:function(e){var r,t,a,o,n=s.config.osm,d=(s.config.stamen,s.config.stadiaMaps);switch(t={},a=new l.Tile({source:new i.OSM}),r=this.arrOverlays[e],window.isSecureContext&&(t.crossOrigin="anonymous"),r.provider){case"osm":n[r.style]?a=new l.Tile({source:new i.OSM(jQuery.extend(n[r.style],t))}):d[r.style]?a=new l.Tile({source:new i.StadiaMaps(jQuery.extend(d[r.style],t))}):"osm_custom"===r.style?(o=!0,r.attribution&&(t.attributions=r.attribution+" "+b),r.url?(t.url=r.url,o=!1):r.urls&&r.urls.length>0&&(t.urls=r.urls,o=!1),o?console.warn("custom url(s) missing -> switch to default"):a=new l.Tile({source:new i.XYZ(t)})):console.warn("unsupported osm-style -> switch to default");break;case"sea":o=!0,r.attribution&&(t.attributions=r.attribution+" "+b),r.urls&&(t.urls=r.urls,o=!1),o||(a=new l.Tile({source:new i.XYZ(t)}));break;case"wms":a=new l.Tile({source:new i.TileWMS({url:r.url,params:{LAYERS:r.params.layers,VERSION:r.params.version,TRANSPARENT:r.params.transparent},gutter:r.gutter,attributions:r.attribution+" "+b})});break;case"owm":a=new l.Tile({source:new i.XYZ({url:r.url+r.app_id+"/{z}/{x}/{y}?hash="+r.api_key,attributions:r.attribution+" "+b})});break;case"geoimage":var h=JSON.parse(r.geoImageJson);h.url=r.imageSrc?r.imageSrc:h.url,h.attributions=r.attribution,a=new l.Image({source:new c.default(h)});break;case"geotiff":var m=[{url:r.imageSrc?r.imageSrc:""}];a=new p.default({source:new u.default({sources:m,nodata:0}),zIndex:1e4});break;default:console.warn("unsupported provider")}return a.setZIndex(-1),this.arrOverlays[e].layer=a,this.arrOverlays[e].changeOpacity(r.opacity),this.arrOverlays[e].layer}}])}()},"./src/Resources/public/js/c4g-overlay.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gOverlay=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js"));r.C4gOverlay=function(){return(0,n.default)((function e(r,t){(0,o.default)(this,e),this.id=r.id,this.pid=r.pid,this.name=r.name,this.provider=r.provider,this.style=r.style,this.url=r.url,this.urls=r.urls,this.opacity=r.opacity,this.attribution=r.attribution,this.infopage=r.infopage,this.gutter=r.gutter,this.params=r.params,this.imageSrc=r.image_src,this.geoImageJson=r.geoimage_json,this.layer=!1,this.overlayArr=r,this.mapController=t}),[{key:"changeOpacity",value:function(e){var r;(r=this.layer)&&(this.mapController.map.removeLayer(r),r.setOpacity(e/100),this.mapController.map.addLayer(r))}}])}()},"./src/Resources/public/js/c4g-popup-controller.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gPopupController=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),s=t("./src/Resources/public/js/c4g-popup.js"),i=t("./src/Resources/public/js/c4g-maps-utils.js");r.C4gPopupController=function(){return(0,n.default)((function e(r){(0,o.default)(this,e),this.mapController=r.options.mapController,this.mapData=r.options.mapController.data,this.popupHandling=parseInt(this.mapData.popupHandling,10),this.external=!!this.mapData.popupDiv,this.popups=[]}),[{key:"addPopup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.popups.push(new s.C4gPopup(this)),e&&this.popups[this.popups.length-1].setContent(e),this.mapData.caching&&i.utils.storeValue("popupInfos","")}},{key:"setPopup",value:function(e){this.popups[0]||this.popups.push(new s.C4gPopup(this)),this.popups[0].setContent(e)}},{key:"removePopup",value:function(){this.popups[0]&&this.popups[0].popup&&this.popups[0].popup.getMap()?this.mapData.map.removeOverlay(this.popups[0].popup):this.popups[0]&&this.popups[0].popupComponent&&this.popups[0].popupComponent.close(!0)}}])}()},"./src/Resources/public/js/c4g-popup.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.C4gPopup=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/typeof.js")),s=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),i=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),l=t("./node_modules/ol/index.js"),c=t("./src/Resources/public/js/c4g-maps-utils.js"),u=a(t("./node_modules/react-dom/index.js")),p=t("./src/Resources/public/js/components/c4g-popup-container.jsx"),b=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=h(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),d=t("./node_modules/ol/geom.js");function h(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(h=function(e){return e?t:r})(e)}r.C4gPopup=function(){return(0,i.default)((function e(r){(0,s.default)(this,e);var t=this;this.popupController=r;var a=document.createElement("div");a.setAttribute("id","c4g_popup_"+r.mapData.mapId),a.className="c4g-popup-wrapper c4g-active";var o=document.createElement("button");o.className="c4g-popup-close c4g-icon",jQuery(o).click((function(e){e.preventDefault(),r.mapController.map.removeOverlay(t.popup)}));var n=document.createElement("div");if(n.className="c4g-popup-content",a.appendChild(o),a.appendChild(n),this.popupContent=n,1===r.popupHandling||0===r.popupHandling){var i=1===r.popupHandling;this.popup=new l.Overlay({element:a,positioning:"center-center",offset:[-50,50],insertFirst:!1,autoPan:i,autoPanAnimation:{duration:250},autoPanMargin:200}),r.mapController.map.addOverlay(this.popup)}else if(2===r.popupHandling){jQuery(a).addClass("c4g-popup-wrapper-nonose");var c=r.mapController.map.getView().getCenter();this.popup=new l.Overlay({position:c,positioning:"center-center",element:a,offset:[-50,0],autoPan:!1}),r.mapController.map.addOverlay(this.popup)}else if(3===r.popupHandling){var d={open:!0,alwaysExtended:!1,hideOther:r.mapController.hideOtherComponents,activeComps:r.mapController.getActiveComponents(),mapData:r.mapData,mapController:r.mapController};this.popupContainer&&(u.default.unmountComponentAtNode(this.popupContainer),delete r.mapController.components.popup,r.external||this.popupContainer.parentNode.removeChild(this.popupContainer)),d.external=r.external,this.popupContainer=r.external?document.querySelector("."+r.mapData.popupDiv):document.createElement("div"),this.popupContainer||(this.popupContainer=document.createElement("div"),d.external=!1),this.popupComponent=u.default.render(b.createElement(p.PopupContainer,d),this.popupContainer),d.external||(r.mapController.$overlaycontainer_stopevent.append(this.popupContainer),r.mapController.hideOtherComponents(this.currentPopup)),this.currentPopup=this.popupComponent,r.mapController.components.popup=this.popupComponent}}),[{key:"setContent",value:function(e){var r,t,a=e.feature,o=e.layer;if(a.get("features"))for(var s=a.get("features"),i=0;i=a[1]?s+="bottom":(i[1]=10,s+="top"),n[0]>=a[0]?(i[0]=-50,s+="-left"):(i[0]=100,s+="-right"),jQuery(t).removeClass("nose-top-left").removeClass("nose-top-right").removeClass("nose-bottom-left").removeClass("nose-bottom-right"),jQuery(t).addClass("nose-"+s),this.popup.setPositioning(s),this.popup.setOffset(i),this.popup.setPosition(a)}}])}()},"./src/Resources/public/js/c4g-router-time-conversions.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toHumanDistance=function(e){var r;return r=parseInt(e,10),(r/=1e3)>=100?r.toFixed(0)+" km":r>=10?r.toFixed(1)+" km":r>=.1?r.toFixed(2)+" km":(1e3*r).toFixed(0)+" m"},r.toHumanTime=function(e){var r,t,a;return r=parseInt(e,10),t=parseInt(r/60,10),r%=60,a=parseInt(t/60,10),t%=60,0===a&&0===t?r+" s":0===a?t+" min":a+" h "+t+" min"}},"./src/Resources/public/js/c4g-routing-permalink.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RoutingPermalink=void 0;var o=a(t("./node_modules/@babel/runtime/regenerator/index.js")),n=a(t("./node_modules/@babel/runtime/helpers/slicedToArray.js")),s=a(t("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),i=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),c=a(t("./node_modules/@babel/runtime/helpers/defineProperty.js"));r.RoutingPermalink=function(){return(0,l.default)((function e(r){(0,i.default)(this,e),(0,c.default)(this,"_router",void 0),this._router=r,this.linkFragments={},this.rawFragments={}}),[{key:"router",get:function(){return this._router},set:function(e){this._router=e}},{key:"updateLinkFragments",value:function(e,r){this.linkFragments||(this.linkFragments={}),this.linkFragments[e]=r,this.updateUrl()}},{key:"updateUrl",value:function(){var e="?mapsParams=",r=this.linkFragments;if(r.mode&&"area"===r.mode){e+=r.mode?"m:"+r.mode+"/":"",e+=r.addressArea?"a:"+r.addressArea[0]+","+r.addressArea[1]+"/":"",e+=r.detourArea?"d:"+r.detourArea+"/":"",e+=r.searchType?"s:"+r.searchType+"/":"",e+=r.forceStart?"f:"+r.forceStart:"";var t=window.location.pathname+e;history.pushState({},null,t)}else if(r.mode&&"route"===r.mode){e+=r.mode?"m:"+r.mode+"/":"",e+=r.fromAddress?"af:"+r.fromAddress[0]+","+r.fromAddress[1]+"/":"",e+=r.toAddress?"at:"+r.toAddress[0]+","+r.toAddress[1]+"/":"",e+=r.detourRoute?"d:"+r.detourRoute+"/":"",e+=r.searchType?"s:"+r.searchType+"/":"",e+=r.forceStart?"f:"+r.forceStart:"";var a=window.location.pathname+e;history.pushState({},null,a)}}},{key:"handleInitialParams",value:(r=(0,s.default)(o.default.mark((function e(){var r,t,a,s,i,l,c,u,p;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.rawFragments=this.router.props.mapController.data.initialParams,!this.rawFragments){e.next=30;break}return e.next=5,this.checkForOldParams();case 5:r=this.rawFragments.split("/").map((function(e){return e.split(":")})),t={},r.forEach((function(e){var r=(0,n.default)(e,2),a=r[0],o=r[1];return t[a]=o})),a=this.router.props.mapController.data.routerLayers,s="",e.t0=o.default.keys(a);case 11:if((e.t1=e.t0()).done){e.next=28;break}if(i=e.t1.value,!a.hasOwnProperty(i)){e.next=26;break}l=a[i],e.t2=o.default.keys(l);case 16:if((e.t3=e.t2()).done){e.next=26;break}if(c=e.t3.value,!l.hasOwnProperty(c)){e.next=24;break}if(u=l[c],p=t.s,u.mapLabel!==p){e.next=24;break}return s=c,e.abrupt("break",28);case 24:e.next=16;break;case 26:e.next=11;break;case 28:this.desiredButtonRouting=s,"area"===t.m?this.handleInitialAreaSearch(t):"route"===t.m&&this.handleInitialRouteSearch(t);case 30:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"checkForOldParams",value:(e=(0,s.default)(o.default.mark((function e(){var r,t,a,n,s,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",-1===(t=this.router.props.mapController.data.initialParams).indexOf("m:")){e.next=4;break}return e.abrupt("return");case 4:if(a=t.split("/"),r+="m:"+a[0]+"/","route"!==a[0]){e.next=20;break}return e.next=9,this.router.performGeoSearch(a[1]);case 9:return n=e.sent,e.next=12,this.router.performGeoSearch(a[2]);case 12:s=e.sent,r+="af:"+n.join()+"/",r+="at:"+s.join()+"/",r+="d:"+a[3]+"/",r+="s:"+a[4]+"/",r+="f:"+a[5]+"/",e.next=27;break;case 20:return e.next=22,this.router.performGeoSearch(a[1]);case 22:i=e.sent,r+="a:"+i.join()+"/",r+="d:"+a[2]+"/",r+="s:"+a[3]+"/",r+="f:"+a[4]+"/";case 27:this.rawFragments=r;case 28:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"handleInitialAreaSearch",value:function(e){var r=e.d||this.router.props.detourRoute.initial;this.router.setState({mode:"area",detourArea:parseFloat(r)});var t=e.a;t&&(t=t.split(",")),r=e.d;var a=e.s,o=e.f;if((r||r>1)&&this.updateLinkFragments("detourArea",r),t&&2===t.length&&(this.updateLinkFragments("addressArea",t),this.router.setAreaPoint(parseFloat(t[0]),parseFloat(t[1]))),a){var n=this.router.mapData.routerLayers;e:for(var s in n)if(n.hasOwnProperty(s))for(var i in n[s])if(n[s].hasOwnProperty(i)&&(n[s][i].keys.includes(a)||n[s][i].labels.includes(a))){this.router.setState({layerArea:s,layerValueArea:i});break e}this.updateLinkFragments("searchType",a)}o&&this.updateLinkFragments("forceStart",o),jQuery(".c4g-portside-viewtriggerbar .c4g-area-search").click()}},{key:"handleInitialRouteSearch",value:function(e){var r=e.d||this.router.props.detourRoute.initial;this.router.setState({mode:"route",detourRoute:parseFloat(r)});var t=e.af?e.af.split(",").map((function(e){return parseFloat(e)})):null,a=e.at?e.at.split(",").map((function(e){return parseFloat(e)})):null;r=e.d;var o=e.s,n=e.f;if(r&&(jQuery(this.router.toggleDetourRoute).val(r),jQuery(this.router.toggleDetourRoute).trigger("input"),this.updateLinkFragments("detourRoute",e.d)),t&&this.updateLinkFragments("fromAddress",t),a&&this.updateLinkFragments("toAddress",a),o){var s=this.router.mapData.routerLayers;e:for(var i in s)if(s.hasOwnProperty(i))for(var l in s[i])if(s[i].hasOwnProperty(l)&&(s[i][l].keys.includes(o)||s[i][l].labels.includes(o))){this.router.setState({layerRoute:i,layerValueRoute:l});break e}this.updateLinkFragments("searchType",o)}n&&this.updateLinkFragments("forceStart",e.f),t&&a&&(this.router.setRouteFrom(t[0],t[1]),this.router.setRouteTo(a[0],a[1])),this.router.recalculateRoute(),jQuery(".c4g-portside-viewtriggerbar .c4g-route-search").click()}}]);var e,r}()},"./src/Resources/public/js/c4g-user-position.js":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(r,"__esModule",{value:!0}),r.UserPosition=void 0;var o=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=(a(t("./node_modules/ol/Geolocation.js")),t("./node_modules/ol/source.js")),i=t("./node_modules/ol/layer.js"),l=t("./node_modules/ol/geom.js"),c=a(t("./node_modules/ol/Feature.js")),u=t("./src/Resources/public/js/c4g-maps-i18n.js");r.UserPosition=(0,o.default)((function e(r){(0,n.default)(this,e);var t=this;this.mapController=r;var a=(0,u.getLanguage)(r.data);this.feature=new c.default,this.feature.set("tooltip",a.TOOLTIP_POSITION),this.feature.set("noCursor",!0);var o=new i.Vector({source:new s.Vector({features:[this.feature]})});this.mapController.map.addLayer(o),this.mapController.data&&this.mapController.data.userLocationStyle&&this.mapController.proxy.locationStyleController.loadLocationStyles([this.mapController.data.userLocationStyle],{done:function(){if(t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].style){var e=t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].style;t.feature.setStyle(e)}else{var r=t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].getStyleFunction();t.mapController.proxy.locationStyleController.arrLocStyles[t.mapController.data.userLocationStyle].style=r,t.feature.setStyle(r)}}}),this.mapController.geolocation.on("change",(function(e){var r=t.mapController.geolocation.getPosition();if(r){var a=new l.Point(r);t.feature.setGeometry(a)}else window.setTimeout((function(){t.mapController.geolocation.dispatchEvent("change")}),200)})),this.mapController.geolocation.getTracking()&&this.mapController.geolocation.dispatchEvent("change")}))},"./src/Resources/public/js/components/c4g-maps.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=t("./src/Resources/public/js/c4g-maps-proxy.js"),p=t("./src/Resources/public/js/c4g-maps-constant.js"),b=t("./src/Resources/public/js/c4g-maps-misc-spinner.js"),d=t("./src/Resources/public/js/c4g-maps-misc-maphover.js"),h=t("./node_modules/ol/layer.js"),m=a(t("./node_modules/ol/control/Control.js")),g=t("./src/Resources/public/js/c4g-maps-utils.js"),f=t("./src/Resources/public/js/c4g-maps-controls.js"),y=t("./src/Resources/public/js/c4g-maps-i18n.js"),_=t("./node_modules/ol/index.js"),k=t("./node_modules/ol/proj.js"),v=t("./node_modules/ol/interaction.js"),w=t("./node_modules/ol/control.js"),S=(t("./node_modules/ol/geom.js"),a(t("./node_modules/ol/Feature.js"))),C=t("./node_modules/ol/extent.js"),R=t("./node_modules/ol/events/condition.js"),E=a(t("./node_modules/react-dom/index.js")),O=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=j(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),T=(a(t("./node_modules/ol/layer/Tile.js")),t("./src/Resources/public/js/routing-constant-i18n-en.js")),x=t("./src/Resources/public/js/routing-constant-i18n-de.js"),P=t("./src/Resources/public/js/c4g-user-position.js"),I=t("./src/Resources/public/js/components/c4g-router-view.jsx");function j(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(j=function(e){return e?t:r})(e)}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}var A=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-geosearch_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-geosearch.jsx"))})),F=O.default.lazy((function(){return Promise.all([t.e("vendors-node_modules_opening_hours_build_opening_hours_js"),t.e("src_Resources_public_js_components_c4g-feature-filter_jsx")]).then(t.bind(t,"./src/Resources/public/js/components/c4g-feature-filter.jsx"))})),M=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-baselayerswitcher_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-baselayerswitcher.jsx"))})),z=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-starboard-panel_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-starboard-panel.jsx"))})),N=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-starboard-scope_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-starboard-scope.jsx"))})),D=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-infopage_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-infopage.jsx"))})),B=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-measuretools_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-measuretools.jsx"))})),G=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-permalink_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-permalink.jsx"))})),U=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom.jsx"))})),H=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom-extent_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom-extent.jsx"))})),K=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom-home_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom-home.jsx"))})),W=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-zoom-position_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-zoom-position.jsx"))})),V=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-grid_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-grid.jsx"))})),Z=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-rotate_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-rotate.jsx"))})),q=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-fullscreen_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-fullscreen.jsx"))})),Q=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-print_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-print.jsx"))})),J=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-overviewmap_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-overviewmap.jsx"))})),X=O.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-editor-component_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-editor-component.jsx"))})),Y={},$={arrFromPositions:[],arrFromNames:[],arrToPositions:[],arrToNames:[],arrOverPositions:{},arrOverNames:{}},ee={};r.default=function(e){function r(e){var t,a,o,s;(0,n.default)(this,r),a=this,o=r,s=[e],o=(0,l.default)(o),t=(0,i.default)(a,L()?Reflect.construct(o,s||[],(0,l.default)(a).constructor):o.apply(a,s));var c=e.mapData;t.state={objLayers:[],arrLayerStates:[],openComponent:null,objTabLayers:[],styleData:{},arrTabLayerStates:[],activeBaselayerId:null},t.setObjLayers=t.setObjLayers.bind(t),t.setBaselayerId=t.setBaselayerId.bind(t),t.setLayerStates=t.setLayerStates.bind(t),t.changeActiveLayers=t.changeActiveLayers.bind(t),t.setTabStates=t.setTabStates.bind(t),t.setLocStyles=t.setLocStyles.bind(t),t.changeCollapseState=t.changeCollapseState.bind(t),t.map=null,ee=(0,y.getLanguage)(c);var T,x,I,j,A,M=t,z=!1,N=[],D=[];if("LOCATIONS"!==(c=jQuery.extend({api:{},addIdToDiv:!1,mapId:1,mapDiv:"c4g_map",center:{},calc_extent:"CENTERZOOM",attribution:{},editor:{},measuretools:{},infopage:{},account:"",starboard:{},layerswitcher:{},baselayerswitcher:{},geosearch:{}},c)).calc_extent&&"CENTERLOCS"!==c.calc_extent||(c=jQuery.extend({min_gap:25},c)),c.center=jQuery.extend({lat:52.22,lon:9.43,rotation:0,zoom:6},c.center),c.attribution=jQuery.extend({enable:!0,collapsed:!1,collapsible:!0},c.attribution),c.geosearch=jQuery.extend({enable:!1,div:!1},c.geosearch),c.permalink=jQuery.extend({enable:!1,get_parameter:!1},c.permalink),t.data=c,c.addIdToDiv&&(c.mapDiv+="_"+c.mapId),c.caching&&(window.onbeforeunload=function(){var e=M.getCurrentLayerStates(M.state.arrLayerStates);g.utils.storeValue("layers",e),g.utils.storeValue("tstampc4g",Date.now())}),window.MooTools&&Browser.Document&&(Document=Browser.Document),c.permalink.enable)if(z=g.utils.getUrlParam(c.permalink.get_parameter))switch((z=z.split("/")).length){case 6:z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],z[3]=parseFloat(z[3]),c.center.rotation=isNaN(z[3])?c.center.rotation:z[3],z[4]=parseInt(z[4],10),c.baselayer=isNaN(z[4])?c.baselayer:z[4],c.layers=z[5].split(":"),c.layers=g.utils.deltaDecode(c.layers);break;case 3:z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],c.calc_extent="CENTERZOOM";break;case 2:z[0]=parseInt(z[0],10),c.baselayer=isNaN(z[0])?c.baselayer:z[0],c.layers=z[1].split(":"),c.layers=g.utils.deltaDecode(c.layers);break;case 1:c.layers=z[0].split(":"),c.layers=g.utils.deltaDecode(c.layers);break;default:z=!1,c.layers=!1}else z=!1;else(z=g.utils.getUrlParam(c.permalink.get_parameter))&&(3===(z=z.split("/")).length?(z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],c.calc_extent="CENTERZOOM"):4===z.length&&(z[0]=parseFloat(z[0]),c.center.lon=isNaN(z[0])?c.center.lon:z[0],z[1]=parseFloat(z[1]),c.center.lat=isNaN(z[1])?c.center.lat:z[1],z[2]=parseInt(z[2],10),c.center.zoom=isNaN(z[2])?c.center.zoom:z[2],z[3]=parseInt(z[3],10),c.default_baselayer=z[3],c.calc_extent="CENTERZOOM"),z=!1);if(t.proxy=new u.MapProxy({mapController:t}),t.components=t.components||{},t.hideOtherComponents=t.hideOtherComponents.bind(t),t.hideOtherBottomComponents=t.hideOtherBottomComponents.bind(t),t.getActiveComponents=t.getActiveComponents.bind(t),window.c4gMapsHooks.map_center_changed=window.c4gMapsHooks.map_center_changed||[],window.c4gMapsHooks.map_center_changed.push((function(e){var r=g.utils.getUrlParam(c.permalink.get_parameter);r&&r&&(r=r.split("/")).length>=3&&(e=(0,k.transform)(e,"EPSG:3857","EPSG:4326"),r[0]=e[0],r[1]=e[1],g.utils.setUrlParam(r.join("/"),c.permalink.get_parameter,!0))})),window.c4gMapsHooks.hook_map_zoom=window.c4gMapsHooks.hook_map_zoom||[],window.c4gMapsHooks.hook_map_zoom.push((function(e){var r=g.utils.getUrlParam(c.permalink.get_parameter);r&&r&&(r=r.split("/")).length>=3&&(r[2]=parseInt(I.getZoom(),10)||r[2],g.utils.setUrlParam(r.join("/"),c.permalink.get_parameter,!0))})),c.permalink.withoutGenerator&&!g.utils.getUrlParam(c.permalink.get_parameter)&&c.center){var B=[];B.push(c.center.lon),B.push(c.center.lat),B.push(c.center.zoom),g.utils.setUrlParam(B.join("/"),c.permalink.get_parameter,!0)}if(T=c.minZoom&&c.minZoom>0?c.minZoom:0,x=c.maxZoom&&c.maxZoom>0?c.maxZoom:19,c.caching&&g.utils.getValue("tstampc4g")&&g.utils.getValue("tstampc4g")+604800>Date.now()&&(g.utils.getValue("lon")&&g.utils.getValue("lat")&&(c.center.lon=g.utils.getValue("lon"),c.center.lat=g.utils.getValue("lat")),g.utils.getValue("zoom")&&(c.center.zoom=g.utils.getValue("zoom")),g.utils.getValue("layers")&&(c.layers=g.utils.getValue("layers"))),c.restr_bottomleft_lon&&c.restr_bottomleft_lat&&c.restr_topright_lon&&c.restr_topright_lat){var G=[parseFloat(c.restr_bottomleft_lon),parseFloat(c.restr_bottomleft_lat),parseFloat(c.restr_topright_lon),parseFloat(c.restr_topright_lat)];G=(0,k.transformExtent)(G,"EPSG:4326","EPSG:3857"),I=new _.View({extent:G,center:(0,k.transform)([parseFloat(c.center.lon),parseFloat(c.center.lat)],"EPSG:4326","EPSG:3857"),zoom:parseFloat(c.center.zoom),minZoom:parseInt(T,10),maxZoom:parseInt(x,10),rotation:parseFloat(c.center.rotation)})}else I=new _.View({center:(0,k.transform)([parseFloat(c.center.lon),parseFloat(c.center.lat)],"EPSG:4326","EPSG:3857"),zoom:parseFloat(c.center.zoom),minZoom:parseInt(T,10),maxZoom:parseInt(x,10),rotation:parseFloat(c.center.rotation)});if(t.geolocation=new _.Geolocation({tracking:!1,projection:I.getProjection()}),t.geolocation.on("change",(function(e){for(var r in t.geolocation.arrFuncs)t.geolocation.arrFuncs.hasOwnProperty(r)&&t.geolocation.arrFuncs[r](e,r)})),c.geolocation&&!z&&(t.geolocation.once("change",(function(e){var r=this.getPosition();if(c.geolocation_extent&&c.geolocation_extent[0]){var t=(0,k.fromLonLat)([c.geolocation_extent[0],c.geolocation_extent[1]]),a=(0,k.fromLonLat)([c.geolocation_extent[2],c.geolocation_extent[3]]),o=(0,C.boundingExtent)([t,a]);if(!r||!(0,C.containsCoordinate)(o,r))return}r&&I.setCenter(r),c.geolocation_zoom&&I.setZoom(parseInt(c.geolocation_zoom,10)),M.map&&(M.map.setView(I),M.$overlaycontainer_stopevent)})),t.geolocation.getTracking()&&t.geolocation.dispatchEvent("change")),c.profile||(N=(0,w.defaults)(),D=(0,v.defaults)()),c.geopicker&&"backend"===c.geopicker.type?(c.default_baselayer&&t.proxy.hook_baselayer_loaded.push((function(e){M.proxy.baselayerController.arrBaselayers.hasOwnProperty(c.default_baselayer)&&M.proxy.baselayerController.showBaseLayer(c.default_baselayer)})),t.map=new _.Map({controls:N,interactions:D,layers:[new h.Group({title:"Base maps",layers:[],checkSum:"baseMapsLayer"})],loadTilesWhileAnimating:!0,target:c.mapDiv,view:I})):(c.default_baselayer&&t.proxy.hook_baselayer_loaded.push((function(e){c.baselayer&&e.indexOf(c.baselayer.toString())>-1&&(c.default_baselayer=c.baselayer),c.caching&&g.utils.getValue("baselayer")&&(c.default_baselayer=g.utils.getValue("baselayer")),M.proxy.baselayerController.showBaseLayer(c.default_baselayer)})),t.map=new _.Map({controls:N,interactions:D,layers:[new h.Group({title:"Base maps",layers:[],checkSum:"baseMapsLayer"})],loadTilesWhileAnimating:!0,target:c.mapDiv,view:I})),window.c4gMapsHooks&&window.c4gMapsHooks.changeInitialView&&g.utils.callHookFunctions(window.c4gMapsHooks.changeInitialView,{mapData:c,view:I}),c.map=t.map,(j=document.getElementById(c.mapDiv))||(j=document.getElementById("#"+c.mapDiv))||(j=document.getElementById("."+c.mapDiv)),!j||!j.style)return console.warn("can not get element by id mapData.mapDiv"),(0,i.default)(t);if(c.width)if(c.margin){var U=c.margin.split(" "),H=0,K=0;switch(U.length){case 4:H=U[1],K=U[3];break;case 2:H=U[1],K=U[1];break;case 1:H=U[0],K=U[0]}0==K&&(K+="px"),0==H&&(H+="px"),j.style.width="calc("+c.width+" - "+K+" - "+H+")"}else j.style.width=c.width;if(c.height)j.style.height=c.height;else if(c.geopicker&&"backend"===c.geopicker.type){var W=j.parentElement.parentElement.offsetHeight;j.style.height="calc(100vh - "+W+"px)",j.style.minHeight="480px",j.style.maxWidth="100vw"}else if(j.parentElement&&j.parentElement.parentElement&&!j.parentElement.parentElement.offsetHeight)j.style.height="100vh";else if(j.parentElement&&j.parentElement.parentElement){var V=j.parentElement.parentElement.offsetHeight;V<320&&(V=320),j.style.height=V+"px"}if(c.margin&&(j.style.padding=c.margin),t.$overlaycontainer_stopevent=jQuery("#"+c.mapDiv+" ."+p.cssConstants.OL_OVERLAYCONTAINER_SE),t.map.updateSize(),t.proxy.initialize(),t.spinner=new b.Spinner({className:p.cssConstants.LARGE}),t.mapHover=new d.MapHover({mapController:t}),c.mouse_nav&&(c.mouse_nav.drag_pan&&(A=c.mouse_nav.kinetic?new _.Kinetic(-.005,.05,100):null,t.map.addInteraction(new v.DragPan({kinetic:A,condition:function(e){return!c.touch_nav.twoFingers||"mouse"===e.originalEvent.pointerType||!e.activePointers||1!==e.activePointers.length}}))),c.mouse_nav.wheel_zoom&&t.map.addInteraction(new v.MouseWheelZoom),c.mouse_nav.doubleclick_zoom&&t.map.addInteraction(new v.DoubleClickZoom),c.mouse_nav.drag_zoom&&t.map.addInteraction(new v.DragZoom({condition:R.shiftKeyOnly})),c.rotate)&&t.map.addInteraction(new v.DragRotateAndZoom({condition:function(e){var r=e.originalEvent;return r.ctrlKey&&r.shiftKey}})),c.touch_nav&&(c.touch_nav.rotate&&t.map.addInteraction(new v.PinchRotate),c.touch_nav.zoom&&t.map.addInteraction(new v.PinchZoom({constrainResolution:!0}))),c.keyboard_nav&&(c.keyboard_nav.pan&&t.map.addInteraction(new v.KeyboardPan),c.keyboard_nav.zoom&&t.map.addInteraction(new v.KeyboardZoom)),t.mapsControls=new f.MapsControls(t),t.mapsControls.init(),c.layerswitcher.enable&&(c.starboard.div?(t.reactContainer=document.querySelector("."+c.starboard.div),t.reactContainer?t.reactContainer.className+=" c4g-external ol-unselectable":(t.reactContainer=document.createElement("div"),t.reactContainer.className="c4g-sideboard c4g-starboard-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.reactContainer))):(t.reactContainer=document.createElement("div"),t.reactContainer.className="c4g-sideboard c4g-starboard-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.reactContainer)),c.starboard.open?t.reactContainer.className+=" c4g-open":t.reactContainer.className+=" c4g-close"),c.baselayerswitcher.enable&&(c.baselayerswitcher.div?(t.baselayerContainer=document.querySelector("."+c.baselayerswitcher.div),t.baselayerContainer?t.baselayerContainer.className+=" c4g-external c4g-baselayer-container ol-unselectable":(t.baselayerContainer=document.createElement("div"),t.baselayerContainer.className="c4g-sideboard c4g-baselayer-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.baselayerContainer))):(t.baselayerContainer=document.createElement("div"),t.baselayerContainer.className="c4g-sideboard c4g-baselayer-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.baselayerContainer)),c.starboard.open?t.baselayerContainer.className+=" c4g-open":t.baselayerContainer.className+=" c4g-close"),c.starboardscope.enable&&(c.starboardscope.div?(t.starboardscopeContainer=document.querySelector("."+c.starboardscope.div),t.starboardscopeContainer?t.starboardscopeContainer.className+=" c4g-external c4g-starboardscope-container ol-unselectable":(t.starboardscopeContainer=document.createElement("div"),t.starboardscopeContainer.className="c4g-sideboard c4g-starboardscope-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.starboardscopeContainer))):(t.starboardscopeContainer=document.createElement("div"),t.starboardscopeContainer.className="c4g-sideboard c4g-starboardscope-container ol-unselectable",t.$overlaycontainer_stopevent.append(t.starboardscopeContainer)),c.starboardscope.open?t.starboardscopeContainer.className+=" c4g-open":t.starboardscopeContainer.className+=" c4g-close"),c.filterDiv&&(c.filterDiv="."===c.filterDiv[0]||"#"===c.filterDiv[0]?c.filterDiv:"."+c.filterDiv,t.filterContainerParent=document.querySelector(c.filterDiv),t.filterContainerParent&&(t.filterContainerParent.className+=" c4g-external",t.filterContainer=document.createElement("div"),E.default.render(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"loading..."')},O.default.createElement(F,{target:document.querySelector(c.filterDiv),mapController:t,direction:"top",className:"c4g-feature-filter"})),t.filterContainer),t.filterContainerParent.append(t.filterContainer))),c.legend.enable&&(c.legend.div?(t.infoPageContainer=document.querySelector("."+c.legend.div),t.infoPageContainer?t.infoPageContainer.className+=" c4g-external c4g-infopage-container ol-unselectable":(t.infoPageContainer=document.createElement("div"),t.infoPageContainer.className="c4g-sideboard c4g-infopage-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.infoPageContainer))):(t.infoPageContainer=document.createElement("div"),t.infoPageContainer.className="c4g-sideboard c4g-infopage-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.infoPageContainer))),c.measuretools.enable){var Z="measuretools"===c.initial_open_comp?"c4g-open":"c4g-close";c.measuretools.div?(t.measuretoolsContainer=document.querySelector("."+c.measuretools.div),t.measuretoolsContainer?t.measuretoolsContainer.className+=" c4g-external c4g-measuretools-container ol-unselectable":(t.measuretoolsContainer=document.createElement("div"),t.measuretoolsContainer.className="c4g-sideboard c4g-measuretools-container ol-unselectable "+Z,t.$overlaycontainer_stopevent.append(t.measuretoolsContainer))):(t.measuretoolsContainer=document.createElement("div"),t.measuretoolsContainer.className="c4g-sideboard c4g-measuretools-container ol-unselectable "+Z,t.$overlaycontainer_stopevent.append(t.measuretoolsContainer))}if(c.permalink.enable&&(c.permalink.div?(t.permalinkContainer=document.querySelector(".c4g-external-permalink-container"),t.permalinkContainer?t.permalinkContainer.className+=" c4g-external":(t.permalinkContainer=document.createElement("div"),t.permalinkContainer.className="c4g-sideboard c4g-permalink-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.permalinkContainer))):(t.permalinkContainer=document.createElement("div"),t.permalinkContainer.className="c4g-sideboard c4g-permalink-container ol-unselectable c4g-close",t.$overlaycontainer_stopevent.append(t.permalinkContainer))),c.overviewmap&&(t.overviewContainer=document.createElement("div"),t.overviewContainer.className="c4g-sideboard c4g-overviewmap-container c4g-close",t.$overlaycontainer_stopevent.append(t.overviewContainer)),c.geopicker&&c.geopicker.type,c.themeData){j=document.getElementById(c.mapDiv),c.themeData.useglobal&&(j=document.getElementById("wrapper"));var q="100%",Q="100%";if(c.width&&(q=c.width),Q=c.height?c.height:j&&j.offsetHeight&&j.offsetHeight?"100%":"100vh",j&&j.style&&(j.style.setProperty("--map-height",Q),j.style.setProperty("--map-width",q)),c.themeData.maincolor){var J=g.utils.getRgbaFromHexAndOpacity(c.themeData.maincolor,c.themeData.mainopacity),X=g.utils.getRgbaFromHexAndOpacity(c.themeData.fontcolor,c.themeData.fontopacity),Y=g.utils.getRgbaFromHexAndOpacity(c.themeData.shadowcolor,c.themeData.shadowopacity),$=g.utils.getRgbaFromHexAndOpacity(c.themeData.popupMaincolor,c.themeData.popupMainopacity),re=g.utils.getRgbaFromHexAndOpacity(c.themeData.popupFontcolor,c.themeData.popupFontopacity);j&&j.style&&(j.style.setProperty("--main-color",J),j.style.setProperty("--font-color",X),j.style.setProperty("--pu-main-color",$),j.style.setProperty("--pu-font-color",re),j.style.setProperty("--shadow-color",Y))}j&&c.themeData.buttonradius&&(j.style.setProperty("--button-radius-percent",c.themeData.buttonradius+"%"),j.style.setProperty("--button-radius-pixel",c.themeData.buttonradius+"px")),j&&c.themeData.buttonsize&&j.style.setProperty("--button-size-pixel",c.themeData.buttonsize+"px"),j&&c.themeData.fontsize&&j.style.setProperty("--button-fontsize-pixel",c.themeData.fontsize+"px"),j&&c.themeData.popupMaxWidth&&j.style.setProperty("--popup-max-width",c.themeData.popupMaxWidth+"%")}if(c.caching){var te=g.utils.getValue("popupInfos");if(te&&parseInt(c.popupHandling,10)){t.data.initial_open_comp="";var ae=JSON.parse(te),oe=new S.default;oe.set("popup",ae);var ne=new h.Vector;window.setTimeout((function(){t.proxy.handlePopup(oe,ne)}),100)}}var se=t;if(t.map.on("change:size",(function(){se.setState({}),se.map&&se.map.getSize()&&j&&j.style&&j.style.setProperty("--map-height",se.map.getSize()[1]+"px")})),c.userLocation&&new P.UserPosition(t),window.c4gMapsHooks.addControls){var ie=[];for(var le in g.utils.callHookFunctions(window.c4gMapsHooks.addControls,ie),ie)ie.hasOwnProperty(le)&&t.map.addControl(new m.default(ie[le]))}return t}return(0,c.default)(r,e),(0,s.default)(r,[{key:"setLayersInitial",value:function(e,r){this.setState({objLayers:e,arrLayerStates:r})}},{key:"setBaselayerId",value:function(e){this.setState({activeBaselayerId:e})}},{key:"setObjLayers",value:function(e){this.setState({objLayers:e})}},{key:"setLocStyles",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r?this.setState({styleData:e},r()):this.setState({styleData:e})}},{key:"setLayerStates",value:function(e){if(this._isMounted&&e&&e.length>0){var r=!1;for(var t in e)e.hasOwnProperty(t)&&e[t]!==this.state.arrLayerStates&&(r=!0);r&&this.setState({arrLayerStates:e})}}},{key:"getCurrentLayerStates",value:function(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&(e[t].active&&r.push(e[t].id),e[t].childStates&&(r=r.concat(this.getCurrentLayerStates(e[t].childStates))));return r}},{key:"setLayerStateWithId",value:function(e,r){var t=this.state.arrLayerStates;for(var a in t)t.hasOwnProperty(a)&&(t[a]=this.getLayerStateWithId(t[a],e,r));this.setState({arrLayerStates:t})}},{key:"getLayerStateWithId",value:function(e,r,t){for(var a in e.id===r&&(e.active=t),e.childStates)e.childStates.hasOwnProperty(a)&&(e.childStates[a]=this.getLayerStateWithId(e.childStates[a],r,t));return e}},{key:"changeActiveLayers",value:function(e){var r=this.state.arrLayerStates;for(var t in r)if(r.hasOwnProperty(t)){if("all"!==this.state.objLayers[t].activeForBaselayers){var a=r[t].active;r[t].active=!!this.state.objLayers[t].activeForBaselayers.find((function(r){return r===e})),a!==r[t].active&&(r[t].active?this.proxy.layerController.show(this.state.objLayers[t].id,this.state.objLayers[t].features||this.state.objLayers[t].vectorLayer):this.proxy.layerController.hide(this.state.objLayers[t].id,this.state.objLayers[t].features||this.state.objLayers[t].vectorLayer))}for(var o in r[t].childStates)r[t].childStates.hasOwnProperty(o)&&(r[t].childStates[o]=this.changeActiveLayerChilds(r[t].childStates[o],this.state.objLayers[t].childs[o],e))}this.setState({arrLayerStates:r})}},{key:"changeActiveLayerChilds",value:function(e,r,t){if("all"!==r.activeForBaselayers){var a=e.active;e.active=!!r.activeForBaselayers.find((function(e){return e===t})),a!==e.active&&(e.active?this.proxy.layerController.show(r.id,r.features||r.vectorLayer):this.proxy.layerController.hide(r.id,r.features||r.vectorLayer))}for(var o in e.childStates)e.childStates.hasOwnProperty(o)&&(e.childStates[o]=this.changeActiveLayerChilds(e.childStates[o],r.childs[o],t));return e}},{key:"setTabLayers",value:function(e,r){this.setState({objTabLayers:e,arrTabLayerStates:r})}},{key:"setTabStates",value:function(e){this.setState({arrTabLayerStates:e})}},{key:"hideOtherComponents",value:function(e){var r=this.components;for(var t in r)r.hasOwnProperty(t)&&r[t]&&r[t]!==e&&(r[t].close?r[t].close():r[t].setState({open:!1}))}},{key:"changeCollapseState",value:function(e,r){var t=this.state.arrLayerStates;t[e]=r,this.setState({arrLayerStates:t})}},{key:"hideOtherBottomComponents",value:function(e){var r=this.components;for(var t in r)r.hasOwnProperty(t)&&r[t]&&r[t]!==e&&r[t].setState({openResults:!1})}},{key:"getActiveComponents",value:function(){var e=this.components,r=[];for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].state.open&&r.push(e[t]);return r}},{key:"render",value:function(){var e=this,r=this.data,t=document.querySelector("#"+r.mapDiv+" .c4g-control-container-top-left");this.arrComponents=this.arrComponents||[{name:"layerswitcher",sort:r.layerswitcher.enable},{name:"geosearch",sort:r.geosearch.enable},{name:"legend",sort:r.legend.enable},{name:"baselayerswitcher",sort:r.baselayerswitcher.enable},{name:"starboardscope",sort:r.starboardscope.enable},{name:"measuretools",sort:r.measuretools.enable},{name:"permalink",sort:r.permalink.enable},{name:"zoom",sort:r.zoom},{name:"zoomPosition",sort:r.zoomPosition},{name:"zoomHome",sort:r.zoomHome},{name:"zoomExtent",sort:r.zoomExtent},{name:"fullscreen",sort:r.fullscreen},{name:"print",sort:r.print},{name:"rotate",sort:r.rotate},{name:"graticule",sort:r.graticule},{name:"overview",sort:r.overviewmap},{name:"router",sort:r.router_enable},{name:"editor",sort:r.editor.enable}];var a="",o=this.data.caching?g.utils.getValue("panel"):"";o&&(r.initial_open_comp=""),r.layerswitcher.enable&&(a=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(z,{ref:function(r){e.components.starboard=r},target:t,mapController:this,objLayers:this.state.objLayers,styleData:this.state.styleData,tabLayers:this.state.objTabLayers,tabStates:this.state.arrTabLayerStates,layerStates:this.state.arrLayerStates,parentCallback:this.setLayerStates,tabCallback:this.setTabStates,direction:"right",open:"starboard"===r.initial_open_comp||"StarboardPanel"===o,changeCollapseState:this.changeCollapseState,external:-1!==this.reactContainer.className.indexOf("c4g-external")})),this.reactContainer));var n="";if(r.geosearch.enable){var s=this.createGeosearchOptions();s.ref=function(r){e.components.geosearch=r},n=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(A,s)),this.searchContainer)}var i="",l=void 0,c=void 0;this.proxy.baselayers_loaded&&(l=this.proxy.baselayerController.arrBaselayers[this.state.activeBaselayerId])&&l.hasOverlays&&(c=l.overlays[0]);var u=r.infopage;u&&l&&l.infopage?u=u+" "+l.infopage:l&&l.infopage&&(u=l.infopage),u&&c&&c.infopage?u=u+" "+c.infopage:c&&c.infopage&&(u=c.infopage),u&&r.legend.enable&&(i=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(D,{ref:function(r){e.components.infopage=r},target:t,external:-1!==this.infoPageContainer.className.indexOf("c4g-external"),infoContent:u,mapController:this,open:"legend"===r.initial_open_comp||"Infopage"===o})),this.infoPageContainer));var p="";r.baselayerswitcher.enable&&(p=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(M,{ref:function(r){e.components.baselayerSwitcher=r},target:t,open:"baselayers"===r.initial_open_comp||"BaselayerSwitcher"===o,changeActiveLayers:this.changeActiveLayers,external:-1!==this.baselayerContainer.className.indexOf("c4g-external"),mapController:this,baselayerController:this.proxy.baselayerController})),this.baselayerContainer));var b="";r.starboardscope.enable&&(b=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(N,{ref:function(r){e.components.starboardScope=r},target:t,open:"starboardscope"===r.initial_open_comp||"StarboardScope"===o,mapController:this})),this.starboardscopeContainer));var d="";r.measuretools.enable&&(d=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"Loading..."')},O.default.createElement(B,{ref:function(r){e.components.measuretools=r},target:t,open:"measuretools"===r.initial_open_comp||"MeasureTools"===o,mapController:this})),this.measuretoolsContainer));var m="";r.permalink.enable&&(m=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,'"loading..."')},O.default.createElement(G,{ref:function(r){e.components.permalink=r},saveIds:r.permalink.saveIds,mapController:this,target:t,external:-1!==this.permalinkContainer.className.indexOf("c4g-external")})),this.permalinkContainer));var f="";if(r.overviewmap){var y;if(this.proxy.baselayers_loaded){var _=this.proxy.baselayerController.arrBaselayers[this.state.activeBaselayerId].layer;y=_ instanceof h.Group?_.getLayers().getArray()[0].getSource():_.getSource()}f=E.default.createPortal(O.default.createElement(O.Suspense,{fallback:O.default.createElement("div",null,"Loading...")},O.default.createElement(J,{ref:function(r){e.components.overviewMap=r},mapController:this,target:t,source:y,ovmTarget:this.overviewContainer,collapsed:!0,key:23})),this.overviewContainer)}var k=[];this.arrComponents.sort((function(e,r){return e.sort>r.sort?1:-1})),this.arrComponents=this.arrComponents.filter((function(e){return e.sort&&e.sort>0}));for(var v=0;v{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.PopupContainer=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=d(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),p=t("./src/Resources/public/js/c4g-maps-i18n.js"),b=t("./src/Resources/public/js/c4g-maps-utils.js");function d(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(d=function(e){return e?t:r})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var m=u.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-titlebar_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-titlebar.jsx"))}));r.PopupContainer=function(e){function r(e){var t,a,o,s;return(0,n.default)(this,r),a=this,o=r,s=[e],o=(0,l.default)(o),(t=(0,i.default)(a,h()?Reflect.construct(o,s||[],(0,l.default)(a).constructor):o.apply(a,s))).state={content:"",open:e.open,detailsOpen:!1,activeComps:e.activeComps,conststr:!1},e.hideOther(t),t.routeButtons="",t.language=(0,p.getLanguage)(t.props.mapData),t.close=t.close.bind(t),t.toggleDetails=t.toggleDetails.bind(t),t}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r=this.props.external?"c4g-popup-container ":"c4g-sideboard c4g-popup-container ";this.state.open?r+="c4g-open ":r+="c4g-close",this.props.alwaysExtended||this.state.detailsOpen?r+=" c4g-details-open":r+=" c4g-details-closed";var t="c4g-popup-header",a=u.default.createElement("div",null);return this.state.conststr&&(t+=" c4g-routing",a=u.default.createElement(this.state.conststr,{config:this.state.config})),this.state.content?u.default.createElement("div",{className:r},u.default.createElement("div",{className:"c4g-popup-wrapper"},u.default.createElement(u.Suspense,{fallback:u.default.createElement("div",null,"Loading...")},u.default.createElement(m,{wrapperClass:t,headerClass:"c4g-popup-header-headline",header:this.props.mapData.popupHeadline||"",closeBtnClass:"c4g-titlebar-close",closeBtnCb:function(){e.close(!0)},closeBtnTitle:this.language.CLOSE,detailBtnClass:"",detailBtnCb:""},a)),u.default.createElement("div",{className:"c4g-popup-content",dangerouslySetInnerHTML:{__html:this.state.content}}))):null}},{key:"setAddButtons",value:function(e,r){this.setState({config:r,conststr:e})}},{key:"setContent",value:function(e){this.setState({content:e})}},{key:"open",value:function(e){this.props.external||this.props.hideOther(),this.setState({open:!0,activeComps:e})}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.props.mapData.caching&&b.utils.storeValue("popupInfos",""),e&&this.state.activeComps)for(var r in this.state.activeComps)this.state.activeComps.hasOwnProperty(r)&&this.state.activeComps[r].setState({open:!0});var t={open:!1,content:this.props.external?"":this.state.content};this.setState(t)}},{key:"toggleDetails",value:function(){this.setState({detailsOpen:!this.state.detailsOpen})}},{key:"componentDidUpdate",value:function(e,r,t){r.open&&!this.state.open&&this.props.mapData.caching&&b.utils.storeValue("popupInfos","")}}])}(u.Component)},"./src/Resources/public/js/components/c4g-router-popup-buttons.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RouterPopupButtons=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=h(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),p=t("./node_modules/ol/geom.js"),b=(t("./src/Resources/public/js/routing-constant-i18n.js"),t("./node_modules/ol/proj.js")),d=a(t("./node_modules/ol/format/GPX.js"));function h(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(h=function(e){return e?t:r})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}r.RouterPopupButtons=function(e){function r(e){return(0,n.default)(this,r),t=this,a=r,o=[e],a=(0,l.default)(a),(0,i.default)(t,m()?Reflect.construct(a,o||[],(0,l.default)(t).constructor):a.apply(t,o));var t,a,o}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r=this,a=this.props.config.feature.getGeometry();if(a){if(a instanceof p.LineString)return u.default.createElement("div",null,u.default.createElement("button",{className:"c4g-icon c4g-popup-route-download",title:this.props.config.router.languageConstants.ROUTER_DOWNLOAD,onMouseUp:function(){!function(){var e=r.props.config.feature,t=(new d.default).writeFeatures([e],{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326",decimals:3}),a=document.createElement("a");a.setAttribute("href","data:text/xml;charset=utf-8,"+encodeURIComponent(t));var o=e.get("name")||"route";a.setAttribute("download",o+".gpx"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}()}}),u.default.createElement("button",{className:"c4g-icon c4g-popup-route-edit",title:this.props.config.router.languageConstants.POPUP_ROUTE_EDIT,onMouseUp:function(){!function(){for(var o=a.getCoordinates(),n=1;o.length>15;)if(o=(a=a.simplify(n)).getCoordinates(),(n+=2)>42)return void Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(r.props.config.router.languageConstants.ROUTER_VIEW_ALERT_ERROR,r.props.config.router.languageConstants.ROUTER_ERROR_LINESTRING)}));e.props.config.router.openControls(!0),e.props.config.router.setMode("route");var s=(0,b.toLonLat)(o[0],"EPSG:3857");e.props.config.router.setRouteFrom(s[0],s[1]);var i=o.slice(1,o.length-2);e.props.config.router.addOverPoints(i);var l=(0,b.toLonLat)(o[o.length-1],"EPSG:3857");e.props.config.router.setRouteTo(l[0],l[1])}()}}));var o;if(a instanceof p.Polygon){var n=a.getExtent();o=[(n[0]+n[2])/2,(n[1]+n[3])/2]}else o=a.getCoordinates();return u.default.createElement("div",null,u.default.createElement("button",{className:"c4g-icon c4g-popup-route-from",title:this.props.config.router.languageConstants.POPUP_ROUTE_FROM,onMouseUp:function(){!function(){e.props.config.router.openControls(!0),e.props.config.router.setMode("route");var r=(0,b.toLonLat)(o,"EPSG:3857");e.props.config.router.setRouteFrom(r[0],r[1])}()}}),u.default.createElement("button",{className:"c4g-icon c4g-popup-route-to",title:this.props.config.router.languageConstants.POPUP_ROUTE_TO,onMouseUp:function(){!function(){e.props.config.router.openControls(!0),e.props.config.router.setMode("route");var r=(0,b.toLonLat)(o,"EPSG:3857");e.props.config.router.setRouteTo(r[0],r[1])}()}}))}return null}}])}(u.Component)},"./src/Resources/public/js/components/c4g-router-result-container.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RouterResultContainer=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=m(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),p=a(t("./node_modules/ol/format/GPX.js")),b=a(t("./node_modules/ol/format/GeoJSON.js")),d=t("./src/Resources/public/js/c4g-router-time-conversions.js"),h=(t("./src/Resources/public/js/components/c4g-titlebar.jsx"),a(t("./node_modules/react-dom/index.js")));function m(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(m=function(e){return e?t:r})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var f=u.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-router-instructions-container_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-router-instructions-container.jsx"))})),y=u.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-router-feature-list_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-router-feature-list.jsx"))}));r.RouterResultContainer=function(e){function r(e){var t,a,o,s;return(0,n.default)(this,r),a=this,o=r,s=[e],o=(0,l.default)(o),(t=(0,i.default)(a,g()?Reflect.construct(o,s||[],(0,l.default)(a).constructor):o.apply(a,s))).clickControl=t.clickControl.bind(t),t.profileTranslation={0:"car",1:"hgv",2:"bike",3:"bike",4:"bike",5:"bike",6:"bike",7:"bike",8:"foot",9:"foot",10:"wheelchair",11:"hgv",12:"scooter",13:"scooter"},window.c4gMapsHooks.hook_map_click=window.c4gMapsHooks.hook_map_click||[],window.c4gMapsHooks.hook_map_click.push((function(e){var r=t.props.mapController.map.forEachFeatureAtPixel(e.pixel,(function(e,r){return e}));if(r&&r.get("tid")){var a=r.get("tid");t.props.setResultFeat(e),t.props.setActiveId(a)}})),t}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r="",t="",a="",o="",n="";this.props.routerInstructions&&this.props.routerInstructions.instructions&&"route"===this.props.mode?(t=(0,d.toHumanTime)(this.props.routerInstructions.time),a=(0,d.toHumanDistance)(this.props.routerInstructions.distance)):this.props.featureList&&"area"===this.props.mode&&(o=this.props.detour,n=this.props.featureList.features.length);var s="",i=function(){var r="instr"===e.props.resultMode?".c4g-route-instructions-wrapper":".c4g-route-feature-wrapper",t=document.querySelector(r).cloneNode(!0);if("instr"===e.props.resultMode){var a=e.props.router.state.fromAddress,o=document.createElement("div"),n=document.createElement("label");n.innerHTML=e.props.lang.ROUTER_FROM+": ";var s=document.createElement("em");s.innerHTML=a,o.appendChild(n),o.appendChild(s),o.appendChild(document.createElement("em"));var i=e.props.router.state.toAddress,l=document.createElement("div"),c=document.createElement("label");c.innerHTML=e.props.lang.ROUTER_FROM+": ";var u=document.createElement("em");u.innerHTML=i,l.appendChild(c),l.appendChild(u),l.appendChild(document.createElement("em")),t.querySelector(".c4g-router-instructions-header").appendChild(o),t.querySelector(".c4g-router-instructions-header").appendChild(l)}t.querySelector(".c4g-router-print").remove();var p=window.open("","","left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0");p.document.write(t.innerHTML),p.document.close(),p.focus(),p.print(),p.close()};if(t&&a&&"route"===this.props.mode){var l=null;this.props.mapController.data.editor&&this.props.mapController.data.editor.config&&this.props.mapController.data.editor.config.drawStyles&&this.props.mapController.data.editor.config.drawStyles.LineString&&this.props.mapController.data.editor.config.drawStyles.LineString.elements&&this.props.mapController.data.editor.config.drawStyles.LineString.elements.length>0&&(l=u.default.createElement("button",{className:"c4g-router-editor",title:this.props.lang.ROUTER_EDITOR,onMouseUp:function(){e.exportEditor()}})),s=u.default.createElement("div",{className:"c4g-router-instructions-header"},u.default.createElement("div",{className:"c4g-router-route-time"},u.default.createElement("label",null,this.props.lang.ROUTER_VIEW_LABEL_TIME),u.default.createElement("em",null,t)),u.default.createElement("div",{className:"c4g-router-route-distance"},u.default.createElement("label",null,this.props.lang.ROUTER_VIEW_LABEL_DISTANCE),u.default.createElement("em",null,a)),u.default.createElement("button",{className:"c4g-router-download",title:this.props.lang.ROUTER_DOWNLOAD,onMouseUp:function(){e.exportGpx()}}),u.default.createElement("button",{className:"c4g-router-print",title:this.props.lang.ROUTER_PRINT,onMouseUp:function(){i()}}),l)}else o&&n&&"area"===this.props.mode&&(s=u.default.createElement("div",{className:"c4g-router-instructions-header"},u.default.createElement("div",{className:"c4g-router-area-detour"},u.default.createElement("label",null,this.props.lang.AREA_DETOUR,":"),u.default.createElement("em",null,o," km")),u.default.createElement("div",{className:"c4g-router-area-featurecount"},u.default.createElement("label",null,this.props.lang.AREA_FEATURECOUNT,":"),u.default.createElement("em",null,n)),u.default.createElement("button",{className:"c4g-router-print",onMouseUp:function(){i()}})));if("instr"===this.props.resultMode&&this.props.routerInstructions&&"route"===this.props.mode?r=u.default.createElement(u.Suspense,{fallback:u.default.createElement("div",null,'"loading.."')},u.default.createElement(f,{className:"c4g-route-instructions-wrapper",mapController:this.props.mapController,routerInstructions:this.props.routerInstructions,routerWaySource:this.props.routerWaySource,routerHintSource:this.props.routerHintSource,open:this.props.open,header:s})):("feat"===this.props.resultMode||"area"===this.props.mode||!this.props.routerInstructions&&this.props.featureList)&&(r=u.default.createElement(u.Suspense,{fallback:u.default.createElement("div",null,'"loading.."')},u.default.createElement(y,{className:"c4g-route-feature-wrapper",activeId:this.props.activeId,setActiveId:this.props.setActiveId,routeMode:this.props.mode,layerRoute:this.props.layerRoute,layerArea:this.props.layerArea,featureList:this.props.featureList,mapController:this.props.mapController,featureSource:this.props.featureSource,layerValueRoute:this.props.layerValueRoute,layerValueArea:this.props.layerValueArea,header:s}))),this.props.open){var c=this.props.mapController.data.routerResultDiv?document.querySelector("."+this.props.mapController.data.routerResultDiv):null;return c?h.default.createPortal(u.default.createElement("div",{className:this.props.className+(this.props.open?" c4g-open":" c4g-close")+(this.props.open?" c4g-details-open":"")},r),c):u.default.createElement("div",{className:this.props.className+(this.props.open?" c4g-open":" c4g-close")+(this.props.open?" c4g-details-open":"")},r)}return null}},{key:"componentDidUpdate",value:function(e,r){if(!e.open&&this.props.open){var t=document.querySelector("."+this.props.mapController.data.routerResultDiv);t&&(t.parentElement.className=t.parentElement.className.replace("c4g-close","")+" c4g-open",this.props.mapController.map.updateSize())}else if(e.open&&!this.props.open&&!e.open&&this.props.open){var a=document.querySelector("."+this.props.mapController.data.routerResultDiv);a&&(a.parentElement.className=a.parentElement.className.replace("c4g-open","")+" c4g-close",this.props.mapController.map.updateSize())}var o=this.props.className+(this.props.open?" c4g-open":" c4g-close"),n=document.getElementsByClassName(o)[0],s=document.querySelector(".c4g-router-panel.c4g-open");s&&(s=s[0]);var i=!!document.querySelector(".c4g_map")&&document.querySelector(".c4g_map")[0];i&&n&&s&&n.offsetHeight+s.offsetHeight+84>i.offsetHeight&&(n.style.height=i.offsetHeight-s.offsetHeight),"area"===this.props.mode&&"feat"!==this.props.resultMode&&this.props.router.setState({resultMode:"feat"})}},{key:"open",value:function(){this.props.setOpen(!0)}},{key:"close",value:function(){this.props.setOpen(!1)}},{key:"clickControl",value:function(){this.props.open?this.close():this.open()}},{key:"exportGpx",value:function(){var e=this.props.router.routerWaySource,r=new p.default;if(e&&e.getFeatures&&e.getFeatures()){var t=r.writeFeatures(e.getFeatures(),{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326",decimals:3}),a=document.createElement("a");a.setAttribute("href","data:text/xml;charset=utf-8,"+encodeURIComponent(t)),a.setAttribute("download","route.gpx"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),console.log(t)}}},{key:"exportEditor",value:function(){var e=this,r=this.props.router.routerWaySource;if(new b.default,r&&r.getFeatures&&r.getFeatures()){var a=r.getFeatures()[0],o={},n=this.props.mapController.data.editor.config.drawStyles.LineString.elements;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s].name);Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(r){(new r.AlertHandler).showSelectDialog(e.props.lang.ROUTER_EDITOR_ELEMENT,o,e.props.lang.ACCEPT,e.props.lang.CANCEL).then((function(r){var t=n[r].styleId;a.set("editorId",r),a.setId(),a.set("locstyle",t);var o=(new b.default).writeFeatureObject(a,{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326",decimals:6});e.props.router.openControls(!1),e.props.mapController.editor.open(),e.props.mapController.editor.addFeature(o),e.props.mapController.editor.reRender()}))}))}}},{key:"slideInCollidingElements",value:function(){}},{key:"slideOutCollidingElements",value:function(){}}])}(u.Component)},"./src/Resources/public/js/components/c4g-router-view.jsx":(e,r,t)=>{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.RouterView=void 0;var n=a(t("./node_modules/@babel/runtime/regenerator/index.js")),s=a(t("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),i=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),c=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),u=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),p=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),b=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=P(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js")),d=t("./src/Resources/public/js/components/c4g-router-result-container.jsx"),h=t("./src/Resources/public/js/routing-constants.js"),m=t("./node_modules/ol/index.js"),g=t("./node_modules/ol/geom.js"),f=t("./node_modules/ol/format.js"),y=t("./node_modules/ol/extent.js"),_=t("./node_modules/ol/proj.js"),k=t("./node_modules/ol/style.js"),v=t("./node_modules/ol/layer.js"),w=t("./node_modules/ol/source.js"),S=t("./node_modules/ol/geom/Polygon.js"),C=t("./node_modules/ol/interaction.js"),R=(a(t("./node_modules/ol/format/OSMXML.js")),t("./src/Resources/public/js/c4g-routing-permalink.js")),E=t("./src/Resources/public/js/routing-constant-i18n.js"),O=t("./src/Resources/public/js/c4g-maps-constant.js"),T=t("./src/Resources/public/js/c4g-maps-utils.js"),x=t("./src/Resources/public/js/components/c4g-router-popup-buttons.jsx");function P(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(P=function(e){return e?t:r})(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}var j=b.default.lazy((function(){return Promise.resolve().then(t.bind(t,"./src/Resources/public/js/components/c4g-titlebar.jsx"))})),L=b.default.lazy((function(){return t.e("src_Resources_public_js_components_c4g-router-controls_jsx").then(t.bind(t,"./src/Resources/public/js/components/c4g-router-controls.jsx"))}));r.RouterView=function(e){function r(e){var t,a,o,n;(0,i.default)(this,r),a=this,o=r,n=[e],o=(0,u.default)(o),(t=(0,c.default)(a,I()?Reflect.construct(o,n||[],(0,u.default)(a).constructor):o.apply(a,n))).setActiveId=t.setActiveId.bind(t),t.setOpen=t.setOpen.bind(t),t.close=t.close.bind(t),t.openControls=t.openControls.bind(t),t.resetFromPoint=t.resetFromPoint.bind(t),t.resetToPoint=t.resetToPoint.bind(t),t.resetAreaPoint=t.resetAreaPoint.bind(t),t.toggleResultDetails=t.toggleResultDetails.bind(t),t.setResultInstr=t.setResultInstr.bind(t),t.setResultFeat=t.setResultFeat.bind(t),t.recalculateRoute=t.recalculateRoute.bind(t);var s=t.props.mapController,l=[];for(var p in t.languageConstants=(0,E.getLanguage)(s.data),s.data.router_profiles)s.data.router_profiles.hasOwnProperty(p)&&l.push({id:p,text:s.data.router_profiles[p]});var b=null,d=null,h=null,m=null;if(s.data.showFeatures){var g=s.data.routerLayers;for(var f in g)g.hasOwnProperty(f)&&(b=b||f,h=Object.keys(g[b])[0]||h,d=d||f,m=Object.keys(g[d])[0]||m)}return t.state={router:e.router,objSettings:{proxyUrl:s&&s.data?s.data.proxyUrl:"",keyAutocomplete:s&&s.data?s.data.autocomplete:"",center:function(){var e=s.map.getView().getCenter();return e=(0,_.transform)(e,"EPSG:3857","EPSG:4326")},resultCount:s.data.geosearch.result_count,geosearchParams:s.data.geosearch.params},activeId:null,openResults:!1,containerAddresses:{arrFromPositions:[],arrFromNames:[],arrToPositions:[],arrToNames:[],arrAreaPositions:[],arrAreaNames:[],arrOverPositions:{},arrOverNames:{}},fromAddress:"",toAddress:"",areaAddress:"",layerRoute:b,layerArea:d,layerValueRoute:h,layerValueArea:m,detourRoute:e.detourRoute.initial,detourArea:e.detourArea.initial,featureList:{features:[],type:""},mode:s.data.initialMode,overPtCtr:0,overAddresses:[],featureSource:void 0,routerWaySource:void 0,areaCircleSource:void 0,routerHintSource:void 0,areaPoint:null,fromPoint:null,toPoint:null,overPoints:[],profiles:l||[],currentProfile:l&&l[0]&&l[0].id?l[0].id:0,open:"routing"===e.mapController.data.initial_open_comp||!1,openSettings:"routing"===e.mapController.data.initial_open_comp||!1,routerInstructions:{},resultMode:e.mapController.data.initialResultMode||"instr"},t.popupRouteButtonWrapper="",t.swapPoints=t.swapPoints.bind(t),s.data.usePermalink&&(t.permalink=new R.RoutingPermalink(t)),t.profileTranslation={0:"car",1:"hgv",2:"bike",3:"bike",4:"bike",5:"bike",6:"bike",7:"bike",8:"foot",9:"foot",10:"wheelchair",11:"hgv",12:"scooter",13:"scooter"},t.init(),t}return(0,p.default)(r,e),(0,l.default)(r,[{key:"render",value:function(){var e=this,r=this.props.mapController.data,t={waySource:this.state.routerWaySource,hintSource:this.state.routerHintSource,featureSource:this.state.featureSource},a={};"route"===this.state.mode?a={min:r.detourRoute.min,max:r.detourRoute.max,value:this.state.detourRoute,router:this}:"area"===this.state.mode&&(a={min:r.detourArea.min,max:r.detourArea.max,value:this.state.detourArea,router:this});var o,n={from:this.resetFromPoint,to:this.resetToPoint,area:this.resetAreaPoint},s=this.createOverSettings(),i="";"route"===this.state.mode?i=this.props.mapController.data.routerHeadline||this.languageConstants.ROUTER_DEFAULT_HEADLINE_ROUTE:"area"===this.state.mode&&(i=this.props.mapController.data.areaHeadline||this.languageConstants.ROUTER_DEFAULT_HEADLINE_AREA),this.props.mapController.data.areaSearch&&!this.props.mapController.data.areaSearchOnly&&(o=b.default.createElement("div",{className:"c4g-router-mode-switcher"},b.default.createElement("button",{id:"c4g-router-button-route",className:"route"===this.state.mode?"c4g-active":"c4g-inactive",onMouseUp:function(){e.setMode("route")},title:this.languageConstants.ROUTER_FIND_ROUTE}),b.default.createElement("button",{id:"c4g-router-button-area",className:"area"===this.state.mode?"c4g-active":"c4g-inactive",onMouseUp:function(){e.setMode("area")},title:this.languageConstants.AREA_NAME})));var l=this.state.routerInstructions.instructions,c="",u=[];return this.state.featureList.features.length>0&&(this.state.fromAddress&&this.state.toAddress&&"route"===this.state.mode||this.state.areaAddress&&"area"===this.state.mode)&&u.push(b.default.createElement("button",{id:"c4g-router-button-feature",className:"feat"===this.state.resultMode&&this.state.openResults?"c4g-active":"c4g-inactive",onMouseUp:this.setResultFeat,key:1,title:"Ergebnisliste anzeigen"})),l&&l.length>0&&"route"===this.state.mode&&u.push(b.default.createElement("button",{id:"c4g-router-button-instructions",className:"instr"===this.state.resultMode&&this.state.openResults?"c4g-active":"c4g-inactive",onMouseUp:this.setResultInstr,key:2,title:"Routenhinweise anzeigen"})),this.props.mapController.data.routerResultDiv||u.unshift(b.default.createElement("button",{className:"c4g-router-hide-form-button "+(this.state.openSettings?"c4g-active":"c4g-inactive"),onMouseUp:function(){e.setState({openSettings:!e.state.openSettings})},key:3,title:this.languageConstants.ROUTER_SETTINGS})),u.length>1&&(c=b.default.createElement("div",null,u)),b.default.createElement("div",{className:"c4g-router-wrapper"},b.default.createElement(b.Suspense,{key:0,fallback:b.default.createElement("div",null,"Loading...")},b.default.createElement(j,{wrapperClass:"c4g-router-header",header:i,headerClass:"c4g-router-headline",detailBtnClass:"c4g-router-extended-options",hideContainer:".c4g-router-container-right",detailBtnCb:this.toggleDetails,closeBtnClass:"c4g-router-close",closeBtnCb:this.close,closeBtnTitle:this.languageConstants.CLOSE})),b.default.createElement(b.default.Fragment,null,o,b.default.createElement("div",{className:"c4g-router-switcher"},c)),b.default.createElement(b.Suspense,{key:1,fallback:b.default.createElement("div",null,'"loading"')},b.default.createElement(L,{router:this,open:this.props.mapController.data.routerResultDiv||this.state.open&&this.state.openSettings,setOpen:this.openControls,profiles:this.state.profiles,className:"c4g-router-panel",objSettings:this.state.objSettings,objFunctions:this.objFunctions,overSettings:s,enableOverPoints:this.props.mapController.data.enableOverPoints,sources:t,layers:this.props.mapController.data.routerLayers,containerAddresses:this.state.containerAddresses,resetFunctions:n,mapController:this.props.mapController,currentProfile:this.state.currentProfile,fromAddress:this.state.fromAddress,switchTargets:this.props.mapController.data.enableTargetSwitch,toAddress:this.state.toAddress,areaAddress:this.state.areaAddress,mode:this.state.mode,sliderOptions:a,title:this.languageConstants.CTRL_ROUTER,target:this.props.target})),b.default.createElement(b.Suspense,{key:2,fallback:b.default.createElement("div",null,'"loading"')},b.default.createElement(d.RouterResultContainer,{visible:this.state.open,open:this.state.open&&this.state.openResults,setOpen:this.setOpen,direction:"bottom",className:"c4g-router-result-container",mapController:this.props.mapController,mode:this.state.mode,setResultFeat:this.setResultFeat,routerInstructions:this.state.routerInstructions,featureList:this.state.featureList,routerWaySource:this.state.routerWaySource,detour:this.state.detourArea,layerRoute:this.state.layerRoute,layerValueRoute:this.state.layerValueRoute,layerArea:this.state.layerArea,resultMode:this.state.resultMode,router:this,layerValueArea:this.state.layerValueArea,routerHintSource:this.state.routerHintSource,featureSource:this.state.featureSource,profile:this.state.currentProfile,activeId:this.state.activeId,setActiveId:this.setActiveId,detailOpen:this.state.resultDetailOpen,toggleDetailOpen:this.toggleResultDetails,headline:"Router Ergebnisse",lang:this.languageConstants})))}},{key:"setResultInstr",value:function(e){e.stopPropagation(),this.setState({resultMode:"instr",openResults:!0})}},{key:"setResultFeat",value:function(e){e.stopPropagation(),this.setState({resultMode:"feat",openResults:!0})}},{key:"close",value:function(){this.setState({open:!1})}},{key:"getProfileById",value:function(e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2]||this.performReverseSearch("areaAddress",[e,r]);var a=new g.Point([e,r]);this.setState({areaPoint:a},(function(){return t.updateRouteLayersAndPoints()}))}},{key:"setRouteFrom",value:function(e,r){var t=this;arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.performReverseSearch("fromAddress",[e,r]);var a=new g.Point([e,r]);this.setState({fromPoint:a},(function(){t.updateRouteLayersAndPoints()}))}},{key:"setRouteTo",value:function(e,r){var t=this;arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.performReverseSearch("toAddress",[e,r]);var a=new g.Point([e,r]);this.setState({toPoint:a},(function(){return t.updateRouteLayersAndPoints()}))}},{key:"addOverPoint",value:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this,n=this.state.overAddresses,s=this.state.overPtCtr;s++,a?n.splice(t,1,e+", "+r):this.performReverseSearch("overAddress",[e,r],t);var i=new g.Point([e,r]),l=this.state.overPoints;l.splice(t,1,i),this.setState({overPoints:l,overAddresses:n,overPtCtr:s},(function(){return o.updateRouteLayersAndPoints()}))}},{key:"addOverPoints",value:function(e){for(var r=this,t=this.state.overAddresses,a=this.state.overPoints,o=this.state.overPtCtr,n=0;n0)for(var a in this.state.overPoints)if(this.state.overPoints.hasOwnProperty(a)&&null!==this.state.overPoints[a]){var o=new m.Feature({geometry:this.state.overPoints[a].clone().transform("EPSG:4326","EPSG:3857")});this.props.mapController.data.router_interim_locstyle&&this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle]&&(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].style||(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].style=this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].getStyleFunction()),o.setStyle(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.router_interim_locstyle].style)),this.locationsSource.addFeature(o)}this.props.mapController.data.routeStartButton||this.recalculateRoute()}else if("area"===this.state.mode){if(this.state.areaPoint){var n=new m.Feature({geometry:this.state.areaPoint.clone().transform("EPSG:4326","EPSG:3857")});this.props.mapController.data.areaCenterLocstyle&&this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle]?(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].style||(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].style=this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].getStyleFunction()),n.setStyle(this.props.mapController.proxy.locationStyleController.arrLocStyles[this.props.mapController.data.areaCenterLocstyle].style)):this.props.mapController.proxy.locationStyleController.loadLocationStyles([this.props.mapController.data.areaCenterLocstyle],{done:function(){e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].style||(e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].style=e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].getStyleFunction()),n.setStyle(e.props.mapController.proxy.locationStyleController.arrLocStyles[e.props.mapController.data.areaCenterLocstyle].style)}}),this.areaSource.addFeature(n)}this.performArea()}}},{key:"resetFromPoint",value:function(){var e=this,r=e.state.containerAddresses;r.arrFromPositions=[],r.arrFromNames=[],this.setState({fromPoint:null,containerAddresses:r,fromAddress:""},(function(){e.updateRouteLayersAndPoints()}))}},{key:"resetToPoint",value:function(){var e=this,r=e.state.containerAddresses;r.arrToPositions=[],r.arrToNames=[],this.setState({toPoint:null,containerAddresses:r,toAddress:""},(function(){e.updateRouteLayersAndPoints()}))}},{key:"resetAreaPoint",value:function(){var e=this,r=e.state.containerAddresses;r.arrAreaPositions=[],r.arrAreaNames=[],this.setState({areaPoint:null,containerAddresses:r,areaAddress:""},(function(){e.updateRouteLayersAndPoints()}))}},{key:"createAutocompleteFunctions",value:function(){var e={},r=this;return e.fromFunctions={selectListener:function(e,t){var a=t.item.value,o=r.state.containerAddresses.arrFromNames.findIndex((function(e){return e===a})),n=r.state.containerAddresses.arrFromPositions[o],s=new g.Point([n[1],n[0]]);r.setState({fromPoint:s,fromAddress:r.state.containerAddresses.arrFromNames[o]},(function(){r.updateRouteLayersAndPoints(),r.recalculateRoute()}))},deleteFunction:function(e){r.resetFromPoint()},changeListener:function(){}},e.toFunctions={selectListener:function(e,t){var a=t.item.value,o=r.state.containerAddresses.arrToNames.findIndex((function(e){return e===a})),n=r.state.containerAddresses.arrToPositions[o],s=new g.Point([n[1],n[0]]);r.setState({toPoint:s,toAddress:r.state.containerAddresses.arrToNames[o]},(function(){r.updateRouteLayersAndPoints(),r.recalculateRoute()}))},deleteFunction:function(e){r.resetToPoint()},changeListener:function(){}},e.areaFunctions={selectListener:function(e,t){var a=t.item.value,o=r.state.containerAddresses.arrAreaNames.findIndex((function(e){return e===a})),n=r.state.containerAddresses.arrAreaPositions[o],s=new g.Point([n[1],n[0]]);r.setState({areaPoint:s,areaAddress:r.state.containerAddresses.arrAreaNames[o]},(function(){r.updateRouteLayersAndPoints(),r.performArea()}))},deleteFunction:function(e){var t=r.state.containerAddresses;t.arrAreaPositions=[],t.arrAreaNames=[],r.setState({areaPoint:null,containerAddresses:t,areaAddress:""},(function(){}))},changeListener:function(){}},e}},{key:"addPopupHook",value:function(){var e=this;window.c4gMapsHooks.proxy_appendPopup=window.c4gMapsHooks.proxy_appendPopup||[],window.c4gMapsHooks.proxy_appendPopup.push((function(r){var t=r.mapController,a=r.popup;if(t.components.router&&a.popup.routing_link)if(3!==parseInt(t.data.popupHandling,10)){var o=function(r){var t=r.feature,a=e,o=function(e){if(a.openControls(!0),a.setMode("route"),jQuery(e.currentTarget).hasClass(O.cssConstants.POPUP_ROUTE_FROM)){var r=(0,_.toLonLat)(t.getGeometry().getCoordinates(),"EPSG:3857");a.setRouteFrom(r[0],r[1])}else{var o=(0,_.toLonLat)(t.getGeometry().getCoordinates(),"EPSG:3857");a.setRouteTo(o[0],o[1])}},n=document.createElement("div");n.className=O.cssConstants.POPUP_ROUTE_WRAPPER;var s=document.createElement("button");s.className=O.cssConstants.ICON+" "+O.cssConstants.POPUP_ROUTE_FROM,jQuery(s).click(o),n.appendChild(s);var i=document.createElement("span");s.appendChild(i);var l=document.createElement("button");l.className=O.cssConstants.ICON+" "+O.cssConstants.POPUP_ROUTE_TO,jQuery(l).click(o),n.appendChild(l);var c=document.createElement("span");return l.appendChild(c),n}(a);$(r.div).append(o)}else if(r.comp){var n={feature:a.feature,router:e};r.comp.setAddButtons(x.RouterPopupButtons,n)}}))}},{key:"init",value:function(){var e=this;this.mapData=this.props.mapController.data;var r=[this.props.mapController.data.router_from_locstyle,this.props.mapController.data.router_to_locstyle,this.props.mapController.data.router_point_locstyle,this.props.mapController.data.areaCenterLocstyle,this.props.mapController.data.clickLocstyle];this.props.mapController.data.priorityFeatures&&(this.props.mapController.data.priorityLocstyle&&r.push(this.props.mapController.data.priorityLocstyle),this.props.mapController.data.negativePriorityLocstyle&&r.push(this.props.mapController.data.negativePriorityLocstyle)),this.props.mapController.proxy.locationStyleController.loadLocationStyles(r);var t=this.props.mapController.data;for(var a in this.objLayers={},t.routerLayers)t.routerLayers.hasOwnProperty(a)&&(this.objLayers[a]=t.routerLayers[a][Object.keys(t.routerLayers[a])[0]]);this.routingAltWaySource=new w.Vector,this.routerWaySource=new w.Vector,this.areaCircleSource=new w.Vector;var o=this.mapData.areaCircleColor,n=parseInt(this.mapData.areaCircleOpacity)||0===parseInt(this.mapData.areaCircleOpacity)?this.mapData.areaCircleOpacity:50,s=new k.Style({fill:new k.Fill({color:T.utils.getRgbaFromHexAndOpacity(o,n)})});this.areaCircleLayer=new v.Vector({source:this.areaCircleSource,zIndex:-1,style:[s,new k.Style({stroke:new k.Stroke({color:"rgba(0, 51, 119, 0.9)",width:4}),zIndex:-1})]}),this.routerWayLayer=new v.Vector({source:this.routerWaySource,zIndex:1,style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.6)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(0, 51, 119, 0.9)",width:4})})]}),this.routerAltWayLayer=new v.Vector({source:this.routingAltWaySource,zIndex:0,style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.6)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(0, 51, 119, 0.4)",width:4})})]});var i=new C.Select({style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.0)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(255, 51, 119, 0.0)",width:4})})]});i.on("select",(function(r){var t=r.selected[0];if(t){var a=t.getGeometry();a&&"LineString"===a.getType()?e.showAltRoute(e.response,t.getId()):t&&e.clickFeatureEntryForFeature(t)}})),this.mapSelectInteraction=i,this.modWayInteraction=new C.Modify({source:this.routerWaySource,style:[new k.Style({stroke:new k.Stroke({color:"rgba(255, 255, 255, 0.0)",width:8})}),new k.Style({stroke:new k.Stroke({color:"rgba(255, 51, 119, 0.0)",width:4})})]}),this.modWayInteraction.on("modifystart",(function(r){!0===e.state.open&&(e.modifyStartPoint=new g.Point(r.mapBrowserEvent.coordinate).transform("EPSG:3857","EPSG:4326"))})),this.modWayInteraction.on("modifyend",(function(r){if(!0===e.state.open){var t,a=new g.Point(r.mapBrowserEvent.coordinate).transform("EPSG:3857","EPSG:4326"),o=1/0,n=Object.keys(e.state.overPoints);if(n.length>0){for(var s in e.state.overPoints)if(e.state.overPoints.hasOwnProperty(s)){var i=e.calcDistance(e.modifyStartPoint.getCoordinates(),e.state.overPoints[s].getCoordinates());i0&&this.props.mapController.data.showFeatures||jQuery(".c4g-router-instructions-wrapper").css("display","block"),"1"==this.props.mapController.data.router_api_selection||"1"==e.routeType)e.routes[r].legs[0].summary&&(i=e.routes[r].legs[0].summary.split(",")[0],l=e.routes[r].legs[0].summary.split(",")[1],e.routes[r].legs[1]&&(l=e.routes[r].legs[1].summary.split(",")[1])),c=e.routes[r].distance,u=e.routes[r].duration;else if("0"==this.props.mapController.data.router_api_selection||"0"==e.routeType)e.route_name&&(i=e.route_name[0],l=e.route_name[1]),e.route_summary&&(c=e.route_summary.total_distance,u=e.route_summary.total_time);else if("2"==this.props.mapController.data.router_api_selection||"2"==e.routeType){u=e.routes[r].summary.duration,c=e.routes[r].summary.distance;for(var p=[],b=e.routes[r].segments,d=0;d"+this.languageConstants.ROUTER_VIEW_LABEL_ROUTE+" "+i+" → "+l+" "+this.languageConstants.ROUTER_VIEW_LABEL_DISTANCE+" "+c+" "+this.languageConstants.ROUTER_VIEW_LABEL_TIME+" "+u+" ":this.routeProfile&&this.routeProfile.active&&Array.isArray(this.routeProfile.active)&&(n.innerHTML=""+this.languageConstants.ROUTER_VIEW_LABEL_PROFILE+" "+this.props.mapController.data.router_profiles[this.routeProfile.active]+" "+this.languageConstants.ROUTER_VIEW_LABEL_DISTANCE+" "+c+" "+this.languageConstants.ROUTER_VIEW_LABEL_TIME+" "+u+" "),o=document.createElement("div"),s='',"1"===this.props.mapController.data.router_api_selection||"1"==e.routeType||"0"===this.props.mapController.data.router_api_selection||"0"==e.routeType||"2"===this.props.mapController.data.router_api_selection||"2"==e.routeType||"3"===this.props.mapController.data.router_api_selection||"3"==e.routeType||"4"===this.props.mapController.data.router_api_selection||e.routeType,s+="
",o.innerHTML=s,this.adjustInstructionMapInteraction()}}},{key:"performGeoSearch",value:(a=(0,s.default)(n.default.mark((function e(r){var a,o,s,i,l,c;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(a=this).geoSearchApi+"?format=json&limit=1&q="+encodeURI(r),s=a.props.mapController.map,i=s.getView().calculateExtent(s.getSize()),i=(0,_.transformExtent)(i,s.getView().getProjection(),"EPSG:4326"),l="&viewbox="+i[0]+","+i[1]+","+i[2]+","+i[3],this.mapData&&this.mapData.geosearch&&this.mapData.geosearch.searchKey&&this.mapData.geosearch.url&&(o=this.mapData.geosearch.url+"search.php?key="+this.mapData.geosearch.searchKey+"&format=json&limit=1&q="+encodeURI(r)+l),this.mapData.geosearch.params)for(c in this.mapData.geosearch.params)this.mapData.geosearch.params.hasOwnProperty(c)&&(o+="&"+c+"="+this.mapData.geosearch.params[c]);return e.next=10,fetch(o).then((function(e){if(e)return e.json().then((function(e){return[parseFloat(e[0].lon),parseFloat(e[0].lat)]}));Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(a.props.langConstants.ROUTER_VIEW_ALERT_ERROR,a.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}))})).catch((function(){Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(a.props.langConstants.ROUTER_VIEW_ALERT_ERROR,a.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}))}));case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"performSearch",value:function(e,r,a){var o,n,s,i,l;if(i=this,""===e.val())return delete i[r],"";if(n=(o=i.props.mapController.map).getView().calculateExtent(o.getSize()),s="&viewbox="+(n=(0,_.transformExtent)(n,o.getView().getProjection(),"EPSG:4326"))[0]+","+n[1]+","+n[2]+","+n[3],l=i.geoSearchApi+"?format=json&limit=1&q="+encodeURI(e.val())+s,this.mapData&&this.mapData.geosearch&&this.mapData.geosearch.searchKey&&this.mapData.geosearch.url&&(l=this.mapData.geosearch.url+"search.php?key="+this.mapData.geosearch.searchKey+"&format=json&limit=1&q="+encodeURI(e.val())+s),this.mapData.geosearch.params)for(var c in this.mapData.geosearch.params)this.mapData.geosearch.params.hasOwnProperty(c)&&(l+="&"+c+"="+this.mapData.geosearch.params[c]);return jQuery.ajax({url:l}).done((function(o){if(o.length>0)if("overValue"===r){i.overValue||(i.overValue=[]);for(var n=new g.Point([parseFloat(o[0].lon),parseFloat(o[0].lat)]),s=e.next()[0];!jQuery(s).hasClass("c4g-router-input-clear");)s=jQuery(s).next()[0];s.id=n.ol_uid,i.overValue.push(n),i.$buttonOver.prop("disabled",!1)}else{var l=[parseFloat(o[0].lon),parseFloat(o[0].lat)],c=new g.Point(l);"fromValue"===r?i.setState({fromPoint:c,fromAddress:e.val()},(function(){return i.updateRouteLayersAndPoints()})):"toValue"===r?i.setState({toPoint:c,toAddress:e.val()},(function(){return i.updateRouteLayersAndPoints()})):"areaValue"===r&&i.setState({areaPoint:c,areaAddress:e.val()})}else Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(i.props.langConstants.ROUTER_VIEW_ALERT_ERROR,i.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}));a&&"function"==typeof a&&a()})).fail((function(){Promise.all([t.e("vendors-CoreBundle_node_modules_sweetalert2_dist_sweetalert2_all_js"),t.e("CoreBundle_src_Resources_public_vendor_js_AlertHandler_js")]).then(t.bind(t,"../CoreBundle/src/Resources/public/vendor/js/AlertHandler.js")).then((function(e){(new e.AlertHandler).showInfoDialog(i.props.langConstants.ROUTER_VIEW_ALERT_ERROR,i.props.langConstants.ROUTER_VIEW_ALERT_ADDRESS)}))})),""}},{key:"performReverseSearch",value:function(e,r,t){var a,o=this;a=this.geoReverseSearchApi+"?format=json&lat="+r[1]+"&lon="+r[0],this.mapData&&this.mapData.geosearch&&this.mapData.geosearch.reverseKey&&this.mapData.geosearch.url&&(a=this.mapData.geosearch.url+"reverse.php?key="+this.mapData.geosearch.reverseKey+"&format=json&lat="+r[1]+"&lon="+r[0]),jQuery.ajax({url:a}).done((function(r){if(r){var a="";switch(r.address&&((r.address.road||r.address.path||r.address.pedestrian)&&(a+=r.address.road||r.address.path||r.address.pedestrian,r.address.house_number&&(a+=" "+r.address.house_number)),(r.address.city||r.address.town)&&(a+=a?", ":"",a+=r.address.city||r.address.town)),""===a&&(a=r.display_name),e){case"areaAddress":o.setState({areaAddress:a},(function(){""===jQuery("#areaInput").val()&&jQuery("#areaInput").val(a)}));break;case"fromAddress":o.setState({fromAddress:a},(function(){""===jQuery("#routingFrom").val()&&jQuery("#routingFrom").val(a)}));break;case"toAddress":o.setState({toAddress:a},(function(){""===jQuery("#routingTo").val()&&jQuery("#routingTo").val(a)}));break;case"overAddress":var n=o.state.overAddresses;n.splice(t,1,a),o.setState({overAddresses:n})}}}))}},{key:"performArea",value:function(){var e=this,r=this.state.areaPoint;if(r){if(this.mapData.drawCircle){(0,_.transform)(r.getCoordinates(),"EPSG:4326","EPSG:3857");var t=(0,S.circular)(r.getCoordinates(),1e3*this.state.detourArea,128).transform("EPSG:4326","EPSG:3857"),a=new m.Feature(t);this.areaCircleSource.clear(),this.areaCircleSource.addFeature(a)}var o=[r.getCoordinates()[1],r.getCoordinates()[0]],n="con4gis/areaService/"+this.props.mapController.data.profile+"/"+this.state.layerArea+"/"+this.state.detourArea+"/"+o;n+="?profile="+this.state.currentProfile,e.areaAjax&&e.areaAjax.abort(),e.areaAjax=jQuery.ajax({url:n}).done((function(r){if(e.response=r,r){var t=e.showFeatures(r[0],r[1],"area",!1);e.setState({featureList:{features:t,type:r[1]},featureSource:e.routerFeaturesSource,openResults:!0},(function(){e.showFeatures(r[0],r[1],"area",!1)}))}}))}}},{key:"performViaRoute",value:function(e,r,a){var o,n,s,i,l;if(n=this,this.state.featureSource&&this.state.featureSource.clear(),this.mapSelectInteraction.getFeatures().clear(),e||(e=this.fromPoint)){if(!r){if(!r)return;r=this.toPoint}if(a||this.overPoints&&(a=this.overPoints),s=[e.getCoordinates()[1],e.getCoordinates()[0]],i=[r.getCoordinates()[1],r.getCoordinates()[0]],a&&Object.keys(a).length>0)for(var c in l=[],a)a.hasOwnProperty(c)&&a[c]&&l.push([a[c].getCoordinates()[1],a[c].getCoordinates()[0]]);if(this.props.mapController.data.router_api_selection>="1"){var u=this.props.mapController.data.profile;if(o="con4gis/routeService/"+this.props.mapController.data.lang+"/"+u+"/"+this.state.layerRoute+"/"+this.state.detourRoute+"/"+s,a)for(var p=0;p0)){var r=n.showFeatures(e.features,e.type,"router");n.setState({featureList:{features:r,type:e.type},featureSource:n.routerFeaturesSource,openResults:!0})}else n.setState({openResults:!0})})).always((function(){n.routeAjax=void 0,n.props.mapController.data.closeAfterSearch})),""}try{return o="con4gis/routeService/"+profileId+"?output=json&instructions=true&alt=false&loc_from="+s+"&loc_to="+i,jQuery.ajax({url:o}).done((function(e){e&&n.showRoute(e)})),""}catch(e){console.log("Please use a more modern API-Version for the Routeservice")}}}},{key:"recalculateRoute",value:function(){"route"===this.state.mode?this.state.fromPoint&&this.state.toPoint&&(this.state.overPoints&&Object.keys(this.state.overPoints).length>0?this.performViaRoute(this.state.fromPoint,this.state.toPoint,this.state.overPoints):this.performViaRoute(this.state.fromPoint,this.state.toPoint)):this.performArea()}},{key:"getActiveLayer",value:function(e){return this.objLayers[e]}},{key:"showFeatures",value:function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"router",o=this;if((arguments.length>3?arguments[3]:void 0)||this.routerFeaturesSource.clear(),!(e=e.elements)||0===e.length){var n;if(this.mapData.drawCircle){var s=this.areaCircleSource.getFeatures()[0];if(s&&s.getGeometry()&&s.getGeometry().getExtent()&&(n=s.getGeometry().getExtent()),n&&(0,y.getArea)(n)>0){var i=jQuery(".c4g-sideboard.c4g-open").css("width");i?(i=i.split("."),i=Array.isArray(i)?i[0]:i,i=parseInt(i)+50):i=50;var l=[50,i,50,50];this.props.mapController.map.getView().fit(n,{padding:l})}}return[]}var c=this.mapData,u="route"===this.state.mode?this.state.layerRoute:this.state.layerArea,p="route"===this.state.mode?this.state.layerValueRoute:this.state.layerValueArea,b=this.getActiveLayer(u).layerData,d=[],h=[],f=e.length?e.slice():e.elements.slice(),k=[],v=[];if(this.bestFeatureIds=[],this.worstFeatureIds=[],c.priorityFeatures&&c.priorityLocstyle&&e.length>0){f.sort((function(e,r){return parseFloat(e[c.routerLayers[u][p].mapLabel])-parseFloat(r[c.routerLayers[u][p].mapLabel])}));for(var w=parseInt(c.priorityFeatures,10),S=w>f.length?f.length:w,C=w+S>f.length?f.length-S:w,R=0;Rf.length-1-C;E--)v[E]=f[E],this.worstFeatureIds.push(f[E].id)}r=f,"petrols"===t&&"area"!==a&&(e=e.elements);var O=(0,y.createEmpty)();if("overpass"!==t){for(var T=0;e&&T0&&o.props.mapController.proxy.locationStyleController.loadLocationStyles(h,{done:function(){for(var e=0;e0&&this.routerFeaturesSource.addFeatures(d),this.mapData.drawCircle){var U=this.areaCircleSource.getFeatures()[0];U&&U.getGeometry()&&U.getGeometry().getExtent()&&(O=(0,y.extend)(O,U.getGeometry().getExtent()))}if((0,y.getArea)(O)>0){var H=jQuery(".c4g-sideboard.c4g-open").css("width");H?(H=H.split("."),H=Array.isArray(H)?H[0]:H,H=parseInt(H)+50):H=50;var K=[50,H,50,50];this.props.mapController.map.getView().fit(O,{padding:K})}return r}},{key:"showRoute",value:function(e){this.showRouteLayer(e,0),this.showRouteInstructions(e,0)}},{key:"showAltRoute",value:function(e,r){this.showRouteLayer(e,r),this.showRouteInstructions(e,r)}},{key:"showRouteLayer",value:function(e,r){var t,a,o,n;if(r=r||0,e&&(this.routerWaySource.clear(),this.routingAltWaySource.clear(),t=this.props.mapController.map.getView(),"1"==this.props.mapController.data.router_api_selection||"2"==this.props.mapController.data.router_api_selection||"1"==e.routeType||"2"==e.routeType?(a=new f.Polyline,e.routes&&(e.routes[1]&&(1===r?(n=a.readFeatures(e.routes[0].geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(0):(n=a.readFeatures(e.routes[1].geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(1)),(o=a.readFeatures(e.routes[r].geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(r))):"0"==this.props.mapController.data.router_api_selection||"0"==e.routeType?o=(a=new f.Polyline({factor:this.props.mapController.data.router_viaroute_precision||1e6})).readFeatures(e.route_geometry,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}):"3"==this.props.mapController.data.router_api_selection?(a=new f.Polyline,e.paths&&e.paths[1]&&(1==r?(n=a.readFeatures(e.paths[0].points,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(0):(n=a.readFeatures(e.paths[1].points,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(1)),(o=a.readFeatures(e.paths[r].points,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(r)):"4"!=this.props.mapController.data.router_api_selection&&"4"!=e.routeType||(a=new f.Polyline({factor:1e6}),e.trip&&e.trip.legs&&e.trip.legs[1]&&(1==r?(n=a.readFeatures(e.trip.legs[1].shape,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(0):(n=a.readFeatures(e.trip.legs[1].shape,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(1)),(o=a.readFeatures(e.trip.legs[r].shape,{dataProjection:"EPSG:4326",featureProjection:t.getProjection()}))[0].setId(r)),"1"==this.props.mapController.data.router_alternative&&(e.routes&&e.routes.length>1&&e.routes[1]||e.paths&&e.paths.length>1&&e.paths[1])&&this.routingAltWaySource.addFeatures(n),o)){this.routerWaySource.addFeatures(o),this.props.mapController.map.renderSync(),t.animate({start:+new Date,duration:2e3,resolution:t.getResolution(),center:[0,0]});var s=jQuery(".c4g-starboard-container").css("width");s?(s=s.split("."),s=Array.isArray(s)?s[0]:s,s=parseInt(s)+50):s=50,t.fit(o[0].getGeometry(),{size:this.props.mapController.map.getSize(),padding:[50,s,50,50]})}}},{key:"adjustInstructionMapInteraction",value:function(e){var r,t,a,o=this;r=function(e){o.routerHintSource.clear();var r=o.routerWaySource.getFeatures()[0].getGeometry().getCoordinates(),t=e.data("pos");if(t){var a=t.split(",");a[0]=parseFloat(a[0]),a[1]=parseFloat(a[1]);var n=(0,_.fromLonLat)(a),s=new m.Feature({geometry:new g.Point(n)});o.routerHintSource.addFeature(s),o.options.mapController.map.getView().setCenter(n)}if(r){var i=e.data("start"),l=e.data("end");if(l){var c=new g.LineString(r.slice(i,l));(s=new m.Feature({geometry:c})).setStyle(new k.Style({stroke:new k.Stroke({color:"rgba(255, 0, 0, 1)",width:20})}));var u=o.options.mapController.map.getView().getZoom();o.routerHintSource.addFeature(s),o.options.mapController.map.getView().fit(c);var p=o.options.mapController.map.getView().getZoom(),b=Math.round((u+p)/2);b=b>p?p:b,o.options.mapController.map.getView().setZoom(b)}}},t=function(e){var r;if(o.routerWaySource&&o.routerWaySource.getFeatures()&&"0"==o.options.mapController.data.router_api_selection&&(r=o.routerWaySource.getFeatures()[0])){o.routerHintSource.clear();var t=new m.Feature({geometry:new g.Point(r.getGeometry().getCoordinates()[e.data("pos")])});o.routerHintSource.addFeature(t)}if(o.routerWaySource&&o.routerWaySource.getFeatures()&&o.options.mapController.data.router_api_selection>="1"&&(r=o.routerWaySource.getFeatures()[0])){o.routerHintSource.clear();var a=e.data("pos");if(a){var n=a.split(",");n[0]=parseFloat(n[0]),n[1]=parseFloat(n[1]);var s=(0,_.fromLonLat)(n);t=new m.Feature({geometry:new g.Point(s)}),o.routerHintSource.addFeature(t)}var i=(r=o.routerWaySource.getFeatures()[0]).getGeometry().getCoordinates();if(i){var l=e.data("start"),c=e.data("end");c&&((t=new m.Feature({geometry:new g.LineString(i.slice(l,c))})).setStyle(new k.Style({stroke:new k.Stroke({color:"rgba(255, 0, 0, 1)",width:15})})),o.routerHintSource.addFeature(t))}}},a=function(){o.routerHintSource.clear()},jQuery("[data-start]",e).each((function(e,o){var n=jQuery(o);n.click((function(){r(n)})),n.on("mouseenter",(function(){t(n)})),n.on("mouseleave",(function(){a()}))})),jQuery("[data-pos]",e).each((function(e,o){var n=jQuery(o);n.click((function(){r(n)})),n.on("mouseenter",(function(){t(n)})),n.on("mouseleave",(function(){a()}))}))}},{key:"addMapInputInteraction",value:function(){var e,r=this;r.fnMapRouterInteraction=function(t){if(!0===r.state.open){var a=r.props.mapController.map.forEachFeatureAtPixel(t.pixel,(function(e,r){return e}));if(a&&a.getId()){var o=a.getId().search&&a.getId().search("/")?parseFloat(a.getId().substring(a.getId().search("/")+1)):a.getId();r.setState({activeId:o,openResults:!0},(function(){if(document.querySelector(".c4g-route-feature-wrapper")){var e=document.querySelector(".c4g-route-feature-wrapper"),r=document.querySelector("li.route-features-list-element.c4g-active");e&&r&&e.scrollTo(0,r.offsetTop)}}))}else if(e=(0,_.toLonLat)(t.coordinate),r.areaSource.clear(),"route"===r.state.mode){if(""===r.state.fromAddress)r.setRouteFrom(e[0],e[1]),r.recalculateRoute();else if(""===r.state.toAddress)r.setRouteTo(e[0],e[1]),r.recalculateRoute();else if(r.state.overPtCtr>0)for(var n=0;n{"use strict";var a=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),o=t("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(t("./node_modules/@babel/runtime/helpers/classCallCheck.js")),s=a(t("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),l=a(t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(t("./node_modules/@babel/runtime/helpers/inherits.js")),u=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=p(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,t&&t.set(e,a),a}(t("./node_modules/react/index.js"));function p(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(p=function(e){return e?t:r})(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}r.default=function(e){function r(e){return(0,n.default)(this,r),t=this,a=r,o=[e],a=(0,l.default)(a),(0,i.default)(t,b()?Reflect.construct(a,o||[],(0,l.default)(t).constructor):a.apply(t,o));var t,a,o}return(0,c.default)(r,e),(0,s.default)(r,[{key:"render",value:function(){var e=this,r="";this.props.detailBtnClass&&this.props.detailBtnCb&&(r=u.default.createElement("button",{className:this.props.detailBtnClass,onMouseUp:this.props.detailBtnCb}));var t="";this.props.closeBtnClass&&this.props.closeBtnCb&&(t=u.default.createElement("button",{className:this.props.closeBtnClass,onMouseUp:this.props.closeBtnCb,title:this.props.closeBtnTitle}));var a="";return this.props.hideContainer&&(a=u.default.createElement("button",{className:"c4g-sideboard-hide",onMouseUp:function(){jQuery(e.props.hideContainer).removeClass("c4g-open").addClass("c4g-close")}})),u.default.createElement("div",{className:this.props.wrapperClass},u.default.createElement("span",{className:this.props.headerClass},this.props.header),a,t,r,this.props.children)}}])}(u.Component)},"./src/Resources/public/js/routing-constant-i18n-de.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.routingConstantsGerman=void 0,r.routingConstantsGerman={CTRL_ROUTER:"Router öffnen/schließen",ROUTER_VIEW_ADDRESS_INPUT:"Route finden",ROUTER_FROM_LABEL:"Start",ROUTER_OVER_LABEL:"Zwischenziel",ROUTER_TO_LABEL:"Ziel",ROUTER_CLEAR_TITLE:"Löschen",ROUTER_CLEAR_HTML:"",ROUTER_Label_Interim:"Zwischenziel",ROUTER_DEFAULT_HEADLINE_ROUTE:"Router",ROUTER_DEFAULT_HEADLINE_AREA:"Umkreissuche",ROUTER_SWITCH:"Wechsel von Start und Ziel",ROUTER_OVER:"Zwischenziel hinzufügen",ROUTER_PRINT:"Routenbeschreibung drucken",ROUTER_DOWNLOAD:"Route als GPX herunterladen",ROUTER_EDITOR:"Route in den Editor exportieren",ROUTER_EDITOR_ELEMENT:"Element im Editor.",ROUTER_VIEW_LABEL_ROUTE:"Route:",ROUTER_VIEW_LABEL_DISTANCE:"Entfernung:",ROUTER_VIEW_LABEL_TIME:"Zeit:",ROUTER_VIEW_LABEL_PROFILE:"Profil:",ROUTER_VIEW_ALERT_ERROR:"Fehler",ROUTER_VIEW_ALERT_ADDRESS:"Adresse nicht gefunden.",ROUTER_VIEW_ALERT_GOCODING:"Zugriff auf Geocoder fehlgeschlagen.",ROUTER_ERROR_POLYLINE:"Route konnte nicht berechnet werden.",ROUTER_ERROR_LINESTRING:"Strecke lässt sich nicht im Router.",POPUP_ROUTE_FROM:"Route von hier",POPUP_ROUTE_TO:"Route hierhin",POPUP_ROUTE_EDIT:"Strecke im Router öffnen",ROUTER:"Router",ROUTER_N:"Norden",ROUTER_E:"Ost",ROUTER_S:"Süden",ROUTER_W:"Westen",ROUTER_NE:"Nordost",ROUTER_SE:"Südost",ROUTER_SW:"Südwest",ROUTER_NW:"Nordwest",ROUTER_DIRECTION_0:"Unbekannte Anweisung[ auf %s ]",ROUTER_DIRECTION_1:"Geradeaus weiterfahren[ auf %s ]",ROUTER_DIRECTION_2:"Leicht rechts abbiegen [auf %s ]",ROUTER_DIRECTION_3:"Rechts abbiegen[ auf %s ]",ROUTER_DIRECTION_4:"Scharf rechts abbiegen[ auf %s ]",ROUTER_DIRECTION_5:"Wenden[ auf %s ]",ROUTER_DIRECTION_6:"Scharf links abbiegen[ auf %s ]",ROUTER_DIRECTION_7:"Links abbiegen[ auf %s ]",ROUTER_DIRECTION_8:"Leicht links abbiegen[ auf %s ]",ROUTER_DIRECTION_10:"Fahren Sie Richtung %d [ auf %s ]","ROUTER_DIRECTION_11-1":"In den Kreisverkehr einfahren und bei erster Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-2":"In den Kreisverkehr einfahren und bei zweiter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-3":"In den Kreisverkehr einfahren und bei dritter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-4":"In den Kreisverkehr einfahren und bei vierter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-5":"In den Kreisverkehr einfahren und bei fünfter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-6":"In den Kreisverkehr einfahren und bei sechster Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-7":"In den Kreisverkehr einfahren und bei siebter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-8":"In den Kreisverkehr einfahren und bei achter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-9":"In den Kreisverkehr einfahren und bei neunter Möglichkeit[ in Richtung %s ] verlassen","ROUTER_DIRECTION_11-x":"In den Kreisverkehr einfahren und bei einer der vielen Möglichkeiten[ in Richtung %s ] verlassen",ROUTER_DIRECTION_15:"Sie haben Ihr Ziel erreicht","ROUTER_5.X_TYPE_0":" %m fahren[ auf %s ]","ROUTER_5.X_TYPE_1":" %m dem Straßenverlauf folgen[ als %s ]","ROUTER_5.X_TYPE_2":" Fahren Sie[ auf %s ] los","ROUTER_5.X_TYPE_3":" Das Ziel befindet sich %m ","ROUTER_5.X_TYPE_4":" Weiterfahren[ auf %s ]","ROUTER_5.X_TYPE_5":" %m [auf %s ]auffahren","ROUTER_5.X_TYPE_6":" %m [auf %s ]abfahren","ROUTER_5.X_TYPE_7":" Den Fahrstreifen %m benutzen [auf %s ]","ROUTER_5.X_TYPE_8":" %m abbiegen [auf %s ]","ROUTER_5.X_TYPE_9":" Den Fahrstreifen %m benutzen [auf %s ]","ROUTER_5.X_TYPE_10":" %m fahren um auf der Straße zu bleiben","ROUTER_5.X_TYPE_11":" Im Kreisverkehr die %z. Ausfahrt nehmen [auf %s ]","ROUTER_5.X_TYPE_12":" Im Kreisverkehr die %z. Ausfahrt nehmen [auf %s ]","ROUTER_5.X_TYPE_13":" %m fahren [auf %s ]","ROUTER_5.X_TYPE_14":" abbiegen[ auf %s ]","ROUTER_5.X_MOD_0":"Uturn","ROUTER_5.X_MOD_1":"Scharf rechts","ROUTER_5.X_MOD_2":"Rechts","ROUTER_5.X_MOD_3":"Leicht rechts","ROUTER_5.X_MOD_4":"Geradeaus","ROUTER_5.X_MOD_5":"Leicht links","ROUTER_5.X_MOD_6":"Links","ROUTER_5.X_MOD_7":"Scharf links","ROUTER_5.X_MOD_8":"in der Nähe",ROUTER_FROM:"Start",ROUTER_TO:"Ziel",ROUTER_CENTER:"Zentrum",ROUTER_FIND_ROUTE:"Route finden",ROUTER_LOC_ROUTE_TO:"Route hierhin",ROUTER_ROUTEDESC:"Routenbeschreibung",ROUTER_ROUTENAME:"Route",ROUTER_DISTANCE:"Distanz",ROUTER_TIME:"Zeit",ROUTER_REV_GEOCODING:"Ermittle Adresse...",ROUTER_ERROR_REV_GEOCODING:"Fehler beim Ermitteln der Adresse",ROUTER_SEARCHING:"Suche Adresse...",ROUTER_ERROR_SEARCHING:"Fehler beim Suchen der Adresse",ROUTER_CALC_ROUTE:"Berechne Route...",ROUTER_ERROR_CALC_ROUTE:"Fehler beim Berechnen der Route",ROUTER_SETTINGS:"Routeneinstellungen",AREA_NAME:"Umkreissuche",AREA_PROFILE:"Profil",AREA_FEATURECOUNT:"Gefundene Elemente",ROUTE_DETOUR:"Umweg",AREA_DETOUR:"Radius",INSTRUCTION_HEADLINE:"Routenbeschreibung",FEATURES_HEADLINE:"Lokationen",ROUTE_POSITION:"Position ermitteln",START_ROUTE:"Suche starten",REMOVE_ADDRESS:"Adresse löschen",CAR:"Auto",BIKE:"Fahrrad",ROADBIKE:"Rennrad",MOUNTAINBIKE:"Mountainbike",ELECTRICBIKE:"E-Bike",TRUCK:"Lastkraftwagen",WALK:"FußgängerIn",WANDER:"WandererIn",WHEEL:"Rollstuhl",SCOOT:"Roller",MOTORBIKE:"Motorrad",CLOSE:"Schließen",NONE:""}},"./src/Resources/public/js/routing-constant-i18n-en.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.routingConstantsEnglish=void 0,r.routingConstantsEnglish={ROUTER_VIEW_ADDRESS_INPUT:"Find route",ROUTER_FROM_LABEL:"Start",ROUTER_TO_LABEL:"End",ROUTER_CLEAR_TITLE:"Delete",ROUTER_CLEAR_HTML:"",ROUTER_Label_Interim:"Interim Goal",ROUTER_DEFAULT_HEADLINE_ROUTE:"Router",ROUTER_DEFAULT_HEADLINE_AREA:"Area search",ROUTER_SWITCH:"Switch between Start and End",ROUTER_OVER:"Add interim goal",ROUTER_PRINT:"Print route description",ROUTER_DOWNLOAD:"Download route as GPX",ROUTER_EDITOR:"Export route into the editor",ROUTER_EDITOR_ELEMENT:"Element in the editor",POPUP_ROUTE_FROM:"Route from here",POPUP_ROUTE_TO:"Route to here",POPUP_ROUTE_EDIT:"Open line in router",ROUTER_VIEW_LABEL_ROUTE:"Route:",ROUTER_VIEW_LABEL_DISTANCE:"Distance:",ROUTER_VIEW_LABEL_TIME:"Time:",ROUTER_VIEW_LABEL_PROFILE:"Profile",ROUTER_VIEW_ALERT_Error:"Error",ROUTER_VIEW_ALERT_ADDRESS:"Address not found.",ROUTER_VIEW_ALERT_GOCODING:"No access to geocoding.",ROUTER_ERROR_POLYLINE:"Could not calculate route.",ROUTER_ERROR_LINESTRING:"Could not open line in router.",ROUTER:"Router",ROUTER_N:"Head north",ROUTER_E:"Head east",ROUTER_S:"Head south",ROUTER_W:"Head west",ROUTER_NE:"Head northeast",ROUTER_SE:"Head southeast",ROUTER_SW:"Head southwest",ROUTER_NW:"Head northwest",ROUTER_DIRECTION_0:"unknown direction[ onto %s ]",ROUTER_DIRECTION_1:"straight ahead[ onto %s ]",ROUTER_DIRECTION_2:"slight right[ onto %s ]",ROUTER_DIRECTION_3:"right[ onto %s ]",ROUTER_DIRECTION_4:"sharp right[ onto %s ]",ROUTER_DIRECTION_5:"turn[ onto %s ]",ROUTER_DIRECTION_6:"sharp turn left[ onto %s ]",ROUTER_DIRECTION_7:"turn left[ onto %s ]",ROUTER_DIRECTION_8:"light turn left[ onto %s ]",ROUTER_DIRECTION_10:"drive in direction of %d [ onto %s ]","ROUTER_DIRECTION_11-1":"Take the first exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-2":"Take the 2nd exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-3":"Take the 3rd exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-4":"Take the 4th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-5":"Take the 5th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-6":"Take the 6th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-7":"Take the 7th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-8":"Take the 8th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-9":"Take the 9th exit in the roundabout[ onto %s ]","ROUTER_DIRECTION_11-x":"Take one of the exits in the roundabout[ onto %s ]",ROUTER_DIRECTION_15:"Destination reached","ROUTER_5.X_TYPE_0":" Turn %m on[ %s ]","ROUTER_5.X_TYPE_1":" Follow the course of the road %m[ as %s ]","ROUTER_5.X_TYPE_2":" Depart[ on %s ]","ROUTER_5.X_TYPE_3":" Arrive %m ","ROUTER_5.X_TYPE_4":" Continue driving[ on %s ]","ROUTER_5.X_TYPE_5":" Take the ramp %m[ on %s ]","ROUTER_5.X_TYPE_6":" Take the ramp %m[ to exit on%s ]","ROUTER_5.X_TYPE_7":" Take the %m site of the fork to[ %s ]","ROUTER_5.X_TYPE_8":" Turn %m[ on %s ]","ROUTER_5.X_TYPE_9":" Take the lane %m[ on %s ]","ROUTER_5.X_TYPE_10":" Turn %m to stay on the road","ROUTER_5.X_TYPE_11":" Leave the roundabout on the %z. exit[ to %s ]","ROUTER_5.X_TYPE_12":" Leave the roundabout on the %z. exit[ to %s ]","ROUTER_5.X_TYPE_13":" Turn %m[ on %s ]","ROUTER_5.X_TYPE_14":" Follow the road %m","ROUTER_5.X_MOD_0":"Uturn","ROUTER_5.X_MOD_1":"sharp right","ROUTER_5.X_MOD_2":"right","ROUTER_5.X_MOD_3":"slight right","ROUTER_5.X_MOD_4":"straight","ROUTER_5.X_MOD_5":"slight left","ROUTER_5.X_MOD_6":"left","ROUTER_5.X_MOD_7":"sharp left","ROUTER_5.X_MOD_8":"somehow",ROUTER_FROM:"Start",ROUTER_TO:"End",ROUTER_CENTER:"Center",ROUTER_FIND_ROUTE:"Find route",ROUTER_LOC_ROUTE_TO:"Route to here",ROUTER_ROUTEDESC:"Description",ROUTER_ROUTENAME:"Route",ROUTER_DISTANCE:"Distance",ROUTER_TIME:"Time",ROUTER_REV_GEOCODING:"Identified address...",ROUTER_ERROR_REV_GEOCODING:"Fault! Can not identifiy address",ROUTER_SEARCHING:"Search address...",ROUTER_ERROR_SEARCHING:"Fault! Can not find address",ROUTER_CALC_ROUTE:"Calc route...",ROUTER_ERROR_CALC_ROUTE:"Fault! Can not calc address",ROUTER_SETTINGS:"Routing settings",CTRL_ROUTER:"Toggle router",AREA_NAME:"Search perimeter",AREA_PROFILE:"Profile",AREA_FEATURECOUNT:"Found features",ROUTE_DETOUR:"Detour",AREA_DETOUR:"Radius",INSTRUCTION_HEADLINE:"Route Instructions",FEATURES_HEADLINE:"Locations",ROUTE_POSITION:"Get user position",START_ROUTE:"Start search",CAR:"Car",BIKE:"Bike",ROADBIKE:"Road bike",MOUNTAINBIKE:"Mountain bike",ELECTRICBIKE:"E-Bike",TRUCK:"Truck",WALK:"Pedestrian",WANDER:"Wanderer",WHEEL:"Wheelchair",SCOOT:"Router",MOTORBIKE:"Motorbike",CLOSE:"Close",NONE:""}},"./src/Resources/public/js/routing-constant-i18n.js":(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLanguage=function(e){if(void 0!==e)return"de"===e.lang?jQuery.extend(a.routingConstantsGerman,n.langConstantsGerman):jQuery.extend(o.routingConstantsEnglish,s.langConstantsEnglish)};var a=t("./src/Resources/public/js/routing-constant-i18n-de.js"),o=t("./src/Resources/public/js/routing-constant-i18n-en.js"),n=t("./src/Resources/public/js/c4g-maps-constant-i18n-de.js"),s=t("./src/Resources/public/js/c4g-maps-constant-i18n-en.js")},"./src/Resources/public/js/routing-constants.js":(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.routingConstants=void 0,r.routingConstants={ROUTER_INPUT_WRAPPER:"c4g-router-input-wrapper",ROUTER_PROFILE_WRAPPER:"c4g-router-profile-wrapper",ROUTER_INPUT_FROM:"c4g-router-input-from",ROUTER_INPUT_TO:"c4g-router-input-to",ROUTER_INPUT_OVER:"c4g-router-input-over",ROUTER_INPUT_CLEAR:"c4g-router-input-clear",ROUTER_BUTTONBAR:"c4g-router-buttonbar",ROUTER_ATTRIBUTION_WRAPPER:"c4g-router-attribution-wrapper",ROUTER_INSTRUCTIONS_WRAPPER:"c4g-router-instructions-wrapper",ROUTER_INSTRUCTIONS_HEADER:"c4g-router-instructions-header",ROUTER_SWITCH:"c4g-router-switch",ROUTER_OVER:"c4g-router-over",ROUTER_PRINT:"c4g-router-print",ROUTER_PROFILE_CAR:"c4g-router-profile-car",ROUTER_PROFILE_TRUCK:"c4g-router-profile-hgv",ROUTER_PROFILE_BIKE:"c4g-router-profile-bike",ROUTER_PROFILE_FOOT:"c4g-router-profile-foot",ROUTER_PROFILE_WHEELCHAIR:"c4g-router-profile-wheelchair",ROUTER_PROFILE_SCOOTER:"c4g-router-profile-scooter",ROUTER_INSTRUCTIONS_TABLE:"c4g-router-instruction-table",ROUTER_INSTRUCTIONS_ITEM:"c4g-router-instruction-item",ROUTER_INSTRUCTIONS_ITEM_ODD:"c4g-router-instruction-item--odd",ROUTER_INSTRUCTIONS_ITEM_EVEN:"c4g-router-instruction-item--even",ROUTER_INSTRUCTIONS_ITEM_DIRECTION:"c4g-router-instruction-item_direction",ROUTER_INSTRUCTIONS_ITEM_DIRECTION_ICON:"c4g-router-instruction-item_direction-icon",ROUTER_INSTRUCTIONS_ITEM_DIRECTION_TEXT:"c4g-router-instruction-item_text",ROUTER_INSTRUCTIONS_ITEM_DIRECTION_DISTANCE:"c4g-router-instruction-item_distance",ROUTE_LAYER_VALUES:"c4g-routing-layer-values",ROUTE_LAYERS_SELECT:"c4g-routing-layers-select",ROUTE_TOGGLE:"c4g-routing-toggle",OUTPUT_DETOUR:"c4g-routing-output",ROUTE_START_BUTTON:"c4g-route-search-start",ROUTER_SEARCH:"c4g-router-search",ROUTE_POSITION:"c4g-router-position",ROUTE_ERROR:"c4g-routing-error",NONE:""}},"?cdec":()=>{},"?753a":()=>{},"?4e4d":()=>{},"?662e":()=>{}}]);
\ No newline at end of file
diff --git a/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.1594c40bb8c241ce1852.js.LICENSE.txt b/src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.a744cd61f2b1f6edc519.js.LICENSE.txt
similarity index 100%
rename from src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.1594c40bb8c241ce1852.js.LICENSE.txt
rename to src/Resources/public/build/src_Resources_public_js_components_c4g-maps_jsx.bundle.a744cd61f2b1f6edc519.js.LICENSE.txt
diff --git a/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.3e92a8d03e716ec7de9d.js b/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.3e92a8d03e716ec7de9d.js
new file mode 100644
index 00000000..a3f0a0bf
--- /dev/null
+++ b/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.3e92a8d03e716ec7de9d.js
@@ -0,0 +1,2 @@
+/*! For license information please see src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.3e92a8d03e716ec7de9d.js.LICENSE.txt */
+"use strict";(self.webpackChunkmapsbundle=self.webpackChunkmapsbundle||[]).push([["src_Resources_public_js_components_c4g-starboard-panel_jsx"],{"./src/Resources/public/js/components/c4g-starboard-layer-element.jsx":(e,t,r)=>{var s=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),a=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.C4gStarboardLayerElement=void 0;var l=s(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=s(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=s(r("./node_modules/@babel/runtime/helpers/createClass.js")),i=s(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),c=s(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),p=s(r("./node_modules/@babel/runtime/helpers/inherits.js")),u=g(r("./node_modules/react/index.js")),d=(g(r("./node_modules/ol/extent.js")),r("./src/Resources/public/js/c4g-maps-constant.js")),h=r("./src/Resources/public/js/components/c4g-starboard-style.jsx"),y=r("./node_modules/ol/layer.js"),f=s(r("./node_modules/ol/Feature.js"));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(s,o,n):s[o]=e[o]}return s.default=e,r&&r.set(e,s),s}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}t.C4gStarboardLayerElement=function(e){function t(e){var r,s,a,l;return(0,o.default)(this,t),s=this,a=t,l=[e],a=(0,c.default)(a),(r=(0,i.default)(s,b()?Reflect.construct(a,l||[],(0,c.default)(s).constructor):a.apply(s,l))).layerClick=r.layerClick.bind(r),r.layerZoomTo=r.layerZoomTo.bind(r),r.spanClick=r.spanClick.bind(r),r.changeCollapseState=r.changeCollapseState.bind(r),r.parentCallback=r.parentCallback.bind(r),r}return(0,p.default)(t,e),(0,n.default)(t,[{key:"showLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,r=!1,s=!1;e?Array.isArray(e)?r=e:e instanceof y.Vector&&(s=e):(r=r||t.props.layer.features,s=s||t.props.layer.vectorLayer),r=r||t.props.layer.features;var a=t.props.mapController.proxy.layerController;r&&r.length>0?a.show(t.props.layer.loader,r,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):s?a.show(t.props.layer.loader,s,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):e?a.show(t.props.layer.loader,e,e.id,e.key?e.key:e.id):a.show(!1,!1,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id),t.props.mapController.setLayerStateWithId(t.props.id,!0)}},{key:"hideLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,r=!1,s=!1;e?Array.isArray(e)?r=e:e instanceof y.Vector&&(s=e):(r=r||t.props.layer.features,s=s||t.props.layer.vectorLayer);var a=t.props.mapController.proxy.layerController;r&&r.length>0?a.hide(t.props.layer.loader,r,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):s?a.hide(t.props.layer.loader,s,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):e?a.hide(t.props.layer.loader,e,e.id,e.key?e.key:e.id):a.hide(!1,!1,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id),t.props.mapController.setLayerStateWithId(t.props.id,!1)}},{key:"changeChildState",value:function(e,t,r){if(r?this.showLayer(e.features||e.vectorLayer):this.hideLayer(e.features||e.vectorLayer),e.childs&&e.childs.length>0)for(var s in e.childs)e.childs.hasOwnProperty(s)&&t.childStates[s].active!==r&&(t.childStates[s]=this.changeChildState(e.childs[s],t.childStates[s],r));return this.props.mapController.setLayerStateWithId(t.id,r),t.active=r,t}},{key:"parentCallback",value:function(e,t){var r=this.props.layerStates;r.childStates[e]=t,r.active!=t.active&&(t.active?this.showLayer():this.hideLayer()),this.props.parentCallback(this.props.keyId,r)}},{key:"layerEnter",value:function(e){13===e.which&&this.layerClick(e)}},{key:"layerClick",value:function(e){if(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),this.props.layerStates.greyed)return!1;var t=!1;if(this.props.layerStates.active)this.hideLayer();else if(this.showLayer(),t=!0,this.props.layerStates.collapsed){var r=this.props.layerStates;r.collapsed=!1,this.props.changeCollapseState(this.props.keyId,r)}var s=this.props.layerStates;if(this.props.layer.childs&&this.props.layer.childs.length>0&&!this.props.layer.ignoreChilds){var a=this.props.layer.childs;for(var l in a)a.hasOwnProperty(l)&&(s.childStates[l].active,a[l].key&&a[l].key!=a[l].id?t?this.showLayer(a[l]):this.hideLayer(a[l]):s.childStates[l]=this.changeChildState(a[l],s.childStates[l],s.active))}}},{key:"layerZoomTo",value:function(e){var t,r,s=this;this.props.layerStates.active||this.layerClick(e),this.props.mapController.proxy.layerController.zoomTo(this.props.layer)&&(this.props.mapController.proxy.layerController.setChildFeatureFlag(this.props.layer,"markLocstyle",!0),window.setTimeout((function(){s.props.mapController.proxy.layerController.setChildFeatureFlag(s.props.layer,"markLocstyle",!1)}),3e3)),this.props.mapController.proxy.mapData.starboard.openPopup&&(this.props.layer.popup?(t=new f.default,r=new y.Vector,t.set("popup",this.props.layer.popup)):this.props.layer.features&&1===this.props.layer.features.length&&(r=new y.Vector,t=this.props.layer.features[0]),this.props.mapController.proxy.handlePopup(t,r))}},{key:"layerZoomToEnter",value:function(e){13===e.which&&this.layerZoomTo(e)}},{key:"changeCollapseState",value:function(e,t){this.props.layerStates.childStates[e]=t,this.props.changeCollapseState(this.props.keyId,this.props.layerStates)}},{key:"spanClick",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),this.props.layerStates.collapsed=!this.props.layerStates.collapsed,this.props.changeCollapseState(this.props.keyId,this.props.layerStates)}},{key:"render",value:function(){var e=this,r=null,s=null;"1"===this.props.mapController.data.starboard.showLocstyles&&this.props.layer.locstyle&&this.props.styleData&&this.props.styleData.arrLocStyles&&this.props.styleData.arrLocStyles[this.props.layer.locstyle]?r=this.props.layer.zoomTo?u.default.createElement(h.C4gStarboardStyle,{styleData:this.props.styleData,styleId:this.props.layer.locstyle,tooltip:this.props.lang.STARBOARD_ELEMENT_ZOOM_BEFORE+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_ZOOM_AFTER,clickEvent:this.layerZoomTo}):u.default.createElement(h.C4gStarboardStyle,{styleData:this.props.styleData,styleId:this.props.layer.locstyle,tooltip:this.props.layer.name}):this.props.layer.zoomTo&&!this.props.mapController.data.starboard.invertZoomActivate&&(s=u.default.createElement("span",{className:"c4g-geojson-button",title:this.props.lang.STARBOARD_ELEMENT_ZOOM_BEFORE+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_ZOOM_AFTER,onMouseUp:function(t){return e.layerZoomTo(t)}}));var a=this.props.layerStates.active?d.cssConstants.ACTIVE:d.cssConstants.INACTIVE;this.props.layerStates.greyed&&(a+=" "+d.cssConstants.DISABLED);var o,n,i=this.props.layerStates.collapsed?d.cssConstants.CLOSE:d.cssConstants.OPEN,c=this.props.layer.childs;this.props.mapController.data.starboard.invertZoomActivate&&this.props.layer.zoomTo?(o=u.default.createElement(u.default.Fragment,null,u.default.createElement("a",(0,l.default)({tabIndex:1,title:this.props.layer.name,alt:this.props.lang.STARBOARD_ELEMENT_TRIGGER_1+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_TRIGGER_2,className:"c4g-starboard-text",onKeyPress:function(t){return e.layerEnter(t)},onMouseUp:function(t){return e.layerZoomTo(t)}},"onKeyPress",(function(t){return e.layerZoomToEnter(t)})),u.default.createElement("span",{className:"c4g-starboard-list-element__text"},this.props.layer.name))),n=u.default.createElement("a",{className:a+" c4g-starboard-checkbox-icon",onMouseUp:function(t){return e.layerClick(t)}})):o=u.default.createElement("a",{tabIndex:1,title:this.props.layer.name,alt:this.props.lang.STARBOARD_ELEMENT_TRIGGER_1+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_TRIGGER_2,className:a,onKeyPress:function(t){return e.layerEnter(t)},onMouseUp:function(t){return e.layerClick(t)}},u.default.createElement("span",{className:"c4g-starboard-list-element__text"},this.props.layer.name));var p="";if(this.props.layer.cssClass&&(p=" "+this.props.layer.cssClass),c&&c.length){var y=u.default.createElement("span",{alt:this.props.lang.STARBOARD_ELEMENT_CHILDS,className:d.cssConstants.ICON,onMouseUp:function(t){return e.spanClick(t)}});return u.default.createElement("li",{"data-layer-id":this.props.id,className:i+" c4g-starboard-list-element"+p},y,r,s,o,n,u.default.createElement("ul",null,c.map((function(r,s){if(e.props.byPassChilds||e.props.filterFunc(e.props.strFilter,r,e.props.layerStates.childStates[s]))return u.default.createElement(t,{key:s,keyId:s,id:r.id,layerKey:r.key,mapController:e.props.mapController,parentCallback:e.parentCallback,strFilter:e.props.strFilter,filterFunc:e.props.filterFunc,changeCollapseState:e.changeCollapseState,lang:e.props.lang,byPassChilds:e.props.byPassChilds||e.props.filterFunc(e.props.strFilter,r,!1,!1),layerStates:e.props.layerStates.childStates[s],layer:r,styleData:e.props.styleData,fnResize:e.props.fnResize})}))))}return this.layerClick,this.props.layer.zoomTo&&(this.layerZoomTo,a="c4g-geojson-button",n=null),u.default.createElement("li",{"data-layer-id":this.props.id,tabIndex:1,className:i+" c4g-starboard-list-element"+p},r,s,o,n)}}])}(u.Component)},"./src/Resources/public/js/components/c4g-starboard-layerswitcher.jsx":(e,t,r)=>{var s=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),a=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.StarboardLayerswitcher=void 0;var l=s(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=s(r("./node_modules/@babel/runtime/helpers/createClass.js")),n=s(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=s(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=s(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=s(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(s,o,n):s[o]=e[o]}return s.default=e,r&&r.set(e,s),s}(r("./node_modules/react/index.js")),d=r("./src/Resources/public/js/c4g-maps-constant.js"),h=r("./src/Resources/public/js/components/c4g-starboard-layer-element.jsx"),y=s(r("./node_modules/@ungap/structured-clone/cjs/index.js"));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}t.StarboardLayerswitcher=function(e){function t(e){var r,s,a,o;(0,l.default)(this,t),s=this,a=t,o=[e],a=(0,i.default)(a),r=(0,n.default)(s,m()?Reflect.construct(a,o||[],(0,i.default)(s).constructor):a.apply(s,o)),(0,p.default)(r,"getInitialStates",(function(){for(var e in r.initialCounterOff=0,r.initialCounterOn=0,r.props.layerStates)if(r.props.layerStates.hasOwnProperty(e)&&(r.props.layerStates[e].active?r.initialCounterOn++:r.initialCounterOff++,r.props.layerStates[e].childStates))for(var t in r.props.layerStates[e].childStates)r.props.layerStates[e].childStates.hasOwnProperty(t)&&r.getInitialStateChild(r.props.layerStates[e].childStates[t]);return r.initialCounterOn>r.initialCounterOff})),(0,p.default)(r,"callbackFunction",(function(e,t){var s=r.props.layerStates;s[e]=t,r.props.parentCallback(s)}));var c=e.mapController.arrComponents.findIndex((function(e){return"layerswitcher"===e.name}));return e.mapController.arrComponents[c].component=r,r.setLayerFilter=r.setLayerFilter.bind(r),r.toggleAllLayers=r.toggleAllLayers.bind(r),r.toggleSpecificLayers=r.toggleSpecificLayers.bind(r),r.changeCollapseState=r.changeCollapseState.bind(r),r.states={},r.state={initialized:!1,layerFilter:""},r}return(0,c.default)(t,e),(0,o.default)(t,[{key:"getInitialStateChild",value:function(e){if(e.active?this.initialCounterOn++:this.initialCounterOff++,e.childStates)for(var t in e.childStates)e.childStates.hasOwnProperty(t)&&this.getInitialStateChild(e.childStates[t])}},{key:"setLayerFilter",value:function(){var e=jQuery(".c4g-starboard-layertree-filter-field").val()||"";this.setState({layerFilter:e})}},{key:"filterFunc",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!1;if(t&&t.name&&(-1!==t.name.toLowerCase().indexOf(e.toLowerCase())||-1!==t.name.toUpperCase().indexOf(e.toUpperCase())))a=!0,e&&r&&(r.collapsed=!1);else if(t.tags&&t.tags.find&&t.tags.find((function(t){return-1!==t.toLowerCase().indexOf(e.toLowerCase())})))a=!0,e&&r&&(r.collapsed=!1);else if(s)for(var l in t.childs)t.childs.hasOwnProperty(l)&&!a&&(a=this.filterFunc(e,t.childs[l],r.childStates[l]),e&&a&&r&&(r.collapsed=!1));return a}},{key:"applyOldState",value:function(e){var t=this,r=this.props.objLayers,s=this.props.layerStates,a=this.states[e];!function e(r,s,a){for(var l=0;l0&&e(r[l].childs,s[l].childStates,a[l].childStates)}(r,s,a),this.props.parentCallback(a)}},{key:"toggleSpecificLayers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this,s=this.props.objLayers,a=this.props.layerStates;t&&(this.states[t]=(0,y.default)(a)),a=function t(s,a){for(var l=0;l0&&(a[l].childStates=t(s[l].childs,a[l].childStates));return a}(s,a),this.props.parentCallback(a)}},{key:"toggleAllLayers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,r=this.props.layerStates,s=this.props.objLayers;e&&(this.states[e]=(0,y.default)(r)),t.buttonEnabled?(t.props.mapController.map.getView().dispatchEvent({type:"change:resolution"}),t.props.mapController.proxy.layerController.vectorCollection.clear(),r=function e(r,s){for(var a=0;a0&&(s[a].childStates=e(r[a].childs,s[a].childStates));return t.buttonEnabled=!1,s}(s,r)):r=function e(r,s){for(var a=0;a0&&(s[a].childStates=e(r[a].childs,s[a].childStates));return t.buttonEnabled=!0,s}(s,r),this.props.parentCallback(r)}},{key:"changeCollapseState",value:function(e,t){}},{key:"render",value:function(){var e,t,r,s=this;if(!(this.props.layerStates&&this.props.layerStates.length>0)||this.initialCounterOff&&this.initialCounterOn||(this.states.initial=(0,y.default)(this.props.layerStates),this.buttonEnabled=this.getInitialStates()),e=this.props.objLayers,t=this.props.layerStates,!this.props.active)return null;if(r="",this.props.mapController.data.layerswitcher.filter){var a=this.props.mapController.data.layerswitcher.filter_placeholder||"";r=u.default.createElement("div",{className:"c4g-starboard-layertree-filter without-button"},u.default.createElement("input",{className:"c4g-starboard-layertree-filter-field",type:"text",onInput:this.setLayerFilter,placeholder:a}))}var l;return l=this.props.mapController.data.starboard.button?u.default.createElement("a",{className:"c4g-starboard-headline-link "+(this.buttonEnabled?"c4g-active":"c4g-inactive"),onMouseUp:this.toggleAllLayers},this.props.headline||this.props.lang.LAYERSWITCHER_TOGGLE_ALL):u.default.createElement("div",{className:"contentHeadline"},this.props.headline),u.default.createElement(u.default.Fragment,null,l,r,u.default.createElement("div",{className:"c4g-content-layertree"},u.default.createElement("div",{className:d.cssConstants.STARBOARD_LAYERTREE},u.default.createElement("ul",null,e.map((function(e,r){if(s.filterFunc(s.state.layerFilter,e,t[r]))return u.default.createElement(h.C4gStarboardLayerElement,{key:r,keyId:r,id:e.id,mapController:s.props.mapController,parentCallback:s.callbackFunction,layer:e,styleData:s.props.styleData,changeCollapseState:s.props.changeCollapseState,layerStates:t[r],lang:s.props.lang,byPassChilds:s.filterFunc(s.state.layerFilter,e,!1,!1),strFilter:s.state.layerFilter,filterFunc:s.filterFunc,fnResize:s.props.fnResize})}))))))}}])}(u.Component)},"./src/Resources/public/js/components/c4g-starboard-panel.jsx":(e,t,r)=>{var s=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),a=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=s(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=s(r("./node_modules/@babel/runtime/helpers/createClass.js")),n=s(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=s(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=s(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(s,o,n):s[o]=e[o]}return s.default=e,r&&r.set(e,s),s}(r("./node_modules/react/index.js")),u=r("./node_modules/ol/control.js"),d=r("./src/Resources/public/js/c4g-maps-constant.js"),h=r("./src/Resources/public/js/components/c4g-starboard-layerswitcher.jsx"),y=r("./src/Resources/public/js/c4g-maps-i18n.js"),f=r("./src/Resources/public/js/c4g-maps-utils.js");function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var b=p.default.lazy((function(){return Promise.resolve().then(r.bind(r,"./src/Resources/public/js/components/c4g-titlebar.jsx"))}));t.default=function(e){function t(e){var r,s,a,o;(0,l.default)(this,t),s=this,a=t,o=[e],a=(0,i.default)(a);var c=r=(0,n.default)(s,g()?Reflect.construct(a,o||[],(0,i.default)(s).constructor):a.apply(s,o)),p=document.createElement("div"),d=document.createElement("button");if(p.className="c4g-starboard-control ol-unselectable ol-control ",r.langConstants=(0,y.getLanguage)(e.mapController.data),e.mapController.data.themeData&&e.mapController.data.themeData.controlLabels){var h=document.createElement("span");h.innerText=r.langConstants.CTRL_STARBOARD,d.appendChild(h)}else d.title=r.langConstants.CTRL_STARBOARD;e.open?p.className+="c4g-open":p.className+="c4g-close",e.external&&(p.className+=" c4g-external"),p.appendChild(d),jQuery(p).on("click",(function(e){c.state.open?c.close():c.open()}));var f=e.mapController,m=new u.Control({element:p,target:e.target}),b=f.arrComponents.findIndex((function(e){return"layerswitcher"===e.name}));return f.arrComponents[b].control=m,f.mapsControls.controls.horizontalPanel=m,r.open=r.open.bind(r),r.slideOutCollidingElements=r.slideOutCollidingElements.bind(r),r.resizeFunction=r.resizeFunction.bind(r),r.close=r.close.bind(r),r.createStylingForIcon=r.createStylingForIcon.bind(r),r.state={direction:e.direction||"right",open:e.open||!1,className:e.className||"c4g-starboard-panel",childs:e.childs||[],control:m,activeTab:0},r}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){}},{key:"setActiveTab",value:function(e){this.setState({activeTab:e})}},{key:"render",value:function(){var e=this,t=this.props.mapController.data;this.state.className,this.state.direction,this.state.open,this.state.open?jQuery(this.state.control.element).addClass("c4g-open").removeClass("c4g-close"):jQuery(this.state.control.element).removeClass("c4g-open").addClass("c4g-close");var r="",s=[];if(this.props.tabLayers.length>0){var a=p.default.createElement("button",{key:this.props.tabLayers.length,title:this.langConstants.STARBOARD_VIEW_TRIGGER_LAYERSWITCHER,className:"c4g-starboard-view-trigger-layerswitcher",onMouseUp:function(){e.setActiveTab(0)}});s.push(a),s.push(this.props.tabLayers.map((function(t,r){var s=t.awesomeIcon;return e.createStylingForIcon(s,r),p.default.createElement("button",{key:r,title:t[0].name,className:"c4g-starboard-view-trigger-tab-"+r,onMouseUp:function(){e.setActiveTab(r+1)}})}))),r=p.default.createElement("div",{className:"c4g-starboard-switcher"},s)}var l="";return this.props.tabLayers.length>0&&(l=p.default.createElement(p.default.Fragment,null,this.props.tabLayers.map((function(t,r){return p.default.createElement(h.StarboardLayerswitcher,{key:r,mapController:e.props.mapController,objLayers:e.props.tabLayers[r],parentCallback:e.props.tabCallback,layerStates:e.props.tabStates,openfunc:e.open,headline:t[0].name,open:e.state.open,active:r+1===e.state.activeTab})})))),p.default.createElement("div",{className:d.cssConstants.STARBOARD_WRAPPER},p.default.createElement(p.Suspense,{fallback:p.default.createElement("div",null,"Loading...")},p.default.createElement(b,{wrapperClass:"c4g-starboard-header",headerClass:d.cssConstants.STARBOARD_HEADLINE,header:t.starboard.label||this.langConstants.STARBOARD,closeBtnClass:d.cssConstants.STARBOARD_CLOSE,closeBtnCb:this.close,closeBtnTitle:this.langConstants.CLOSE})),r,p.default.createElement("div",{className:d.cssConstants.STARBOARD_CONTENT_CONTAINER},p.default.createElement(h.StarboardLayerswitcher,{key:this.props.tabLayers.length,mapController:this.props.mapController,lang:this.langConstants,objLayers:this.props.objLayers,styleData:this.props.styleData,parentCallback:this.props.parentCallback,layerStates:this.props.layerStates,changeCollapseState:this.props.changeCollapseState,openfunc:this.open,headline:t.layerswitcher.label,open:this.state.open,active:0===e.state.activeTab}),l))}},{key:"createStylingForIcon",value:function(e,t){var r=document.createElement("style");r.appendChild(document.createTextNode("")),document.head.appendChild(r),r.sheet.insertRule("button.c4g-starboard-view-trigger-tab-"+t+':before {\n content: "\\'+e+"\";\n font-family: 'Font Awesome 5 Free';\n font-weight: 900;\n font-size: inherit;\n}")}},{key:"open",value:function(){var e=this;this.setState({open:!0},(function(){return e.slideOutCollidingElements()})),this.props.mapController.setOpenComponent(this)}},{key:"close",value:function(){var e=this;this.setState({open:!1},(function(){return e.slideInCollidingElements()}))}},{key:"resizeFunction",value:function(){var e=this;window.requestAnimationFrame((function(){e.slideOutCollidingElements()}))}},{key:"componentDidUpdate",value:function(e,t,r){if(this.state.open?this.slideOutCollidingElements():this.slideInCollidingElements(),this.props.mapController.data.caching){var s=f.utils.getValue("panel");"StarboardPanel"!==s||this.state.open?"StarboardPanel"!==s&&this.state.open&&f.utils.storeValue("panel","StarboardPanel"):f.utils.storeValue("panel","")}}},{key:"slideOutCollidingElements",value:function(){jQuery(".c4g-starboard-container").addClass("c4g-open").removeClass("c4g-close")}},{key:"slideInCollidingElements",value:function(){jQuery(".c4g-starboard-container").addClass("c4g-close").removeClass("c4g-open")}}])}(p.Component)},"./src/Resources/public/js/components/c4g-starboard-style.jsx":(e,t,r)=>{var s=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),a=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.C4gStarboardStyle=void 0;var l=s(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=s(r("./node_modules/@babel/runtime/helpers/createClass.js")),n=s(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=s(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=s(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(s,o,n):s[o]=e[o]}return s.default=e,r&&r.set(e,s),s}(r("./node_modules/react/index.js")),u=s(r("./node_modules/ol/Feature.js")),d=r("./node_modules/ol/geom.js"),h=r("./src/Resources/public/js/c4g-maps-constant.js"),y=r("./src/Resources/public/js/c4g-maps-utils.js");function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}t.C4gStarboardStyle=function(e){function t(e){return(0,l.default)(this,t),r=this,s=t,a=[e],s=(0,i.default)(s),(0,n.default)(r,m()?Reflect.construct(s,a||[],(0,i.default)(r).constructor):s.apply(r,a));var r,s,a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"enterEvent",value:function(e){13===e.which&&this.props.clickEvent(e)}},{key:"render",value:function(){var e=this,t=null,r=this.props.styleData.arrLocStyles[this.props.styleId],s=r.locStyleArr,a=r.style&&r.style(new u.default({geometry:new d.Point(0,0)}),"EPSG:4326")?r.style(new u.default({geometry:new d.Point(0,0)}),"EPSG:4326"):null,l=Array.isArray(a)?a[0]:a,o=s?s.styletype:"default",n=this.props.tooltip||"";if(!s||"cust_icon"!==o&&"cust_icon_svg"!==o&&"photo"!==o){var i,c,f;switch(o){case"point":i=h.cssConstants.STARBOARD_LOCSTYLE_POINT;break;case"square":i=h.cssConstants.STARBOARD_LOCSTYLE_SQUARE;break;case"star":i=h.cssConstants.STARBOARD_LOCSTYLE_STAR;break;case"x":i=h.cssConstants.STARBOARD_LOCSTYLE_X;break;case"cross":i=h.cssConstants.STARBOARD_LOCSTYLE_CROSS;break;case"triangle":i=h.cssConstants.STARBOARD_LOCSTYLE_TRIANGLE;break;default:i=h.cssConstants.STARBOARD_LOCSTYLE}l&&l.getFill()&&l.getStroke()?(c=l.getFill().getColor(),f=l.getStroke().getColor()):s&&s.fillcolor&&s.strokecolor&&(c=y.utils.getRgbaFromHexAndOpacity(s.fillcolor[0],s.fillcolor[1]),f=y.utils.getRgbaFromHexAndOpacity(s.strokecolor[0],s.strokecolor[1]));var m={"--var-color":c,"--var-bordercolor":f};t=this.props.clickEvent?p.default.createElement("span",{className:i,style:m,title:n,onMouseUp:function(t){return e.props.clickEvent(t)}}):p.default.createElement("span",{className:i,style:m,title:n})}else{var g,b=null;if(s.icon_src&&-1!==s.icon_src.indexOf(".")||s.svgSrc&&-1!==s.svgSrc.indexOf("."))g="cust_icon"===o||"photo"===o?s.icon_src:s.svgSrc,b=p.default.createElement("img",{src:g,style:{height:25,width:25}});else if(l){var C=l.getImage&&"function"==typeof l.getImage&&l.getImage()?l.getImage():null;if(!C||!C.getSrc())return null;b=p.default.createElement("img",{src:C.getSrc(),style:{height:25,width:25}})}t=this.props.clickEvent?p.default.createElement("span",{tabIndex:1,className:h.cssConstants.STARBOARD_LOCSTYLE,title:n,onKeyPress:function(t){return e.enterEvent(t)},onMouseUp:function(t){return e.props.clickEvent(t)}},b):p.default.createElement("span",{className:h.cssConstants.STARBOARD_LOCSTYLE,title:n},b)}return t}}])}(p.Component)},"./node_modules/@ungap/structured-clone/cjs/deserialize.js":(e,t,r)=>{const{VOID:s,PRIMITIVE:a,ARRAY:l,OBJECT:o,DATE:n,REGEXP:i,MAP:c,SET:p,ERROR:u,BIGINT:d}=r("./node_modules/@ungap/structured-clone/cjs/types.js"),h="object"==typeof self?self:globalThis;t.deserialize=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),y=f=>{if(e.has(f))return e.get(f);const[m,g]=t[f];switch(m){case a:case s:return r(g,f);case l:{const e=r([],f);for(const t of g)e.push(y(t));return e}case o:{const e=r({},f);for(const[t,r]of g)e[y(t)]=y(r);return e}case n:return r(new Date(g),f);case i:{const{source:e,flags:t}=g;return r(new RegExp(e,t),f)}case c:{const e=r(new Map,f);for(const[t,r]of g)e.set(y(t),y(r));return e}case p:{const e=r(new Set,f);for(const t of g)e.add(y(t));return e}case u:{const{name:e,message:t}=g;return r(new h[e](t),f)}case d:return r(BigInt(g),f);case"BigInt":return r(Object(BigInt(g)),f)}return r(new h[m](g),f)};return y})(new Map,e)(0)},"./node_modules/@ungap/structured-clone/cjs/index.js":(e,t,r)=>{const{deserialize:s}=r("./node_modules/@ungap/structured-clone/cjs/deserialize.js"),{serialize:a}=r("./node_modules/@ungap/structured-clone/cjs/serialize.js");Object.defineProperty(t,"__esModule",{value:!0}).default="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?s(a(e,t)):structuredClone(e):(e,t)=>s(a(e,t)),t.deserialize=s,t.serialize=a},"./node_modules/@ungap/structured-clone/cjs/serialize.js":(e,t,r)=>{const{VOID:s,PRIMITIVE:a,ARRAY:l,OBJECT:o,DATE:n,REGEXP:i,MAP:c,SET:p,ERROR:u,BIGINT:d}=r("./node_modules/@ungap/structured-clone/cjs/types.js"),h="",{toString:y}={},{keys:f}=Object,m=e=>{const t=typeof e;if("object"!==t||!e)return[a,t];const r=y.call(e).slice(8,-1);switch(r){case"Array":return[l,h];case"Object":return[o,h];case"Date":return[n,h];case"RegExp":return[i,h];case"Map":return[c,h];case"Set":return[p,h]}return r.includes("Array")?[l,r]:r.includes("Error")?[u,r]:[o,r]},g=([e,t])=>e===a&&("function"===t||"symbol"===t);t.serialize=(e,{json:t,lossy:r}={})=>{const u=[];return((e,t,r,u)=>{const h=(e,t)=>{const s=u.push(e)-1;return r.set(t,s),s},y=u=>{if(r.has(u))return r.get(u);let[b,C]=m(u);switch(b){case a:{let t=u;switch(C){case"bigint":b=d,t=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+C);t=null;break;case"undefined":return h([s],u)}return h([b,t],u)}case l:{if(C)return h([C,[...u]],u);const e=[],t=h([b,e],u);for(const t of u)e.push(y(t));return t}case o:{if(C)switch(C){case"BigInt":return h([C,u.toString()],u);case"Boolean":case"Number":case"String":return h([C,u.valueOf()],u)}if(t&&"toJSON"in u)return y(u.toJSON());const r=[],s=h([b,r],u);for(const t of f(u))!e&&g(m(u[t]))||r.push([y(t),y(u[t])]);return s}case n:return h([b,u.toISOString()],u);case i:{const{source:e,flags:t}=u;return h([b,{source:e,flags:t}],u)}case c:{const t=[],r=h([b,t],u);for(const[r,s]of u)(e||!g(m(r))&&!g(m(s)))&&t.push([y(r),y(s)]);return r}case p:{const t=[],r=h([b,t],u);for(const r of u)!e&&g(m(r))||t.push(y(r));return r}}const{message:v}=u;return h([b,{name:C,message:v}],u)};return y})(!(t||r),!!t,new Map,u)(e),u}},"./node_modules/@ungap/structured-clone/cjs/types.js":(e,t)=>{t.VOID=-1,t.PRIMITIVE=0,t.ARRAY=1,t.OBJECT=2,t.DATE=3,t.REGEXP=4,t.MAP=5,t.SET=6,t.ERROR=7,t.BIGINT=8}}]);
\ No newline at end of file
diff --git a/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.e5296d1dc7e8d00d3607.js.LICENSE.txt b/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.3e92a8d03e716ec7de9d.js.LICENSE.txt
similarity index 100%
rename from src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.e5296d1dc7e8d00d3607.js.LICENSE.txt
rename to src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.3e92a8d03e716ec7de9d.js.LICENSE.txt
diff --git a/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.e5296d1dc7e8d00d3607.js b/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.e5296d1dc7e8d00d3607.js
deleted file mode 100644
index 08d45592..00000000
--- a/src/Resources/public/build/src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.e5296d1dc7e8d00d3607.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see src_Resources_public_js_components_c4g-starboard-panel_jsx.bundle.e5296d1dc7e8d00d3607.js.LICENSE.txt */
-"use strict";(self.webpackChunkmapsbundle=self.webpackChunkmapsbundle||[]).push([["src_Resources_public_js_components_c4g-starboard-panel_jsx"],{"./src/Resources/public/js/components/c4g-starboard-layer-element.jsx":(e,t,r)=>{var a=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),s=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.C4gStarboardLayerElement=void 0;var l=a(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=a(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n=a(r("./node_modules/@babel/runtime/helpers/createClass.js")),i=a(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),c=a(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),p=a(r("./node_modules/@babel/runtime/helpers/inherits.js")),u=g(r("./node_modules/react/index.js")),d=(g(r("./node_modules/ol/extent.js")),r("./src/Resources/public/js/c4g-maps-constant.js")),h=r("./src/Resources/public/js/components/c4g-starboard-style.jsx"),y=r("./node_modules/ol/layer.js"),f=a(r("./node_modules/ol/Feature.js"));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}t.C4gStarboardLayerElement=function(e){function t(e){var r,a,s,l;return(0,o.default)(this,t),a=this,s=t,l=[e],s=(0,c.default)(s),(r=(0,i.default)(a,b()?Reflect.construct(s,l||[],(0,c.default)(a).constructor):s.apply(a,l))).layerClick=r.layerClick.bind(r),r.layerZoomTo=r.layerZoomTo.bind(r),r.spanClick=r.spanClick.bind(r),r.changeCollapseState=r.changeCollapseState.bind(r),r.parentCallback=r.parentCallback.bind(r),r}return(0,p.default)(t,e),(0,n.default)(t,[{key:"showLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,r=!1,a=!1;e?Array.isArray(e)?r=e:e instanceof y.Vector&&(a=e):(r=r||t.props.layer.features,a=a||t.props.layer.vectorLayer),r=r||t.props.layer.features;var s=t.props.mapController.proxy.layerController;r&&r.length>0?s.show(t.props.layer.loader,r,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):a?s.show(t.props.layer.loader,a,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):e?s.show(t.props.layer.loader,e,e.id,e.key?e.key:e.id):s.show(!1,!1,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id),t.props.mapController.setLayerStateWithId(t.props.id,!0)}},{key:"hideLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,r=!1,a=!1;e?Array.isArray(e)?r=e:e instanceof y.Vector&&(a=e):(r=r||t.props.layer.features,a=a||t.props.layer.vectorLayer);var s=t.props.mapController.proxy.layerController;r&&r.length>0?s.hide(t.props.layer.loader,r,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):a?s.hide(t.props.layer.loader,a,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id):e?s.hide(t.props.layer.loader,e,e.id,e.key?e.key:e.id):s.hide(!1,!1,t.props.id,t.props.layerKey?t.props.layerKey:t.props.id),t.props.mapController.setLayerStateWithId(t.props.id,!1)}},{key:"changeChildState",value:function(e,t,r){if(r?this.showLayer(e.features||e.vectorLayer):this.hideLayer(e.features||e.vectorLayer),e.childs&&e.childs.length>0)for(var a in e.childs)e.childs.hasOwnProperty(a)&&t.childStates[a].active!==r&&(t.childStates[a]=this.changeChildState(e.childs[a],t.childStates[a],r));return this.props.mapController.setLayerStateWithId(t.id,r),t.active=r,t}},{key:"parentCallback",value:function(e,t){var r=this.props.layerStates;r.childStates[e]=t,r.active!=t.active&&(t.active?this.showLayer():this.hideLayer()),this.props.parentCallback(this.props.keyId,r)}},{key:"layerEnter",value:function(e){13===e.which&&this.layerClick(e)}},{key:"layerClick",value:function(e){if(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),this.props.layerStates.greyed)return!1;var t=!1;if(this.props.layerStates.active)this.hideLayer();else if(this.showLayer(),t=!0,this.props.layerStates.collapsed){var r=this.props.layerStates;r.collapsed=!1,this.props.changeCollapseState(this.props.keyId,r)}var a=this.props.layerStates;if(this.props.layer.childs&&this.props.layer.childs.length>0&&!this.props.layer.ignoreChilds){var s=this.props.layer.childs;for(var l in s)s.hasOwnProperty(l)&&(a.childStates[l].active,s[l].key&&s[l].key!=s[l].id?t?this.showLayer(s[l]):this.hideLayer(s[l]):a.childStates[l]=this.changeChildState(s[l],a.childStates[l],a.active))}}},{key:"layerZoomTo",value:function(e){var t,r,a=this;this.props.layerStates.active||this.layerClick(e),this.props.mapController.proxy.layerController.zoomTo(this.props.layer)&&(this.props.mapController.proxy.layerController.setChildFeatureFlag(this.props.layer,"markLocstyle",!0),window.setTimeout((function(){a.props.mapController.proxy.layerController.setChildFeatureFlag(a.props.layer,"markLocstyle",!1)}),3e3)),this.props.mapController.proxy.mapData.starboard.openPopup&&(this.props.layer.popup?(t=new f.default,r=new y.Vector,t.set("popup",this.props.layer.popup)):this.props.layer.features&&1===this.props.layer.features.length&&(r=new y.Vector,t=this.props.layer.features[0]),this.props.mapController.proxy.handlePopup(t,r))}},{key:"layerZoomToEnter",value:function(e){13===e.which&&this.layerZoomTo(e)}},{key:"changeCollapseState",value:function(e,t){this.props.layerStates.childStates[e]=t,this.props.changeCollapseState(this.props.keyId,this.props.layerStates)}},{key:"spanClick",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),this.props.layerStates.collapsed=!this.props.layerStates.collapsed,this.props.changeCollapseState(this.props.keyId,this.props.layerStates)}},{key:"render",value:function(){var e=this,r=null,a=null;"1"===this.props.mapController.data.starboard.showLocstyles&&this.props.layer.locstyle&&this.props.styleData&&this.props.styleData.arrLocStyles&&this.props.styleData.arrLocStyles[this.props.layer.locstyle]?r=this.props.layer.zoomTo?u.default.createElement(h.C4gStarboardStyle,{styleData:this.props.styleData,styleId:this.props.layer.locstyle,tooltip:this.props.lang.STARBOARD_ELEMENT_ZOOM_BEFORE+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_ZOOM_AFTER,clickEvent:this.layerZoomTo}):u.default.createElement(h.C4gStarboardStyle,{styleData:this.props.styleData,styleId:this.props.layer.locstyle,tooltip:this.props.layer.name}):this.props.layer.zoomTo&&!this.props.mapController.data.starboard.invertZoomActivate&&(a=u.default.createElement("span",{className:"c4g-geojson-button",title:this.props.lang.STARBOARD_ELEMENT_ZOOM_BEFORE+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_ZOOM_AFTER,onMouseUp:function(t){return e.layerZoomTo(t)}}));var s=this.props.layerStates.active?d.cssConstants.ACTIVE:d.cssConstants.INACTIVE;this.props.layerStates.greyed&&(s+=" "+d.cssConstants.DISABLED);var o,n,i=this.props.layerStates.collapsed?d.cssConstants.CLOSE:d.cssConstants.OPEN,c=this.props.layer.childs;if(this.props.mapController.data.starboard.invertZoomActivate&&this.props.layer.zoomTo?(o=u.default.createElement(u.default.Fragment,null,u.default.createElement("a",(0,l.default)({tabIndex:1,title:this.props.layer.name,alt:this.props.lang.STARBOARD_ELEMENT_TRIGGER_1+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_TRIGGER_2,className:"c4g-starboard-text",onKeyPress:function(t){return e.layerEnter(t)},onMouseUp:function(t){return e.layerZoomTo(t)}},"onKeyPress",(function(t){return e.layerZoomToEnter(t)})),u.default.createElement("span",{className:"c4g-starboard-list-element__text"},this.props.layer.name))),n=u.default.createElement("a",{className:s+" c4g-starboard-checkbox-icon",onMouseUp:function(t){return e.layerClick(t)}})):o=u.default.createElement("a",{tabIndex:1,title:this.props.layer.name,alt:this.props.lang.STARBOARD_ELEMENT_TRIGGER_1+this.props.layer.name+this.props.lang.STARBOARD_ELEMENT_TRIGGER_2,className:s,onKeyPress:function(t){return e.layerEnter(t)},onMouseUp:function(t){return e.layerClick(t)}},u.default.createElement("span",{className:"c4g-starboard-list-element__text"},this.props.layer.name)),c&&c.length){var p=u.default.createElement("span",{alt:this.props.lang.STARBOARD_ELEMENT_CHILDS,className:d.cssConstants.ICON,onMouseUp:function(t){return e.spanClick(t)}});return u.default.createElement("li",{"data-layer-id":this.props.id,className:i+" c4g-starboard-list-element"},p,r,a,o,n,u.default.createElement("ul",null,c.map((function(r,a){if(e.props.byPassChilds||e.props.filterFunc(e.props.strFilter,r,e.props.layerStates.childStates[a]))return u.default.createElement(t,{key:a,keyId:a,id:r.id,layerKey:r.key,mapController:e.props.mapController,parentCallback:e.parentCallback,strFilter:e.props.strFilter,filterFunc:e.props.filterFunc,changeCollapseState:e.changeCollapseState,lang:e.props.lang,byPassChilds:e.props.byPassChilds||e.props.filterFunc(e.props.strFilter,r,!1,!1),layerStates:e.props.layerStates.childStates[a],layer:r,styleData:e.props.styleData,fnResize:e.props.fnResize})}))))}return this.layerClick,this.props.layer.zoomTo&&(this.layerZoomTo,s="c4g-geojson-button",n=null),u.default.createElement("li",{"data-layer-id":this.props.id,tabIndex:1,className:i+" c4g-starboard-list-element"},r,a,o,n)}}])}(u.Component)},"./src/Resources/public/js/components/c4g-starboard-layerswitcher.jsx":(e,t,r)=>{var a=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),s=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.StarboardLayerswitcher=void 0;var l=a(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=a(r("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=a(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r("./node_modules/react/index.js")),d=r("./src/Resources/public/js/c4g-maps-constant.js"),h=r("./src/Resources/public/js/components/c4g-starboard-layer-element.jsx"),y=a(r("./node_modules/@ungap/structured-clone/cjs/index.js"));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}t.StarboardLayerswitcher=function(e){function t(e){var r,a,s,o;(0,l.default)(this,t),a=this,s=t,o=[e],s=(0,i.default)(s),r=(0,n.default)(a,m()?Reflect.construct(s,o||[],(0,i.default)(a).constructor):s.apply(a,o)),(0,p.default)(r,"getInitialStates",(function(){for(var e in r.initialCounterOff=0,r.initialCounterOn=0,r.props.layerStates)if(r.props.layerStates.hasOwnProperty(e)&&(r.props.layerStates[e].active?r.initialCounterOn++:r.initialCounterOff++,r.props.layerStates[e].childStates))for(var t in r.props.layerStates[e].childStates)r.props.layerStates[e].childStates.hasOwnProperty(t)&&r.getInitialStateChild(r.props.layerStates[e].childStates[t]);return r.initialCounterOn>r.initialCounterOff})),(0,p.default)(r,"callbackFunction",(function(e,t){var a=r.props.layerStates;a[e]=t,r.props.parentCallback(a)}));var c=e.mapController.arrComponents.findIndex((function(e){return"layerswitcher"===e.name}));return e.mapController.arrComponents[c].component=r,r.setLayerFilter=r.setLayerFilter.bind(r),r.toggleAllLayers=r.toggleAllLayers.bind(r),r.toggleSpecificLayers=r.toggleSpecificLayers.bind(r),r.changeCollapseState=r.changeCollapseState.bind(r),r.states={},r.state={initialized:!1,layerFilter:""},r}return(0,c.default)(t,e),(0,o.default)(t,[{key:"getInitialStateChild",value:function(e){if(e.active?this.initialCounterOn++:this.initialCounterOff++,e.childStates)for(var t in e.childStates)e.childStates.hasOwnProperty(t)&&this.getInitialStateChild(e.childStates[t])}},{key:"setLayerFilter",value:function(){var e=jQuery(".c4g-starboard-layertree-filter-field").val()||"";this.setState({layerFilter:e})}},{key:"filterFunc",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!1;if(t&&t.name&&(-1!==t.name.toLowerCase().indexOf(e.toLowerCase())||-1!==t.name.toUpperCase().indexOf(e.toUpperCase())))s=!0,e&&r&&(r.collapsed=!1);else if(t.tags&&t.tags.find&&t.tags.find((function(t){return-1!==t.toLowerCase().indexOf(e.toLowerCase())})))s=!0,e&&r&&(r.collapsed=!1);else if(a)for(var l in t.childs)t.childs.hasOwnProperty(l)&&!s&&(s=this.filterFunc(e,t.childs[l],r.childStates[l]),e&&s&&r&&(r.collapsed=!1));return s}},{key:"applyOldState",value:function(e){var t=this,r=this.props.objLayers,a=this.props.layerStates,s=this.states[e];!function e(r,a,s){for(var l=0;l0&&e(r[l].childs,a[l].childStates,s[l].childStates)}(r,a,s),this.props.parentCallback(s)}},{key:"toggleSpecificLayers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this,a=this.props.objLayers,s=this.props.layerStates;t&&(this.states[t]=(0,y.default)(s)),s=function t(a,s){for(var l=0;l0&&(s[l].childStates=t(a[l].childs,s[l].childStates));return s}(a,s),this.props.parentCallback(s)}},{key:"toggleAllLayers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,r=this.props.layerStates,a=this.props.objLayers;e&&(this.states[e]=(0,y.default)(r)),t.buttonEnabled?(t.props.mapController.map.getView().dispatchEvent({type:"change:resolution"}),t.props.mapController.proxy.layerController.vectorCollection.clear(),r=function e(r,a){for(var s=0;s0&&(a[s].childStates=e(r[s].childs,a[s].childStates));return t.buttonEnabled=!1,a}(a,r)):r=function e(r,a){for(var s=0;s0&&(a[s].childStates=e(r[s].childs,a[s].childStates));return t.buttonEnabled=!0,a}(a,r),this.props.parentCallback(r)}},{key:"changeCollapseState",value:function(e,t){}},{key:"render",value:function(){var e,t,r,a=this;if(!(this.props.layerStates&&this.props.layerStates.length>0)||this.initialCounterOff&&this.initialCounterOn||(this.states.initial=(0,y.default)(this.props.layerStates),this.buttonEnabled=this.getInitialStates()),e=this.props.objLayers,t=this.props.layerStates,!this.props.active)return null;if(r="",this.props.mapController.data.layerswitcher.filter){var s=this.props.mapController.data.layerswitcher.filter_placeholder||"";r=u.default.createElement("div",{className:"c4g-starboard-layertree-filter without-button"},u.default.createElement("input",{className:"c4g-starboard-layertree-filter-field",type:"text",onInput:this.setLayerFilter,placeholder:s}))}var l;return l=this.props.mapController.data.starboard.button?u.default.createElement("a",{className:"c4g-starboard-headline-link "+(this.buttonEnabled?"c4g-active":"c4g-inactive"),onMouseUp:this.toggleAllLayers},this.props.headline||this.props.lang.LAYERSWITCHER_TOGGLE_ALL):u.default.createElement("div",{className:"contentHeadline"},this.props.headline),u.default.createElement(u.default.Fragment,null,l,r,u.default.createElement("div",{className:"c4g-content-layertree"},u.default.createElement("div",{className:d.cssConstants.STARBOARD_LAYERTREE},u.default.createElement("ul",null,e.map((function(e,r){if(a.filterFunc(a.state.layerFilter,e,t[r]))return u.default.createElement(h.C4gStarboardLayerElement,{key:r,keyId:r,id:e.id,mapController:a.props.mapController,parentCallback:a.callbackFunction,layer:e,styleData:a.props.styleData,changeCollapseState:a.props.changeCollapseState,layerStates:t[r],lang:a.props.lang,byPassChilds:a.filterFunc(a.state.layerFilter,e,!1,!1),strFilter:a.state.layerFilter,filterFunc:a.filterFunc,fnResize:a.props.fnResize})}))))))}}])}(u.Component)},"./src/Resources/public/js/components/c4g-starboard-panel.jsx":(e,t,r)=>{var a=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),s=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=a(r("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r("./node_modules/react/index.js")),u=r("./node_modules/ol/control.js"),d=r("./src/Resources/public/js/c4g-maps-constant.js"),h=r("./src/Resources/public/js/components/c4g-starboard-layerswitcher.jsx"),y=r("./src/Resources/public/js/c4g-maps-i18n.js"),f=r("./src/Resources/public/js/c4g-maps-utils.js");function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var b=p.default.lazy((function(){return Promise.resolve().then(r.bind(r,"./src/Resources/public/js/components/c4g-titlebar.jsx"))}));t.default=function(e){function t(e){var r,a,s,o;(0,l.default)(this,t),a=this,s=t,o=[e],s=(0,i.default)(s);var c=r=(0,n.default)(a,g()?Reflect.construct(s,o||[],(0,i.default)(a).constructor):s.apply(a,o)),p=document.createElement("div"),d=document.createElement("button");if(p.className="c4g-starboard-control ol-unselectable ol-control ",r.langConstants=(0,y.getLanguage)(e.mapController.data),e.mapController.data.themeData&&e.mapController.data.themeData.controlLabels){var h=document.createElement("span");h.innerText=r.langConstants.CTRL_STARBOARD,d.appendChild(h)}else d.title=r.langConstants.CTRL_STARBOARD;e.open?p.className+="c4g-open":p.className+="c4g-close",e.external&&(p.className+=" c4g-external"),p.appendChild(d),jQuery(p).on("click",(function(e){c.state.open?c.close():c.open()}));var f=e.mapController,m=new u.Control({element:p,target:e.target}),b=f.arrComponents.findIndex((function(e){return"layerswitcher"===e.name}));return f.arrComponents[b].control=m,f.mapsControls.controls.horizontalPanel=m,r.open=r.open.bind(r),r.slideOutCollidingElements=r.slideOutCollidingElements.bind(r),r.resizeFunction=r.resizeFunction.bind(r),r.close=r.close.bind(r),r.createStylingForIcon=r.createStylingForIcon.bind(r),r.state={direction:e.direction||"right",open:e.open||!1,className:e.className||"c4g-starboard-panel",childs:e.childs||[],control:m,activeTab:0},r}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){}},{key:"setActiveTab",value:function(e){this.setState({activeTab:e})}},{key:"render",value:function(){var e=this,t=this.props.mapController.data;this.state.className,this.state.direction,this.state.open,this.state.open?jQuery(this.state.control.element).addClass("c4g-open").removeClass("c4g-close"):jQuery(this.state.control.element).removeClass("c4g-open").addClass("c4g-close");var r="",a=[];if(this.props.tabLayers.length>0){var s=p.default.createElement("button",{key:this.props.tabLayers.length,title:this.langConstants.STARBOARD_VIEW_TRIGGER_LAYERSWITCHER,className:"c4g-starboard-view-trigger-layerswitcher",onMouseUp:function(){e.setActiveTab(0)}});a.push(s),a.push(this.props.tabLayers.map((function(t,r){var a=t.awesomeIcon;return e.createStylingForIcon(a,r),p.default.createElement("button",{key:r,title:t[0].name,className:"c4g-starboard-view-trigger-tab-"+r,onMouseUp:function(){e.setActiveTab(r+1)}})}))),r=p.default.createElement("div",{className:"c4g-starboard-switcher"},a)}var l="";return this.props.tabLayers.length>0&&(l=p.default.createElement(p.default.Fragment,null,this.props.tabLayers.map((function(t,r){return p.default.createElement(h.StarboardLayerswitcher,{key:r,mapController:e.props.mapController,objLayers:e.props.tabLayers[r],parentCallback:e.props.tabCallback,layerStates:e.props.tabStates,openfunc:e.open,headline:t[0].name,open:e.state.open,active:r+1===e.state.activeTab})})))),p.default.createElement("div",{className:d.cssConstants.STARBOARD_WRAPPER},p.default.createElement(p.Suspense,{fallback:p.default.createElement("div",null,"Loading...")},p.default.createElement(b,{wrapperClass:"c4g-starboard-header",headerClass:d.cssConstants.STARBOARD_HEADLINE,header:t.starboard.label||this.langConstants.STARBOARD,closeBtnClass:d.cssConstants.STARBOARD_CLOSE,closeBtnCb:this.close,closeBtnTitle:this.langConstants.CLOSE})),r,p.default.createElement("div",{className:d.cssConstants.STARBOARD_CONTENT_CONTAINER},p.default.createElement(h.StarboardLayerswitcher,{key:this.props.tabLayers.length,mapController:this.props.mapController,lang:this.langConstants,objLayers:this.props.objLayers,styleData:this.props.styleData,parentCallback:this.props.parentCallback,layerStates:this.props.layerStates,changeCollapseState:this.props.changeCollapseState,openfunc:this.open,headline:t.layerswitcher.label,open:this.state.open,active:0===e.state.activeTab}),l))}},{key:"createStylingForIcon",value:function(e,t){var r=document.createElement("style");r.appendChild(document.createTextNode("")),document.head.appendChild(r),r.sheet.insertRule("button.c4g-starboard-view-trigger-tab-"+t+':before {\n content: "\\'+e+"\";\n font-family: 'Font Awesome 5 Free';\n font-weight: 900;\n font-size: inherit;\n}")}},{key:"open",value:function(){var e=this;this.setState({open:!0},(function(){return e.slideOutCollidingElements()})),this.props.mapController.setOpenComponent(this)}},{key:"close",value:function(){var e=this;this.setState({open:!1},(function(){return e.slideInCollidingElements()}))}},{key:"resizeFunction",value:function(){var e=this;window.requestAnimationFrame((function(){e.slideOutCollidingElements()}))}},{key:"componentDidUpdate",value:function(e,t,r){if(this.state.open?this.slideOutCollidingElements():this.slideInCollidingElements(),this.props.mapController.data.caching){var a=f.utils.getValue("panel");"StarboardPanel"!==a||this.state.open?"StarboardPanel"!==a&&this.state.open&&f.utils.storeValue("panel","StarboardPanel"):f.utils.storeValue("panel","")}}},{key:"slideOutCollidingElements",value:function(){jQuery(".c4g-starboard-container").addClass("c4g-open").removeClass("c4g-close")}},{key:"slideInCollidingElements",value:function(){jQuery(".c4g-starboard-container").addClass("c4g-close").removeClass("c4g-open")}}])}(p.Component)},"./src/Resources/public/js/components/c4g-starboard-style.jsx":(e,t,r)=>{var a=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),s=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.C4gStarboardStyle=void 0;var l=a(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=a(r("./node_modules/@babel/runtime/helpers/createClass.js")),n=a(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),i=a(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),c=a(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=l?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r("./node_modules/react/index.js")),u=a(r("./node_modules/ol/Feature.js")),d=r("./node_modules/ol/geom.js"),h=r("./src/Resources/public/js/c4g-maps-constant.js"),y=r("./src/Resources/public/js/c4g-maps-utils.js");function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}t.C4gStarboardStyle=function(e){function t(e){return(0,l.default)(this,t),r=this,a=t,s=[e],a=(0,i.default)(a),(0,n.default)(r,m()?Reflect.construct(a,s||[],(0,i.default)(r).constructor):a.apply(r,s));var r,a,s}return(0,c.default)(t,e),(0,o.default)(t,[{key:"enterEvent",value:function(e){13===e.which&&this.props.clickEvent(e)}},{key:"render",value:function(){var e=this,t=null,r=this.props.styleData.arrLocStyles[this.props.styleId],a=r.locStyleArr,s=r.style&&r.style(new u.default({geometry:new d.Point(0,0)}),"EPSG:4326")?r.style(new u.default({geometry:new d.Point(0,0)}),"EPSG:4326"):null,l=Array.isArray(s)?s[0]:s,o=a?a.styletype:"default",n=this.props.tooltip||"";if(!a||"cust_icon"!==o&&"cust_icon_svg"!==o&&"photo"!==o){var i,c,f;switch(o){case"point":i=h.cssConstants.STARBOARD_LOCSTYLE_POINT;break;case"square":i=h.cssConstants.STARBOARD_LOCSTYLE_SQUARE;break;case"star":i=h.cssConstants.STARBOARD_LOCSTYLE_STAR;break;case"x":i=h.cssConstants.STARBOARD_LOCSTYLE_X;break;case"cross":i=h.cssConstants.STARBOARD_LOCSTYLE_CROSS;break;case"triangle":i=h.cssConstants.STARBOARD_LOCSTYLE_TRIANGLE;break;default:i=h.cssConstants.STARBOARD_LOCSTYLE}l&&l.getFill()&&l.getStroke()?(c=l.getFill().getColor(),f=l.getStroke().getColor()):a&&a.fillcolor&&a.strokecolor&&(c=y.utils.getRgbaFromHexAndOpacity(a.fillcolor[0],a.fillcolor[1]),f=y.utils.getRgbaFromHexAndOpacity(a.strokecolor[0],a.strokecolor[1]));var m={"--var-color":c,"--var-bordercolor":f};t=this.props.clickEvent?p.default.createElement("span",{className:i,style:m,title:n,onMouseUp:function(t){return e.props.clickEvent(t)}}):p.default.createElement("span",{className:i,style:m,title:n})}else{var g,b=null;if(a.icon_src&&-1!==a.icon_src.indexOf(".")||a.svgSrc&&-1!==a.svgSrc.indexOf("."))g="cust_icon"===o||"photo"===o?a.icon_src:a.svgSrc,b=p.default.createElement("img",{src:g,style:{height:25,width:25}});else if(l){var C=l.getImage&&"function"==typeof l.getImage&&l.getImage()?l.getImage():null;if(!C||!C.getSrc())return null;b=p.default.createElement("img",{src:C.getSrc(),style:{height:25,width:25}})}t=this.props.clickEvent?p.default.createElement("span",{tabIndex:1,className:h.cssConstants.STARBOARD_LOCSTYLE,title:n,onKeyPress:function(t){return e.enterEvent(t)},onMouseUp:function(t){return e.props.clickEvent(t)}},b):p.default.createElement("span",{className:h.cssConstants.STARBOARD_LOCSTYLE,title:n},b)}return t}}])}(p.Component)},"./node_modules/@ungap/structured-clone/cjs/deserialize.js":(e,t,r)=>{const{VOID:a,PRIMITIVE:s,ARRAY:l,OBJECT:o,DATE:n,REGEXP:i,MAP:c,SET:p,ERROR:u,BIGINT:d}=r("./node_modules/@ungap/structured-clone/cjs/types.js"),h="object"==typeof self?self:globalThis;t.deserialize=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),y=f=>{if(e.has(f))return e.get(f);const[m,g]=t[f];switch(m){case s:case a:return r(g,f);case l:{const e=r([],f);for(const t of g)e.push(y(t));return e}case o:{const e=r({},f);for(const[t,r]of g)e[y(t)]=y(r);return e}case n:return r(new Date(g),f);case i:{const{source:e,flags:t}=g;return r(new RegExp(e,t),f)}case c:{const e=r(new Map,f);for(const[t,r]of g)e.set(y(t),y(r));return e}case p:{const e=r(new Set,f);for(const t of g)e.add(y(t));return e}case u:{const{name:e,message:t}=g;return r(new h[e](t),f)}case d:return r(BigInt(g),f);case"BigInt":return r(Object(BigInt(g)),f)}return r(new h[m](g),f)};return y})(new Map,e)(0)},"./node_modules/@ungap/structured-clone/cjs/index.js":(e,t,r)=>{const{deserialize:a}=r("./node_modules/@ungap/structured-clone/cjs/deserialize.js"),{serialize:s}=r("./node_modules/@ungap/structured-clone/cjs/serialize.js");Object.defineProperty(t,"__esModule",{value:!0}).default="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?a(s(e,t)):structuredClone(e):(e,t)=>a(s(e,t)),t.deserialize=a,t.serialize=s},"./node_modules/@ungap/structured-clone/cjs/serialize.js":(e,t,r)=>{const{VOID:a,PRIMITIVE:s,ARRAY:l,OBJECT:o,DATE:n,REGEXP:i,MAP:c,SET:p,ERROR:u,BIGINT:d}=r("./node_modules/@ungap/structured-clone/cjs/types.js"),h="",{toString:y}={},{keys:f}=Object,m=e=>{const t=typeof e;if("object"!==t||!e)return[s,t];const r=y.call(e).slice(8,-1);switch(r){case"Array":return[l,h];case"Object":return[o,h];case"Date":return[n,h];case"RegExp":return[i,h];case"Map":return[c,h];case"Set":return[p,h]}return r.includes("Array")?[l,r]:r.includes("Error")?[u,r]:[o,r]},g=([e,t])=>e===s&&("function"===t||"symbol"===t);t.serialize=(e,{json:t,lossy:r}={})=>{const u=[];return((e,t,r,u)=>{const h=(e,t)=>{const a=u.push(e)-1;return r.set(t,a),a},y=u=>{if(r.has(u))return r.get(u);let[b,C]=m(u);switch(b){case s:{let t=u;switch(C){case"bigint":b=d,t=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+C);t=null;break;case"undefined":return h([a],u)}return h([b,t],u)}case l:{if(C)return h([C,[...u]],u);const e=[],t=h([b,e],u);for(const t of u)e.push(y(t));return t}case o:{if(C)switch(C){case"BigInt":return h([C,u.toString()],u);case"Boolean":case"Number":case"String":return h([C,u.valueOf()],u)}if(t&&"toJSON"in u)return y(u.toJSON());const r=[],a=h([b,r],u);for(const t of f(u))!e&&g(m(u[t]))||r.push([y(t),y(u[t])]);return a}case n:return h([b,u.toISOString()],u);case i:{const{source:e,flags:t}=u;return h([b,{source:e,flags:t}],u)}case c:{const t=[],r=h([b,t],u);for(const[r,a]of u)(e||!g(m(r))&&!g(m(a)))&&t.push([y(r),y(a)]);return r}case p:{const t=[],r=h([b,t],u);for(const r of u)!e&&g(m(r))||t.push(y(r));return r}}const{message:v}=u;return h([b,{name:C,message:v}],u)};return y})(!(t||r),!!t,new Map,u)(e),u}},"./node_modules/@ungap/structured-clone/cjs/types.js":(e,t)=>{t.VOID=-1,t.PRIMITIVE=0,t.ARRAY=1,t.OBJECT=2,t.DATE=3,t.REGEXP=4,t.MAP=5,t.SET=6,t.ERROR=7,t.BIGINT=8}}]);
\ No newline at end of file
diff --git a/src/Resources/public/js/components/c4g-starboard-layer-element.jsx b/src/Resources/public/js/components/c4g-starboard-layer-element.jsx
index 0216a292..74e2d82d 100644
--- a/src/Resources/public/js/components/c4g-starboard-layer-element.jsx
+++ b/src/Resources/public/js/components/c4g-starboard-layer-element.jsx
@@ -221,9 +221,6 @@ export class C4gStarboardLayerElement extends Component {
if (this.props.layerStates.greyed) {
cssClass += " " + cssConstants.DISABLED;
}
- if (this.props.layer.cssClass) {
- cssClass += " " + this.props.layer.cssClass;
- }
let openClose = this.props.layerStates.collapsed ? cssConstants.CLOSE : cssConstants.OPEN;
let objChilds = this.props.layer.childs;
let linkText;
@@ -239,11 +236,16 @@ export class C4gStarboardLayerElement extends Component {
linkText = this.layerEnter(event)} onMouseUp={(event) => this.layerClick(event)}>{this.props.layer.name} ;
}
+ let cssElementClass = "";
+ if (this.props.layer.cssClass) {
+ cssElementClass = " " + this.props.layer.cssClass;
+ }
+
if (objChilds && objChilds.length) {
let span = this.spanClick(event)}/>;
return (
-
+
{span}
{stylePicture}
{spanZoom}
@@ -278,7 +280,7 @@ export class C4gStarboardLayerElement extends Component {
linkSwitch = null;
}
return (
-
+
{stylePicture}
{spanZoom}
{linkText}